        /* CSS Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #121212; /* Dark background */
            color: #dcdcdc; /* Light grey text */
            font-family: 'Montserrat', sans-serif;
            font-weight: 300;
            min-height: 100vh;
        }

        /* Container Layout */
        .container {
            width: 100%;
            min-height: 100vh;
        }

        /* --- Left Sidebar --- */
        .sidebar {
            position: fixed;
            width: 200px;
            padding: 60px 40px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100vh;
            transition: opacity 0.1s ease-out; 
        }

        /* Navigation */
        .nav-menu {
            list-style: none;
            margin-bottom: 40px;
            position: relative;
        }

        .nav-menu li {
            margin-bottom: 15px;
            font-size: 20px;
            letter-spacing: 1px;
            position: relative;
        }

        .nav-menu a {
            color: #888;
            text-decoration: none;
            transition: color 0.3s;
            display: block;
            padding: 5px 0;
            position: relative;
        }

        .nav-menu a:hover {
            color: #fff;
        }

        .nav-menu .active a {
            color: #fff;
        }

        /* Individual Sliding Underline for Each Nav Item */
        .nav-menu li::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #555;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .nav-menu li.active::after {
            transform: scaleX(1);
        }

        /* Page Transition Styles - Only for main content */
        .main-content-transition {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .main-content-transition.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Social Icons */
        .social-icons {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: auto;
        }

        .social-icons a {
            color: #dcdcdc;
            font-size: 20px;
            text-decoration: none;
            transition: color 0.3s;
        }

        .social-icons a:hover {
            color: #fff;
        }

        /* --- Main Content Area --- */
        .main-content {
            margin-left: 280px;
            padding: 60px 80px 60px 40px;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        /* Hero Section (Name) */
        .hero {
            margin-top: 40px;
            margin-bottom: 60px; 
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 60px; 
        }

    /* Final shared cascade */
    html {
        overflow-x: hidden;
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
    }

    body {
        overflow-x: hidden;
    }

    hr {
        border: 0;
        border-top: 1px solid #333;
    }

    .contact-info a,
    .link-bar a {
        color: #aaa;
        text-decoration: none;
    }

    .link-bar {
        padding: 0 var(--page-gutter, 16px) 40px;
    }

    .link-bar > hr {
        margin: 20px 0;
    }

    .link-bar > div {
        display: flex;
        justify-content: center;
        gap: 40px;
        padding: 20px 0;
    }

    .sidebar img[alt="Letterboxd"] {
        width: 22.8px;
        height: 22.8px;
        border-radius: 6px;
        display: block;
    }

    .yt-stats .fa-youtube {
        color: #f00;
    }

    a,
    button,
    .carousel-button,
    .arrow-btn,
    .btn,
    .yt-btn {
        -webkit-tap-highlight-color: transparent;
    }

    button,
    .carousel-button,
    .arrow-btn,
    .btn,
    .yt-btn {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
        cursor: pointer;
    }

    @media (max-width: 768px) {
        .sidebar {
            position: relative;
            width: 100%;
            height: auto;
            min-height: 0;
            padding: 18px var(--page-gutter, 16px) 10px;
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
        }

        .nav-menu {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 4px 14px;
            margin: 0;
        }

        .nav-menu li {
            margin: 0;
            font-size: 15px;
        }

        .nav-menu a {
            display: flex;
            align-items: center;
            min-height: 44px;
            padding: 8px 0;
        }

        .social-icons {
            flex-direction: row;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px 20px;
            margin: 0;
        }

        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 44px;
            min-height: 44px;
        }

        .main-content {
            margin-left: 0;
            padding: 28px var(--page-gutter, 16px) 44px;
            min-width: 0;
        }

        .hero {
            flex-direction: column;
            align-items: stretch;
            gap: 28px;
            margin: 20px 0 40px;
            text-align: center;
        }

        .hero h1,
        .about-me-body h1,
        .resume-header h1,
        .experience-header h1,
        .gallery-header h1 {
            font-size: clamp(2.35rem, 11vw, 4rem) !important;
            letter-spacing: 0;
            overflow-wrap: anywhere;
        }

        .hero h2 {
            margin-bottom: 0;
        }

        .image {
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }

        .bottom-content {
            flex-direction: column;
            align-items: stretch;
            gap: 24px;
        }

        .bottom-content {
            padding-bottom: 12px;
        }

        .about-me-body {
            height: auto;
            padding: 36px var(--page-gutter, 16px);
        }

        .card-stack-container {
            flex-direction: column;
            gap: 16px;
        }

        .carousel-slide {
            height: min(62vh, 420px);
        }

        .timeline-container {
            padding-left: 24px;
        }

        .timeline-line,
        .timeline-progress {
            left: 8px;
        }

        .timeline-item.left,
        .timeline-item.right {
            width: 100%;
            left: 0;
            padding: 0 0 28px 24px;
            text-align: left;
        }

        .timeline-item.left .timeline-dot,
        .timeline-item.right .timeline-dot {
            left: -1px;
            right: auto;
        }

        .timeline-item.left .timeline-date,
        .timeline-item.right .timeline-date {
            position: static;
            display: block;
            margin: 0 0 8px;
        }

        .link-bar > div {
            flex-wrap: wrap;
            gap: 8px 24px;
        }

        .link-bar a {
            display: inline-flex;
            align-items: center;
            min-height: 44px;
        }
    }

    @media (max-width: 480px) {
        .main-content {
            padding-inline: 16px;
        }

        .nav-menu {
            gap: 2px 10px;
        }

        .nav-menu li {
            font-size: 13px;
        }

        .carousel-slide {
            height: 52vh;
            min-height: 260px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            scroll-behavior: auto !important;
            transition-duration: 0.01ms !important;
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
        }
    }

        .hero-text {
            flex: 1;
        }

        .hero h1 {
            font-size: 80px;
            font-weight: 100;
            line-height: 1.1;
            letter-spacing: 2px;
            color: #fff;
            margin-bottom: 15px;
        }

        .hero h2 {
            font-size: 14px;
            font-weight: 300;
            color: #aaa;
            letter-spacing: 0.5px;
            margin-bottom: 20%;
        }

        /* Bottom Content Area (Contact & About) */
        .bottom-content {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            padding-bottom: 20px;
        }

        .contact-info {
            font-size: 20px;
            color: #aaa;
            line-height: 1.6;
        }

        /* Image Section */
        .image {
            width: 500px;
            flex-shrink: 0;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            transition: transform 0.3s ease;
        }

        .image:hover {
            transform: translateY(-5px);
        }

        .image img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        .projects-wrapper {
            margin-top: 0px;
        }

        /* About Me Body Section */
        .about-me-body {
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
            padding: 60px 80px 60px 40px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .about-me-body h1 {
            text-align: center;
            font-size: 80px;
            font-weight: 100;
            line-height: 1.1;
            letter-spacing: 2px;
            color: #fff;
            margin-bottom: 15px;
            transition: color 0.3s;
        }

        .about-me-body.visible {
            opacity: 1;
        }

        /* --- CSS Toggle Switch --- */
        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
            align-self: center; 
            margin-bottom: 20px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #333; 
            -webkit-transition: .4s;
            transition: .4s;
            border: 1px solid #555; 
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 24px;
            width: 24px;
            left: 4px;
            bottom: 4px;
            background-color: #dcdcdc;
            -webkit-transition: .4s;
            transition: .4s;
        }

        input:checked + .slider {
            background-color: #e0e1e4; 
        }

        input:focus + .slider {
            box-shadow: 0 0 1px #e0e1e4;
        }

        input:checked + .slider:before {
            -webkit-transform: translateX(26px);
            -ms-transform: translateX(26px);
            transform: translateX(26px);
            background-color: #121212; 
        }

        .slider.round {
            border-radius: 34px;
        }

        .slider.round:before {
            border-radius: 50%;
        }

        /* --- Toggle Content Container --- */
        .toggle-content {
            transition: background-color 0.5s ease, color 0.5s ease;
            padding: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center; 
            justify-content: center;
            gap: 60px; 
        }

        .toggle-content.state-1 {
            background-color: #121212;
            color: #dcdcdc;
        }

        .toggle-content.state-2 {
            background-color: #e0e1e4;
            color: #121212;
        }

        .profile-picture {
            flex-shrink: 0;
            width: 300px; 
            height: 300px; 
            border-radius: 50%; 
            overflow: hidden; 
            transition: transform 0.3s ease;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .profile-picture:hover {
            transform: translateY(-5px);
        }

        .profile-picture img {
            width: 100%;
            height: 100%;
            object-fit: cover; 
            display: block;
        }

        .toggle-text {
            display: flex;
            flex-direction: column;
            gap: 20px; 
            max-width: 500px; 
        }

        .toggle-text p {
            font-size: 22px; 
            line-height: 1.6;
            margin: 0; 
        }

        /* =========================================
           NEW GRID & CARD ANIMATIONS FOR MAIN 
           ========================================= */
        .github-projects {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 40px;
            margin-top: 40px;
        }

        .github-card {
            background: #181818;
            border: 1px solid #252525;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
            text-decoration: none;
        }

        .github-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            border-color: #444;
        }

        .project-header {
            padding: 25px;
            border-bottom: 1px solid #252525;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .project-link {
            font-size: 18px;
            font-weight: 300;
            color: #fff;
            text-decoration: none;
            transition: color 0.3s;
        }

        .github-card:hover .project-link {
            color: #aaa;
        }

        .project-icon {
            color: #888;
            font-size: 20px;
            transition: color 0.3s;
        }

        .github-card:hover .project-icon {
            color: #fff;
        }

        .img-container {
            width: 100%;
            height: 500px;
            overflow: hidden;
            background: #111;
        }

        .img-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top;
            transition: transform 0.6s ease;
            display: block;
        }


        /* --- Mobile Responsiveness --- */
        @media (max-width: 768px) {
            .sidebar {
                position: relative;
                width: 100%;
                height: auto;
                padding: 20px;
                flex-direction: row;
                align-items: center;
            }
            .nav-menu {
                display: flex;
                gap: 15px;
                margin-bottom: 0;
            }
            .social-icons {
                flex-direction: row;
            }
            .main-content {
                margin-left: 0;
                padding: 20px;
            }
            .hero {
                flex-direction: column;
                text-align: center;
                gap: 30px;
            }
            .image {
                width: 100%;
            }
            .about-me-body {
                padding: 20px;
                height: 70px;
            }
            .hero h1, .about-me-body h1 {
                font-size: 50px;
            }
            
            .toggle-content {
                flex-direction: column;
                text-align: center;
                gap: 30px;
                padding: 20px;
            }
            .profile-picture {
                width: 200px; 
                height: 200px;
            }
            .toggle-text p {
                font-size: 18px; 
            }
            .github-projects {
                grid-template-columns: 1fr;
            }
            .img-container {
                height: 260px;
            }
        }
            /* Small-phone tightening for the nav row */
        @media (max-width: 480px) {
            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
            }
            .nav-menu li {
                font-size: 15px;
            }
            .social-icons {
                flex-wrap: wrap;
                justify-content: center;
            }
        }
        /* CSS Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #121212;
            color: #dcdcdc;
            font-family: 'Montserrat', sans-serif;
            font-weight: 300;
            min-height: 100vh;
        }

        /* Container Layout */
        .container {
            width: 100%;
            min-height: 100vh;
        }

        /* --- Left Sidebar --- */
        .sidebar {
            position: fixed;
            width: 200px;
            padding: 60px 40px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100vh;
            transition: opacity 0.1s ease-out; 
        }

        .nav-menu {
            list-style: none;
            margin-bottom: 40px;
            position: relative;
        }

        .nav-menu li {
            margin-bottom: 15px;
            font-size: 20px;
            letter-spacing: 1px;
            position: relative;
        }

        .nav-menu a {
            color: #888;
            text-decoration: none;
            transition: color 0.3s;
            display: block;
            padding: 5px 0;
            position: relative;
        }

        .nav-menu a:hover {
            color: #fff;
        }

        .nav-menu .active a {
            color: #fff;
        }

        .nav-menu li::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #555;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .nav-menu li.active::after {
            transform: scaleX(1);
        }

        /* Page Transition Styles */
        .main-content-transition {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .main-content-transition.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Social Icons */
        .social-icons {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: auto;
        }

        .social-icons a {
            color: #dcdcdc;
            font-size: 20px;
            text-decoration: none;
            transition: color 0.3s;
        }

        .social-icons a:hover {
            color: #fff;
        }

        /* --- Main Content Area --- */
        .main-content {
            margin-left: 280px;
            padding: 60px 80px 60px 40px;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: #aaa;
            text-decoration: none;
            font-size: 18px;
            margin-bottom: 40px;
            transition: color 0.3s ease;
            width: fit-content;
        }

        .back-button:hover {
            color: #fff;
        }

        /* =========================================
           YouTube Showcase Section
           ========================================= */
        .youtube-showcase {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background-color: rgba(255, 255, 255, 0.02);
            border: 1px solid #333;
            border-radius: 12px;
            padding: 40px;
            margin: 0 auto 60px auto;
            width: 1200px;
            gap: 40px;
            transition: border-color 0.3s ease, transform 0.3s ease;
        }

        .youtube-showcase:hover {
            border-color: #555;
            transform: translateY(-5px);
        }

        .yt-text {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .yt-text h2 {
            font-size: 36px;
            color: #fff;
            font-weight: 300;
        }

        .yt-stats {
            display: flex;
            gap: 15px;
            color: #aaa;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            flex-wrap: wrap;
        }

        .yt-stats span {
            background: #222;
            padding: 6px 12px;
            border-radius: 4px;
            border: 1px solid #444;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .yt-text p {
            font-size: 18px;
            line-height: 1.6;
            color: #dcdcdc;
        }

        .yt-btn {
            display: inline-block;
            padding: 12px 24px;
            margin-top: 10px;
            background-color: #fff;
            color: #121212;
            text-decoration: none;
            font-weight: 400;
            border-radius: 6px;
            width: fit-content;
            transition: background-color 0.3s ease;
        }

        .yt-btn:hover {
            background-color: #dcdcdc;
        }

        .yt-video {
            flex-shrink: 0;
            width: 500px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0,0,0,0.5);
        }

        .yt-video iframe {
            width: 100%;
            aspect-ratio: 16/9;
            border: none;
            display: block;
        }

        /* --- Mobile Responsiveness --- */
        @media (max-width: 768px) {
            .sidebar {
                position: relative;
                width: 100%;
                height: auto;
                padding: 20px;
                flex-direction: row;
                align-items: center;
            }
            .nav-menu {
                display: flex;
                gap: 15px;
                margin-bottom: 0;
            }
            .social-icons {
                flex-direction: row;
            }
            .main-content {
                margin-left: 0;
                padding: 20px;
            }
            
            .youtube-showcase {
                flex-direction: column;
                padding: 20px;
            }
            .yt-video {
                width: 100%;
            }
        }
            /* Small-phone tightening for the nav row */
        @media (max-width: 480px) {
            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
            }
            .nav-menu li {
                font-size: 15px;
            }
            .social-icons {
                flex-wrap: wrap;
                justify-content: center;
            }
        }
        /* CSS Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #121212; /* Dark background */
            color: #dcdcdc; /* Light grey text */
            font-family: 'Montserrat', sans-serif;
            font-weight: 300;
            min-height: 100vh;
        }

        /* Container Layout */
        .container {
            width: 100%;
            min-height: 100vh;
        }

        /* --- Left Sidebar --- */
        .sidebar {
            position: fixed;
            width: 200px;
            padding: 60px 40px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100vh;
            transition: opacity 0.1s ease-out; 
        }

        /* Navigation */
        .nav-menu {
            list-style: none;
            margin-bottom: 40px;
            position: relative;
        }

        .nav-menu li {
            margin-bottom: 15px;
            font-size: 20px;
            letter-spacing: 1px;
            position: relative;
        }

        .nav-menu a {
            color: #888;
            text-decoration: none;
            transition: color 0.3s;
            display: block;
            padding: 5px 0;
            position: relative;
        }

        .nav-menu a:hover {
            color: #fff;
        }

        .nav-menu .active a {
            color: #fff;
        }

        /* Individual Sliding Underline for Each Nav Item */
        .nav-menu li::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #555;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .nav-menu li.active::after {
            transform: scaleX(1);
        }

        /* Page Transition Styles */
        .main-content-transition {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .main-content-transition.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Social Icons */
        .social-icons {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: auto;
        }

        .social-icons a {
            color: #dcdcdc;
            font-size: 20px;
            text-decoration: none;
            transition: color 0.3s;
        }

        .social-icons a:hover {
            color: #fff;
        }

        /* --- Main Content Area --- */
        .main-content {
            margin-left: 280px;
            padding: 60px 80px 60px 40px;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        /* Hero Header */
        .experience-header h1 {
            font-size: 80px;
            font-weight: 100;
            line-height: 1.1;
            letter-spacing: 2px;
            color: #fff;
            margin-bottom: 60px;
        }

        /* --- Timeline Styles --- */
        .timeline-container {
            position: relative;
            max-width: 900px;
            margin: 0 auto;
            padding: 20px 0;
            display: flex;
            flex-direction: column;
        }

        /* Base inactive line */
        .timeline-line {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            width: 2px;
            background-color: #333;
            transform: translateX(-50%);
        }

        /* Active filling line */
        .timeline-progress {
            position: absolute;
            top: 0;
            left: 50%;
            width: 2px;
            height: 0; /* JS updates this */
            background-color: #fff;
            transform: translateX(-50%);
            z-index: 1;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        .timeline-item {
            position: relative;
            width: 50%;
            padding: 30px 40px;
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .timeline-item.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .timeline-item.left {
            left: 0;
            text-align: right;
        }

        .timeline-item.right {
            left: 50%;
            text-align: left;
        }

        .timeline-dot {
            position: absolute;
            top: 40px;
            width: 16px;
            height: 16px;
            background-color: #121212;
            border: 2px solid #555;
            border-radius: 50%;
            z-index: 2;
            transition: all 0.5s ease;
        }

        /* Glow effect when the line reaches the dot */
        .timeline-dot.active {
            border-color: #fff;
            background-color: #fff;
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
        }

        .timeline-item.left .timeline-dot {
            right: -8px;
        }

        .timeline-item.right .timeline-dot {
            left: -8px;
        }

        .timeline-date {
            position: absolute;
            top: 36px;
            font-size: 18px;
            color: #888;
            font-weight: 300;
            letter-spacing: 1px;
        }

        .timeline-item.left .timeline-date {
            right: -130px;
        }

        .timeline-item.right .timeline-date {
            left: -130px;
        }

        .timeline-content {
            background-color: rgba(255, 255, 255, 0.02);
            padding: 30px;
            border-radius: 8px;
            border: 1px solid #333;
            transition: transform 0.3s ease, border-color 0.3s ease;
        }

        .timeline-content:hover {
            transform: translateY(-5px);
            border-color: #555;
        }

        .timeline-content h3 {
            color: #fff;
            font-size: 24px;
            font-weight: 400;
            margin-bottom: 8px;
            letter-spacing: 0.5px;
        }

        .timeline-content h4 {
            color: #aaa;
            font-size: 14px;
            font-weight: 300;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .timeline-content p {
            font-size: 16px;
            line-height: 1.6;
            color: #dcdcdc;
        }

        /* --- Mobile Responsiveness --- */
        @media (max-width: 1024px) {
            .timeline-item.left .timeline-date { right: -100px; }
            .timeline-item.right .timeline-date { left: -100px; }
        }

        @media (max-width: 768px) {
            .sidebar {
                position: relative;
                width: 100%;
                height: auto;
                padding: 20px;
                flex-direction: row;
                align-items: center;
            }
            .nav-menu {
                display: flex;
                gap: 15px;
                margin-bottom: 0;
            }
            .social-icons {
                flex-direction: row;
            }
            .main-content {
                margin-left: 0;
                padding: 20px;
            }
            
            /* Responsive Timeline: Collapse to Left */
            .experience-header h1 {
                font-size: 50px;
                text-align: center;
                margin-bottom: 40px;
            }
            .timeline-line, .timeline-progress {
                left: 20px;
                transform: none;
            }
            .timeline-item.left, .timeline-item.right {
                width: 100%;
                left: 0;
                text-align: left;
                padding: 20px 0 20px 50px;
            }
            .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
                left: 12px;
                right: auto;
                top: 25px;
            }
            .timeline-item.left .timeline-date, .timeline-item.right .timeline-date {
                position: relative;
                left: 0;
                top: 0;
                margin-bottom: 15px;
                display: block;
                color: #aaa;
            }
            .timeline-content {
                padding: 20px;
            }
        }
            /* Small-phone tightening for the nav row */
        @media (max-width: 480px) {
            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
            }
            .nav-menu li {
                font-size: 15px;
            }
            .social-icons {
                flex-wrap: wrap;
                justify-content: center;
            }
        }
        /* CSS Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #121212; /* Dark background */
            color: #dcdcdc; /* Light grey text */
            font-family: 'Montserrat', sans-serif;
            font-weight: 300;
            min-height: 100vh;
        }

        /* Container Layout */
        .container {
            width: 100%;
            min-height: 100vh;
        }

        /* --- Left Sidebar --- */
        .sidebar {
            position: fixed;
            width: 200px;
            padding: 60px 40px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100vh;
            transition: opacity 0.1s ease-out; 
        }

        /* Navigation */
        .nav-menu {
            list-style: none;
            margin-bottom: 40px;
            position: relative;
        }

        .nav-menu li {
            margin-bottom: 15px;
            font-size: 20px;
            letter-spacing: 1px;
            position: relative;
        }

        .nav-menu a {
            color: #888;
            text-decoration: none;
            transition: color 0.3s;
            display: block;
            padding: 5px 0;
            position: relative;
        }

        .nav-menu a:hover {
            color: #fff;
        }

        .nav-menu .active a {
            color: #fff;
        }

        /* Individual Sliding Underline for Each Nav Item */
        .nav-menu li::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #555;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .nav-menu li.active::after {
            transform: scaleX(1);
        }

        /* Page Transition Styles - Only for main content */
        .main-content-transition {
            opacity: 0;
            transform: translateY(100px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .main-content-transition.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Social Icons */
        .social-icons {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: auto;
        }

        .social-icons a {
            color: #dcdcdc;
            font-size: 20px;
            text-decoration: none;
            transition: color 0.3s;
        }

        .social-icons a:hover {
            color: #fff;
        }

        /* --- Main Content Area --- */
        .main-content {
            margin-left: 280px;
            padding: 60px 80px 60px 40px;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        /* Hero Section (Name) */
        .hero {
            margin-top: 40px;
            margin-bottom: 60px; 
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 60px; 
        }

        .hero-text {
            flex: 1;
        }

        .hero h1 {
            font-size: 80px;
            font-weight: 100;
            line-height: 1.1;
            letter-spacing: 2px;
            color: #fff;
            margin-bottom: 15px;
        }

        .hero h2 {
            font-size: 14px;
            font-weight: 300;
            color: #aaa;
            letter-spacing: 0.5px;
            margin-bottom: 20%;
        }

        /* Bottom Content Area (Contact & About) */
        .bottom-content {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            padding-bottom: 20px;
        }

        .contact-info {
            font-size: 20px;
            color: #aaa;
            line-height: 1.6;
        }

        /* Image Section */
        .image {
            width: 500px;
            flex-shrink: 0;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            transition: transform 0.3s ease;
        }

        .image:hover {
            transform: translateY(-5px);
        }

        .image img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        .projects-wrapper {
            margin-top: 0px;
        }

        .gallery-header {
            max-width: 780px;
            margin-bottom: 0px;
        }

        .gallery-header .eyebrow {
            text-transform: uppercase;
            letter-spacing: 3px;
            color: #888;
            margin-bottom: 0px;
            font-size: 14px;
        }

        .gallery-header h1 {
            font-size: 60px;
            line-height: 1.05;
            color: #fff;
            margin-bottom: 0px;
            font-weight: 100;
        }

        .gallery-header p {
            font-size: 18px;
            color: #bbb;
            line-height: 1.8;
            max-width: 100%;
        }

        .carousel {
            position: relative;
            overflow: hidden;
            background: #ffffff;
            border: 0px solid rgba(255, 255, 255, 1);
            margin-top: 24px;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
        }

        .carousel.visible {
            opacity: 1;
        }

        .carousel-track {
            display: flex;
            transition: transform 0.55s ease;
            width: 100%;
        }

        .carousel-slide {
            min-width: 100%;
            height: 680px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: #000000;
        }

        .carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .carousel-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            border: none;
            background: rgba(255, 255, 255, 0);
            color: #f5f5f5;
            width: 56px;
            height: 56px;
            cursor: pointer;
            z-index: 10;
            font-size: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.25s ease;
        }

        .carousel-button:hover {
            background: rgba(255, 255, 255, 0.16);
        }

        .carousel-button.prev {
            left: 18px;
        }

        .carousel-button.next {
            right: 18px;
        }


        @media (max-width: 768px) {
            .carousel-slide {
                height: 420px;
            }
        }

        /* About Me Body Section */
        .about-me-body {
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
            padding: 60px 80px 60px 40px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .about-me-body h1 {
            text-align: center;
            font-size: 80px;
            font-weight: 100;
            line-height: 1.1;
            letter-spacing: 2px;
            color: #fff;
            margin-bottom: 15px;
            transition: color 0.3s;
        }

        .about-me-body.visible {
            opacity: 1;
        }

        /* --- CSS Toggle Switch --- */
        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
            align-self: center; 
            margin-bottom: 20px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #333; 
            -webkit-transition: .4s;
            transition: .4s;
            border: 1px solid #555; 
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 24px;
            width: 24px;
            left: 4px;
            bottom: 4px;
            background-color: #dcdcdc;
            -webkit-transition: .4s;
            transition: .4s;
        }

        input:checked + .slider {
            background-color: #e0e1e4; 
        }

        input:focus + .slider {
            box-shadow: 0 0 1px #e0e1e4;
        }

        input:checked + .slider:before {
            -webkit-transform: translateX(26px);
            -ms-transform: translateX(26px);
            transform: translateX(26px);
            background-color: #121212; 
        }

        .slider.round {
            border-radius: 34px;
        }

        .slider.round:before {
            border-radius: 50%;
        }

        /* --- Toggle Content Container (Side-by-Side Flexbox) --- */
        .toggle-content {
            transition: background-color 0.5s ease, color 0.5s ease;
            padding: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center; 
            justify-content: center;
            gap: 60px; /* Increased gap for better spacing between image and text */
        }

        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: #aaa;
            text-decoration: none;
            font-size: 18px;
            margin-bottom: 40px;
            transition: color 0.3s ease;
            width: fit-content;
        }

        .back-button:hover {
            color: #fff;
        }

        /* State 1: Normal (Dark) */
        .toggle-content.state-1 {
            background-color: #121212;
            color: #dcdcdc;
        }

        /* State 2: White Background */
        .toggle-content.state-2 {
            background-color: #e0e1e4;
            color: #121212;
        }

        /* FIXED: Profile Picture Sizing */
        .profile-picture {
            flex-shrink: 0;
            width: 300px; /* Base size of the image container */
            height: 300px; /* Force perfect square */
            border-radius: 50%; /* Make container round */
            overflow: hidden; /* Ensure image stays inside the circle */
            transition: transform 0.3s ease;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .profile-picture:hover {
            transform: translateY(-5px);
        }

        .profile-picture img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Ensures image fills the circle perfectly without stretching */
            display: block;
        }

        .toggle-text {
            display: flex;
            flex-direction: column;
            gap: 20px; 
            max-width: 500px; /* Prevents text from stretching too far wide */
        }

        .toggle-text p {
            font-size: 22px; /* Slightly reduced from 25px so it balances nicely with the 300px image */
            line-height: 1.6;
            margin: 0; 
        }

        /* --- Mobile Responsiveness --- */
        @media (max-width: 768px) {
            .sidebar {
                position: relative;
                width: 100%;
                height: auto;
                padding: 20px;
                flex-direction: row;
                align-items: center;
            }
            .nav-menu {
                display: flex;
                gap: 15px;
                margin-bottom: 0;
            }
            .social-icons {
                flex-direction: row;
            }
            .main-content {
                margin-left: 0;
                padding: 20px;
            }
            .hero {
                flex-direction: column;
                text-align: center;
                gap: 30px;
            }
            .image {
                width: 100%;
            }
            .about-me-body {
                padding: 20px;
                height: 70px;
            }
            .hero h1, .about-me-body h1 {
                font-size: 50px;
            }
            
            /* Stack the profile picture and text on mobile */
            .toggle-content {
                flex-direction: column;
                text-align: center;
                gap: 30px;
                padding: 20px;
            }
            .profile-picture {
                width: 200px; /* Scale image down slightly on mobile */
                height: 200px;
            }
            .toggle-text p {
                font-size: 18px; /* Scale text down on mobile */
            }

            .carousel-slide {
                height: 400px;
            }
        }
        
            /* Small-phone tightening for the nav row */
        @media (max-width: 480px) {
            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
            }
            .nav-menu li {
                font-size: 15px;
            }
            .social-icons {
                flex-wrap: wrap;
                justify-content: center;
            }
            .gallery-header .eyebrow {
                font-size: 22px !important;
            }
        }

/* Shared responsive and touch-first overrides */
:root {
    color-scheme: dark;
    --page-gutter: clamp(16px, 4vw, 48px);
    --touch-size: 44px;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    line-height: 1.55;
}

img,
video,
iframe {
    max-width: 100%;
}

a,
button,
input,
label,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a,
button,
.carousel-button,
.arrow-btn,
.btn,
.yt-btn {
    min-height: var(--touch-size);
}

button,
.carousel-button,
.arrow-btn,
.btn,
.yt-btn {
    touch-action: manipulation;
    cursor: pointer;
}

.sidebar {
    z-index: 10;
}

.main-content {
    min-width: 0;
}

.github-projects,
.projects,
.projects-section,
.card-stack-container,
.resume-container,
.youtube-showcase,
.toggle-content {
    min-width: 0;
}

.github-card,
.project,
.card,
.timeline-content,
.toggle-text {
    min-width: 0;
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 18px var(--page-gutter) 10px;
        gap: 12px;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 14px;
        margin: 0;
    }

    .nav-menu li {
        margin: 0;
        font-size: 15px;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        min-height: var(--touch-size);
        padding: 8px 0;
    }

    .social-icons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 20px;
        margin: 0;
    }

    .social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: var(--touch-size);
        min-height: var(--touch-size);
    }

    .main-content {
        margin-left: 0;
        padding: 28px var(--page-gutter) 44px;
    }

    .hero {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        margin: 20px 0 40px;
        text-align: center;
    }

    .hero h1,
    .about-me-body h1,
    .resume-header h1,
    .experience-header h1,
    .gallery-header h1 {
        font-size: clamp(2.35rem, 11vw, 4rem) !important;
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .hero h2 {
        margin-bottom: 0;
    }

    .image {
        width: 100%;
    }

    .bottom-content {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding-bottom: 12px;
    }

    .contact-info {
        font-size: 16px;
    }

    .about-me-body {
        height: auto;
        padding: 36px var(--page-gutter);
    }

    .github-projects,
    .projects,
    .projects-section,
    .download-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .github-card {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .github-card a.project-link {
        font-size: 18px;
    }

    .card-stack-container {
        flex-direction: column;
        gap: 16px;
    }

    .card-stack {
        max-width: 100%;
    }

    .carousel {
        width: 100%;
    }

    .carousel-slide {
        height: min(62vh, 420px);
    }

    .carousel-button,
    .arrow-btn {
        width: var(--touch-size) !important;
        height: var(--touch-size) !important;
    }

    .timeline-container {
        padding-left: 24px;
    }

    .timeline-line,
    .timeline-progress {
        left: 8px;
    }

    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        left: 0;
        padding: 0 0 28px 24px;
        text-align: left;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: -1px;
        right: auto;
    }

    .timeline-item.left .timeline-date,
    .timeline-item.right .timeline-date {
        position: static;
        display: block;
        margin: 0 0 8px;
    }

    .timeline-content {
        width: 100%;
    }

    footer > div,
    .link-bar {
        flex-wrap: wrap;
        gap: 8px 24px !important;
    }

    footer a,
    .link-bar a {
        display: inline-flex;
        align-items: center;
        min-height: var(--touch-size);
    }

    [style*="font-size: 40px"] {
        font-size: clamp(1.4rem, 7vw, 2.5rem) !important;
    }

    [style*="font-size: 50px"] {
        font-size: clamp(2.2rem, 10vw, 3.5rem) !important;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-inline: 16px;
    }

    .nav-menu {
        gap: 2px 10px;
    }

    .nav-menu li {
        font-size: 13px;
    }

    .carousel-slide {
        height: 52vh;
        min-height: 260px;
    }

    .profile-picture {
        width: min(200px, 72vw) !important;
        height: min(200px, 72vw) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Markup defaults moved out of the page files */
hr {
    border: 0;
    border-top: 1px solid #333;
}

.link-bar {
    padding: 0 var(--page-gutter) 40px;
}

.link-bar > hr {
    margin: 20px 0;
}

.link-bar > div {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

.link-bar a {
    color: #aaa;
    font-size: 18px;
    text-decoration: none;
}

.link-bar a:hover,
.contact-info a:hover {
    color: #fff;
}

.contact-info a {
    color: #aaa !important;
    text-decoration: none !important;
}

.sidebar img[alt="Letterboxd"] {
    width: 22.8px;
    height: 22.8px;
    border-radius: 6px;
    display: block;
}

.section-title h1 {
    font-weight: 200;
    font-size: 50px;
    text-align: center;
}

.github-projects {
    margin: 30px auto;
    max-width: 1200px;
}

.yt-stats .fa-youtube {
    color: #f00;
}

.toggle-text h1 {
    font-size: 30px;
    text-align: left;
}

.projects-section > img {
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .link-bar {
        padding-inline: var(--page-gutter);
    }

    .link-bar > div {
        gap: 8px 24px;
    }
}
        /* CSS Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #121212; /* Dark background */
            color: #dcdcdc; /* Light grey text */
            font-family: 'Montserrat', sans-serif;
            font-weight: 300;
            min-height: 100vh;
        }

        /* Container Layout */
        .container {
            width: 100%;
            min-height: 100vh;
        }

        /* --- Left Sidebar --- */
        .sidebar {
            position: fixed;
            width: 200px;
            padding: 60px 40px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100vh;
            transition: opacity 0.1s ease-out; 
        }

        /* Navigation */
        .nav-menu {
            list-style: none;
            margin-bottom: 40px;
            position: relative;
        }

        .nav-menu li {
            margin-bottom: 15px;
            font-size: 20px;
            letter-spacing: 1px;
            position: relative;
        }

        .nav-menu a {
            color: #888;
            text-decoration: none;
            transition: color 0.3s;
            display: block;
            padding: 5px 0;
            position: relative;
        }

        .nav-menu a:hover {
            color: #fff;
        }

        .nav-menu .active a {
            color: #fff;
        }

        /* Individual Sliding Underline for Each Nav Item */
        .nav-menu li::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #555;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .nav-menu li.active::after {
            transform: scaleX(1);
        }

        /* Page Transition Styles - Only for main content */
        .main-content-transition {
            opacity: 0;
            transform: translateY(100px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .main-content-transition.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Social Icons */
        .social-icons {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: auto;
        }

        .social-icons a {
            color: #dcdcdc;
            font-size: 20px;
            text-decoration: none;
            transition: color 0.3s;
        }

        .social-icons a:hover {
            color: #fff;
        }

        /* --- Main Content Area --- */
        .main-content {
            margin-left: 280px;
            padding: 60px 80px 60px 40px;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        /* Hero Section (Name) */
        .hero {
            margin-top: 40px;
            margin-bottom: 60px; 
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 60px; 
        }

        .hero-text {
            flex: 1;
        }

        .hero h1 {
            font-size: 80px;
            font-weight: 100;
            line-height: 1.1;
            letter-spacing: 2px;
            color: #fff;
            margin-bottom: 15px;
        }

        .hero h2 {
            font-size: 14px;
            font-weight: 300;
            color: #aaa;
            letter-spacing: 0.5px;
            margin-bottom: 20%;
        }

        /* Bottom Content Area (Contact & About) */
        .bottom-content {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            padding-bottom: 20px;
        }

        .contact-info {
            font-size: 20px;
            color: #aaa;
            line-height: 1.6;
        }

        /* Image Section */
        .image {
            width: 500px;
            flex-shrink: 0;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            transition: transform 0.3s ease;
        }

        .image:hover {
            transform: translateY(-5px);
        }

        .image img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        .projects-wrapper {
            margin-top: 0px;
        }

        .gallery-header {
            max-width: 780px;
            margin-bottom: 0px;
        }

        .gallery-header .eyebrow {
            text-transform: uppercase;
            letter-spacing: 3px;
            color: #888;
            margin-bottom: 0px;
            font-size: 14px;
        }

        .gallery-header h1 {
            font-size: 60px;
            line-height: 1.05;
            color: #fff;
            margin-bottom: 0px;
            font-weight: 100;
        }

        .gallery-header p {
            font-size: 18px;
            color: #bbb;
            line-height: 1.8;
            max-width: 100%;
        }

        .carousel {
            position: relative;
            overflow: hidden;
            background: #ffffff;
            border: 0px solid rgba(255, 255, 255, 1);
            margin-top: 24px;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
        }

        .carousel.visible {
            opacity: 1;
        }

        .carousel-track {
            display: flex;
            transition: transform 0.55s ease;
            width: 100%;
        }

        .carousel-slide {
            min-width: 100%;
            height: 680px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: #000000;
        }

        .carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .carousel-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            border: none;
            background: rgba(255, 255, 255, 0);
            color: #f5f5f5;
            width: 56px;
            height: 56px;
            cursor: pointer;
            z-index: 10;
            font-size: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.25s ease;
        }

        .carousel-button:hover {
            background: rgba(255, 255, 255, 0.16);
        }

        .carousel-button.prev {
            left: 18px;
        }

        .carousel-button.next {
            right: 18px;
        }


        @media (max-width: 768px) {
            .carousel-slide {
                height: 420px;
            }
        }

        /* About Me Body Section */
        .about-me-body {
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
            padding: 60px 80px 60px 40px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .about-me-body h1 {
            text-align: center;
            font-size: 80px;
            font-weight: 100;
            line-height: 1.1;
            letter-spacing: 2px;
            color: #fff;
            margin-bottom: 15px;
            transition: color 0.3s;
        }

        .about-me-body.visible {
            opacity: 1;
        }

        /* --- CSS Toggle Switch --- */
        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
            align-self: center; 
            margin-bottom: 20px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #333; 
            -webkit-transition: .4s;
            transition: .4s;
            border: 1px solid #555; 
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 24px;
            width: 24px;
            left: 4px;
            bottom: 4px;
            background-color: #dcdcdc;
            -webkit-transition: .4s;
            transition: .4s;
        }

        input:checked + .slider {
            background-color: #e0e1e4; 
        }

        input:focus + .slider {
            box-shadow: 0 0 1px #e0e1e4;
        }

        input:checked + .slider:before {
            -webkit-transform: translateX(26px);
            -ms-transform: translateX(26px);
            transform: translateX(26px);
            background-color: #121212; 
        }

        .slider.round {
            border-radius: 34px;
        }

        .slider.round:before {
            border-radius: 50%;
        }

        /* --- Toggle Content Container (Side-by-Side Flexbox) --- */
        .toggle-content {
            transition: background-color 0.5s ease, color 0.5s ease;
            padding: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center; 
            justify-content: center;
            gap: 60px; /* Increased gap for better spacing between image and text */
        }

        /* State 1: Normal (Dark) */
        .toggle-content.state-1 {
            background-color: #121212;
            color: #dcdcdc;
        }

        /* State 2: White Background */
        .toggle-content.state-2 {
            background-color: #e0e1e4;
            color: #121212;
        }

        /* FIXED: Profile Picture Sizing */
        .profile-picture {
            flex-shrink: 0;
            width: 300px; /* Base size of the image container */
            height: 300px; /* Force perfect square */
            border-radius: 50%; /* Make container round */
            overflow: hidden; /* Ensure image stays inside the circle */
            transition: transform 0.3s ease;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .profile-picture:hover {
            transform: translateY(-5px);
        }

        .profile-picture img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Ensures image fills the circle perfectly without stretching */
            display: block;
        }

        .toggle-text {
            display: flex;
            flex-direction: column;
            gap: 20px; 
            max-width: 500px; /* Prevents text from stretching too far wide */
        }

        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: #aaa;
            text-decoration: none;
            font-size: 18px;
            margin-bottom: 40px;
            transition: color 0.3s ease;
            width: fit-content;
        }

        .back-button:hover {
            color: #fff;
        }

        .toggle-text p {
            font-size: 22px; /* Slightly reduced from 25px so it balances nicely with the 300px image */
            line-height: 1.6;
            margin: 0; 
        }

        /* --- Mobile Responsiveness --- */
        @media (max-width: 768px) {
            .sidebar {
                position: relative;
                width: 100%;
                height: auto;
                padding: 20px;
                flex-direction: row;
                align-items: center;
            }
            .nav-menu {
                display: flex;
                gap: 15px;
                margin-bottom: 0;
            }
            .social-icons {
                flex-direction: row;
            }
            .main-content {
                margin-left: 0;
                padding: 20px;
            }
            .hero {
                flex-direction: column;
                text-align: center;
                gap: 30px;
            }
            .image {
                width: 100%;
            }
            .about-me-body {
                padding: 20px;
                height: 70px;
            }
            .hero h1, .about-me-body h1 {
                font-size: 50px;
            }
            
            /* Stack the profile picture and text on mobile */
            .toggle-content {
                flex-direction: column;
                text-align: center;
                gap: 30px;
                padding: 20px;
            }
            .profile-picture {
                width: 200px; /* Scale image down slightly on mobile */
                height: 200px;
            }
            .toggle-text p {
                font-size: 18px; /* Scale text down on mobile */
            }

            .carousel-slide {
                height: 400px;
            }
        }
        
            /* Small-phone tightening for the nav row */
        @media (max-width: 480px) {
            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
            }
            .nav-menu li {
                font-size: 15px;
            }
            .social-icons {
                flex-wrap: wrap;
                justify-content: center;
            }
            .gallery-header .eyebrow {
                font-size: 22px !important;
            }
        }
        /* =========================================
           1. CSS Reset & Base Styles
           ========================================= */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #121212;
            color: #dcdcdc;
            font-family: 'Montserrat', sans-serif;
            font-weight: 300;
            min-height: 100vh;
        }

        /* =========================================
           2. Layout Structure
           ========================================= */
        .container {
            width: 100%;
            min-height: 100vh;
        }

        .main-content {
            margin-left: 280px;
            padding: 60px 80px 60px 40px;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        /* Page Transition Styles */
        .main-content-transition {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .main-content-transition.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* =========================================
           3. Sidebar Navigation
           ========================================= */
        .sidebar {
            position: fixed;
            width: 200px;
            padding: 60px 40px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100vh;
            transition: opacity 0.1s ease-out; 
        }

        .nav-menu {
            list-style: none;
            margin-bottom: 40px;
            position: relative;
        }

        .nav-menu li {
            margin-bottom: 15px;
            font-size: 20px;
            letter-spacing: 1px;
            position: relative;
        }

        .nav-menu a {
            color: #888;
            text-decoration: none;
            transition: color 0.3s;
            display: block;
            padding: 5px 0;
            position: relative;
        }

        .nav-menu a:hover,
        .nav-menu .active a {
            color: #fff;
        }

        /* Sliding Underline */
        .nav-menu li::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #555;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .nav-menu li.active::after {
            transform: scaleX(1);
        }

        .social-icons {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: auto;
        }

        .social-icons a {
            color: #dcdcdc;
            font-size: 20px;
            text-decoration: none;
            transition: color 0.3s;
        }

        .social-icons a:hover {
            color: #fff;
        }

        /* =========================================
           4. Component Styles (Hero, About, etc.)
           ========================================= */
        .hero {
            margin-top: 40px;
            margin-bottom: 60px; 
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 60px; 
        }

        .hero-text { flex: 1; }

        .section-title {
            display: flex;
            justify-content: center;
            padding-top: 20px;
            margin-bottom: 16px;
        }

        .section-title h2 {
            font-size: 50px;
            margin: 0;
        }

        .github-projects {
            display: flex;
            gap: 32px;
            justify-content: space-between;
            flex-wrap: wrap;
            width: 100%;
            margin-bottom: 40px;
        }

        .github-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            flex: 1 1 45%;
            min-width: 320px;
            max-width: calc(50% - 16px);
            width: auto;
        }

        .github-card img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
            display: block;
            object-fit: contain;
        }

        .github-card a.project-link {
            color: #aaa;
            text-decoration: none;
            font-size: 22px;
            text-align: center;
        }

        .github-card a.project-link:hover {
            color: #fff;
        }

        .hero h1 {
            font-size: 80px;
            font-weight: 100;
            line-height: 1.1;
            letter-spacing: 2px;
            color: #fff;
            margin-bottom: 15px;
        }

        .hero h2 {
            font-size: 14px;
            font-weight: 300;
            color: #aaa;
            letter-spacing: 0.5px;
            margin-bottom: 20%;
        }

        .bottom-content {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            padding-bottom: 20px;
        }

        .contact-info {
            font-size: 20px;
            color: #aaa;
            line-height: 1.6;
        }

        .image {
            width: 500px;
            flex-shrink: 0;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            transition: transform 0.3s ease;
        }

        .image:hover { transform: translateY(-5px); }
        .image img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        .projects-wrapper {
            margin-top: 0px;
        }

        .about-me-body {
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
            padding: 60px 80px 60px 40px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .about-me-body h1 {
            text-align: center;
            font-size: 80px;
            font-weight: 100;
            line-height: 1.1;
            letter-spacing: 2px;
            color: #fff;
            margin-bottom: 15px;
            transition: color 0.3s;
        }

        .about-me-body.visible { opacity: 1; }

        /* =========================================
           5. Card Stack (Swipe) Component
           ========================================= */
        .card-stack-container {
            display: flex;
            flex-direction: row;
            align-items: center; 
            justify-content: center;
            gap: 40px;
            margin: 2rem auto;
            width: 100%;
            max-width: 1200px; 
        }

        .card-stack {
            display: grid;
            grid-template-areas: "stack";
            width: 100%;
            max-width: 50%; 
            min-height: 400px; 
            flex-shrink: 0;
        }

        .card {
            grid-area: stack;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.5);
            background-color: #222; 
            overflow: hidden; 
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
            cursor: grab;
            transition: transform 0.4s ease-out, opacity 0.4s ease-out;
            will-change: transform;
        }

        .card img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: contain;
        }

        .card-img-btn {
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
        }

        .card-img-btn img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: contain;
        }

        /* FIXED: Messy stack look dynamically applies based on the number of cards you have */
        .card:nth-last-child(1) { transform: rotate(0deg); z-index: 3; }
        .card:nth-last-child(2) { transform: rotate(2deg) translate(5px, -5px); z-index: 2; }
        .card:nth-last-child(3) { transform: rotate(-3deg) translate(-5px, 5px); z-index: 1; }

        /* Animation classes toggled via JS */
        .card.swiped-right {
            transform: translate(0, 0) rotate(0deg) !important;
            opacity: 0;
            pointer-events: none;
            z-index: 0 !important;
        }

        .card.swiped-left {
            transform: translate(0, 0) rotate(0deg) !important;
            opacity: 0;
            pointer-events: none;
            z-index: 0 !important;
        }

      
        /* FIXED: Added z-index and position: relative to pull controls forward */
        .arrow-controls {
            display: flex;
            flex-direction: column;
            gap: 20px;
            align-items: center;
            z-index: 10; 
            position: relative;
        }

        .arrow-btn {
            background: none;
            border: 1px solid #555;
            color: #dcdcdc;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .arrow-btn:hover {
            background-color: #333;
            border-color: #777;
            transform: scale(1.1);
        }

        .arrow-btn:active {
            transform: scale(0.95);
        }

        /* =========================================
           6. Toggle Elements
           ========================================= */
        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
            align-self: center; 
            margin-bottom: 20px;
        }

        .switch input { opacity: 0; width: 0; height: 0; }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: #333; 
            transition: .4s;
            border: 1px solid #555; 
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 24px; width: 24px;
            left: 4px; bottom: 4px;
            background-color: #dcdcdc;
            transition: .4s;
        }

        input:checked + .slider { background-color: #e0e1e4; }
        input:focus + .slider { box-shadow: 0 0 1px #e0e1e4; }
        input:checked + .slider:before {
            transform: translateX(26px);
            background-color: #121212; 
        }

        .slider.round { border-radius: 34px; }
        .slider.round:before { border-radius: 50%; }

        .toggle-content {
            transition: background-color 0.5s ease, color 0.5s ease;
            padding: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center; 
            justify-content: center;
            gap: 60px;
        }

        .toggle-content.state-1 { background-color: #121212; color: #dcdcdc; }
        .toggle-content.state-2 { background-color: #e0e1e4; color: #121212; }

        .profile-picture {
            flex-shrink: 0;
            width: 300px; 
            height: 300px; 
            border-radius: 50%;
            overflow: hidden; 
            transition: transform 0.3s ease;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .profile-picture:hover { transform: translateY(-5px); }
        .profile-picture img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .toggle-text {
            display: flex;
            flex-direction: column;
            gap: 20px; 
            max-width: 500px;
        }

        .toggle-text p {
            font-size: 22px; 
            line-height: 1.6;
            margin: 0; 
        }

        /* =========================================
           7. Media Queries
           ========================================= */
        @media (max-width: 768px) {
            .sidebar {
                position: relative;
                width: 100%;
                height: auto;
                padding: 20px;
                flex-direction: row;
                align-items: center;
            }
            .nav-menu {
                display: flex;
                gap: 15px;
                margin-bottom: 0;
            }
            .social-icons { flex-direction: row; }
            .main-content {
                margin-left: 0;
                padding: 20px;
            }
            .hero {
                flex-direction: column;
                text-align: center;
                gap: 30px;
            }
            .image { width: 100%; }
            .about-me-body {
                padding: 20px;
                height: auto; /* FIXED: Let the div resize naturally */
            }
            .hero h1, .about-me-body h1 { font-size: 50px; }
            .toggle-content {
                flex-direction: column;
                text-align: center;
                gap: 30px;
                padding: 20px;
            }
            .profile-picture {
                width: 200px; 
                height: 200px;
            }
            .toggle-text p { font-size: 18px; }
            
            .card-stack-container {
                flex-direction: column;
                gap: 20px;
            }
            .card-stack { 
                max-width: 100%;
                width: 100%;
            }
            .arrow-controls {
                flex-direction: row;
                justify-content: center;
                width: 100%;
            }
            .arrow-btn {
                width: 45px;
                height: 45px;
                font-size: 18px;
            }
        }
            /* Small-phone tightening for the nav row */
        @media (max-width: 480px) {
            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
            }
            .nav-menu li {
                font-size: 15px;
            }
            .social-icons {
                flex-wrap: wrap;
                justify-content: center;
            }
        }
        /* =========================================
           1. CSS Reset & Base Styles
           ========================================= */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #121212;
            color: #dcdcdc;
            font-family: 'Montserrat', sans-serif;
            font-weight: 300;
            min-height: 100vh;
        }

        /* =========================================
           2. Layout Structure
           ========================================= */
        .container {
            width: 100%;
            min-height: 100vh;
        }

        .main-content {
            margin-left: 280px;
            padding: 60px 80px 60px 40px;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        /* Page Transition Styles */
        .main-content-transition {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .main-content-transition.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* =========================================
           3. Sidebar Navigation
           ========================================= */
        .sidebar {
            position: fixed;
            width: 200px;
            padding: 60px 40px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100vh;
            transition: opacity 0.1s ease-out; 
        }

        .nav-menu {
            list-style: none;
            margin-bottom: 40px;
            position: relative;
        }

        .nav-menu li {
            margin-bottom: 15px;
            font-size: 20px;
            letter-spacing: 1px;
            position: relative;
        }

        .nav-menu a {
            color: #888;
            text-decoration: none;
            transition: color 0.3s;
            display: block;
            padding: 5px 0;
            position: relative;
        }

        .nav-menu a:hover,
        .nav-menu .active a {
            color: #fff;
        }

        /* Sliding Underline */
        .nav-menu li::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #555;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .nav-menu li.active::after {
            transform: scaleX(1);
        }

        .social-icons {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: auto;
        }

        .social-icons a {
            color: #dcdcdc;
            font-size: 20px;
            text-decoration: none;
            transition: color 0.3s;
        }

        .social-icons a:hover {
            color: #fff;
        }

        /* =========================================
           4. Resume Specific Styles
           ========================================= */
        .resume-header {
            margin-bottom: 40px;
            text-align: center;
        }

        .resume-header h1 {
            font-size: 80px;
            font-weight: 100;
            line-height: 1.1;
            letter-spacing: 2px;
            color: #fff;
        }

        .resume-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px;
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
        }

        .resume-image-wrapper {
            width: 100%;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #333;
        }

        .resume-image-wrapper img {
            width: 100%;
            height: auto;
            display: block;
        }

        .download-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
            width: 100%;
        }

        .btn {
            padding: 15px 30px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 400;
            font-size: 18px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            min-width: 220px;
        }

        .btn-pdf {
            background-color: #fff;
            color: #121212;
            border: 1px solid #fff;
        }

        .btn-pdf:hover {
            background-color: #dcdcdc;
            transform: translateY(-3px);
        }

        .btn-png {
            background-color: transparent;
            color: #dcdcdc;
            border: 1px solid #555;
        }

        .btn-png:hover {
            border-color: #fff;
            color: #fff;
            transform: translateY(-3px);
        }

        /* =========================================
           5. Media Queries
           ========================================= */
        @media (max-width: 768px) {
            .sidebar {
                position: relative;
                width: 100%;
                height: auto;
                padding: 20px;
                flex-direction: row;
                align-items: center;
            }
            .nav-menu {
                display: flex;
                gap: 15px;
                margin-bottom: 0;
            }
            .social-icons { flex-direction: row; }
            .main-content {
                margin-left: 0;
                padding: 20px;
            }
            .resume-header h1 {
                font-size: 50px;
            }
            .download-buttons {
                flex-direction: column;
                align-items: center;
            }
            .btn {
                width: 100%;
                max-width: 300px;
            }
        }
            /* Small-phone tightening for the nav row */
        @media (max-width: 480px) {
            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
            }
            .nav-menu li {
                font-size: 15px;
            }
            .social-icons {
                flex-wrap: wrap;
                justify-content: center;
            }
        }
        /* CSS Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #121212; /* Dark background */
            color: #dcdcdc; /* Light grey text */
            font-family: 'Montserrat', sans-serif;
            font-weight: 300;
            min-height: 100vh;
        }

        /* Container Layout */
        .container {
            width: 100%;
            min-height: 100vh;
        }

        /* --- Left Sidebar --- */
        .sidebar {
            position: fixed;
            width: 200px;
            padding: 60px 40px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100vh;
            transition: opacity 0.1s ease-out; 
        }

        /* Navigation */
        .nav-menu {
            list-style: none;
            margin-bottom: 40px;
            position: relative;
        }

        .nav-menu li {
            margin-bottom: 15px;
            font-size: 20px;
            letter-spacing: 1px;
            position: relative;
        }

        .nav-menu a {
            color: #888;
            text-decoration: none;
            transition: color 0.3s;
            display: block;
            padding: 5px 0;
            position: relative;
        }

        .nav-menu a:hover {
            color: #fff;
        }

        .nav-menu .active a {
            color: #fff;
        }

        /* Individual Sliding Underline for Each Nav Item */
        .nav-menu li::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #555;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .nav-menu li.active::after {
            transform: scaleX(1);
        }

        /* Page Transition Styles - Only for main content */
        .main-content-transition {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .main-content-transition.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Social Icons */
        .social-icons {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: auto;
        }

        .social-icons a {
            color: #dcdcdc;
            font-size: 20px;
            text-decoration: none;
            transition: color 0.3s;
        }

        .social-icons a:hover {
            color: #fff;
        }

        /* --- Main Content Area --- */
        .main-content {
            margin-left: 280px;
            padding: 60px 80px 60px 40px;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        /* Hero Section (Name) */
        .hero {
            margin-top: 40px;
            margin-bottom: 60px; 
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 60px; 
        }

        .hero-text {
            flex: 1;
        }

        .hero h1 {
            font-size: 80px;
            font-weight: 100;
            line-height: 1.1;
            letter-spacing: 2px;
            color: #fff;
            margin-bottom: 15px;
        }

        .hero h2 {
            font-size: 14px;
            font-weight: 300;
            color: #aaa;
            letter-spacing: 0.5px;
            margin-bottom: 20%;
        }

        /* Bottom Content Area (Contact & About) */
        .bottom-content {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            padding-bottom: 20px;
        }

        .contact-info {
            font-size: 20px;
            color: #aaa;
            line-height: 1.6;
        }

        /* Image Section */
        .image {
            width: 500px;
            flex-shrink: 0;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            transition: transform 0.3s ease;
        }

        .image:hover {
            transform: translateY(-5px);
        }

        .image img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        .projects-wrapper {
            margin-top: 0px;
        }

        /* About Me Body Section */
        .about-me-body {
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
            padding: 60px 80px 60px 40px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .about-me-body h1 {
            text-align: center;
            font-size: 80px;
            font-weight: 100;
            line-height: 1.1;
            letter-spacing: 2px;
            color: #fff;
            margin-bottom: 15px;
            transition: color 0.3s;
        }

        .about-me-body.visible {
            opacity: 1;
        }

        /* --- CSS Toggle Switch --- */
        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
            align-self: center; 
            margin-bottom: 20px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #333; 
            -webkit-transition: .4s;
            transition: .4s;
            border: 1px solid #555; 
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 24px;
            width: 24px;
            left: 4px;
            bottom: 4px;
            background-color: #dcdcdc;
            -webkit-transition: .4s;
            transition: .4s;
        }

        input:checked + .slider {
            background-color: #e0e1e4; 
        }

        input:focus + .slider {
            box-shadow: 0 0 1px #e0e1e4;
        }

        input:checked + .slider:before {
            -webkit-transform: translateX(26px);
            -ms-transform: translateX(26px);
            transform: translateX(26px);
            background-color: #121212; 
        }

        .slider.round {
            border-radius: 34px;
        }

        .slider.round:before {
            border-radius: 50%;
        }

        /* --- Toggle Content Container (Side-by-Side Flexbox) --- */
        .toggle-content {
            transition: background-color 0.5s ease, color 0.5s ease;
            padding: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center; 
            justify-content: center;
            gap: 60px; /* Increased gap for better spacing between image and text */
        }

        /* State 1: Normal (Dark) */
        .toggle-content.state-1 {
            background-color: #121212;
            color: #dcdcdc;
        }

        /* State 2: White Background */
        .toggle-content.state-2 {
            background-color: #e0e1e4;
            color: #121212;
        }

        /* FIXED: Profile Picture Sizing */
        .profile-picture {
            flex-shrink: 0;
            width: 300px; /* Base size of the image container */
            height: 300px; /* Force perfect square */
            border-radius: 50%; /* Make container round */
            overflow: hidden; /* Ensure image stays inside the circle */
            transition: transform 0.3s ease;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .profile-picture:hover {
            transform: translateY(-5px);
        }

        .profile-picture img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Ensures image fills the circle perfectly without stretching */
            display: block;
        }

        .toggle-text {
            display: flex;
            flex-direction: column;
            gap: 20px; 
            max-width: 500px; /* Prevents text from stretching too far wide */
        }

        .toggle-text p {
            font-size: 22px; /* Slightly reduced from 25px so it balances nicely with the 300px image */
            line-height: 1.6;
            margin: 0; 
        }

        /* --- Mobile Responsiveness --- */
        @media (max-width: 768px) {
            .sidebar {
                position: relative;
                width: 100%;
                height: auto;
                padding: 20px;
                flex-direction: row;
                align-items: center;
            }
            .nav-menu {
                display: flex;
                gap: 15px;
                margin-bottom: 0;
            }
            .social-icons {
                flex-direction: row;
            }
            .main-content {
                margin-left: 0;
                padding: 20px;
            }
            .hero {
                flex-direction: column;
                text-align: center;
                gap: 30px;
            }
            .image {
                width: 100%;
            }
            .about-me-body {
                padding: 20px;
                height: 70px;
            }
            .hero h1, .about-me-body h1 {
                font-size: 50px;
            }
            
            /* Stack the profile picture and text on mobile */
            .toggle-content {
                flex-direction: column;
                text-align: center;
                gap: 30px;
                padding: 20px;
            }
            .profile-picture {
                width: 200px; /* Scale image down slightly on mobile */
                height: 200px;
            }
            .toggle-text p {
                font-size: 18px; /* Scale text down on mobile */
            }
        }
            /* Small-phone tightening for the nav row */
        @media (max-width: 480px) {
            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
            }
            .nav-menu li {
                font-size: 15px;
            }
            .social-icons {
                flex-wrap: wrap;
                justify-content: center;
            }
        }
