:root {
            --bg: #0d1117;
            --panel: #111827;
            --muted: #94a3b8;
            --text: #e5e7eb;
            --brand: #22c55e;
            --brand-2: #06b6d4;
            --card: #0b1321;
            --ring: #1f2937;
            --chip: #0f172a;
            --chip-brd: #1f2937;
            --shadow: 0 20px 40px rgba(0,0,0,.35);
            --transition: all 0.3s ease;
        }

        * { 
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html, body { 
            font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; 
            background: var(--bg); 
            color: var(--text); 
            scroll-behavior: smooth;
            line-height: 1.6;
            overflow-x: hidden;
        }

        a { 
            color: inherit; 
            text-decoration: none; 
        }

        img { 
            max-width: 100%; 
            display: block; 
        }

        /* Container & Layout */
        .container { 
            width: min(1200px, 92vw); 
            margin: 0 auto; 
            padding: 0 1rem;
        }

        .grid { 
            display: grid; 
            gap: 1.5rem; 
        }

        section { 
            padding: 4rem 0; 
        }

        /* Buttons & Components */
        .btn { 
            display: inline-flex; 
            align-items: center; 
            gap: .5rem; 
            background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
            color: #00100f; 
            padding: 1rem 1.5rem; 
            border-radius: 14px; 
            font-weight: 700; 
            border: 0; 
            box-shadow: var(--shadow); 
            transition: var(--transition);
            white-space: nowrap;
            cursor: pointer;
        }

        .btn:hover { 
            transform: translateY(-3px); 
            box-shadow: 0 24px 48px rgba(0,0,0,.45); 
        }

        .btn.ghost { 
            background: transparent; 
            color: var(--text); 
            border: 1px solid #213045; 
            box-shadow: none; 
        }

        .btn.ghost:hover { 
            border-color: var(--brand);
            background: rgba(34, 197, 94, 0.1);
        }

        .badge { 
            display: inline-flex; 
            align-items: center; 
            gap: .4rem; 
            padding: .6rem 1rem; 
            border-radius: 999px; 
            border: 1px solid var(--chip-brd); 
            background: var(--chip); 
            color: #cbd5e1; 
            font-weight: 600; 
            font-size: .9rem; 
            margin-bottom: 1.5rem;
            transition: var(--transition);
        }

        .badge:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        .card { 
            background: radial-gradient(1000px 400px at 10% -20%, rgba(34,197,94,.08), transparent 40%), var(--card); 
            border: 1px solid #172033; 
            border-radius: 24px; 
            padding: 1.5rem; 
            box-shadow: var(--shadow);
            transition: var(--transition);
            height: 100%;
        }

        .card:hover {
            transform: translateY(-5px);
            border-color: rgba(34, 197, 94, 0.3);
        }

        /* Navigation */
        .nav { 
            position: sticky; 
            top: 0; 
            z-index: 100; 
            backdrop-filter: saturate(180%) blur(10px); 
            background: rgba(13,17,23,.95); 
            border-bottom: 1px solid #1f2a44; 
            padding: 0.5rem 0;
        }

        .nav .wrap { 
            display: flex; 
            align-items: center; 
            justify-content: space-between; 
            padding: .5rem 0; 
        }

        .logo { 
            font-weight: 800; 
            letter-spacing: .4px; 
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .logo span { 
            color: var(--brand); 
            position: relative;
        }

        .logo span::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--brand);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.3s ease;
        }

        .logo:hover span::after {
            transform: scaleX(1);
            transform-origin: left;
        }

        .location-tag {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.9rem;
            color: var(--muted);
            margin-left: 1rem;
            padding-left: 1rem;
            border-left: 1px solid #2d3748;
        }

        .navlinks { 
            display: flex; 
            gap: 1rem; 
            align-items: center; 
        }

        .navlinks a { 
            padding: .6rem 1rem; 
            border-radius: 10px; 
            font-weight: 600; 
            color: #cbd5e1; 
            border: 1px solid transparent; 
            transition: var(--transition);
            position: relative;
        }

        .navlinks a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--brand);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .navlinks a:hover { 
            color: var(--brand);
        }

        .navlinks a:hover::after {
            width: 70%;
        }

        /* Hero Section */
        .hero { 
            padding: 6rem 0 4rem; 
            position: relative; 
            overflow: hidden; 
            background: radial-gradient(ellipse at top right, rgba(34,197,94,0.05) 0%, transparent 60%);
        }

        .hero .container { 
            display: grid; 
            grid-template-columns: 1.2fr 1fr; 
            gap: 3rem; 
            align-items: center; 
        }

        .headline { 
            font-size: clamp(1.8rem, 4vw, 3.5rem); 
            line-height: 1.1; 
            font-weight: 800; 
            letter-spacing: -.02em; 
            margin-bottom: 0.5rem;
        }

        .sub { 
            color: var(--muted); 
            margin-top: 1rem; 
            font-size: 1.1rem; 
            line-height: 1.6;
        }

        .location-hero {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 1rem;
            color: var(--muted);
            font-size: 1rem;
        }

        .cta { 
            display: flex; 
            gap: 1rem; 
            flex-wrap: wrap; 
            margin-top: 2rem; 
        }

        .hero-visual { 
            justify-self: center; 
            position: relative;
        }

        /* Spherical Avatar */
        .avatar {
            width: min(340px, 70vw);
            height: min(340px, 70vw);
            border-radius: 50%;
            border: 2px solid rgba(34, 197, 94, 0.3);
            box-shadow: 
                var(--shadow),
                0 0 40px rgba(34, 197, 94, 0.2),
                inset 0 0 20px rgba(0, 0, 0, 0.3);
            transition: var(--transition);
            object-fit: cover;
            position: relative;
            z-index: 2;
        }

        .avatar:hover {
            transform: scale(1.03);
            box-shadow: 
                0 25px 50px rgba(0,0,0,0.4),
                0 0 60px rgba(34, 197, 94, 0.3),
                inset 0 0 20px rgba(0, 0, 0, 0.3);
        }

        .avatar-container {
            position: relative;
            display: inline-block;
        }

        .avatar-container::before {
            content: '';
            position: absolute;
            inset: -10px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--brand), var(--brand-2));
            opacity: 0.2;
            z-index: 1;
            animation: pulse 3s infinite ease-in-out;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.2; transform: scale(1); }
            50% { opacity: 0.3; transform: scale(1.05); }
        }

        h2.section-title { 
            font-size: clamp(1.8rem, 2.6vw, 2.5rem); 
            letter-spacing: .2px; 
            margin: 0 0 2rem; 
            position: relative;
            display: inline-block;
            font-weight: 800;
        }

        h2.section-title::after {
            content: '';
            position: absolute;
            bottom: -12px;
            left: 0;
            width: 70px;
            height: 5px;
            background: linear-gradient(135deg, var(--brand), var(--brand-2));
            border-radius: 3px;
        }

        p.lead { 
            color: #cbd5e1; 
            margin: .5rem 0 2rem; 
            font-size: 1.2rem;
            max-width: 600px;
        }

        /* About */
        .about .grid {
            grid-template-columns: 1fr;
        }

        .about .text h3 {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            color: var(--brand);
            font-weight: 700;
        }

        .about .text p {
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
            line-height: 1.7;
        }

        /* Skills */
        .skills .chips { 
            display: flex; 
            flex-wrap: wrap; 
            gap: .8rem; 
            justify-content: center;
        }

        /* Projects */
        .projects .cards { 
            grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); 
            gap: 2rem;
        }

        .project .title { 
            font-weight: 800; 
            margin: .5rem 0 .3rem; 
            font-size: 1.4rem;
            color: var(--text);
        }

        .project .desc { 
            color: #b6c2d9; 
            font-size: 1rem; 
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .project .links { 
            display: flex; 
            gap: .8rem; 
            margin-top: 1rem; 
            flex-wrap: wrap;
        }

        /* Education */
        .edu .item { 
            position: relative; 
            padding-left: 2rem; 
            margin-bottom: 1.5rem;
        }

        .edu .item:before { 
            content: ""; 
            position: absolute; 
            left: 0; 
            top: .5rem; 
            width: .7rem; 
            height: .7rem; 
            border-radius: 50%; 
            background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
            box-shadow: 0 0 0 3px #0b1321; 
        }

        .edu .meta { 
            color: #9fb0cc; 
            font-size: 1rem; 
            margin-top: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .edu .meta strong {
            color: var(--brand);
            font-weight: 700;
        }

        /* Gallery */
        .gallery .grid { 
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            justify-items: center;
        }

        .gallery .tile {
            width: 100%;
            max-width: 350px;
            height: 250px;
            overflow: hidden;
            border-radius: 16px;
            border: 1px solid #16243a;
            background: #0e1627;
            position: relative;
            display: block;
            transition: var(--transition);
        }

        .gallery .tile:hover {
            transform: translateY(-8px);
            border-color: rgba(34, 197, 94, 0.3);
        }

        .gallery .tile > img {
            position: absolute;
            inset: 0;
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            display: block !important;
            transition: transform 0.5s ease;
        }

        .gallery .tile:hover > img {
            transform: scale(1.05);
        }

        /* Contact */
        .contact .card { 
            display: grid; 
            grid-template-columns: 1.2fr 1fr; 
            gap: 2rem; 
            align-items: center; 
            padding: 2rem;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            color: var(--muted);
        }

        .contact .row { 
            display: flex; 
            gap: 1rem; 
            flex-wrap: wrap; 
        }

        /* Footer */
        footer { 
            padding: 3rem 0 4rem; 
            color: #9fb0cc; 
            border-top: 1px solid #1f2a44; 
            text-align: center;
            background: var(--panel);
        }

        .footer-location {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin-top: 1rem;
            color: var(--muted);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.2rem;
            margin: 2rem 0;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--card);
            border: 1px solid #1f2a44;
            transition: var(--transition);
            font-size: 1.2rem;
        }

        .social-links a:hover {
            background: linear-gradient(135deg, var(--brand), var(--brand-2));
            transform: translateY(-5px);
            color: #00100f;
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        /* Animations */
        .reveal { 
            opacity: 0; 
            transform: translateY(20px) scale(.98); 
            filter: saturate(0.9);
            transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease; 
        }

        .reveal.show { 
            opacity: 1; 
            transform: translateY(0) scale(1); 
            filter: saturate(1); 
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 25px;
            right: 25px;
            width: 55px;
            height: 55px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--brand), var(--brand-2));
            color: #00100f;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: var(--shadow);
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 100;
            border: none;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            transform: translateY(-5px) rotate(5deg);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .hero .container {
                gap: 2rem;
            }
            
            .contact .card {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .location-tag {
                display: none;
            }
        }

        @media (max-width: 900px) {
            .hero .container { 
                grid-template-columns: 1fr; 
                text-align: center;
            }
            
            .hero-visual { 
                order: -1; 
                margin-bottom: 2rem;
            }
            
            .cta {
                justify-content: center;
            }
            
            .navlinks {
                display: none;
            }
        }

        @media (max-width: 600px) {
            .hero {
                padding: 4rem 0 2rem;
            }
            
            section {
                padding: 3rem 0;
            }
            
            .btn {
                padding: 0.9rem 1.2rem;
                font-size: 0.95rem;
            }
            
            .gallery .grid {
                grid-template-columns: 1fr;
            }
            
            .gallery .tile {
                height: 220px;
            }
            
            .projects .cards {
                grid-template-columns: 1fr;
            }
            
            .skills .chips {
                justify-content: flex-start;
            }
            
            .badge {
                font-size: 0.85rem;
            }
            
            .headline {
                font-size: clamp(1.6rem, 4vw, 2.5rem);
            }
        }

        @media (max-width: 400px) {
            .container {
                padding: 0 0.8rem;
            }
            
            .cta {
                flex-direction: column;
                align-items: center;
            }
            
            .btn {
                width: 100%;
                justify-content: center;
            }
            
            .card {
                padding: 1.2rem;
            }
        }

        /* Loading animation */
        .loading-bar {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            background: linear-gradient(135deg, var(--brand), var(--brand-2));
            width: 0%;
            z-index: 1000;
            transition: width 0.4s ease;
        }

