/* Import Google Font */
    @import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');

    /* CSS Variables */
    :root {
        /* Typography */
        --h1: 50px;
        --h2: 24px;
        --h3: 20px;
        --nm: 16px;
        ---h1-mob: 28px;
        ---h2-mob: 24px;
        ---h3-mob: 20px;
        --nm-mob: 14px;

        /* Colors */
        --primary: #2D3047;
        --secondary: #419D78;
        --accent: #E0A458;
        --white-2: #383839;
        --black: #1A1B25;
        --black-2: #2D2E3A;
        --gray: #9BA0B3;
        --gray-2: #E5E7EF;
        
        /* Layout */
        --p-y: 60px;
        --p-x: 120px;
        --p-y-mob: 20px;
        --p-x-mob: 40px;
        --time: .5s;
        --line-height-body: 1.6;
        --letter-spacing-heading: -0.02em;
    }

    /* Reset & Base Styles */
    *,
    *::before,
    *::after {
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        font-family: "Inter Tight", sans-serif;
        letter-spacing: 2px;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: "Inter Tight", sans-serif;
    }

    /* Base Typography */
    html,
    body {
        background-color: var(--primary);
        color: var(--white);
        min-height: 100vh;
        width: 100vw;
        overflow-x: hidden;
        line-height: 1.6;
    }

    body {
        background: var(--primary);
        color: var(--white);
        line-height: 1.6;
    }

    h1, h2, h3 {
        letter-spacing: var(--letter-spacing-heading);
        line-height: 1.2;
    }

    p {
        line-height: var(--line-height-body);
        font-size: clamp(1rem, 1.5vw, 1.125rem);
    }

    /* NAVBAR: START. */

    /* NAV. */
    .nav {
        height: 100px;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 999;
        padding: 0 var(--p-x);
        text-transform: uppercase;
        backdrop-filter: blur(10px);
        background: linear-gradient(90deg, 
            rgba(45, 48, 71, 0.95), 
            rgba(65, 157, 120, 0.95));
    }

    /* Navigation */
    .nav {
        position: fixed;
        width: 100%;
        background: var(--primary);
        padding: 1rem 0;
        z-index: 100;
    }

    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links a {
        color: var(--white);
        text-decoration: none;
        margin-left: 2rem;
        transition: opacity var(--transition);
    }

    /* NAV CONTENTS. */
    .nav .nav-contents {
        height: inherit;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* NAV TITLE. */
    .nav .nav-contents .nav-title {
        font-size: var(--h3);
        font-weight: 700;
        /* Bold font for emphasis */
        cursor: pointer;
        letter-spacing: 3px;
        /* Increased spacing for a modern look */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        /* Subtle text shadow */
        color: #FFFFFF;
    }

    /* NAV ITEMS. */
    .nav .nav-contents .nav-items a {
        font-size: 16px;
        margin-left: 15px;
        text-decoration: none;
        color: #FFFFFF;
        position: relative;
        transition: color var(--time), transform var(--time);

        /* Hover effect */
        &:hover {
            color: #FFFFFF;
            opacity: 0.8;
            font-weight: bold;
            transform: scale(1.1);
            /* Slight zoom effect */
        }

        /* Underline effect on hover */
        &:hover::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -5px;
            width: 100%;
            height: 2px;
            background-color: var(--secondary);
            transition: width var(--time);
        }

        &::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s ease;
        }
        
        &:hover::after {
            width: 100%;
        }
    }

    /* HAMBURGER. */
    .hamburger {
        display: none;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: #FFFFFF;
        display: block;
        border-radius: 3px;
    }

    /* NAVBAR: END. */

    /* ABOUT: START. */

    /* ABOUT. */
    #about {
        height: auto;
        background-color: var(--white);
        color: var(--gray-2);    /* Using lighter color for better contrast */
        padding: var(--p-y) var(--p-x);
        margin-top: 100px;
    }

    /* ABOUT CONTENTS */
    #about .about-contents {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
        /* Add spacing between the text and image sections */
    }

    /* ABOUT DESCRIPTION WITH BLURRED BACKGROUND IMAGE */
    .about-description {
        position: relative;
        padding: var(--p-y) var(--p-x);
        /* Update background image with a more compatible format and correct path */
        background: linear-gradient(rgba(153, 63, 63, 0.7), rgba(0, 0, 0, 0.7)),
            url("../assets/images/background.jpg") no-repeat center center;
        background-size: cover;
        border-radius: 10px;
        color: var(--white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        flex: 1;
        min-width: 300px;
        z-index: 1;
        background: rgba(47, 47, 49, 0.95); /* Using new color with transparency */
        animation: fadeIn 0.8s ease-out;
    }

    /* Add a dim and blur effect to the background */
    .about-description::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        /* Dim the background with a semi-transparent black overlay */
        filter: blur(15px);
        /* Adjust the blur intensity */
        z-index: -1;
        /* Place it behind the text */
    }

    /* Ensure text remains visible and readable */
    .about-description h1,
    .about-description h3,
    .about-description p,
    .about-description blockquote {
        position: relative;
        z-index: 2;
        color: var(--white);
        font-weight: 600;
    }

    /* Ensure responsiveness */
    @media (max-width: 768px) {
        #about .about-contents {
            flex-direction: column;
            /* Stack the sections vertically on smaller screens */
        }

        .about-description,
        .about-image {
            width: 100%;
            /* Take full width on smaller screens */
            max-width: none;
        }
    }

    /* MODERN ABOUT SECTION STYLES */
    .about-description {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border-radius: 20px;
        padding: 2rem;
        box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .profile-header {
        display: flex;
        align-items: center;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .profile-image-container {
        position: relative;
        width: 150px;
        height: 150px;
    }

    .profile-image {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid var(--primary);
        position: relative;
        z-index: 2;
    }

    .profile-circle {
        position: absolute;
        top: -10px;
        left: -10px;
        width: calc(100% + 20px);
        height: calc(100% + 20px);
        border: 2px solid var(--primary);
        border-radius: 50%;
        animation: rotate 10s linear infinite;
    }

    .glitch-text {
        font-size: var(--h1);
        position: relative;
        color: var(--white);
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        animation: glitch 3s infinite;
    }

    .typing-text h3 {
        overflow: hidden;
        border-right: 3px solid var(--primary);
        white-space: nowrap;
        margin: 0;
        animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
        color: var(--white);
        font-weight: 600;
    }

    .skills-container {
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .skill-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .skill-tags span {
        background: var(--secondary);
        color: var(--white);
        padding: 8px 16px;
        border-radius: 20px;
        transition: all 0.3s ease;
    }

    .skill-tags span:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    /* Resume Button Styles */
    .resume-button {
        margin-top: 2rem;
        text-align: center;
    }

    .resume-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        background: var(--accent);
        color: var(--white);
        text-decoration: none;
        border-radius: 25px;
        font-weight: 500;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .resume-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        background: var(--secondary);
    }

    .resume-link svg {
        transition: transform 0.3s ease;
    }

    .resume-link:hover svg {
        transform: translate(3px, -3px);
    }

    /* Animations */
    @keyframes rotate {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    @keyframes glitch {
        0% {
            transform: translate(0);
        }

        20% {
            transform: translate(-2px, 2px);
        }

        40% {
            transform: translate(-2px, -2px);
        }

        60% {
            transform: translate(2px, 2px);
        }

        80% {
            transform: translate(2px, -2px);
        }

        100% {
            transform: translate(0);
        }
    }

    @keyframes typing {
        from {
            width: 0
        }

        to {
            width: 100%
        }
    }

    @keyframes blink-caret {

        from,
        to {
            border-color: transparent
        }

        50% {
            border-color: var(--primary)
        }
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .profile-header {
            flex-direction: column;
            text-align: center;
        }

        .skill-tags {
            justify-content: center;
        }
    }

    /* ABOUT: END. */

    /* EXPERIENCE & AWARDS: START. */

    /* EXPERIENCE & AWARDS. */
    #experience,
    #awards {
        background-color: var(--white-2);
        color: var(--gray-2);
    }

    .experience-contents,
    .awards-contents {
        display: flex;
        justify-content: space-between;

        & #contents-left {
            padding: calc(var(--p-y)*1.5) var(--p-x);
        }

        /* TITLE. */
        & .contents-title {
            font-size: var(--h2);
            margin-bottom: 3rem;
        }

        /* LEFT ITEMS. */
        #contents-left .experience-items,
        #contents-left .awards-items {
            display: flex;
            flex-direction: column;
            max-height: 200px;
            width: 500px;
            max-width: 500px;
            overflow-y: scroll;

            div {
                padding: 20px 15px;
                cursor: pointer;

                &:nth-child(odd) {
                    background-color: var(--gray);
                    color: var(--white-2);
                }

                &:hover,
                &.active {
                    background-color: var(--black);
                    color: var(--white);
                    transition: var(--time);
                }
            }

            /* TITLE */
            & h3 {
                font-size: var(--h3);
                margin-bottom: 5px;
            }
        }

        /* RIGHT ITEMS. */
        #exp-contents-right,
        #awards-contents-right {
            background-color: var(--black);
            color: var(--gray-2);
            padding: calc(var(--p-y)*1.5) var(--p-x);

            /* TO SELECT ALL CHILD. */
            & * {
                margin-bottom: 20px;
                line-height: 30px;
            }

            & hr {
                margin-top: 10px;
                border-color: var(--gray-2);
            }

            & a {
                color: var(--white-2);
            }
        }
    }

    .experience-items div,
    .awards-items div {
        &:nth-child(odd) {
            background-color: var(--gray);
            color: var(--white);
        }

        &:hover,
        &.active {
            background-color: var(--primary);
            color: var(--white);
        }
    }

    /* AWARDS SECTION REDESIGN */
    #awards {
        background: var(--primary);
        padding: var(--p-y) var(--p-x);
    }

    .awards-contents {
        display: grid;
        gap: 3rem;
    }

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

    .award-card {
        background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
        border-radius: 16px;
        padding: 2rem;
        position: relative;
        overflow: hidden;
        transition: all 0.4s ease;
        
        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--secondary), var(--accent));
        }
        
        &:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }

        .award-title {
            color: var(--white);
            font-size: var(--h3);
            margin-bottom: 0.5rem;
        }

        .award-issuer {
            color: var(--accent);
            font-size: 0.9rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .award-date {
            color: var(--gray);
            font-size: 0.8rem;
            margin-bottom: 1rem;
        }

        .award-desc {
            color: var(--gray-2);
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .view-certificate {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--secondary);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            
            &:hover {
                color: var(--accent);
                transform: translateX(5px);
            }
        }
    }

    /* EXPERIENCE & AWARDS: END. */

    /* PROJECTS: START. */

    /* Projects Section Redesign */
    #projects {
        background: linear-gradient(135deg, var(--black) 0%, var(--primary) 100%);
        padding: var(--p-y) var(--p-x);
        position: relative;
    }

    .projects-contents {
        max-width: 1200px;
        margin: 0 auto;
    }

    .projects-title {
        text-align: center;
        margin-bottom: 4rem;
        position: relative;
    }

    .projects-title h2 {
        color: #FFFFFF;
        font-size: var(--h1);
        margin-bottom: 1rem;
    }

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

    .project-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        overflow: hidden;
        transition: all 0.4s ease;
        position: relative;
    }

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        border-color: var(--secondary);
    }

    .project-content {
        padding: 2rem;
    }

    .project-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        margin-bottom: 1.5rem;
    }

    .project-title {
        color: var(--white);
        font-size: var(--h2);
        margin-bottom: 1rem;
    }

    .project-icon {
        color: var(--accent);
        font-size: 1.5rem;
    }

    .project-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .project-tag {
        background: rgba(65, 157, 120, 0.15);
        color: var(--secondary);
        padding: 0.4rem 1rem;
        border-radius: 20px;
        font-size: 0.85rem;
        transition: all 0.3s ease;
    }

    .project-description {
        color: var(--gray);
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .project-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .project-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--white);
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
    }

    .project-link:hover {
        background: var(--secondary);
        color: var(--white);
        transform: translateX(5px);
    }

    /* Update project card title colors */
    .project-content h3.project-title {
        color: #FFFFFF !important;
        font-size: var(--h2);
        margin-bottom: 1rem;
        font-weight: 600;
    }

    /* Ensure color stays white even on hover */
    .project-card:hover .project-title {
        color: #FFFFFF !important;
    }

    /* Responsive Design
    @media (max-width: 768px) {
        #projects {
            padding: var(--p-y-mob) var(--p-x-mob);
        }
        
        .projects-grid {
            grid-template-columns: 1fr;
            gap: 1.5rem;
            padding: 0.5rem;
        }
        
        .project-card {
            margin-bottom: 1rem;
        }
        
        .projects-title h2 {
            font-size: var(---h1-mob);
        }
    } */

    /* Projects and Awards Sections Base Styles */
    #projects, #awards {
        padding: var(--p-y) var(--p-x);
        width: 100%;
        overflow: hidden; /* Prevent overflow */
    }

    .projects-contents, .awards-contents {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

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

    .project-card, .award-card {
        width: 100%;
        height: 100%;
        min-height: 200px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 2rem;
        transition: all 0.4s ease;
    }

    /* Mobile Responsive Fixes */
    @media screen and (max-width: 768px) {
        #projects, #awards {
            padding: 2rem 1rem; /* Reduce padding on mobile */
        }

        .contents-title {
            font-size: 28px; /* Smaller title on mobile */
            margin-bottom: 1.5rem;
            padding: 0 1rem;
        }

        .project-items, .awards-grid {
            grid-template-columns: 1fr; /* Single column on mobile */
            gap: 1.5rem;
            padding: 0.5rem;
        }

        .project-card, .award-card {
            padding: 1.5rem;
            min-height: auto; /* Let height adjust to content */
            margin-bottom: 1rem; /* Add space between cards */
        }

        /* Adjust text sizes for better mobile readability */
        .project-card h2, .award-card h3 {
            font-size: 20px;
            margin-bottom: 0.5rem;
        }

        .project-tech, .award-issuer {
            font-size: 14px;
        }

        .project-desc, .award-desc {
            font-size: 14px;
            line-height: 1.4;
        }

        /* Fix container widths */
        .projects-contents, .awards-contents {
            width: 100%;
            padding: 0;
        }
    }

    /* Additional fixes for very small screens */
    @media screen and (max-width: 480px) {
        #projects, #awards {
            padding: 1.5rem 0.75rem;
        }

        .project-card, .award-card {
            padding: 1.25rem;
            border-radius: 12px;
        }

        .contents-title {
            font-size: 24px;
        }
    }

    /* Responsive Projects Grid */
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
        width: 100%;
    }

    /* Responsive card adjustments */
    .project-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 1.5rem;
        margin: 0;
    }

    /* Ensure images and content fit */
    .project-card img,
    .project-card .project-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* On very small screens, reduce padding */
    @media (max-width: 480px) {
        .projects-grid {
            gap: 1rem;
            padding: 0.5rem;
        }
        .project-card {
            padding: 1rem;
        }
    }

    /* FOOTER/CONTACT: START. */

    /* FOOTER/CONTACT. */
    #contact {
        background-color: var(--black);
        color: #FFFFFF;
        padding: var(--p-y) var(--p-x);
        text-transform: capitalize;
    }

    /* FOOTER/CONTACT CONTENTS. */
    #contact .contact-contents {
        height: inherit;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        align-content: center;

        /* ALL DIVS WITHIN (LINKS/CONNECT/CONTACT). */
        & div {
            display: flex;
            flex-direction: column;
        }

        /* H3 (LINKS/CONNECT/CONTACT). */
        & div h3 {
            padding-bottom: 15px;
            font-size: var(--h3);
            color: #FFFFFF;
        }

        /* LINKS (LINKS/CONNECT/CONTACT). */
        & div a {
            color: #FFFFFF;
            text-decoration: none;
            padding: 5px 0;
            font-weight: 200;
        }

        & div a:hover {
            color: #FFFFFF;
            font-weight: 400;
            transition: var(--time);
        }
    }

    /* Update for mobile view */
    @media (max-width: 1024px) {
        #contact {
            background-color: var(--primary);
            color: #FFFFFF;
        }
    }

    /* FOOTER/CONTACT: END. */


    /* RESPONSIVE SEGMENT: TABLET, MOBILE. */
    @media (max-width: 1024px) {

        body {
            /* width: 100%; */
            /* border: solid 5px yellow; */
            background-color: var(--white);
        }

        /* NAVBAR: START. */

        /* NAVBAR. */
        .nav {
            width: inherit;
            padding: 0 var(--p-x-mob);
        }

        /* HAMBURGER. */
        .hamburger {
            display: flex;
        }

        .nav-items {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 100px;
            /* SHOULD MATCH NAVBAR'S HEIGHT NAVBAR. */
            right: 50px;
            background-color: var(--primary);
            padding: 2rem;
            /* border-radius: 8px; */
            z-index: 999;
            /* TO ENSURE THAT IT IS ALWAYS ON TOP. */
            gap: 1rem;
            opacity: .9;
        }

        .nav-items.active {
            display: flex;
        }

        /* NAVBAR: END. */


        /* ABOUT: START. */

        /* ABOUT CONTENTS. */

        #about {
            margin: 0;
            padding: 0;
            margin-top: 100px;
        }

        #about .about-contents {
            flex-direction: column-reverse;
            justify-content: center;
            gap: 2rem;
            margin: 0;
            padding: 0;
        }

        .about-description {
            /* padding: var(--p-y-mob) var(--p-x-mob); */
            /* background-color: red; */
            /* width: fit-content; */

            margin: 0;
            padding: var(--p-y-mob) var(--p-x-mob);
            width: 100% !important;
            text-align: center;

            & h1 {
                font-size: var(---h1-mob) !important;
                margin: 0;
                padding: 0;
            }

            & h3 {
                font-size: var(---h3-mob) !important;
                margin: 0;
                padding: 0;
            }

            & p,
            blockquote {
                font-size: var(--nm-mob) !important;
                margin: 0;
            }

        }

        .about-image {
            border-radius: 0 !important;
        }

        /* ABOUT: END. */

        /* EXPERIENCE & AWARDS: START. */

        /* EXPERIENCE & AWARDS. */
        #experience,
        #awards {
            background-color: var(--white-2);
            color: var(--black-2);
        }

        /* CONTENTS. */
        .experience-contents,
        .awards-contents {
            display: flex;
            flex-direction: column;
        }

        /* LEFT ITEMS. */

        .experience-contents #contents-left,
        .awards-contents #contents-left {
            padding: 1.5rem;

            & .contents-title {
                margin-top: 30px;
            }
        }

        .experience-contents #contents-left .experience-items,
        .awards-contents #contents-left .awards-items {
            display: flex;
            flex-direction: row;
            flex-basis: 3fr;
            width: 100% !important;
            padding: 0 !important;

            min-height: 60px;
            height: 100%;
            max-height: 120px;
        }

        #contents-left .experience-items div,
        #contents-left .awards-items div {
            min-width: 250px !important;
            width: 500px !important;

            & p {
                display: none;
            }
        }

        /* RIGHT ITEMS. */
        #exp-contents-right,
        #awards-contents-right {
            /* flex: 0 0 3fr; */
            height: auto;
            padding: 0;
            margin: 0;
            min-height: 300px;
            height: 100%;
            max-height: 600px;
            overflow-y: scroll;
            overflow-x: hidden;

            & div {
                padding: 25px 0;
                margin: -5em;
            }

            & h2 {
                margin-top: 30px;
            }
        }

        /* EXPERIENCE & AWARDS: END. */


        /* PROJECTS: START. */

        /* PROJECT CONTENTS. */

        #projects .projects-contents,
        #projects .projects-contents .project-items {
            min-height: 400px;
            height: 100%;
            max-height: 600px;
        }


        #projects .projects-contents .project-items div {
            /* 
            BETTER FOR TABLET:
            flex: 0 0 calc(100%/2); 
            */
            flex: 0 0 100%;
            /* padding: 0; */
            margin: 0;
            min-height: 400px;
            max-height: 600px;
            height: 100%;
            overflow-y: scroll;
        }

        /* PROJECTS: END. */


        /* FOOTER: START. */
        /* FOOTER/CONTACT CONTENTS. */
        #contact {
            padding: var(--p-y) var(--p-x-mob);
            background-color: var(--primary);
        }

        #contact .contact-contents {
            flex-direction: column-reverse;
            gap: 2rem;
        }

        /* FOOTER: END. */

    }

    /* Sections */
    .section {
        padding: var(--spacing) 0;
    }

    /* Cards */
    .card {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        padding: 2rem;
        margin-bottom: 2rem;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .nav-links {
            display: none;
        }
        
        .menu-toggle {
            display: block;
        }
        
        .section {
            padding: var(--spacing-small) 0;
        }
    }

    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 var(--spacing-small);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        #projects, #awards {
            padding: var(--p-y-mob) var(--p-x-mob);
        }

        .contents-title {
            font-size: var(---h1-mob);
        }

        .project-card, .award-card {
            padding: 1.5rem;
        }
    }

    <div class="projects-grid">
        <div class="project-card"> ... </div>
        <div class="project-card"> ... </div>
        <div class="project-card"> ... </div>
        <!-- Add more project-card divs as needed -->
    </div>

    /* EXPERIENCE & AWARDS: Make contents stack and scroll naturally on mobile */
    @media (max-width: 1024px) {
        .experience-contents,
        .awards-contents {
            flex-direction: column !important;
            display: flex !important;
            gap: 2rem;
        }
        /* Remove fixed heights and scrolling */
        .experience-contents #contents-left,
        .awards-contents #contents-left,
        #exp-contents-right,
        #awards-contents-right {
            padding: 1.5rem !important;
            margin: 0 !important;
            min-height: unset !important;
            max-height: unset !important;
            height: auto !important;
            overflow: visible !important;
        }
        .experience-contents #contents-left .experience-items,
        .awards-contents #contents-left .awards-items {
            flex-direction: column !important;
            width: 100% !important;
            min-height: unset !important;
            max-height: unset !important;
            height: auto !important;
            overflow: visible !important;
        }
        #contents-left .experience-items div,
        #contents-left .awards-items div {
            min-width: unset !important;
            width: 100% !important;
        }
    }

    /* PROJECTS: Make grid always show all cards, one per row on mobile */
    @media (max-width: 900px) {
        .projects-grid {
            grid-template-columns: 1fr !important;
            gap: 1rem !important;
            padding: 0.5rem !important;
        }
        .project-card {
            min-width: 0 !important;
            width: 100% !important;
            margin: 0 0 1rem 0 !important;
            padding: 1rem !important;
            box-sizing: border-box !important;
        }
    }

    /* Remove min/max heights from project containers */
    #projects .projects-contents,
    #projects .projects-contents .project-items,
    #projects .projects-contents .projects-grid {
        min-height: unset !important;
        max-height: unset !important;
        height: auto !important;
        overflow: visible !important;
    }