
:root {
  --rich-black: #0d1b2a;
  --oxford-blue: #1b263b;
  --yinmn-blue: #415a77;
  --silver-lake-blue: #778da9;
  --platinum: #e0e1dd;

  --text-light: #e0e1dd;
  --text-dark: #0d1b2a;
  --accent: #778da9;
  --background-dark: #0d1b2a;
  --background-light: #e0e1dd;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-dark);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
}

.dark-mode {
    background-color: var(--background-light);
    color: var(--text-dark);
}



/* Header */
header {
    background-color: var(--oxford-blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

#darkModeToggle {
    background-color: var(--silver-lake-blue);
    color: var(--text-dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#darkModeToggle:hover {
    background-color: var(--yinmn-blue);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--rich-black), var(--oxford-blue));
    color: var(--text-light);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-section .typing-text {
    font-size: 2rem;
    color: var(--accent);
    min-height: 2.5rem; /* To prevent layout shift */
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-top: 1rem;
    max-width: 760px;
}

.section-description {
    color: var(--silver-lake-blue);
    margin-bottom: 1.5rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.about-text {
    max-width: 720px;
    text-align: left;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-grid div {
    background-color: var(--oxford-blue);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-grid div strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.experience-card {
    background-color: var(--oxford-blue);
    border-radius: 15px;
    padding: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.experience-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.experience-card p {
    line-height: 1.8;
}

.modal-section h4 {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.modal-section ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-section ul li {
    margin-bottom: 0.75rem;
}

.contact-info p {
    margin-bottom: 0.9rem;
}

.contact-info p a {
    color: var(--text-light);
    text-decoration: underline;
}

.contact-info p a:hover {
    color: var(--accent);
}

.btn {
    background-color: var(--accent);
    color: var(--text-dark);
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--yinmn-blue);
    transform: translateY(-3px);
}

/* About Me Section */
.about-me-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-me-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--silver-lake-blue);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--yinmn-blue);
}

.about-content ul {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
    max-width: 600px;
}

.about-content ul li {
    background-color: var(--oxford-blue);
    margin-bottom: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.about-content ul li:hover {
    transform: translateX(5px);
}




/* Projects Section */
.projects-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.projects-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.project-filter {
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: var(--oxford-blue);
    color: var(--text-light);
    border: 1px solid var(--silver-lake-blue);
    padding: 0.7rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent);
    color: var(--text-dark);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--oxford-blue);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card-content {
    padding: 1.5rem;
    text-align: left;
}

.project-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.project-card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-card-content .tech-stack span {
    display: inline-block;
    background-color: var(--yinmn-blue);
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-card-content .project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.project-card-content .project-buttons .btn {
    padding: 0.7rem 1.3rem;
    font-size: 0.9rem;
}

/* Project Modal */
.project-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--rich-black);
    margin: auto;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 900px;
    position: relative;
    color: var(--text-light);
}

.close-button {
    color: var(--text-light);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.modal-content h3 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-content .tech-stack span {
    background-color: var(--yinmn-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    margin-right: 0.5rem;
}

.modal-content .project-links a {
    color: var(--accent);
    text-decoration: none;
    margin-right: 1rem;
    font-weight: bold;
}




/* Skills Section */
.skills-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.skills-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--oxford-blue);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.skill-category h3 {
    font-size: 1.8rem;
    color: var(--yinmn-blue);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--silver-lake-blue);
    padding-bottom: 0.5rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category ul li {
    background-color: var(--rich-black);
    margin-bottom: 0.7rem;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease;
}

.skill-category ul li:hover {
    transform: translateX(5px);
}

.skill-category ul li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--accent);
}




/* Achievements/Certifications Section */
.achievements-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.achievements-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: "";
    position: absolute;
    width: 4px;
    background-color: var(--silver-lake-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--accent);
    border: 4px solid var(--yinmn-blue);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd)::after {
    left: auto;
    right: -17px;
}

.timeline-item:nth-child(even)::after {
    left: -17px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--oxford-blue);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    font-size: 0.9rem;
    color: var(--silver-lake-blue);
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-content .small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}




/* Resume Section */
.resume-section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.resume-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.resume-viewer {
    margin-bottom: 2rem;
    border: 1px solid var(--silver-lake-blue);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.resume-viewer iframe {
    border: none;
}




/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    background-color: var(--oxford-blue);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid var(--silver-lake-blue);
    border-radius: 5px;
    background-color: var(--rich-black);
    color: var(--text-light);
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--silver-lake-blue);
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.contact-info {
    text-align: left;
    width: 100%;
    max-width: 500px;
    background-color: var(--oxford-blue);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info p i {
    color: var(--accent);
    font-size: 1.3rem;
}




/* Social Links and Footer */
footer {
    background-color: var(--oxford-blue);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.8rem;
    margin: 0 1rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

footer p {
    font-size: 0.9rem;
    color: var(--silver-lake-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .nav-toggle {
        display: block;
        align-self: flex-end;
    }

    .nav-links {
        display: none;
        margin-top: 1rem;
        flex-direction: column;
        gap: 1rem;
        background-color: var(--oxford-blue);
        padding: 1rem 1.5rem;
        border-radius: 10px;
    }

    nav.open .nav-links {
        display: flex;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .typing-text {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .about-content {
        flex-direction: column;
    }

    .timeline::after {
        left: 18px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-item::after {
        left: 10px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .contact-content {
        flex-direction: column;
    }
}

.certifications-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.certifications-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--accent);
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.cert-card {
    background-color: var(--oxford-blue);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.cert-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.cert-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.dark-mode {
    background-color: var(--background-light);
    color: var(--text-dark);
}

/* Global Headings */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif; /* Keep headings distinct */
    color: var(--accent);
}

/* Section Padding */
section {
    padding: 6rem 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--text-dark);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: var(--yinmn-blue);
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Navigation Bar Enhancements */
header {
    background-color: var(--oxford-blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--platinum);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

#darkModeToggle {
    background-color: var(--silver-lake-blue);
    color: var(--text-dark);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
}

#darkModeToggle:hover {
    background-color: var(--yinmn-blue);
    transform: scale(1.05);
}

/* Hero Section Enhancements */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--rich-black) 0%, var(--oxford-blue) 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.hero-section .typing-text {
    font-size: 2.5rem;
    color: var(--accent);
    min-height: 3rem; /* Ensure space for text */
    font-weight: 300;
}

.cta-buttons {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
}

/* About Me Section Enhancements */
.about-me-section {
    background-color: var(--oxford-blue);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 4rem;
    margin-top: -80px; /* Overlap with hero section */
    position: relative;
    z-index: 1;
}

.about-me-section h2 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    color: var(--platinum);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--silver-lake-blue);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05) rotate(5deg);
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: center; /* Changed to center for better readability */
    max-width: 800px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 2.2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    border-bottom: 3px solid var(--yinmn-blue);
    padding-bottom: 0.8rem;
}

.about-content ul {
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 800px;
}

.about-content ul li {
    background-color: var(--rich-black);
    margin-bottom: 1rem;
    padding: 1.2rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.about-content ul li:hover {
    transform: translateY(-8px);
    background-color: var(--yinmn-blue);
}

.about-content ul li strong {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Projects Section Enhancements */
.projects-section {
    background-color: var(--rich-black);
    padding: 6rem 2rem;
}

.projects-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--platinum);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.project-filter {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    background-color: var(--oxford-blue);
    color: var(--text-light);
    border: 2px solid var(--silver-lake-blue);
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: var(--oxford-blue);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--yinmn-blue);
}

.project-card-content {
    padding: 2rem;
    text-align: left;
    flex-grow: 1;
}

.project-card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.project-card-content p {
    font-size: 1rem;
    color: var(--platinum);
    margin-bottom: 1.5rem;
}

.project-card-content .tech-stack span {
    display: inline-block;
    background-color: var(--yinmn-blue);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-right: 0.6rem;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

/* Skills Section Enhancements */
.skills-section {
    background-color: var(--oxford-blue);
    padding: 6rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.skills-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--platinum);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background-color: var(--rich-black);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.skill-category h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.8rem;
    border-bottom: 3px solid var(--silver-lake-blue);
    padding-bottom: 0.8rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category ul li {
    background-color: var(--oxford-blue);
    margin-bottom: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    transition: background-color 0.3s ease;
}

.skill-category ul li:hover {
    background-color: var(--yinmn-blue);
}

.skill-category ul li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--accent);
    font-size: 1.2rem;
}

/* Achievements/Certifications Section Enhancements */
.achievements-section {
    background-color: var(--rich-black);
    padding: 6rem 2rem;
}

.achievements-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--platinum);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: "";
    position: absolute;
    width: 5px;
    background-color: var(--silver-lake-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    right: -15px;
    background-color: var(--accent);
    border: 5px solid var(--yinmn-blue);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd)::after {
    left: auto;
    right: -15px;
}

.timeline-item:nth-child(even)::after {
    left: -15px;
}

.timeline-content {
    padding: 2.5rem;
    background-color: var(--oxford-blue);
    position: relative;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: var(--platinum);
    margin-bottom: 0.8rem;
}

.timeline-content .date {
    font-size: 1rem;
    color: var(--silver-lake-blue);
    margin-bottom: 1.2rem;
}

.timeline-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.timeline-content .small-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 20px;
}

/* Resume Section Enhancements */
.resume-section {
    background-color: var(--oxford-blue);
    padding: 6rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.resume-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--platinum);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.resume-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

/* Contact Section Enhancements */
.contact-section {
    background-color: var(--rich-black);
    padding: 6rem 2rem;
}

.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--platinum);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-content {
    display: flex;
    flex-direction: row; /* Changed to row for larger screens */
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    background-color: var(--oxford-blue);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid var(--silver-lake-blue);
    border-radius: 8px;
    background-color: var(--rich-black);
    color: var(--text-light);
    font-size: 1.05rem;
    width: calc(100% - 2rem); /* Adjust for padding */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--silver-lake-blue);
}

.contact-form button {
    width: auto;
    align-self: flex-start; /* Align button to start */
    margin-top: 1rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: var(--oxford-blue);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.contact-info p i {
    color: var(--accent);
    font-size: 1.5rem;
}

.contact-info p a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info p a:hover {
    color: var(--accent);
}

/* Footer Enhancements */
footer {
    background-color: var(--oxford-blue);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 0;
    margin-top: 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--platinum);
    font-size: 2.2rem;
    margin: 0 1.2rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-5px) scale(1.1);
}

footer p {
    font-size: 1rem;
    color: var(--silver-lake-blue);
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section .typing-text {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-me-section {
        padding: 3rem 1.5rem;
    }

    .about-me-section h2,
    .projects-section h2,
    .skills-section h2,
    .achievements-section h2,
    .resume-section h2,
    .contact-section h2 {
        font-size: 2.5rem;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .about-content ul li {
        padding: 1rem 1.2rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 0.7rem 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-category {
        padding: 2rem;
    }

    .timeline::after {
        left: 18px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-item::after {
        left: 10px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-form,
    .contact-info {
        padding: 2.5rem;
    }

    .social-links a {
        font-size: 1.8rem;
        margin: 0 0.8rem;
    }
}


