        @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
        
        :root {
            --primary-color: #ffcc00; /* Changed from #e60000 */
            --accent-color: #ffdb4d; /* Lighter yellow accent */
            --text-color: #f8f8f8;
            --heading-color: #ffffff;
            --secondary-text: #e0e0e0;
            --muted-text: #cccccc;
            --link-color: #ffcc00; /* Changed from #ff5555 */
            --bg-color: #0a0a0a;
            --card-bg: rgba(0, 0, 0, 0.2); /* Changed from rgba(255,255,255,0.07) */
            --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        
        * { 
            margin: 0; 
            padding: 0; 
            box-sizing: border-box; 
            font-family: 'Space Grotesk', sans-serif;
        }
        
        html {
            scroll-behavior: smooth;
        }
        
        body { 
            background: var(--bg-color); 
            color: var(--text-color); 
            overflow-x: hidden;
            line-height: 1.6;
        }
        
        ::selection {
            background: var(--primary-color);
            color: white;
        }
        
        /* Smooth scroll container */
        .scroll-container {
            position: relative;
            width: 100%;
            min-height: 100vh;
        }
        
        /* Custom cursor with white dot */
        .custom-cursor {
            position: fixed;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: white;
            pointer-events: none;
            transform: translate(-50%, -50%);
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.1s ease-out, width 0.3s ease, height 0.3s ease;
            box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.4);
        }
        
        .custom-cursor.visible {
            opacity: 1;
        }
        
        .custom-cursor.active {
            width: 10px;
            height: 10px;
            box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.4);
        }
        
        /* Pixie dust particles - yellow */
        .cursor-particles {
            position: fixed;
            top: 0;
            left: 0;
            pointer-events: none;
            z-index: 9998;
            width: 100vw;
            height: 100vh;
            overflow: hidden;
        }
        
        .particle {
            position: absolute;
            width: 8px;
            height: 8px;
            background: #ffcc00;
            border-radius: 50%;
            pointer-events: none;
            opacity: 0;
            box-shadow: 0 0 10px 2px rgba(255, 204, 0, 0.6);
            animation: fadeParticle 1.2s ease-out forwards;
        }
        
        @keyframes fadeParticle {
            0% {
                opacity: 0.9;
                transform: scale(1);
            }
            60% {
                opacity: 0.6;
            }
            100% {
                opacity: 0;
                transform: scale(0);
            }
        }
        
        /* Intro Section */
        .intro {
            height: 100vh;
            background: linear-gradient(to bottom, var(--hero-gradient-from), var(--hero-gradient-to));
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            perspective: 1000px;
            padding-top: 0px; /* Reduced padding to center content better */
        }

        .stars {
            position: absolute;
            width: 100%;
            height: 100%;
            pointer-events: none;
            transform-style: preserve-3d;
            animation: rotateStars 120s linear infinite;
        }

        .star {
            position: absolute;
            background: var(--primary-color);
            border-radius: 50%;
            animation: twinkle 2s infinite;
            transform-style: preserve-3d;
            box-shadow: 0 0 4px var(--primary-color);
        }

        .star::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255, 204, 0, 0.8) 0%, rgba(255, 204, 0, 0) 70%);
            transform: translate(-50%, -50%);
            animation: glow 3s infinite;
        }

        @keyframes twinkle {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.3;
                transform: scale(0.8);
            }
        }

        @keyframes glow {
            0%, 100% {
                opacity: 0.8;
            }
            50% {
                opacity: 0.3;
            }
        }

        .logo-container {
            position: relative;
            z-index: 2;
            text-align: center;
            margin-top: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            width: 95%; /* Increased width to handle longer text */
            margin-left: auto;
            margin-right: auto;
            padding: 0 20px; /* Add horizontal padding */
        }

        /* LC Logo Animation Container */
        .lc-logo-animation {
            width: 87.5%;
            max-width: 700px;
            margin: 0 auto 0;
            opacity: 1;
        }

        .lc-logo-animation svg {
            width: 100%;
            height: auto;
            overflow: visible;
        }

        /* Purple L */
        .purple-L {
            fill: none;
            stroke: #8A2BE2;
            stroke-width: 20;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-dasharray: 1200;
            stroke-dashoffset: 1200;
            animation: draw 1.0s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        /* Orange C swoosh */
        .orange-C {
            fill: none;
            stroke: #e99e38;
            stroke-width: 22;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-dasharray: 1600;
            stroke-dashoffset: 1600;
            animation: draw 1.0s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
        }

        @keyframes draw {
            to { stroke-dashoffset: 0; }
        }

        /* SVG animation styles */
        .logo-svg-container {
            margin-top: 0;
            opacity: 0;
            transform: translateY(-50px);
            animation: fadeDown 1.0s ease forwards 1.4s;
        }

        .logo-svg {
            width: clamp(180px, 35vw, 300px);
            height: auto;
            filter: brightness(0) invert(1);
            animation: float 6s ease-in-out infinite 2s;
        }

        @keyframes fadeDown {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-20px);
            }
        }

        .enter-button {
            padding: 1rem 2.5rem;
            background: transparent;
            border: 2px solid white;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            transition: var(--transition);
            z-index: 2;
            position: relative;
            overflow: hidden;
            font-weight: 500;
            letter-spacing: 1px;
            border-radius: 4px;
            margin-top: 1rem;
        }

        .enter-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: 0.5s;
        }

        .enter-button:hover::before {
            left: 100%;
        }

        .enter-button:hover {
            background: #8A2BE2; /* Purple */
            border-color: #8A2BE2; 
            color: white;
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(138, 43, 226, 0.3); /* Purple shadow */
        }

        /* Text animation that preserves spaces */
        .animated-text {
            display: inline-block;
            margin: 0 0.1em;
            opacity: 0;
            animation: fadeInUp 0.5s ease forwards;
        }

        .intro-text {
            position: relative;
            z-index: 2;
            text-align: center;
            padding: 0.5rem;
            font-size: clamp(0.85rem, 2.5vw, 1.5rem);
            color: #ffffff;
            margin-top: 0;
            max-width: 800px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 2.5em;
            opacity: 0;
            transform: translateY(30px);
            animation: slideInUp 0.6s ease forwards 2s;
        }

        @keyframes slideInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }
        
        .typing-text {
            display: inline-block;
            overflow: visible;
            border-right: none;
            margin: 0;
            letter-spacing: 0.12em;
            width: auto;
            max-width: none;
        }
        
        @keyframes typing {
            from { width: 0 }
            to { width: auto }
        }
        
        @keyframes blink-caret {
            from, to { border-color: transparent }
            50% { border-color: #00ff00; }
        }

        /* Navigation */
        .nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1.2rem 3rem;
            background: rgba(0,0,0,0.8);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transform: translateY(-100%);
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        .nav.visible {
            transform: translateY(0);
        }

        .nav.scrolled {
            background: rgba(0,0,0,0.9);
            padding: 0.8rem 3rem;
            box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        }

        .nav-mark {
            display: none; width: 0; height: 0; overflow: hidden; position: absolute; visibility: hidden;
        }

        .nav-logo {
            height: 40px;
            filter: brightness(0) invert(1);
            transition: var(--transition);
            opacity: 0; /* Hide initially */
            transition-delay: 0.5s; /* Delay to avoid immediate fade-in */
        }
        
        .nav.content-visible .nav-logo {
            opacity: 1; /* Show when content is visible */
        }
        
        .nav-logo:hover {
            transform: scale(1.05);
            filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255,255,255,0.7));
        }

        /* Base styles for nav links - absolute center initially */
        .nav-links {
            display: flex;
            align-items: center;
            gap: 2.5rem;
            /* margin: 0 auto; */ /* Remove margin-based centering */
            position: absolute; /* Position absolutely */
            left: 50%;
            top: 50%; /* Center vertically too */
            transform: translate(-50%, -50%); /* Center horizontally and vertically */
            width: max-content; /* Prevent stretching */
            /* Add transition for smooth change */
            transition: left 0.4s ease, top 0.4s ease, transform 0.4s ease, width 0.4s ease, position 0s linear 0.4s;
        }

        .nav-links a {
            color: var(--secondary-text);
            text-decoration: none;
            font-size: clamp(0.8rem, 1.2vw, 1rem);
            font-weight: 500;
            letter-spacing: 1px;
            transition: var(--transition);
            position: relative;
            padding: 0.5rem 0;
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: #ffcc00; /* Already Yellow */
            transition: var(--transition);
        }

        .nav-links a:hover {
            color: #ffcc00; /* Already Yellow */
        }
        
        .nav-links a:hover::after {
            width: 100%;
        }

        .social-links {
            display: flex;
            gap: 1.5rem;
        }

        .social-links a {
            color: white;
            text-decoration: none;
            font-size: 1.2rem;
            transition: var(--transition);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.2); /* Changed from rgba(255,255,255,0.05) */
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .social-links a:hover {
            color: #ffcc00; /* Changed from var(--accent-color) */
            background: rgba(0, 0, 0, 0.4); /* Changed from rgba(255,255,255,0.1) */
            transform: translateY(-3px);
        }
        
        /* Main content */
        .main-content {
            opacity: 1;
            pointer-events: auto;
            padding-bottom: 4rem;
            min-height: 1500px;
            position: relative;
            z-index: 2;
            margin-top: 100vh;
            background: var(--bg-color);
        }
        
        /* Progress bar */
        .progress-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: transparent;
            z-index: 9998;
        }
        
        .progress-bar {
            height: 100%;
            background: var(--primary-color); /* Will become yellow */
            width: 0%;
            transition: width 0.1s ease;
        }
        
        /* Hero section - fixed for proper sticky positioning */
        .hero {
            position: relative;
            overflow: visible;
            padding: 80px 0 3rem;
            background: linear-gradient(to bottom, var(--section-gradient-from) 0%, var(--section-gradient-to) 100%);
        }
        
        /* Change profile section to use fixed positioning */
        .profile-section {
            /* Mobile First - Default is relative positioning */
            position: relative !important; /* Default to relative */
            top: auto !important; 
            width: 100%; /* Full width on mobile */
            max-width: 100%;
            margin-bottom: 2rem; /* Space below when in flow */
            /* display: block; REMOVED - handled by JS visibility toggle */
            /* End Mobile First Defaults */

            /* Common styles (kept from original fixed) */
            max-height: calc(100vh - 140px); 
            overflow-y: auto; 
            z-index: 1000; 
            background: rgba(18, 18, 18, 0.98); 
            padding: 2rem;
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8); 
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            display: block;
        }
        
        /* Adjust content layout to account for fixed profile */
        .hero-content {
            max-width: 1400px;
            margin: 0 auto;
            /* Mobile First - Default padding */
            padding: 4rem 2rem; /* Default padding for mobile/stacked layout */
            display: block; 
        }
        
        .profile-section.hidden-until-scroll {
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        
        /* Ensure the scrollable content container doesn't interfere with sticky positioning */
        .scrollable-content {
            flex: 1;
            overflow-y: visible; /* Keep visible to prevent hiding sticky content */
            min-height: 100vh; /* Ensure full viewport height */
            position: relative; /* Add position relative */
        }

        /* Profile section - enhance sticky positioning */
        .profile-section:hover {
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            border-color: rgba(255, 204, 0, 0.2);
        }
        
        /* Prevent other hover interactions from affecting the profile position */
        .profile-section * {
            pointer-events: auto;
        }

        .profile-buttons {
            display: flex;
            gap: 10px;
            margin-top: 1.5rem;
            margin-bottom: 1.5rem;
            justify-content: center;
        }

        .profile-buttons .cta-button,
        .profile-buttons .contact-button {
            flex: 1;
            text-align: center;
            white-space: nowrap;
            padding: 0.6rem 0.8rem;
            font-size: 0.8rem;
        }

        .profile-social-links {
            margin: 1rem 0 1.5rem;
            justify-content: center;
        }

        .profile-inner > img {
            width: 250px;
            height: 250px;
            border-radius: 50%;
            margin: 0 auto 1.5rem;
            display: block;
            border: 3px solid var(--primary-color);
            object-fit: cover;
            transition: var(--transition);
            transform: translateZ(20px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }
        
        .profile-inner > img:hover {
            transform: translateZ(30px) scale(1.05);
        }

        .profile-section h2 {
            color: var(--heading-color);
            margin-bottom: 1rem;
            font-size: clamp(1.4rem, 3vw, 2rem);
            transform: translateZ(15px);
            font-weight: 700;
        }

        .profile-section p {
            color: var(--secondary-text);
            margin-bottom: 1.5rem;
            line-height: 1.8;
            font-size: clamp(0.9rem, 1.5vw, 1.1rem);
            transform: translateZ(10px);
        }

        .cta-button {
            display: inline-block;
            padding: clamp(0.7rem, 1.5vw, 1rem) clamp(1.2rem, 3vw, 2rem);
            font-size: clamp(0.85rem, 1.5vw, 1rem);
            background: var(--primary-color); /* Will become yellow */
            color: black; /* Changed for contrast */
            text-decoration: none;
            border-radius: 30px;
            font-weight: 600;
            transition: var(--transition);
            transform: translateZ(15px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            border: none;
            letter-spacing: 0.5px;
        }

        .cta-button:hover {
            background: var(--accent-color); /* Will become lighter yellow */
            transform: translateZ(20px) translateY(-3px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }

        /* Main section */
        .main-section {
            background: var(--card-bg); /* Will become dark */
            padding: 2.5rem;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.05);
        }

        .content-block {
            background: rgba(0, 0, 0, 0.1); /* Changed from rgba(255,255,255,0.03) */
            padding: 1.8rem;
            border-radius: 12px;
            margin-bottom: 2rem;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: var(--transition);
            border: 1px solid rgba(255,255,255,0.03);
        }
        
        .content-block:hover {
            background: rgba(0, 0, 0, 0.15); /* Changed from rgba(255,255,255,0.05) */
            transform: translateY(-5px);
        }

        .content-block h3 {
            color: var(--primary-color);
            font-size: clamp(1.15rem, 2.5vw, 1.5rem);
            margin-bottom: 0.5rem;
            font-weight: 700;
        }

        .content-block p {
            color: var(--secondary-text);
            line-height: 1.8;
            margin-bottom: 0.8rem;
            font-size: clamp(0.9rem, 1.5vw, 1.05rem);
        }
        
        /* Section titles */
        .section-title {
            font-family: 'Playfair Display', serif;
            font-size: clamp(1.6rem, 4vw, 2.5rem);
            color: var(--primary-color); /* Changed from var(--link-color) */
            margin-bottom: 1.5rem; /* Reduced from 2.5rem */
            text-align: center;
            position: relative;
            padding-bottom: 1rem;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--primary-color); /* Will become yellow */
        }

        /* Skills section */
        .skills-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .skills-category {
            background: rgba(0, 0, 0, 0.1); /* Changed from rgba(255,255,255,0.03) */
            padding: 2rem;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.03);
            transition: var(--transition);
        }
        
        .skills-category:hover {
            background: rgba(0, 0, 0, 0.15); /* Changed from rgba(255,255,255,0.05) */
            transform: translateY(-5px);
        }

        .skills-category h3 {
            color: var(--primary-color);
            font-size: clamp(1.3rem, 3vw, 1.8rem);
            margin-bottom: 1rem; /* Reduced from 1.5rem */
            text-align: center;
            font-weight: 700;
        }

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

        .skill-item {
            background: rgba(0, 0, 0, 0.2); /* Changed from rgba(255,255,255,0.05) */
            padding: 1rem 0.8rem;
            border-radius: 12px;
            text-align: center;
            transition: var(--transition);
            font-size: 1.05rem;
            border: 1px solid rgba(255,255,255,0.03);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 70px;
            color: var(--secondary-text); /* Ensure text is visible */
        }

        .skill-item:hover {
            background: rgba(255, 204, 0, 0.2); /* Changed from rgba(230,0,0,0.2) */
            transform: scale(1.05) translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            color: white; /* Ensure text is visible */
        }
        
        /* Timeline */
        .timeline {
            position: relative;
            max-width: 800px;
            margin: 1.5rem auto; /* Reduced top/bottom from 3rem */
            padding: 2rem 0;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 2px;
            height: 100%;
            background: var(--primary-color); /* Will become yellow */
        }

        .timeline-item {
            position: relative;
            margin-bottom: 3rem;
            width: 50%;
            padding-right: 3rem;
        }

        .timeline-item:nth-child(even) {
            margin-left: 50%;
            padding-right: 0;
            padding-left: 3rem;
        }

        .timeline-content {
            background: rgba(0, 0, 0, 0.2); /* Changed from rgba(255,255,255,0.05) */
            padding: 1.8rem;
            border-radius: 12px;
            position: relative;
            transition: var(--transition);
            border: 1px solid rgba(255,255,255,0.03);
        }

        .timeline-content:hover {
            background: rgba(0, 0, 0, 0.3); /* Changed from rgba(255,255,255,0.08) */
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

        .timeline-content::before {
            content: '';
            position: absolute;
            right: -20px;
            top: 20px;
            width: 25px;
            height: 25px;
            background: var(--primary-color); /* Will become yellow */
            border-radius: 50%;
            border: 4px solid rgba(0, 0, 0, 0.3); /* Changed from rgba(255,255,255,0.1) */
            box-shadow: 0 0 10px rgba(255, 204, 0, 0.5); /* Changed from rgba(139,0,0,0.5) */
            z-index: 1;
        }

        .timeline-item:nth-child(even) .timeline-content::before {
            right: auto;
            left: -20px;
        }

        .timeline-content h3 {
            color: var(--primary-color);
            margin-bottom: 0.4rem;
            font-size: clamp(1.1rem, 2.5vw, 1.5rem);
            font-weight: 700;
        }

        .timeline-content .date {
            font-style: italic;
            color: var(--muted-text);
            margin-bottom: 1rem;
            font-size: 0.95rem;
            background: rgba(0,0,0,0.2);
            display: inline-block;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
        }

        .timeline-content p {
            line-height: 1.7;
            margin-bottom: 0.8rem;
        }
        
        /* Animations */
        @keyframes rotateStars {
            from {
                transform: rotateX(0deg) rotateY(0deg);
            }
            to {
                transform: rotateX(360deg) rotateY(360deg);
            }
        }

        @keyframes twinkle {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 1; }
        }

        @keyframes glow {
            0%, 100% {
                opacity: 0.5;
                transform: translate(-50%, -50%) scale(1);
            }
            50% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1.5);
            }
        }

        @keyframes writeText {
            0% {
                opacity: 0;
                transform: translateY(50px);
                clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            }
        }

        @keyframes fadeInUp {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }
            100% {
            opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Responsive design - enhanced for proper sticky behavior */
        @media (max-width: 1200px) {
            .profile-section {
                position: relative !important;
                top: auto !important;
                width: 100%;
                max-width: 100%;
                margin-bottom: 2rem;
                display: block;
            }
            
            .hero-content {
                padding: 4rem 2rem;
            }

            .logo-svg {
                width: 250px !important;
            }
            
            
        }
        
        @media (min-width: 1201px) {
            /* Remove sticky styling and adjust for fixed positioning */
            .profile-section {
                display: block;
                left: calc((100% - 1400px) / 2 + 2rem); /* Position relative to page center */
            }
            
            /* Handle case where window is narrower than max-width */
            @media (max-width: 1500px) {
                .profile-section {
                    left: 2rem;
                }
            }
        }
        
        @media (max-width: 992px) {
            .nav { padding: 1rem; }
            .nav-links { 
                gap: 1rem; /* Further reduced from 1.5rem */
                font-size: 0.9rem; /* Slightly smaller nav links */
            }
            .logo-svg {
                width: 200px !important;
            }
            
            /* Intro Section Adjustments for 768px */
            .logo-container {
                gap: 1.5rem; /* Reduce gap */
            }
            .enter-button {
                font-size: 1rem; /* Reduce font size */
                padding: 0.8rem 2rem; /* Reduce padding */
            }
            /* End Intro Section Adjustments */

            .skills-section {
                grid-template-columns: 1fr 1fr;
                gap: 1rem;
            }
            .skills-category {
                padding: 1.2rem;
                border-radius: 12px;
            }
            .skills-category h3 {
                font-size: 1rem;
                margin-bottom: 0.6rem;
            }
            .skills-grid {
                grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
                gap: 0.5rem;
            }
            .skill-item {
                padding: 0.5rem 0.4rem;
                font-size: 0.7rem;
                min-height: 40px;
                border-radius: 8px;
            }
            
            .timeline {
                max-width: 100%;
                padding: 1rem 0;
            }
            .timeline::before {
                left: 50%;
            }
            .timeline-item {
                width: 50%;
                margin-bottom: 1.5rem;
                padding-right: 1.5rem;
            }
            .timeline-item:nth-child(even) {
                margin-left: 50%;
                padding-right: 0;
                padding-left: 1.5rem;
            }
            .timeline-content {
                padding: 1rem;
                border-radius: 10px;
            }
            .timeline-content::before {
                right: -14px;
                width: 16px;
                height: 16px;
            }
            .timeline-item:nth-child(even) .timeline-content::before {
                left: -14px;
                right: auto;
            }
            .timeline-content h3 {
                font-size: 0.85rem;
                margin-bottom: 0.2rem;
            }
            .timeline-content .date {
                font-size: 0.7rem;
                padding: 0.2rem 0.5rem;
                margin-bottom: 0.5rem;
            }
            .timeline-content p {
                font-size: 0.75rem;
                line-height: 1.5;
                margin-bottom: 0.4rem;
            }
            
            .profile-header {
                flex-direction: column;
                gap: 1.5rem;
            }
            
            .profile-header img {
                width: 180px;
                height: 180px;
            }

           
        }
        
        @media (max-width: 768px) {
            /* ADD hamburger trigger rules back to 768px breakpoint */
            .nav {
                padding: 0.8rem 1.2rem;
            }

            .nav-mark {
                display: block;
                height: 32px;
                width: auto;
                flex-shrink: 0;
                position: static;
                visibility: visible;
                overflow: visible;
            }

            .nav-logo {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                height: 32px;
            }

            .nav-links {
                position: fixed;
                top: 0; left: 0; right: 0; bottom: 0;
                width: 100vw;
                height: 100vh;
                background: rgba(0,0,0,0.97);
                backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 2rem;
                z-index: 999;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.4s ease;
                transform: none;
                max-height: none;
                overflow: visible;
                padding: 0;
                border: none;
            }

            .nav-links a {
                font-size: 1.4rem;
                font-weight: 500;
                letter-spacing: 2px;
                opacity: 0;
                transform: translateY(20px);
                transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
            }

            .nav.open .nav-links {
                opacity: 1;
                pointer-events: auto;
                padding: 0;
                max-height: none;
            }

            .nav.open .nav-links a {
                opacity: 1;
                transform: translateY(0);
            }
            .nav.open .nav-links a:nth-child(1) { transition-delay: 0.1s; }
            .nav.open .nav-links a:nth-child(2) { transition-delay: 0.16s; }
            .nav.open .nav-links a:nth-child(3) { transition-delay: 0.22s; }
            .nav.open .nav-links a:nth-child(4) { transition-delay: 0.28s; }
            .nav.open .nav-links a:nth-child(5) { transition-delay: 0.34s; }
            .nav.open .nav-links a:nth-child(6) { transition-delay: 0.40s; }

            .nav-toggle {
                display: block;
                background: none;
                border: none;
                color: white;
                font-size: 1.5rem;
                cursor: pointer;
                z-index: 1002;
                transition: transform 0.3s ease;
                flex-shrink: 0;
            }
            .nav.open .nav-toggle {
                transform: rotate(90deg);
            }
            /* END ADDED hamburger rules */

        
        

            .logo-svg {
                width: 280px !important;
            }

            .enter-button {
                font-size: 1rem;
                padding: 0.8rem 2rem;
            }

            /* Add any other 768px specific styles back if needed */
             .profile-header {
            flex-direction: column;
            gap: 1.5rem;
        }
        
            .profile-header img {
                width: 180px;
                height: 180px;
            }
            .section-title {
                font-size: 2.1rem; /* Reduce section title size */
            }

            /* ADD THIS RULE to hide profile paragraphs */
            .profile-section .profile-inner > p {
                display: none;
            }
            /* END ADDED RULE */
        }

        @media (max-width: 480px) {
            .intro-text {
                font-size: 0.75rem; /* ADJUSTED MOBILE FONT SIZE */
                /* letter-spacing: 0.08em;  REMOVED letter-spacing */
            }

            .logo-svg {
                width: 150px !important;
            }

            .enter-button {
            font-size: 0.9rem;
            padding: 0.7rem 1.5rem;
            }
            
            /* Add any other 480px specific styles back */
            .profile-section img {
                width: 150px; /* Adjusted from 180px */
                height: 150px; /* Adjusted from 180px */
            }
                
            .content-block {
                padding: 1.2rem;
            }
            .timeline-content {
                padding: 0.8rem;
            }
            .timeline-item {
                padding-right: 1rem;
            }
            .timeline-item:nth-child(even) {
                padding-left: 1rem;
            }
            .timeline-content h3 {
                font-size: 0.75rem;
            }
            .timeline-content .date {
                font-size: 0.6rem;
            }
            .timeline-content p {
                font-size: 0.65rem;
                line-height: 1.4;
            }
            .timeline-content::before {
                width: 12px;
                height: 12px;
                right: -11px;
            }
            .timeline-item:nth-child(even) .timeline-content::before {
                left: -11px;
            }

            .skills-category {
                padding: 0.8rem;
            }
            .skills-category h3 {
                font-size: 0.8rem;
                margin-bottom: 0.4rem;
            }
            .skills-grid {
                grid-template-columns: 1fr 1fr;
                gap: 0.4rem;
            }
            .skill-item {
                min-height: 32px;
                font-size: 0.6rem;
                padding: 0.3rem;
                border-radius: 6px;
        }
        
            .contact-button {
                padding: 0.7rem 1.3rem;
            font-size: 0.9rem;
        }
        
            .portfolio-filter,
            .social-tabs {
                flex-direction: column;
                align-items: center;
                gap: 0.8rem;
            }
            
            .filter-btn,
            .tab-btn {
                width: 100%;
                max-width: 250px;
            }
            
            .contact-form {
                padding: 1.5rem;
            }
        }

        /* Styles when logo is visible (desktop only) */
        @media (min-width: 769px) {
            .nav.content-visible .nav-links {
                position: relative;
                left: auto;
                top: auto;
                transform: none;
                width: auto;
                margin: 0 auto;
            }
        }

        /* Remove or comment out the original .nav-toggle style if it exists */
        /* 
        .nav-toggle {
            display: block !important; 
            position: relative; 
            z-index: 1002; 
        } 
        */

        /* Apply fixed positioning for profile on tablets and desktops */
        @media (min-width: 769px) {
            /* UNCOMMENT THIS BLOCK */
            .profile-section {
                position: fixed !important; /* Apply fixed positioning */
                top: 120px !important; /* Restore top position */
                left: 2rem; /* Position on the left */
                width: 300px; /* Fixed width */
                margin-bottom: 0; /* No margin when fixed */
            }
            /* END UNCOMMENT */

            .hero-content {
                padding-left: 350px; /* Add padding to make space for fixed profile */
            }

            /* Handle case where window is narrower than max-width but wider than tablet breakpoint */
            @media (max-width: 1440px) {
                 /* UNCOMMENT THIS BLOCK */
                .profile-section {
                    left: 2rem;
                }
                 /* END UNCOMMENT */
            }
            /* Handle positioning relative to centered content on wider screens */
            @media (min-width: 1441px) {
                 /* UNCOMMENT THIS BLOCK */
                .profile-section {
                   left: calc((100% - 1400px) / 2 + 2rem); /* Position relative to page center */
                }
                 /* END UNCOMMENT */
            }
        }

        /* Portfolio Section */
        .portfolio-section {
            padding: 4rem 2rem;
            background: var(--bg-color);
            position: relative;
        }

        .portfolio-section .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* GitHub Stats Styling */
        .github-stats-container,
        .github-repos-container {
            margin: 3rem 0;
            padding: 2rem;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 15px;
            border: 1px solid rgba(255,255,255,0.05);
        }

        .github-section-title {
            color: var(--primary-color);
            font-size: 2rem;
            margin-bottom: 2rem;
            text-align: center;
            font-weight: 700;
        }

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

        .github-stat-card {
            display: flex;
            justify-content: center;
            align-items: center;
            background: rgba(0, 0, 0, 0.3);
            padding: 1.5rem;
            border-radius: 12px;
            transition: var(--transition);
            border: 1px solid rgba(255,255,255,0.03);
        }

        .github-stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(255, 204, 0, 0.1);
        }

        .github-stat-card img {
            width: 100%;
            height: auto;
            border-radius: 8px;
        }

        .github-streak {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
        }

        .github-streak img {
            width: 100%;
            max-width: 800px;
            height: auto;
            border-radius: 12px;
        }

        .github-repos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .repo-card {
            background: rgba(0, 0, 0, 0.3);
            padding: 1.5rem;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.05);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .repo-card:hover {
            transform: translateY(-5px);
            border-color: var(--primary-color);
            box-shadow: 0 10px 30px rgba(255, 204, 0, 0.1);
        }

        .repo-card h4 {
            color: var(--primary-color);
            font-size: 1.3rem;
            margin: 0;
            font-weight: 600;
        }

        .repo-card h4 a {
            color: var(--primary-color);
            text-decoration: none;
            transition: var(--transition);
        }

        .repo-card h4 a:hover {
            color: var(--accent-color);
        }

        .repo-description {
            color: var(--secondary-text);
            font-size: 0.95rem;
            line-height: 1.6;
            flex-grow: 1;
        }

        .repo-stats {
            display: flex;
            gap: 1.5rem;
            font-size: 0.9rem;
            color: var(--muted-text);
            align-items: center;
        }

        .repo-stat {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .repo-stat i {
            color: var(--primary-color);
        }

        .repo-language {
            display: inline-block;
            padding: 0.3rem 0.8rem;
            background: rgba(255, 204, 0, 0.1);
            border-radius: 20px;
            font-size: 0.85rem;
            color: var(--primary-color);
            border: 1px solid rgba(255, 204, 0, 0.2);
        }

        .view-all-github {
            text-align: center;
            margin-top: 2rem;
        }

        .loading-spinner {
            text-align: center;
            padding: 3rem;
            color: var(--secondary-text);
            font-size: 1.2rem;
        }

        @media (max-width: 768px) {
            .github-stats-grid {
                grid-template-columns: 1fr;
            }

            .github-repos-grid {
                grid-template-columns: 1fr;
            }

            .github-stats-container,
            .github-repos-container {
                padding: 1.5rem;
            }
        }

        /* Contact Section Styling */
        .contact-section {
            padding: 4rem 2rem;
            background: linear-gradient(to bottom, var(--section-gradient-from) 0%, var(--section-gradient-to) 100%);
        }

        .contact-section .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .contact-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            margin-top: 3rem;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .contact-item {
            background: rgba(0, 0, 0, 0.2);
            padding: 2rem;
            border-radius: 12px;
            text-align: center;
            transition: var(--transition);
            border: 1px solid rgba(255,255,255,0.05);
        }

        .contact-item:hover {
            transform: translateY(-5px);
            background: rgba(0, 0, 0, 0.3);
            border-color: var(--primary-color);
        }

        .contact-item i {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        .contact-item h3 {
            color: var(--heading-color);
            margin-bottom: 0.5rem;
            font-size: 1.3rem;
        }

        .contact-item p {
            color: var(--secondary-text);
            font-size: 1.05rem;
        }

        .contact-item p a {
            color: var(--secondary-text);
            text-decoration: none;
            transition: var(--transition);
        }

        .contact-item p a:hover {
            color: var(--primary-color);
        }

        .contact-social {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 1rem;
        }

        .contact-social a {
            width: 50px;
            height: 50px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            font-size: 1.3rem;
            transition: var(--transition);
            border: 1px solid rgba(255, 204, 0, 0.2);
        }

        .contact-social a:hover {
            background: var(--primary-color);
            color: black;
            transform: translateY(-5px);
        }

        .contact-form {
            background: rgba(0, 0, 0, 0.2);
            padding: 2.5rem;
            border-radius: 15px;
            border: 1px solid rgba(255,255,255,0.05);
        }

        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem 1.5rem;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            color: var(--text-color);
            font-size: 1rem;
            font-family: 'Space Grotesk', sans-serif;
            transition: var(--transition);
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            background: rgba(0, 0, 0, 0.4);
        }

        .form-group textarea {
            min-height: 150px;
            resize: vertical;
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--muted-text);
        }

        .contact-form .cta-button {
            width: 100%;
            padding: 1.2rem;
            font-size: 1.1rem;
            cursor: pointer;
            border: none;
        }

        .contact-form .cta-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        @media (max-width: 992px) {
            .contact-content {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
        }

        @media (max-width: 768px) {
            .contact-section {
                padding: 3rem 1.5rem;
            }

            .contact-form {
                padding: 2rem;
            }
        }

        /* Footer Styling */
        .footer {
            padding: 3rem 2rem;
            background: #080818;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

        .footer .container {
            max-width: 1200px;
            margin: 0 auto;
        }

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

        .footer-logo img {
            height: 60px;
            filter: brightness(0) invert(1);
        }

        .footer-text {
            text-align: center;
            color: var(--muted-text);
        }

        .footer-links {
            display: flex;
            gap: 2rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .footer-links a {
            color: var(--secondary-text);
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--primary-color);
        }

        @media (max-width: 768px) {
            .footer-links {
                gap: 1rem;
            }
        }

        /* Add this as a base style (around line 400, with other navigation styles) */
        .nav-toggle {
            display: none !important; /* Hide by default with !important */
        }

        /* Keep only this one in the mobile media query */
        @media (max-width: 768px) {
            .nav-toggle {
                display: block !important; /* Only show on mobile with !important */
            }
        }

        /* Profile section base override removed — profile is always visible */

        /* Add to your CSS - profile card toggle button */
        .profile-toggle {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--primary-color);
            color: black;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            cursor: pointer;
            z-index: 1000;
            box-shadow: 0 3px 10px rgba(0,0,0,0.3);
            border: none;
        }

        /* Minimized profile card state - shrink vertically */
        .profile-section.minimized {
            max-height: 100px !important;
            width: 450px !important;
            padding: 0.75rem 1.5rem;
            transition: max-height 0.5s ease, padding 0.5s ease, width 0.5s ease;
            overflow: hidden;
        }

        .profile-section.minimized .profile-inner {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            width: 100%;
        }

        .profile-section.minimized .profile-inner > img {
            width: 60px;
            height: 60px;
            margin: 0;
            flex-shrink: 0;
            transition: var(--transition);
        }

        /* Hide name and description text */
        .profile-section.minimized h2,
        .profile-section.minimized .profile-inner > p {
            display: none;
        }

        /* Show buttons in horizontal layout */
        .profile-section.minimized .profile-buttons {
            display: flex !important;
            flex-direction: row;
            gap: 0.5rem;
            margin: 0;
            flex-shrink: 0;
        }

        .profile-section.minimized .profile-buttons .cta-button {
            width: 50px;
            height: 50px;
            padding: 0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            text-indent: -9999px;
            overflow: hidden;
            position: relative;
        }

        .profile-section.minimized .profile-buttons .cta-button::before {
            content: '';
            position: absolute;
            text-indent: 0;
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
        }

        .profile-section.minimized .profile-buttons .cta-button:nth-child(1)::before {
            content: '\f019'; /* Download icon */
        }

        .profile-section.minimized .profile-buttons .cta-button:nth-child(2)::before {
            content: '\f0e0'; /* Envelope icon */
        }

        /* Show social links in horizontal layout */
        .profile-section.minimized .profile-social-links {
            display: flex !important;
            flex-direction: row;
            gap: 0.5rem;
            margin: 0;
            flex-shrink: 0;
        }

        .profile-section.minimized .profile-social-links a {
            width: 40px;
            height: 40px;
        }

        /* Poof animation for profile disappearing */
        @keyframes poof {
            0% {
                transform: scale(1);
                opacity: 1;
                filter: blur(0px);
            }
            30% {
                transform: scale(1.15);
                opacity: 0.8;
                filter: blur(2px);
            }
            60% {
                transform: scale(1.5);
                opacity: 0.5;
                filter: blur(8px);
            }
            100% {
                transform: scale(2.5);
                opacity: 0;
                filter: blur(20px);
            }
        }

        .profile-section.poofing {
            animation: poof 1.5s ease-out forwards;
            pointer-events: none;
        }

        .profile-section.poofed {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
        }

        /* Sparkle particles for poof effect */
        .poof-particle {
            position: fixed;
            width: 8px;
            height: 8px;
            background: var(--primary-color);
            border-radius: 50%;
            pointer-events: none;
            z-index: 10000;
            box-shadow: 0 0 10px 2px rgba(255, 204, 0, 0.8);
        }

        @keyframes sparkle {
            0% {
                opacity: 1;
                transform: translate(0, 0) scale(1);
            }
            100% {
                opacity: 0;
                transform: translate(var(--tx), var(--ty)) scale(0);
            }
        }

        /* Small screen profile behavior */
        @media (max-width: 768px) {
            .profile-section {
                position: fixed !important;
                top: 70px !important;
                right: -100%;
                left: auto !important;
                width: 90% !important;
                max-width: 320px !important;
                height: calc(100vh - 90px) !important;
                transition: right 0.4s ease;
                z-index: 999;
                display: block !important; /* Make sure it's not display: none */
                transform: none !important; /* Reset any transforms */
            }

            .profile-section.active {
                right: 0;
            }

            .profile-toggle {
                display: flex;
            }

            /* Ensure main content padding is reset on mobile */
            .hero-content {
                padding-left: 2rem !important;
            }

            /* Don't minimize on mobile */
            .profile-section.minimized {
                width: 90% !important;
                max-width: 320px !important;
            }

            .profile-section.minimized .profile-buttons,
            .profile-section.minimized .profile-social-links,
            .profile-section.minimized h2,
            .profile-section.minimized p {
                opacity: 1;
                pointer-events: auto;
            }
        }

        /* Intro section - fixed behind main content for curtain reveal */
        .intro {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            z-index: 1;
        }
