/* ═══════════════════════════════════════════════════════════════════
   Personal Portfolio — style.css  v2
   Dark premium glassmorphism · Syne 800 + Space Grotesk 300/400
   ═══════════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg:          #060606;
    --bg-2:        #0c0c0c;
    --bg-3:        #131313;
    --surface:     rgba(255,255,255,0.03);

    /* Accents */
    --accent:      #9b6dff;
    --accent-dark: #7a4fd8;
    --cyan:        #00e5ff;
    --gold:        #f5c842;
    --gold-dark:   #d4a812;

    /* Text */
    --text:        #efefef;
    --text-2:      #c8c8c8;
    --muted:       #777777;
    --dim:         #3a3a3a;

    /* Glass */
    --border:      rgba(255,255,255,0.09);
    --border-h:    rgba(155,109,255,0.28);
    --glass-bg:    rgba(255,255,255,0.05);
    --glass-hover: rgba(255,255,255,0.08);
    --glass-top:   inset 0 1px 0 rgba(255,255,255,0.07);

    /* Gradients */
    --gradient:      linear-gradient(135deg, #9b6dff 0%, #00e5ff 100%);
    --gradient-gold: linear-gradient(135deg, #f5c842 0%, #ff9800 100%);
    --gradient-dark: linear-gradient(135deg, #7a4fd8 0%, #0093aa 100%);

    /* Shadows */
    --shadow-sm:   0 4px 24px rgba(0,0,0,0.35);
    --shadow-md:   0 8px 48px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 48px rgba(155,109,255,0.22);
    --shadow-gold: 0 0 48px rgba(245,200,66,0.15);

    /* Radii */
    --r:    10px;
    --r-lg: 18px;
    --r-xl: 28px;

    /* Motion */
    --ease:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-s: cubic-bezier(0.4, 0, 0.2, 1);
    --t:      0.3s var(--ease-s);

    /* Layout */
    --font-head:   'Urbanist', sans-serif;
    --font-body:   'DM Sans', sans-serif;
    --container:   1200px;
    --pad-section: 110px;
}

/* ═══════════════════════════════════════════════════════════════════
   Light (Daylight) Mode — Premium Glassmorphism Redesign
   ═══════════════════════════════════════════════════════════════════ */

/* html[data-theme="light"] has specificity (0,1,1) which beats the theme CSS's
   :root { } at (0,1,0) — ensuring light mode variables always win regardless of
   which stylesheet loads last. */
html[data-theme="light"] {
    /* Backgrounds — pearl white with a whisper of lavender */
    --bg:          #f7f6ff;
    --bg-2:        #eeedf8;
    --bg-3:        #e5e3f2;
    --surface:     rgba(255,255,255,0.60);

    /* Text — deep navy for maximum readability */
    --text:        #0c0919;
    --text-2:      #2a2545;
    --muted:       #6860a0;
    --dim:         #aaa3c8;

    /* Glass — true frosted white glass */
    --border:      rgba(115,85,230,0.15);
    --border-h:    rgba(115,85,230,0.48);
    --glass-bg:    rgba(255,255,255,0.72);
    --glass-hover: rgba(255,255,255,0.92);
    --glass-top:   inset 0 1px 0 rgba(255,255,255,1),
                   inset 0 0 0 1px rgba(140,100,240,0.07);

    /* Shadows — soft purple-tinted depth */
    --shadow-sm:   0 4px 24px rgba(70,45,175,0.10), 0 1px 4px rgba(70,45,175,0.06);
    --shadow-md:   0 8px 48px rgba(70,45,175,0.14), 0 2px 8px rgba(70,45,175,0.08);
    --shadow-glow: 0 0 48px rgba(115,80,240,0.22);
    --shadow-gold: 0 0 48px rgba(245,200,66,0.22);
}

/* ── Body & ambient gradient ───────────────────────── */
[data-theme="light"] body { background: var(--bg); }

[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse 1100px 800px at  8% 12%, rgba(155,109,255,0.22) 0%, transparent 65%),
        radial-gradient(ellipse  750px 600px at 92% 88%, rgba(0,229,255,0.14)   0%, transparent 65%),
        radial-gradient(ellipse  550px 400px at 52% 42%, rgba(245,200,66,0.10)  0%, transparent 65%);
}

[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-2); }

/* ── Header ─────────────────────────────────────────── */
[data-theme="light"] header {
    background: rgba(247,246,255,0.84);
    border-bottom: 1px solid rgba(115,85,230,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] header.scrolled {
    background: rgba(247,246,255,0.96);
    border-bottom-color: rgba(115,85,230,0.18);
    box-shadow: 0 4px 24px rgba(70,45,175,0.08), 0 1px 0 rgba(115,85,230,0.10);
}

[data-theme="light"] .nav-links a           { color: var(--muted); }
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active    { color: var(--accent); }
[data-theme="light"] .nav-links a::after    { background: var(--gradient); }

/* ── Mobile menu ────────────────────────────────────── */
[data-theme="light"] .mobile-menu {
    background: rgba(247,246,255,0.98);
    border-bottom: 1px solid rgba(115,85,230,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
[data-theme="light"] .mobile-menu a       { color: var(--muted); }
[data-theme="light"] .mobile-menu a:hover { color: var(--accent); }

/* ── Side nav dots ──────────────────────────────────── */
[data-theme="light"] .nav-dot             { background: rgba(115,85,230,0.18); border-color: rgba(115,85,230,0.18); }
[data-theme="light"] .nav-dot.active      { background: var(--accent); border-color: var(--accent); box-shadow: var(--shadow-glow); }
[data-theme="light"] .side-nav .nav-dot   { background: rgba(115,85,230,0.18); }

/* ── Hero ───────────────────────────────────────────── */
[data-theme="light"] #hero {
    background: linear-gradient(180deg, rgba(185,160,255,0.18) 0%, transparent 60%);
}

/* Boost hero blobs — higher opacity for light backgrounds */
[data-theme="light"] .hero-blob:nth-child(1) { background: radial-gradient(circle at 50% 50%, rgba(155,109,255,0.38) 0%, rgba(155,109,255,0.14) 40%, transparent 70%); }
[data-theme="light"] .hero-blob:nth-child(2) { background: radial-gradient(circle at 50% 50%, rgba(0,229,255,0.26) 0%, rgba(0,229,255,0.10) 40%, transparent 70%); }
[data-theme="light"] .hero-blob:nth-child(3) { background: radial-gradient(circle at 50% 50%, rgba(245,200,66,0.22) 0%, rgba(245,200,66,0.08) 40%, transparent 70%); }

[data-theme="light"] .hero-stats {
    background: rgba(255,255,255,0.78);
    border-color: rgba(115,85,230,0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 28px rgba(70,45,175,0.10), inset 0 1px 0 rgba(255,255,255,1);
}
[data-theme="light"] .stat-divider { background: rgba(115,85,230,0.14); }

/* ── Glass cards (services, work, courses, timeline, edu) ── */
[data-theme="light"] .service-card,
[data-theme="light"] .work-item,
[data-theme="light"] .course-card,
[data-theme="light"] .igaming-item,
[data-theme="light"] .webdev-item,
[data-theme="light"] .timeline-item,
[data-theme="light"] .edu-item {
    background: rgba(255,255,255,0.74);
    border-color: rgba(115,85,230,0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(70,45,175,0.09), inset 0 1px 0 rgba(255,255,255,0.95);
}

[data-theme="light"] .service-card:hover,
[data-theme="light"] .course-card:hover {
    background: rgba(255,255,255,0.92);
    border-color: rgba(115,85,230,0.30);
    box-shadow: 0 14px 44px rgba(70,45,175,0.15), inset 0 1px 0 rgba(255,255,255,1);
    transform: translateY(-5px);
}

[data-theme="light"] .work-item:hover,
[data-theme="light"] .igaming-item:hover,
[data-theme="light"] .webdev-item:hover {
    border-color: rgba(115,85,230,0.30);
    box-shadow: 0 12px 40px rgba(70,45,175,0.14), inset 0 1px 0 rgba(255,255,255,0.95);
}

/* ── Timeline inner elements ────────────────────────── */
[data-theme="light"] .timeline-dot  { background: var(--accent); box-shadow: 0 0 0 4px rgba(155,109,255,0.18); }
[data-theme="light"] .timeline-line { background: rgba(115,85,230,0.14); }

/* ── Section label ──────────────────────────────────── */
[data-theme="light"] .section-label { color: var(--accent); }

/* ── Marquee & carousel ─────────────────────────────── */
[data-theme="light"] .marquee-strip {
    background: rgba(222,220,248,0.68);
    border-color: rgba(115,85,230,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
[data-theme="light"] .marquee-item             { color: var(--muted); }
[data-theme="light"] .photo-carousel-strip     { border-color: rgba(115,85,230,0.12); }

/* ── Filter buttons ─────────────────────────────────── */
[data-theme="light"] .filter-btn {
    background: rgba(255,255,255,0.68);
    border-color: rgba(115,85,230,0.16);
    color: var(--muted);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn.active {
    background: rgba(255,255,255,0.92);
    border-color: rgba(155,109,255,0.42);
    color: var(--accent);
    box-shadow: 0 4px 18px rgba(70,45,175,0.12);
}

/* ── Buttons ────────────────────────────────────────── */
[data-theme="light"] .btn-primary         { box-shadow: 0 4px 20px rgba(115,80,240,0.34); }
[data-theme="light"] .btn-primary:hover   { box-shadow: 0 8px 30px rgba(115,80,240,0.44); }
[data-theme="light"] .btn-outline {
    border-color: rgba(115,85,230,0.36);
    color: var(--accent);
    background: rgba(255,255,255,0.52);
}
[data-theme="light"] .btn-outline:hover {
    background: rgba(155,109,255,0.10);
    border-color: var(--accent);
}

/* ── Social links ───────────────────────────────────── */
[data-theme="light"] .social-link {
    background: rgba(255,255,255,0.72);
    border-color: rgba(115,85,230,0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(70,45,175,0.08);
}
[data-theme="light"] .social-link:hover {
    background: rgba(255,255,255,0.95);
    border-color: rgba(155,109,255,0.42);
    box-shadow: 0 6px 22px rgba(70,45,175,0.16);
}

/* ── Form inputs ────────────────────────────────────── */
[data-theme="light"] .form-control {
    background: rgba(255,255,255,0.84);
    border-color: rgba(115,85,230,0.18);
    color: var(--text);
}
[data-theme="light"] .form-control:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(155,109,255,0.12);
}
[data-theme="light"] .form-control::placeholder { color: var(--dim); }
[data-theme="light"] .enroll-field input,
[data-theme="light"] .enroll-field textarea {
    background: rgba(255,255,255,0.84);
    border-color: rgba(115,85,230,0.18);
    color: var(--text);
}
[data-theme="light"] .enroll-field input:focus,
[data-theme="light"] .enroll-field textarea:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(155,109,255,0.12);
}

/* ── Tags & chips ───────────────────────────────────── */
[data-theme="light"] .project-tag {
    background: rgba(115,85,230,0.08);
    border-color: rgba(115,85,230,0.16);
    color: var(--muted);
}
[data-theme="light"] .subtopic-chip {
    background: rgba(0,145,180,0.10);
    border-color: rgba(0,145,180,0.22);
    color: #005e87;
}
[data-theme="light"] .service-feature-tag {
    background: rgba(115,85,230,0.08);
    border-color: rgba(115,85,230,0.14);
    color: var(--muted);
}

/* ── Modals ─────────────────────────────────────────── */
[data-theme="light"] .site-modal-overlay   { background: rgba(50,30,110,0.48); }
[data-theme="light"] .site-modal {
    background: rgba(247,246,255,0.97);
    border-color: rgba(115,85,230,0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 32px 80px rgba(50,30,110,0.22), inset 0 1px 0 rgba(255,255,255,0.95);
}
[data-theme="light"] .site-modal-close {
    background: rgba(115,85,230,0.08);
    color: var(--muted);
    border-color: rgba(115,85,230,0.14);
}
[data-theme="light"] .site-modal-close:hover {
    background: rgba(115,85,230,0.15);
    color: var(--text);
}
[data-theme="light"] .course-modal-footer,
[data-theme="light"] .project-modal-links {
    background: rgba(228,225,252,0.62);
    border-top-color: rgba(115,85,230,0.12);
}

/* ── WebDev browser chrome ──────────────────────────── */
[data-theme="light"] .webdev-browser          { background: rgba(225,222,245,0.88); border-bottom-color: rgba(115,85,230,0.12); }
[data-theme="light"] .webdev-browser-bar      { background: rgba(208,205,232,0.78); border-color: rgba(115,85,230,0.12); color: var(--muted); }

/* ── Placeholders ───────────────────────────────────── */
[data-theme="light"] .igaming-item-placeholder,
[data-theme="light"] .webdev-item-placeholder  { background: var(--bg-3); color: var(--dim); }

/* ── Back to top ────────────────────────────────────── */
[data-theme="light"] .back-to-top {
    background: rgba(255,255,255,0.84);
    border-color: rgba(115,85,230,0.22);
    color: var(--accent);
    box-shadow: 0 4px 20px rgba(70,45,175,0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
[data-theme="light"] .back-to-top:hover {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 8px 28px rgba(70,45,175,0.20);
}

/* ── Contact ────────────────────────────────────────── */
[data-theme="light"] .contact-item-label { color: var(--dim); }
[data-theme="light"] .contact-item-icon  { background: rgba(115,85,230,0.10); color: var(--accent); }

/* ── Footer ─────────────────────────────────────────── */
[data-theme="light"] footer           { background: rgba(238,236,252,0.72); border-top-color: rgba(115,85,230,0.12); }
[data-theme="light"] .footer-copy     { color: var(--muted); }
[data-theme="light"] .footer-links a  { color: var(--dim); }
[data-theme="light"] .footer-links a:hover { color: var(--accent); }

/* ── Cursor — adapted for light background ──────────── */
[data-theme="light"] .cursor-dot {
    background: #0c0919;
    mix-blend-mode: normal;
    opacity: 0.70;
}
[data-theme="light"] .cube-face {
    background: rgba(115,85,230,0.10);
    border-color: rgba(115,85,230,0.50);
    box-shadow: inset 0 0 14px rgba(115,85,230,0.14), 0 0 6px rgba(115,85,230,0.12);
}
[data-theme="light"] .cursor-cube.hover .cube-face {
    background: rgba(155,109,255,0.18);
    border-color: rgba(155,109,255,0.65);
}

/* ── Section depth — gives backdrop-filter something to blur ── */
[data-theme="light"] #about,
[data-theme="light"] #work,
[data-theme="light"] #contact {
    background: rgba(115,85,230,0.04);
}
[data-theme="light"] #services,
[data-theme="light"] #teaching {
    background: rgba(0,229,255,0.03);
}

/* ── Section headings & sub-text — ensure dark readable colors ── */
[data-theme="light"] .section-title { color: var(--text); }
[data-theme="light"] .section-sub   { color: var(--muted); }

/* ── About section text ─────────────────────────────────── */
[data-theme="light"] .about-bio-text { color: var(--text-2); }

/* ── Service card text ──────────────────────────────────── */
[data-theme="light"] .service-title { color: var(--text); }
[data-theme="light"] .service-desc  { color: var(--muted); }

/* ── Course card text ───────────────────────────────────── */
[data-theme="light"] .course-title       { color: var(--text); }
[data-theme="light"] .course-instructor  { color: var(--muted); }

/* ── Timeline text ──────────────────────────────────────── */
[data-theme="light"] .timeline-title    { color: var(--text); }
[data-theme="light"] .timeline-company  { color: var(--accent); }
[data-theme="light"] .timeline-period   { color: var(--muted); }
[data-theme="light"] .timeline-desc     { color: var(--muted); }

/* ── edu-item text ──────────────────────────────────────── */
[data-theme="light"] .edu-degree     { color: var(--text); }
[data-theme="light"] .edu-school     { color: var(--accent); }
[data-theme="light"] .edu-year       { color: var(--muted); }

/* ── iGaming & WebDev item text ─────────────────────────── */
[data-theme="light"] .igaming-title  { color: var(--text); }
[data-theme="light"] .igaming-desc   { color: var(--muted); }
[data-theme="light"] .webdev-title   { color: var(--text); }
[data-theme="light"] .webdev-desc    { color: var(--muted); }

/* ── Contact section ────────────────────────────────────── */
[data-theme="light"] .contact-info-title { color: var(--text); }
[data-theme="light"] .contact-item-val   { color: var(--text-2); }

/* ── Theme Toggle ─────────────────────────────────────────────────── */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: var(--r);
    background: var(--glass-bg);
    border: 1px solid var(--border);
    box-shadow: var(--glass-top);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 1rem;
    transition: var(--t);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--glass-hover);
    border-color: var(--border-h);
    color: var(--accent);
    box-shadow: var(--shadow-glow), var(--glass-top);
    transform: scale(1.05);
}

.theme-toggle .t-icon {
    position: absolute;
    transition: transform 0.45s var(--ease), opacity 0.35s;
    line-height: 1;
}

.theme-toggle .t-moon { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .t-sun  { opacity: 0; transform: rotate(90deg) scale(0.6); }

[data-theme="light"] .theme-toggle .t-moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }
[data-theme="light"] .theme-toggle .t-sun  { opacity: 1; transform: rotate(0deg) scale(1); }

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    font-weight: 300;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none;
}

/* Full-page ambient gradient */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 600px at 10% 15%,  rgba(155,109,255,0.09) 0%, transparent 70%),
        radial-gradient(ellipse 600px 500px at 90% 85%, rgba(0,229,255,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 55% 40%, rgba(245,200,66,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; }

/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 2px;
}

/* ── Custom Cursor ───────────────────────────────────────────────── */
.cursor-dot {
    position: fixed;
    left: 0;
    top: 0;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    will-change: transform;
}

/* ── 3D Glassmorphism Cube Cursor ─────────────────────────────────── */
.cursor-cube {
    position: fixed;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 9998;
    transform-style: preserve-3d;
    transform: translate(-14px,-14px) rotateX(20deg) rotateY(20deg);
    transition: width 0.3s var(--ease), height 0.3s var(--ease);
    will-change: transform;
}

.cursor-cube.hover {
    width: 40px;
    height: 40px;
}

.cube-face {
    position: absolute;
    inset: 0;
    /* NO backdrop-filter — was causing severe lag (6 blur layers at 60fps) */
    background: rgba(155,109,255,0.08);
    border: 1px solid rgba(155,109,255,0.5);
    box-shadow: inset 0 0 14px rgba(155,109,255,0.2), 0 0 4px rgba(155,109,255,0.15);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.cursor-cube.hover .cube-face {
    background: rgba(0,229,255,0.08);
    border-color: rgba(0,229,255,0.55);
    box-shadow: inset 0 0 14px rgba(0,229,255,0.2), 0 0 6px rgba(0,229,255,0.2);
}

.cube-front  { transform: translateZ(14px); }
.cube-back   { transform: rotateY(180deg) translateZ(14px); }
.cube-top    { transform: rotateX(90deg)  translateZ(14px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(14px); }
.cube-left   { transform: rotateY(-90deg) translateZ(14px); }
.cube-right  { transform: rotateY(90deg)  translateZ(14px); }

.cursor-cube.hover .cube-front  { transform: translateZ(20px); }
.cursor-cube.hover .cube-back   { transform: rotateY(180deg) translateZ(20px); }
.cursor-cube.hover .cube-top    { transform: rotateX(90deg)  translateZ(20px); }
.cursor-cube.hover .cube-bottom { transform: rotateX(-90deg) translateZ(20px); }
.cursor-cube.hover .cube-left   { transform: rotateY(-90deg) translateZ(20px); }
.cursor-cube.hover .cube-right  { transform: rotateY(90deg)  translateZ(20px); }

/* ── Utilities ───────────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    box-shadow: var(--glass-top);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--r-lg);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll-animation base */
[data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--gradient);
    color: #fff;
    padding: 15px 32px;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    border: none;
    transition: var(--t);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover::after { background: rgba(255,255,255,0.08); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: transparent;
    color: var(--text-2);
    padding: 14px 32px;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    transition: var(--t);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.btn-whatsapp:hover { box-shadow: 0 8px 28px rgba(37,211,102,0.35); }

/* ── Section Label ───────────────────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.section-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--gradient);
    border-radius: 1px;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    color: var(--text);
}

.section-sub {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--muted);
    max-width: 580px;
    line-height: 1.75;
    margin-bottom: 60px;
}

/* ── Side Nav Dots ───────────────────────────────────────────────── */
.side-nav {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dim);
    border: 1px solid rgba(255,255,255,0.12);
    transition: var(--t);
    position: relative;
    cursor: pointer;
}

.nav-dot.active {
    background: var(--accent);
    transform: scale(1.5);
    box-shadow: var(--shadow-glow);
}

.nav-dot::before {
    content: attr(data-label);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    background: var(--bg-2);
    padding: 4px 9px;
    border-radius: 5px;
    border: 1px solid var(--border);
    transition: opacity 0.2s;
}

.nav-dot:hover::before { opacity: 1; }

/* ── Header ──────────────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 800;
    padding: 22px 0;
    transition: padding 0.3s var(--ease-s), background 0.3s, border-color 0.3s;
}

header.scrolled {
    background: rgba(6,6,6,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated logo overrides — colors come from PHP/admin */
.logo.logo-animated {
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    -webkit-background-clip: initial;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    gap: 1px;
    text-decoration: none;
}
.logo-line1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: block;
    -webkit-text-fill-color: currentColor;
}
.logo-line2 {
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
    -webkit-text-fill-color: currentColor;
}
/* Custom image logo — constrained to header height; preserves aspect ratio */
.logo-img {
    max-height: 44px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.lc {
    display: inline-block;
    transition: opacity 0.35s ease, transform 0.35s ease, color 0.35s ease, letter-spacing 0.4s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.03em;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gradient);
    border-radius: 1px;
    transition: width 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Student login button in header */
.student-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 50px;
    border: 1px solid rgba(155, 109, 255, 0.4);
    background: rgba(155, 109, 255, 0.08);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    transition: var(--t);
    white-space: nowrap;
}
.student-login-btn:hover {
    background: rgba(155, 109, 255, 0.18);
    border-color: var(--accent);
    transform: translateY(-1px);
}
.student-login-btn i { font-size: 0.78rem; }
@media (max-width: 768px) {
    .student-login-btn span { display: none; }
    .student-login-btn { padding: 7px 10px; }
}

.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 50px;
    transition: var(--t);
    letter-spacing: 0.06em;
}

.lang-btn.active {
    background: var(--gradient);
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    border-radius: 1px;
    transition: var(--t);
}

/* ── Hero ────────────────────────────────────────────────────────── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    contain: layout style paint; /* limit repaint scope to this container */
}

.hero-blob {
    position: absolute;
    /* filter: blur() removed — radial-gradient handles soft edges at zero GPU cost */
    animation: blob-float 12s ease-in-out infinite alternate;
    will-change: transform;
}

.hero-blob:nth-child(1) {
    width: 880px;
    height: 880px;
    background: radial-gradient(circle at 50% 50%, rgba(155,109,255,0.22) 0%, rgba(155,109,255,0.08) 40%, transparent 70%);
    top: -290px;
    left: -250px;
    animation-duration: 12s;
}

.hero-blob:nth-child(2) {
    width: 660px;
    height: 660px;
    background: radial-gradient(circle at 50% 50%, rgba(0,229,255,0.14) 0%, rgba(0,229,255,0.05) 40%, transparent 70%);
    top: 60px;
    right: -190px;
    animation-duration: 14s;
    animation-delay: 3s;
}

.hero-blob:nth-child(3) {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at 50% 50%, rgba(245,200,66,0.12) 0%, rgba(245,200,66,0.04) 40%, transparent 70%);
    bottom: -20px;
    left: calc(38% - 100px);
    animation-duration: 16s;
    animation-delay: 6s;
}

@keyframes blob-float {
    0%   { transform: translate(0, 0)    scale(1); }
    33%  { transform: translate(24px,-18px) scale(1.04); }
    66%  { transform: translate(-16px,20px) scale(0.97); }
    100% { transform: translate(10px,-10px) scale(1.02); }
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.hero-grid.has-photo {
    flex-direction: row;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    text-align: left;
}

.hero-grid.has-photo .hero-content {
    flex: 1;
    min-width: 0;
}

.hero-photo-col {
    flex-shrink: 0;
    width: 320px;
}

.hero-photo {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
    .hero-grid.has-photo {
        flex-direction: column;
        text-align: center;
    }
    .hero-photo-col {
        width: 240px;
    }
    .hero-photo {
        height: 280px;
    }
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(155,109,255,0.1);
    border: 1px solid rgba(155,109,255,0.22);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    box-shadow: 0 0 20px rgba(155,109,255,0.1);
}

/* Name */
.hero-name {
    font-family: var(--font-head);
    font-size: clamp(3.2rem, 7vw, 5.8rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--text);
}

/* Roles */
.hero-roles {
    font-size: 1rem;
    font-weight: 300;
    color: var(--muted);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

/* Typing */
.hero-typing-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    font-weight: 700;
    margin-bottom: 20px;
    min-height: 2.4rem;
}

.typing-prefix {
    color: var(--muted);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
}

#typing-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-caret {
    display: inline-block;
    width: 2.5px;
    height: 1.1em;
    background: var(--accent);
    border-radius: 1px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    flex-shrink: 0;
    margin-left: 1px;
}

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

/* Bio */
.hero-bio {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto 28px;
}

/* CTA */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
    justify-content: center;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    box-shadow: var(--glass-top);
    border-radius: var(--r-lg);
    padding: 16px 24px;
    margin: 0 auto 28px;
    width: fit-content;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border);
}

.stat-number {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
    white-space: nowrap;
}

/* Socials */
.hero-socials {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--r);
    background: var(--glass-bg);
    border: 1px solid var(--border);
    box-shadow: var(--glass-top);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.95rem;
    transition: var(--t);
}

.social-link:hover {
    background: var(--glass-hover);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(155,109,255,0.2);
}

.social-link--placeholder {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Photo Carousel Strip ─────────────────────────────────────────── */
.photo-carousel-strip {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.photo-carousel-strip:active { cursor: grabbing; }

/* Left/right edge fade overlay */
.photo-carousel-strip::before,
.photo-carousel-strip::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.photo-carousel-strip::before {
    left: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}
.photo-carousel-strip::after {
    right: 0;
    background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.photo-carousel-track {
    display: flex;
    width: max-content;
    gap: var(--c-gap, 4px);
    animation: carousel-scroll var(--c-speed, 40s) linear infinite;
    will-change: transform;
}

.photo-carousel-track.dragging,
.marquee-track.dragging {
    animation: none !important;
    will-change: auto;
}

.photo-carousel-slide {
    flex-shrink: 0;
    height: var(--c-height, 220px);
    overflow: hidden;
    border-radius: 6px;
}

.photo-carousel-slide img {
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s, transform 0.5s var(--ease);
}

.photo-carousel-slide:hover img {
    opacity: 0.85;
    transform: scale(1.04);
}

@keyframes carousel-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Site Modals (Course & Project) ──────────────────────────────── */
.site-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.87);
    backdrop-filter: blur(6px);
    z-index: 9000;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 20px;
}

.site-modal-overlay.open { display: flex; }

.site-modal {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: 0 32px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
    animation: modal-in 0.32s var(--ease);
    position: relative;
    width: 100%;
    margin: auto 0;
}

@keyframes modal-in {
    from { transform: scale(0.95) translateY(16px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.site-modal-lg { max-width: 800px; }
.site-modal-xl { max-width: 1060px; }

.site-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 32px 36px 24px;
    border-bottom: 1px solid var(--border);
}

.site-modal-body { padding: 30px 36px 36px; }

.site-modal-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 2px;
}

.site-modal-close:hover { color: var(--text); background: rgba(255,255,255,0.1); }

.site-modal-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
}

.site-modal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

/* Course modal specifics */
.course-detail-desc {
    font-size: 0.97rem;
    font-weight: 300;
    color: var(--text-2);
    line-height: 1.85;
    margin-bottom: 28px;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.course-detail-stat {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px 16px;
    text-align: center;
}

.course-detail-stat .val {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    display: block;
}

.course-detail-stat .lbl {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

.course-syllabus-title {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 12px;
}

.syllabus-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 28px;
}

.syllabus-item {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 12px 16px;
    font-size: 0.87rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.syllabus-item-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(155,109,255,0.1);
    border: 1px solid rgba(155,109,255,0.18);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.syllabus-item-body { flex: 1; }
.syllabus-item-title { font-weight: 500; color: var(--text-2); margin-bottom: 4px; }
.syllabus-item-topics { font-size: 0.78rem; color: var(--muted); font-weight: 300; }

.course-modal-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 36px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.15);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.price-badge {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-2);
    margin-right: auto;
}

/* ── Enrollment Modal ─────────────────────────────────────────────── */
.enroll-field { margin-bottom: 14px; }
.enroll-field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
.enroll-field input, .enroll-field textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.enroll-field input:focus, .enroll-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(155,109,255,0.12);
}
#enroll-price-display { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
#paypal-button-container { max-width: 380px; margin: 0 auto; }

/* Project modal specifics */
.project-modal-cover {
    width: 100%;
    aspect-ratio: 16/8;
    object-fit: cover;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    display: block;
}

.project-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.project-tag {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 3px 11px;
    font-size: 0.76rem;
    color: var(--muted);
}

.project-tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.project-tool {
    background: rgba(155,109,255,0.08);
    border: 1px solid rgba(155,109,255,0.16);
    border-radius: 5px;
    padding: 3px 10px;
    font-size: 0.76rem;
    color: var(--accent);
}

.project-desc {
    font-size: 0.97rem;
    font-weight: 300;
    color: var(--text-2);
    line-height: 1.85;
    margin: 22px 0;
}

.project-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}

.project-img-grid img {
    width: 100%;
    border-radius: var(--r);
    object-fit: cover;
    aspect-ratio: 4/3;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.project-img-grid img:hover { border-color: var(--border-h); }

.project-img-grid img:first-child:nth-last-child(odd):last-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.project-modal-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 36px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.15);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
}

/* ── Marquee ─────────────────────────────────────────────────────── */
.marquee-strip {
    overflow: hidden;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.marquee-strip { cursor: grab; user-select: none; touch-action: pan-y; }
.marquee-strip:active { cursor: grabbing; }

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 0 36px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee-item::after {
    content: '✦';
    color: var(--accent);
    font-size: 0.6rem;
    opacity: 0.7;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Liquid Glass Decorative Orbs ────────────────────────────────── */
.glass-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    contain: layout style paint;
}

.glass-orb {
    position: absolute;
    border-radius: 50%;
    /* backdrop-filter removed — was causing repaint on every orb animation frame */
    border: 1px solid rgba(255,255,255,0.05);
    animation: orb-drift 18s ease-in-out infinite alternate;
    will-change: transform;
    filter: blur(1px);
}

.glass-orb-1 {
    width: 280px; height: 280px;
    background: radial-gradient(circle at 35% 40%, rgba(155,109,255,0.14) 0%, rgba(155,109,255,0.04) 60%, transparent 100%);
    top: 10%; left: -6%;
    animation-duration: 22s;
}

.glass-orb-2 {
    width: 180px; height: 180px;
    background: radial-gradient(circle at 40% 50%, rgba(0,229,255,0.12) 0%, transparent 70%);
    top: 55%; right: -3%;
    animation-duration: 18s;
    animation-delay: 4s;
}

.glass-orb-3 {
    width: 120px; height: 120px;
    background: radial-gradient(circle at 40% 45%, rgba(245,200,66,0.1) 0%, transparent 70%);
    bottom: 15%; left: 42%;
    animation-duration: 14s;
    animation-delay: 8s;
}

@keyframes orb-drift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(18px, -22px) scale(1.05); }
    66%  { transform: translate(-14px, 16px) scale(0.96); }
    100% { transform: translate(10px, -8px) scale(1.03); }
}

/* ── iGaming Portfolio ────────────────────────────────────────────── */
#igaming {
    padding: var(--pad-section) 0;
    position: relative;
}

.igaming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.igaming-item {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    box-shadow: var(--glass-top), var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
    aspect-ratio: 16/10;
}

.igaming-item:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--border-h);
    box-shadow: var(--glass-top), var(--shadow-glow);
}

.igaming-item-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.igaming-item:hover .igaming-item-img { transform: scale(1.06); }

.igaming-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.igaming-item:hover .igaming-item-overlay { opacity: 1; }

.igaming-item-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-3);
    color: var(--dim);
    font-size: 2.4rem;
}

.igaming-item-title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.igaming-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.igaming-item-tag {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 2px 9px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.igaming-item-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--gradient);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: opacity 0.2s, transform 0.2s;
    align-self: flex-start;
}

.igaming-item-btn:hover { opacity: 0.88; transform: scale(1.03); }

/* ── Web Development Portfolio ───────────────────────────────────── */
#webdev {
    padding: var(--pad-section) 0;
    position: relative;
}

.webdev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    margin-top: 48px;
}

.webdev-item {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--glass-top), var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.webdev-item:hover {
    transform: translateY(-6px);
    border-color: var(--border-h);
    box-shadow: var(--glass-top), var(--shadow-glow);
}

/* Browser chrome mockup */
.webdev-browser {
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.webdev-browser-dots {
    display: flex;
    gap: 5px;
}

.webdev-browser-dots span {
    width: 9px; height: 9px;
    border-radius: 50%;
    display: block;
}

.webdev-browser-dots span:nth-child(1) { background: #ff5f57; }
.webdev-browser-dots span:nth-child(2) { background: #ffbd2e; }
.webdev-browser-dots span:nth-child(3) { background: #28ca41; }

.webdev-browser-bar {
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.68rem;
    color: var(--muted);
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.webdev-item-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.webdev-item-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.webdev-item:hover .webdev-item-img { transform: scale(1.05); }

.webdev-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    backdrop-filter: blur(3px);
}

.webdev-item:hover .webdev-item-overlay { opacity: 1; }

.webdev-item-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.webdev-item-action.primary {
    background: var(--gradient);
    color: #fff;
}

.webdev-item-action.secondary {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.webdev-item-action:hover { opacity: 0.88; transform: scale(1.04); }

.webdev-item-body {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.webdev-item-placeholder {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-3);
    color: var(--dim);
    font-size: 2.4rem;
}

.webdev-item-title {
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.webdev-item-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 300;
    flex: 1;
    margin-bottom: 12px;
}

.webdev-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.webdev-item-tag {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 2px 9px;
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
}

/* ── Services ────────────────────────────────────────────────────── */
#services {
    padding: var(--pad-section) 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    box-shadow: var(--glass-top);
    border-radius: var(--r-xl);
    padding: 22px 24px;
    transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.35s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1.5px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    background: var(--glass-hover);
    border-color: var(--border-h);
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-glow), var(--glass-top);
}

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

/* Featured card */
.service-card.featured {
    border-color: rgba(245,200,66,0.22);
    background: rgba(245,200,66,0.03);
    grid-column: span 2;
}

.service-card.featured::before {
    background: var(--gradient-gold);
    opacity: 1;
}

.service-card.featured:hover {
    border-color: rgba(245,200,66,0.4);
    box-shadow: var(--shadow-gold), var(--glass-top);
}

.service-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(155,109,255,0.1);
    border: 1px solid rgba(155,109,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 16px;
    transition: background 0.3s, transform 0.3s;
}

.service-card:hover .service-icon {
    background: rgba(155,109,255,0.18);
    transform: scale(1.1);
}

.service-card.featured .service-icon {
    background: rgba(245,200,66,0.12);
    border-color: rgba(245,200,66,0.2);
    color: var(--gold);
}

.service-card.featured:hover .service-icon {
    background: rgba(245,200,66,0.2);
}

.service-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.service-desc {
    color: var(--muted);
    font-size: 0.87rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 14px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.feature-tag {
    background: rgba(155,109,255,0.07);
    border: 1px solid rgba(155,109,255,0.14);
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 0.74rem;
    font-weight: 400;
    color: var(--accent);
}

.service-card.featured .feature-tag {
    background: rgba(245,200,66,0.07);
    border-color: rgba(245,200,66,0.18);
    color: var(--gold);
}

/* ── About ───────────────────────────────────────────────────────── */
#about { padding: var(--pad-section) 0; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 88px;
    align-items: start;
}

.about-photo-wrap {
    position: sticky;
    top: 100px;
}

.about-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.about-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--r-xl);
    background: var(--glass-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dim);
    font-size: 6rem;
}

.about-badge {
    margin-top: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    box-shadow: var(--glass-top);
    border-radius: var(--r-lg);
    padding: 20px;
    text-align: center;
}

.about-badge-num {
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-badge-label {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.4;
}

.about-bio {
    color: var(--muted);
    font-size: 1.03rem;
    font-weight: 300;
    line-height: 1.82;
    margin-bottom: 52px;
}

/* Timeline title */
.timeline-title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-2);
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    margin-bottom: 52px;
    position: relative;
    padding-left: 36px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 6px;
    bottom: 6px;
    width: 1.5px;
    background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-dot {
    position: absolute;
    left: -29px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(155,109,255,0.25), 0 0 8px rgba(155,109,255,0.4);
}

.timeline-period {
    display: inline-flex;
    background: rgba(155,109,255,0.1);
    border: 1px solid rgba(155,109,255,0.18);
    border-radius: 50px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.timeline-role {
    font-family: var(--font-head);
    font-size: 1.03rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.timeline-company {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.65;
}

/* Education */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 52px;
}

.edu-item {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-left: 2px solid transparent;
    border-radius: var(--r);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--t);
}

.edu-item:hover {
    border-left-color: var(--cyan);
    background: var(--glass-hover);
}

.edu-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,229,255,0.08);
    border: 1px solid rgba(0,229,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.edu-degree {
    font-weight: 500;
    font-size: 0.92rem;
    line-height: 1.3;
}

.edu-school {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 300;
    margin-top: 2px;
}

.edu-year {
    margin-left: auto;
    font-size: 0.82rem;
    color: var(--dim);
    flex-shrink: 0;
    font-weight: 400;
}

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
}

.skill-item {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px 8px;
    text-align: center;
    transition: var(--t);
    cursor: default;
}

.skill-item:hover {
    border-color: rgba(155,109,255,0.25);
    background: var(--glass-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(155,109,255,0.12);
}

.skill-icon {
    font-size: 1.75rem;
    margin-bottom: 8px;
    display: block;
    color: var(--accent);
}

.skill-name {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* ── Work ────────────────────────────────────────────────────────── */
#work { padding: var(--pad-section) 0; }

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 44px;
}

.filter-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 400;
    padding: 8px 20px;
    transition: var(--t);
    letter-spacing: 0.02em;
}

.filter-btn:hover {
    border-color: rgba(155,109,255,0.25);
    color: var(--text-2);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 16px rgba(155,109,255,0.3);
}

.filter-btn.featured-tab {
    border-color: rgba(245,200,66,0.25);
    color: var(--gold);
}

.filter-btn.featured-tab.active {
    background: var(--gradient-gold);
    border-color: transparent;
    color: #000;
    box-shadow: 0 0 16px rgba(245,200,66,0.25);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}

.work-item {
    border-radius: var(--r-xl);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--bg-3);
    border: 1px solid var(--border);
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
    cursor: pointer;
}

.work-item.hidden { display: none; }

.work-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.work-item:hover .work-img { transform: scale(1.06); }

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.5) 45%, transparent 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s var(--ease);
}

.work-item:hover .work-overlay {
    opacity: 1;
    transform: translateY(0);
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dim);
    font-size: 3rem;
}

.work-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.work-tag {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 0.73rem;
    color: rgba(255,255,255,0.75);
    font-weight: 400;
}

.work-links {
    display: flex;
    gap: 8px;
}

.work-link {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 7px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 14px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.work-link:hover { background: rgba(255,255,255,0.22); }

/* ── Teaching ────────────────────────────────────────────────────── */
#teaching { padding: var(--pad-section) 0; }

.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.course-card {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    box-shadow: var(--glass-top);
    border-radius: var(--r-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.35s;
}

.course-card:hover {
    background: var(--glass-hover);
    border-color: var(--border-h);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow), var(--glass-top);
}

.course-card.hidden { display: none; }

.course-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.course-level {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    flex-shrink: 0;
}

.level-beginner     { background: rgba(0,229,100,0.1);  color: #00e564; border: 1px solid rgba(0,229,100,0.18); }
.level-intermediate { background: rgba(255,170,0,0.1);  color: #ffaa00; border: 1px solid rgba(255,170,0,0.18); }
.level-advanced     { background: rgba(255,80,80,0.1);  color: #ff7070; border: 1px solid rgba(255,80,80,0.18); }

.course-category {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.03em;
}

.course-title {
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--text);
}

.course-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.topic-chip {
    background: rgba(155,109,255,0.07);
    border: 1px solid rgba(155,109,255,0.13);
    border-radius: 5px;
    padding: 3px 10px;
    font-size: 0.76rem;
    font-weight: 400;
    color: var(--accent);
    transition: background 0.2s, color 0.2s;
}

.subtopic-chip {
    background: rgba(0,229,255,0.07);
    border: 1px solid rgba(0,229,255,0.15);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 400;
    color: #00e5ff;
    transition: background 0.2s, color 0.2s;
}

.course-meta {
    display: flex;
    gap: 18px;
    font-size: 0.83rem;
    color: var(--muted);
    font-weight: 300;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-meta i { color: var(--accent); font-size: 0.82rem; }

.btn-apply {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(155,109,255,0.25);
    border-radius: var(--r);
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 0.87rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 12px 20px;
    transition: var(--t);
}

.btn-apply:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155,109,255,0.3);
}

/* ── Contact ─────────────────────────────────────────────────────── */
#contact { padding: var(--pad-section) 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-2);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: var(--t);
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    border-color: var(--border-h);
    background: var(--glass-hover);
    transform: translateX(4px);
}

.contact-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(155,109,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.contact-item-label {
    font-size: 0.72rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.contact-item-value {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-2);
    margin-top: 1px;
}

.contact-socials { display: flex; gap: 10px; }

/* Contact Form */
.contact-form-wrap {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    box-shadow: var(--glass-top);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--r-xl);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.form-control:focus {
    border-color: var(--accent);
    background: var(--surface);
}

textarea.form-control { resize: vertical; min-height: 120px; }
.form-control::placeholder { color: var(--dim); font-weight: 300; }

.honeypot { display: none; }

.form-status {
    padding: 12px 16px;
    border-radius: var(--r);
    font-size: 0.88rem;
    margin-bottom: 14px;
    display: none;
    font-weight: 400;
}

.form-status.success {
    background: rgba(0,229,100,0.08);
    border: 1px solid rgba(0,229,100,0.18);
    color: #00e564;
}

.form-status.error {
    background: rgba(255,80,80,0.08);
    border: 1px solid rgba(255,80,80,0.18);
    color: #ff7070;
}

.btn-send {
    width: 100%;
    background: var(--gradient);
    border: none;
    border-radius: var(--r);
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 15px;
    transition: var(--t);
    margin-top: 4px;
}

.btn-send:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(155,109,255,0.35); }
.btn-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-copy {
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--dim);
}

.footer-socials { display: flex; gap: 10px; }

/* ── Back to Top ─────────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 22px;
    width: 42px;
    height: 42px;
    border-radius: var(--r);
    background: var(--glass-bg);
    border: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: var(--t);
    z-index: 700;
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(155,109,255,0.4);
}

/* ── Mobile Menu ─────────────────────────────────────────────────── */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6,6,6,0.97);
    backdrop-filter: blur(12px);
    z-index: 750;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--muted);
    transition: color 0.2s;
}

.mobile-menu a:hover {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.mobile-menu-close:hover { opacity: 1; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .service-card.featured { grid-column: span 1; }
}

@media (max-width: 1024px) {
    .hero-badge, .hero-cta, .hero-socials { justify-content: center; }
    .hero-stats { width: 100%; justify-content: center; }
    .hero-bio { margin: 0 auto 40px; }

    .about-grid { grid-template-columns: 1fr; }
    .about-photo-wrap { position: static; max-width: 380px; margin: 0 auto; }

    .contact-grid { grid-template-columns: 1fr; }

    .course-detail-grid { grid-template-columns: 1fr 1fr; }
    .site-modal-header, .site-modal-body, .course-modal-footer, .project-modal-links { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 768px) {
    :root { --pad-section: 70px; }

    body { cursor: auto; }
    .cursor-dot, .cursor-cube { display: none; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .side-nav { display: none; }

    .hero-stats {
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
    }

    .stat-item { padding: 0 16px; }

    .form-row { grid-template-columns: 1fr; }
    .footer-inner { justify-content: center; text-align: center; }

    .contact-form-wrap { padding: 24px; }
}

@media (max-width: 768px) {
    .igaming-grid { grid-template-columns: 1fr; }
    .webdev-grid  { grid-template-columns: 1fr; }
    .photo-carousel-strip::before,
    .photo-carousel-strip::after { width: 60px; }
}

@media (max-width: 480px) {
    :root { --pad-section: 52px; }

    .hero-name { font-size: 2.4rem; letter-spacing: -0.02em; }
    .hero-stats { gap: 0; flex-wrap: wrap; justify-content: center; padding: 14px 16px; }
    .hero-stats .stat-item { min-width: 80px; padding: 8px 14px; }
    .stat-item + .stat-item::before { display: none; }
    .hero-cta { flex-direction: column; align-items: center; }

    .project-img-grid { grid-template-columns: 1fr; }
    .project-img-grid img:first-child:nth-last-child(odd):last-child { grid-column: span 1; aspect-ratio: 4/3; }
    .course-detail-grid { grid-template-columns: 1fr; }
    .site-modal-overlay { padding: 12px 10px; }

    .services-grid,
    .work-grid,
    .teaching-grid,
    .igaming-grid,
    .webdev-grid { grid-template-columns: 1fr; }

    .photo-carousel-strip::before,
    .photo-carousel-strip::after { width: 40px; }
}

/* ── Performance: disable backdrop-filter on mobile (all themes) ──── */
@media (max-width: 768px) {
    .glass,
    .contact-form-wrap,
    .webdev-item,
    .hero-stats,
    .theme-toggle,
    header.scrolled,
    .mobile-menu,
    .service-card,
    .work-item,
    .course-card,
    .igaming-item,
    .timeline-item,
    .edu-item,
    .site-modal,
    .filter-btn,
    .social-link,
    .back-to-top,
    [data-theme="light"] header,
    [data-theme="light"] .mobile-menu,
    [data-theme="light"] .hero-stats,
    [data-theme="light"] .service-card,
    [data-theme="light"] .work-item,
    [data-theme="light"] .course-card,
    [data-theme="light"] .igaming-item,
    [data-theme="light"] .webdev-item,
    [data-theme="light"] .timeline-item,
    [data-theme="light"] .edu-item,
    [data-theme="light"] .site-modal,
    [data-theme="light"] .filter-btn,
    [data-theme="light"] .social-link,
    [data-theme="light"] .back-to-top {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ── Accessibility: respect reduced-motion preference ──────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .marquee-track,
    .photo-carousel-track {
        animation: none;
    }
    .hero-blob {
        animation: none;
    }
    .cursor-cube {
        display: none;
    }
}
