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

        :root {
            --bg:        #080d1a;
            --surface:   #0f172a;
            --card:      #111827;
            --border:    #1e2d45;
            --indigo:    #6366f1;
            --purple:    #a855f7;
            --pink:      #ec4899;
            --cyan:      #22d3ee;
            --text:      #f1f5f9;
            --muted:     #94a3b8;
            --dim:       #475569;
        }

        html { scroll-behavior: smooth; }

        body {
            background-color: var(--bg);
            color: var(--text);
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* ─── Scrollbar ─── */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg); }
        ::-webkit-scrollbar-thumb { background: var(--indigo); border-radius: 3px; }

        /* ─── Background stars ─── */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image:
                radial-gradient(1px 1px at 20% 30%, rgba(99,102,241,.5) 0%, transparent 100%),
                radial-gradient(1px 1px at 80% 10%, rgba(168,85,247,.4) 0%, transparent 100%),
                radial-gradient(1px 1px at 50% 80%, rgba(34,211,238,.3) 0%, transparent 100%),
                radial-gradient(1px 1px at 10% 60%, rgba(99,102,241,.3) 0%, transparent 100%),
                radial-gradient(1px 1px at 90% 70%, rgba(236,72,153,.3) 0%, transparent 100%);
            pointer-events: none;
            z-index: 0;
        }

        /* ─── Glow blobs ─── */
        .blob {
            position: fixed;
            border-radius: 50%;
            filter: blur(120px);
            opacity: .12;
            pointer-events: none;
            z-index: 0;
        }
        .blob-1 { width: 600px; height: 600px; background: var(--indigo); top: -200px; left: -200px; }
        .blob-2 { width: 500px; height: 500px; background: var(--purple); bottom: -150px; right: -150px; }
        .blob-3 { width: 400px; height: 400px; background: var(--cyan);   top: 50%;     left: 50%; transform: translate(-50%,-50%); }

        /* ─── Layout ─── */
        .wrapper {
            position: relative;
            z-index: 1;
            max-width: 900px;
            margin: 0 auto;
            padding: 60px 24px 40px;
        }

        /* ─── HERO ─── */
        .hero {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 32px;
            text-align: center;
            margin-bottom: 72px;
        }
        @media(min-width:680px) {
            .hero { flex-direction: row; text-align: left; align-items: flex-start; }
        }

        /* Avatar */
        .avatar-wrap {
            position: relative;
            flex-shrink: 0;
        }
        .avatar-ring {
            position: absolute;
            inset: -6px;
            border-radius: 50%;
            background: conic-gradient(var(--indigo), var(--purple), var(--pink), var(--cyan), var(--indigo));
            animation: spin 6s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .avatar-inner {
            position: relative;
            width: 140px;
            height: 140px;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid var(--bg);
            z-index: 1;
        }
        .avatar-inner img { width: 100%; height: 100%; object-fit: cover; }

        /* Hero text */
        .hero-text { flex: 1; }
        .badge {
            display: inline-block;
            font-size: .75rem;
            font-weight: 600;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: var(--cyan);
            background: rgba(34,211,238,.08);
            border: 1px solid rgba(34,211,238,.2);
            padding: 4px 12px;
            border-radius: 999px;
            margin-bottom: 12px;
        }
        .hero-name {
            font-size: clamp(2rem, 6vw, 3.2rem);
            font-weight: 800;
            letter-spacing: -.02em;
            line-height: 1.15;
            background: linear-gradient(135deg, #818cf8, #a78bfa, #f472b6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 8px;
        }
        .hero-title {
            font-size: 1.1rem;
            color: var(--muted);
            margin-bottom: 16px;
        }
        .hero-bio {
            font-size: .95rem;
            color: #cbd5e1;
            max-width: 520px;
            margin-bottom: 24px;
            line-height: 1.75;
        }

        /* Social buttons */
        .socials { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
        @media(min-width:680px) { .socials { justify-content: flex-start; } }
        .social-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 9px 18px;
            border-radius: 12px;
            background: rgba(255,255,255,.04);
            border: 1px solid var(--border);
            color: var(--muted);
            text-decoration: none;
            font-size: .875rem;
            font-weight: 500;
            transition: all .25s;
        }
        .social-btn:hover {
            background: var(--indigo);
            border-color: var(--indigo);
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(99,102,241,.35);
        }

        /* ─── Section titles ─── */
        .section { margin-bottom: 56px; }
        .section-label {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: .7rem;
            font-weight: 700;
            letter-spacing: .15em;
            text-transform: uppercase;
            color: var(--dim);
            margin-bottom: 20px;
        }
        .section-label::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
        }

        /* ─── YOUTUBE ─── */
        .yt-wrapper {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid var(--border);
            box-shadow: 0 0 0 1px rgba(99,102,241,.15), 0 24px 60px rgba(0,0,0,.5);
            background: #000;
        }
        .yt-wrapper::before {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: 21px;
            background: linear-gradient(135deg, rgba(99,102,241,.4), rgba(168,85,247,.4), rgba(236,72,153,.4));
            z-index: -1;
        }
        .yt-ratio {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
        }
        .yt-ratio iframe {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: none;
        }
        .yt-caption {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 20px;
            background: rgba(255,255,255,.03);
            border-top: 1px solid var(--border);
            font-size: .85rem;
            color: var(--muted);
        }
        .yt-caption i { color: #ff4444; font-size: 1.1rem; }

        /* ─── SKILLS ─── */
        .skills-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .skill-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 8px 16px;
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 10px;
            font-size: .85rem;
            font-weight: 600;
            color: #a5b4fc;
            font-family: 'Courier New', monospace;
            transition: all .2s;
        }
        .skill-badge:hover {
            background: rgba(99,102,241,.12);
            border-color: rgba(99,102,241,.5);
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(99,102,241,.2);
        }
        .skill-badge i { color: var(--indigo); font-size: .9rem; }

        /* ─── PROJECTS ─── */
        .projects-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
        }
        @media(min-width:540px) { .projects-grid { grid-template-columns: 1fr 1fr; } }

        .project-card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            transition: all .3s;
            position: relative;
            overflow: hidden;
        }
        .project-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--indigo), var(--purple), var(--pink));
            opacity: 0;
            transition: opacity .3s;
        }
        .project-card:hover {
            border-color: rgba(99,102,241,.4);
            transform: translateY(-4px);
            box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(99,102,241,.1);
        }
        .project-card:hover::before { opacity: 1; }

        .project-icon {
            width: 42px; height: 42px;
            background: rgba(99,102,241,.12);
            border: 1px solid rgba(99,102,241,.2);
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            color: var(--indigo);
            font-size: 1rem;
        }
        .project-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
        .project-desc  { font-size: .875rem; color: var(--muted); line-height: 1.65; flex: 1; }
        .project-tags  { display: flex; flex-wrap: wrap; gap: 6px; }
        .project-tag {
            font-size: .75rem;
            background: rgba(255,255,255,.05);
            border: 1px solid var(--border);
            color: var(--dim);
            padding: 3px 10px;
            border-radius: 6px;
            font-family: monospace;
        }

        /* ─── FOOTER ─── */
        footer {
            margin-top: 16px;
            padding-top: 28px;
            border-top: 1px solid var(--border);
            text-align: center;
            font-size: .82rem;
            color: var(--dim);
        }
        footer a { color: var(--indigo); text-decoration: none; }
        footer a:hover { color: var(--purple); }
        .footer-heart { color: #f472b6; animation: pulse 1.4s ease-in-out infinite; }
        @keyframes pulse {
            0%,100% { transform: scale(1); }
            50%      { transform: scale(1.3); }
        }

        /* ─── Fade-in on scroll ─── */
        .reveal {
            opacity: 0;
            transform: translateY(28px);
            transition: opacity .6s ease, transform .6s ease;
        }
        .reveal.visible { opacity: 1; transform: none; }