        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');


        :root {
            --bg-color: #f8f8f8; /* Softer white */
            --text-color: #1a1a1a;
            --accent-color: #007bff; /* Vibrant Blue */
            --accent-secondary: #00b4d8;
            --accent-tertiary: #14b8a6;
            --secondary-bg: #eef1f5; /* Lighter secondary */
            --card-bg: rgba(255, 255, 255, 0.7); /* Light Glass */
            --card-hover: rgba(255, 255, 255, 0.9);
            --border-color: #e2e8f0;
            --shadow-color: rgba(0, 0, 0, 0.08);
            --shadow-heavy: rgba(0, 0, 0, 0.15);
            --transition-speed: 0.35s;
            --gradient-primary: linear-gradient(135deg, #007bff, #00b4d8);
            --gradient-secondary: linear-gradient(135deg, #eef1f5, #e2e8f0);
            --gradient-accent: linear-gradient(135deg, #00b4d8, #14b8a6);
            --glass-bg: rgba(255, 255, 255, 0.6);
            --backdrop-blur: 15px;
        }

        [data-theme="dark"] {
            --bg-color: #0a0a0a; /* Premium Charcoal */
            --text-color: #f0f0f0;
            --accent-color: #4c96ff; /* Lighter/Safer Blue for dark contrast */
            --accent-secondary: #0ea5e9;
            --accent-tertiary: #14b8a6;
            --secondary-bg: #141414; /* Dark secondary */
            --card-bg: rgba(20, 20, 20, 0.7); /* Dark Glass */
            --card-hover: rgba(30, 30, 30, 0.9);
            --border-color: #333333;
            --shadow-color: rgba(0, 0, 0, 0.4);
            --shadow-heavy: rgba(0, 0, 0, 0.8);
            --gradient-primary: linear-gradient(135deg, #4c96ff, #0ea5e9);
            --gradient-secondary: linear-gradient(135deg, #141414, #0a0a0a);
            --gradient-accent: linear-gradient(135deg, #0ea5e9, #14b8a6);
            --glass-bg: rgba(20, 20, 20, 0.7);
        }


        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.7;
            color: var(--text-color);
            background-color: var(--bg-color);
            transition: background-color var(--transition-speed), color var(--transition-speed);
            overflow-x: hidden;
            min-height: 100vh;
            position: relative; 
        }
        
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjgiIG51bU9jdGF2ZXM9IjQiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZHRoPSIxMDAlIiBmaWxsPSIjRjBGMEYwIi8+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIiBvcGFjaXR5PSIwLjMiLz48L2Z2Zy4=');
            opacity: 0.1;
            pointer-events: none;
            z-index: -1;
        }
        [data-theme="dark"]::before {
             background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjgiIG51bU9jdGF2ZXM9IjQiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZHRoPSIxMDAlIiBmaWxsPSIjMUEyQTJBIi8+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIiBvcGFjaXR5PSIwLjEiLz48L2Z2Zy4=');
        }

        .container {
            max-width: 1300px;
            margin: 0 auto;
            padding: 0 30px;
        }

        a {
            text-decoration: none;
            color: var(--accent-color);
            transition: color var(--transition-speed);
        }

        /* --- HEADER & NAVIGATION --- */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background-color: var(--glass-bg);
            padding: 1rem 0;
            z-index: 1000;
            box-shadow: 0 2px 20px var(--shadow-color);
            backdrop-filter: blur(var(--backdrop-blur));
            border-bottom: 1px solid var(--border-color);
        }

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

        .logo {
            font-family: 'Syne', sans-serif;
            font-size: 2rem; 
            font-weight: 800;
            color: var(--text-color);
            transition: color var(--transition-speed); 
        }
        
        .logo:hover {
            color: var(--accent-color); 
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .nav-links a {
            color: var(--text-color);
            font-weight: 500;
            position: relative;
            padding: 0.5rem 0;
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-primary);
            transition: width var(--transition-speed);
        }

        .nav-links a:hover {
            color: var(--accent-color);
        }
        
        .nav-links a:hover::after {
            width: 100%;
        }
        
        .theme-toggle {
            background: var(--secondary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-color);
            padding: 0.75rem;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.4s ease-out;
            /* Added for icon positioning */
            width: 40px;
            height: 40px;
            position: relative;
        }
        
        .theme-toggle i {
            /* New animation for theme icon */
            transition: transform 0.3s ease-out, opacity 0.3s ease-out;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); /* Center icon */
        }

        .theme-toggle:hover {
            transform: rotate(360deg) scale(1.05);
            border-color: var(--accent-color);
            background: var(--gradient-primary); 
            color: #ffffff;
        }
        
        /* --- BUTTONS --- */
        .button {
            padding: 0.75rem 1.5rem;
            border-radius: 8px; 
            text-align: center;
            font-weight: 700;
            transition: all var(--transition-speed);
            display: inline-block;
            font-family: 'Syne', sans-serif;
            letter-spacing: 0.5px;
        }

        .button-primary {
            background: var(--gradient-primary);
            color: #ffffff;
            border: none;
            box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4); 
        }

        .button-primary:hover {
            opacity: 0.9;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(0, 123, 255, 0.6);
        }

        .button-secondary {
            background: var(--secondary-bg);
            color: var(--text-color);
            border: 1px solid var(--border-color);
        }

        .button-secondary:hover {
            background: var(--bg-color);
            border-color: var(--accent-color);
            color: var(--accent-color);
        }

        /* --- HERO SECTION --- */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            background-image: url('https://images.unsplash.com/photo-1517430816045-df4b7de1168b?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
            background-size: cover;
            background-repeat: no-repeat;
            background-attachment: fixed;
        }
        
        [data-theme="dark"] .hero {
             background-image: url('https://images.unsplash.com/photo-1542831371-29b0f74f9d13?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
        }

        .hero-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--bg-color);
            opacity: 0.85;
            transition: opacity var(--transition-speed);
        }

        .hero-content {
            position: relative;
            z-index: 10;
        }

			.hero h1 {
			    font-family: 'Syne', sans-serif;
			    font-size: 5rem;
			    font-weight: 800;
			    letter-spacing: -3px;
			    margin-bottom: 0.5rem;
			    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.4);
			    color: var(--text-color) !important; /* Idk how this works */
			    will-change: color; 
			    transition: color 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
			}
        [data-theme="dark"] .hero h1 {
            text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
        }
        
			.hero h1:hover {
			    color: var(--accent-color) !important;
			}

        .hero p {
            font-size: 1.6rem;
            max-width: 700px;
            margin-bottom: 2rem;
            font-weight: 500;
        }

        .typed-text::after {
            content: '_'; 
            margin-left: 5px;
            animation: blink 0.7s infinite;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
        }
        
        /* Section Title */
        .section-title {
            font-family: 'Syne', sans-serif;
            font-size: 3.5rem;
            margin-bottom: 4rem;
            font-weight: 700;
            text-align: center;
        }
        
        /* --- ABOUT SECTION --- */
        #about {
            padding: 8rem 0;
            background-color: var(--bg-color);
        }

        .about-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }
        
        .about-image {
            width: 100%;
            max-width: 400px;
            height: 400px;
            border-radius: 50%;
            background-color: var(--secondary-bg);
            border: 2px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            overflow: hidden;
            box-shadow: 0 10px 40px var(--shadow-color);
        }

        .about-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease-out; 
        }
        
        .about-image:hover img {
            transform: scale(1.05); 
        }
        
        .about-image-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 8rem;
            color: var(--border-color);
        }

        .about-content h2 {
            font-family: 'Syne', sans-serif;
            font-size: 3rem;
            margin-bottom: 1.5rem;
        }

        .about-content p {
            font-size: 1.1rem;
            margin-bottom: 1rem;
            line-height: 1.8;
        }

        .about-content .button {
            margin-top: 1rem;
        }

        /* --- SKILLS SECTION --- */
        #skills {
            padding: 6rem 0 8rem 0;
            background-color: var(--secondary-bg);
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .skill-card {
            background: var(--card-bg);
            backdrop-filter: blur(var(--backdrop-blur));
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 2rem;
            box-shadow: 0 10px 30px var(--shadow-color);
            transition: all var(--transition-speed);
        }

        .skill-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px var(--shadow-heavy);
        }
        
        .skill-card-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .skill-icon {
            font-size: 1.5rem;
            color: var(--accent-color);
            background: var(--gradient-primary);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .skill-card h3 {
            font-family: 'Syne', sans-serif;
            font-size: 1.5rem;
            color: var(--text-color);
        }

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

        .skill-list li {
            position: relative;
            padding-left: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }

        .skill-list li::before {
            content: '\f00c'; /* Font Awesome check icon */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            top: 2px;
            color: var(--accent-tertiary);
        }

        /* --- PROJECTS SECTION --- */
        .projects {
            padding: 8rem 0;
            background-color: var(--bg-color); /* Switched BG */
        }

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

        .project-card {
            background-color: var(--card-bg); 
            backdrop-filter: blur(var(--backdrop-blur));
            border-radius: 16px; 
            border: 1px solid var(--border-color);
            box-shadow: 0 10px 30px var(--shadow-color);
            overflow: hidden;
            transition: all var(--transition-speed);
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 16px;
            padding: 2px;
            background: var(--gradient-primary);
            opacity: 0;
            transition: opacity var(--transition-speed);
            -webkit-mask: 
                linear-gradient(#fff 0 0) content-box, 
                linear-gradient(#fff 0 0);
            -webkit-mask-composite: destination-out;
            mask: 
                linear-gradient(#fff 0 0) content-box, 
                linear-gradient(#fff 0 0);
            mask-composite: exclude;
            z-index: -1;
        }

        .project-card:hover {
            transform: translateY(-8px); 
            box-shadow: 0 20px 40px var(--shadow-heavy); 
        }

        .project-card:hover::before {
            opacity: 1;
        }

        .project-image {
            height: 250px; 
            overflow: hidden;
            position: relative;
            border-bottom: 1px solid var(--border-color);
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .project-card:hover .project-image img {
            transform: scale(1.05);
        }

        .project-info {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .project-title {
            font-family: 'Syne', sans-serif;
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }

        .project-description {
            font-size: 1rem;
            margin-bottom: 1.5rem;
            color: var(--text-color);
            flex-grow: 1;
        }

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

        .tech-tag {
            background: var(--secondary-bg);
            border: 1px solid var(--border-color);
            color: var(--text-color);
            padding: 0.3rem 0.8rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .project-links {
            display: flex;
            gap: 0.75rem;
        }
        
        .project-link {
            flex: 1;
            padding: 0.6rem 1rem;
            font-size: 0.9rem;
            border-radius: 8px;
            font-weight: 600;
            transition: all var(--transition-speed);
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .project-link.button-primary {
             background: var(--gradient-primary);
             color: #ffffff;
             border: none;
             box-shadow: none;
        }
        .project-link.button-primary:hover {
            transform: scale(1.03);
            opacity: 0.9;
        }
        
        .project-link.button-secondary {
            background: transparent;
            color: var(--text-color);
            border: 1px solid var(--border-color);
        }
        .project-link.button-secondary:hover {
            background: var(--secondary-bg);
            border-color: var(--accent-color);
        }

        /* --- CONTACT SECTION --- */
        .contact {
            padding: 8rem 0;
            background-color: var(--secondary-bg);
        }

        .contact-container {
            max-width: 800px;
            margin: 0 auto;
            background: var(--card-bg);
            backdrop-filter: blur(var(--backdrop-blur));
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 3rem;
            text-align: center;
            box-shadow: 0 20px 50px var(--shadow-color);
        }

        .contact-container h2 {
            font-family: 'Syne', sans-serif;
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .contact-container p {
            font-size: 1.2rem;
            margin-bottom: 2.5rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            color: var(--text-color);
        }

        .contact-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.5rem;
        }

        .contact-button-lg {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.8rem 1.8rem;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            text-decoration: none;
            transition: all var(--transition-speed);
            border: 1px solid var(--border-color);
            background: var(--secondary-bg);
            color: var(--text-color);
        }
        
        .contact-button-lg i {
            font-size: 1.2rem;
        }

        .contact-button-lg:hover {
            background: var(--accent-color);
            color: white;
            border-color: var(--accent-color);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
        }


        /* --- FOOTER --- */
        footer {
            padding: 3rem 0;
            text-align: center;
            border-top: 1px solid var(--border-color);
            background-color: var(--bg-color);
            font-size: 1rem;
            font-weight: 500;
        }

        .footer-text {
            background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary), var(--accent-tertiary), var(--accent-color));
            background-size: 200% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: gradient-flow 4s linear infinite;
        }

        @keyframes gradient-flow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* --- LOADER --- */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--bg-color);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 99999;
            opacity: 1;
            transition: opacity 0.5s ease-out;
        }

        .loader.hidden {
            pointer-events: none;
        }

        .loader-content {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .loader-spinner {
            border: 4px solid var(--border-color); 
            border-top: 4px solid var(--accent-color);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
        }

        .loader-text {
            margin-top: 15px;
            font-size: 1.2rem;
            color: var(--text-color);
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        /* --- SCROLL TO TOP --- */
        .scroll-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 1.2rem;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0, 123, 255, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
            z-index: 900;
        }

        .scroll-top.visible {
            opacity: 1;
            visibility: visible;
        }

        /* --- RESPONSIVENESS --- */
        @media (max-width: 900px) {
            .about-container {
                grid-template-columns: 1fr;
                gap: 2rem;
                text-align: center;
            }
            .about-image {
                max-width: 300px;
                height: 300px;
            }
        }
        
        @media (max-width: 768px) {
            .container {
                padding: 0 20px;
            }

			.logo {
            font-size: 1.75rem; /* Reduces logo size from 2rem on mobile */
       		}
            
            .hero {
                height: 80vh;
            }

            .hero h1 {
                font-size: 3rem;
                letter-spacing: -1px;
            }

            .hero p {
                font-size: 1.2rem;
            }
            
            .hero-buttons {
                flex-direction: column;
                gap: 0.75rem;
            }
            
            .hero-buttons .button {
                width: 100%;
            }

            .section-title {
                font-size: 2.5rem;
                margin-bottom: 2rem;
            }

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

            .contact-container {
                padding: 2rem;
            }

            .contact-container h2 {
                font-size: 2.5rem;
            }

            .contact-links {
                flex-direction: column;
                gap: 1rem;
            }

            .nav-container {
                padding: 0.5rem 0;
            }

            .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                flex-direction: column;
                gap: 1.5rem;
                background-color: var(--secondary-bg);
                padding: 1rem 0;
                box-shadow: 0 10px 25px var(--shadow-heavy);
                opacity: 0;
                visibility: hidden;
                transform: translateY(-20px);
                transition: all var(--transition-speed);
                border-bottom-left-radius: 10px;
                border-bottom-right-radius: 10px;
            }

            .nav-links.active {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
            
            .nav-links a, .nav-links button {
                padding: 0.5rem 2rem;
                width: 100%;
                text-align: center;
            }

            .mobile-menu-button {
                display: block;
                background: none;
                border: none;
                font-size: 1.5rem;
                cursor: pointer;
                color: var(--text-color);
                padding: 0.5rem;
            }
        }

        @media (min-width: 769px) {
            .mobile-menu-button {
                display: none;
            }
        }
