/* ===== CSS Variables -DARK RED THEME (Default) ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0d0d14;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #e8e8ec;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --border-color: rgba(255, 255, 255, 0.06);
    --accent: #e11d2e;
    --accent-rgb: 225, 29, 46;
    --accent-dark: #1e0a0a;
    --accent-glow: rgba(225, 29, 46, 0.55);
    --accent-glow-soft: rgba(225, 29, 46, 0.15);
    --accent-glow-strong: rgba(225, 29, 46, 0.65);
    --gradient-accent: linear-gradient(135deg, #7a0010, #e11d2e);
}

[data-theme="blue"] {
    --accent: #1a3a8b;
    --accent-dark: #0a0a1e;
    --accent-glow: rgba(26, 58, 139, 0.5);
    --accent-glow-soft: rgba(26, 58, 139, 0.15);
    --accent-glow-strong: rgba(26, 58, 139, 0.6);
    --gradient-accent: linear-gradient(135deg, #0f2573, #1a3a8b);
}

[data-mode="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #eaeaef;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #7a7a9a;
    --border-color: rgba(0, 0, 0, 0.08);
}

[data-mode="light"][data-theme="red"] {
    --accent: #e11d2e;
    --accent-dark: #fde8ea;
    --accent-glow: rgba(225, 29, 46, 0.25);
    --accent-glow-soft: rgba(225, 29, 46, 0.1);
    --accent-glow-strong: rgba(225, 29, 46, 0.4);
    --gradient-accent: linear-gradient(135deg, #7a0010, #e11d2e);
}

[data-mode="light"][data-theme="blue"] {
    --accent: #1a3a8b;
    --accent-dark: #e6eaf7;
    --accent-glow: rgba(26, 58, 139, 0.25);
    --accent-glow-soft: rgba(26, 58, 139, 0.1);
    --accent-glow-strong: rgba(26, 58, 139, 0.4);
    --gradient-accent: linear-gradient(135deg, #0f2573, #1a3a8b);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-primary);
}

body {
    font-family: 'Rajdhani', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s, color 0.4s;
}

/* Fixed gradient layer — composited, painted once, NO repaint on scroll (perf) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(42% 36% at 10% 4%, rgba(225, 29, 46, 0.08), transparent 60%),
        radial-gradient(38% 32% at 90% 8%, rgba(120, 60, 180, 0.06), transparent 60%),
        radial-gradient(44% 40% at 84% 90%, rgba(40, 120, 200, 0.05), transparent 60%),
        radial-gradient(40% 38% at 16% 94%, rgba(225, 29, 46, 0.05), transparent 60%);
}

[data-mode="light"] body::before {
    background:
        radial-gradient(42% 36% at 10% 4%, rgba(225, 29, 46, 0.06), transparent 60%),
        radial-gradient(38% 32% at 90% 8%, rgba(120, 60, 180, 0.04), transparent 60%),
        radial-gradient(44% 40% at 84% 90%, rgba(40, 120, 200, 0.04), transparent 60%),
        radial-gradient(40% 38% at 16% 94%, rgba(225, 29, 46, 0.04), transparent 60%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent);
}

/* ===== Page Loader ===== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: radial-gradient(ellipse at center, #14141c 0%, #0a0a0f 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 0 24px;
    animation: loaderFadeIn 0.5s ease;
}

.loader-brand {
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 1px;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 0 40px rgba(225, 29, 46, 0.3);
    animation: loaderPulse 1.8s ease-in-out infinite;
}

.loader-brand span {
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.loader-tagline-wrap {
    margin-top: 22px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 22px;
    opacity: 0;
    animation: loaderFadeUp 0.5s ease 0.2s forwards;
    flex-wrap: nowrap;
}

.loader-tagline-text {
    font-family: 'Rajdhani', 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #8888a0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.loader-tagline-text .ltr {
    display: inline-block;
    transform-origin: center bottom;
    animation: loaderLetterWave 1.4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

.loader-percent {
    font-family: 'Rajdhani', 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    min-width: 42px;
    text-align: left;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px var(--accent-glow);
}

.loader-bar {
    width: 100%;
    max-width: 280px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.loader-bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7a0010 0%, var(--accent) 50%, #ff4d6d 100%);
    border-radius: 999px;
    box-shadow: 0 0 14px var(--accent-glow), 0 0 4px var(--accent);
    transition: width 0.18s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
}

.loader-bar-fill::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
    animation: loaderBarShine 1.2s ease-in-out infinite;
}

@keyframes loaderFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loaderFadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loaderPulse {
    0%, 100% {
        text-shadow: 0 0 40px rgba(225, 29, 46, 0.3);
    }
    50% {
        text-shadow: 0 0 60px rgba(225, 29, 46, 0.6);
    }
}

@keyframes loaderLetterWave {
    0%, 100% {
        transform: translateY(0) scale(1);
        color: #6a6a80;
        text-shadow: none;
    }
    35% {
        transform: translateY(-6px) scale(1.08);
        color: var(--accent);
        text-shadow: 0 0 14px var(--accent-glow);
    }
    70% {
        transform: translateY(0) scale(1);
        color: #6a6a80;
        text-shadow: none;
    }
}

@keyframes loaderBarShine {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(0%); opacity: 0; }
}

@media (max-width: 480px) {
    .loader-brand {
        font-size: clamp(48px, 14vw, 72px);
        letter-spacing: -2px;
    }
    .loader-tagline-wrap {
        gap: 14px;
    }
    .loader-tagline-text {
        font-size: 11px;
        letter-spacing: 4px;
    }
    .loader-percent {
        font-size: 11px;
        min-width: 36px;
    }
    .loader-bar {
        max-width: 200px;
    }
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #c0392b, #ff6b6b, #c0392b);
    z-index: 9999;
    transition: width 0.08s linear;
}

[data-theme="blue"] .scroll-progress {
    background: linear-gradient(90deg, #1a3a8b, #6b8bff);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 14px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(30px) saturate(1.3);
    -webkit-backdrop-filter: blur(30px) saturate(1.3);
    border-bottom: 1px solid rgba(192, 57, 43, 0.25);
    padding: 10px 0;
}

[data-mode="light"] .navbar.scrolled {
    background: rgba(245, 245, 247, 0.92);
}

[data-theme="blue"] .navbar.scrolled {
    border-bottom-color: rgba(26, 58, 139, 0.2);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.nav-links {
    justify-self: center;
}

.nav-logo {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-logo .accent {
    text-shadow: 0 0 12px var(--accent-glow);
}

/* Circular avatar logo */
.nav-logo-circle {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.nav-logo-ring {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 2px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: conic-gradient(from 220deg, var(--accent), #ff7a90, var(--accent), #7a0010, var(--accent));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 6px 18px var(--accent-glow-soft);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
    position: relative;
}

.nav-logo-ring::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--accent-glow), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: logoSpin 4s linear infinite;
    z-index: -1;
}

.nav-logo-circle:hover .nav-logo-ring {
    transform: rotate(-6deg) scale(1.06);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 8px 26px var(--accent-glow);
}

.nav-logo-circle:hover .nav-logo-ring::after { opacity: 1; }

@keyframes logoSpin { to { transform: rotate(360deg); } }

.nav-logo-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 18%;
    background: var(--bg-secondary);
}

/* Fallback when image is missing: show "M" monogram */
.nav-logo-ring.nav-logo-fallback {
    background: var(--gradient-accent);
}
.nav-logo-ring.nav-logo-fallback::before {
    content: "M";
    font-family: 'Rajdhani', sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: #fff;
}

.nav-logo-word {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
    .nav-logo-ring::after { animation: none; }
}

@media (max-width: 600px) {
    .nav-logo-word { display: none; }
    .nav-logo-ring { width: 38px; height: 38px; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
    letter-spacing: 0.2px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== Theme Switcher ===== */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
}

.theme-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    outline: none;
}

.theme-dot-red { background: #c0392b; }
.theme-dot-blue { background: #1a3a8b; }

.theme-dot.active {
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    transform: scale(1.15);
}

.theme-dot:hover:not(.active) {
    transform: scale(1.1);
    opacity: 0.8;
}

/* ===== Mode Toggle ===== */
.mode-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.mode-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow-soft);
}

/* ===== Hamburger ===== */
.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; }
.nav-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 34px var(--accent-glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow-soft);
}

.btn-service {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 25px;
    padding: 10px 28px;
    font-size: 14px;
    margin-top: auto;
}

.btn-service:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-sm { padding: 10px 22px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

.btn-mailto {
    margin-top: 8px;
    font-size: 14px;
    padding: 10px 24px;
}

/* ===== Glass Card ===== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    /* backdrop-filter removed for scroll performance — bg opacity compensates.
       Re-enabled only on hover where it's a single element at a time. */
    transition: all 0.4s;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(192, 57, 43, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow-soft);
}

[data-theme="blue"] .glass-card:hover {
    border-color: rgba(26, 58, 139, 0.2);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    /* iOS/Android count the collapsing URL bar inside 100vh, which pushes the
       hero CTA below the fold on first paint. dvh tracks the real viewport. */
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow-soft) 0%, transparent 70%);
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

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

.hero-photo {
    margin-bottom: 28px;
    position: relative;
    display: inline-block;
}

/* Particle Canvas -full-page background */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.photo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: none;
    background: conic-gradient(from 0deg, var(--accent), transparent 40%, var(--accent) 50%, transparent 90%, var(--accent));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    animation: spinRing 4s linear infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

@keyframes spinRing {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

.photo-wrapper {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-accent);
    box-shadow: 0 0 40px rgba(192, 57, 43, 0.8), 0 0 80px rgba(192, 57, 43, 0.3), 0 0 120px rgba(192, 57, 43, 0.1);
    animation: float 4s ease-in-out infinite, photoGlow 3s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}

[data-theme="blue"] .photo-wrapper {
    box-shadow: 0 0 40px rgba(26, 58, 139, 0.8), 0 0 80px rgba(26, 58, 139, 0.3), 0 0 120px rgba(26, 58, 139, 0.1);
}

@keyframes photoGlow {
    0% { box-shadow: 0 0 40px rgba(192, 57, 43, 0.8), 0 0 80px rgba(192, 57, 43, 0.3), 0 0 120px rgba(192, 57, 43, 0.1); }
    100% { box-shadow: 0 0 50px rgba(192, 57, 43, 1), 0 0 100px rgba(192, 57, 43, 0.5), 0 0 140px rgba(192, 57, 43, 0.15); }
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 4px solid #c0392b;
}

[data-theme="blue"] .photo-wrapper img {
    border-color: #1a3a8b;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 4px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--accent);
}

/* Hero Entrance Animations */
.hero-anim {
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeUp 0.7s ease forwards;
    animation-delay: var(--delay, 0s);
}

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

.hero-greeting {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-name {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: clamp(34px, 6.5vw, 62px);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(225, 29, 46, 0.25);
}

.hero-name .name-first {
    color: #f4f4f8;
}

.hero-name .name-last {
    color: var(--accent);
    text-shadow: 0 0 40px rgba(225, 29, 46, 0.5), 0 0 20px rgba(225, 29, 46, 0.4);
}

/* Char-by-char hero name reveal */
.hero-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px) scale(0.92);
    animation: heroCharIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--ch-delay, 0ms);
    transform-origin: center 70%;
    will-change: opacity, transform;
    color: inherit;
}

@keyframes heroCharIn {
    0% { opacity: 0; transform: translateY(34px) scale(0.9); filter: blur(12px); }
    55% { opacity: 1; transform: translateY(-4px) scale(1.03); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-char { animation: none; opacity: 1; transform: none; filter: none; }
}

.hero-title-wrapper {
    height: 32px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 18px;
    color: var(--accent);
    font-weight: 500;
}

.typing-cursor {
    color: var(--accent);
    font-weight: 300;
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

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

.name-cursor {
    color: var(--accent);
    font-weight: 300;
    animation: blink 0.6s infinite;
    margin-left: 1px;
}

.hero-available {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2ecc71;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.hero-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Trust Bar (social proof) */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.trust-num {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: -1px;
    display: inline-flex;
    align-items: baseline;
}

.trust-plus {
    color: var(--accent);
    font-size: 22px;
    margin-left: 1px;
}

.trust-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.trust-divider {
    width: 1px;
    height: 38px;
    background: var(--border-color);
    flex-shrink: 0;
}

[data-mode="light"] .hero-trust {
    background: rgba(0, 0, 0, 0.02);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== RTL / Arabic Support ===== */
html.is-rtl body,
html[dir="rtl"] {
    direction: rtl;
}

html.is-rtl body,
html.is-rtl .nav-links a,
html.is-rtl .section-title,
html.is-rtl .section-subtitle,
html.is-rtl .about-text,
html.is-rtl .about-do-text h4,
html.is-rtl .about-do-text p,
html.is-rtl .tp-lab,
html.is-rtl .section-tag,
html.is-rtl .hero-greeting,
html.is-rtl .trust-label,
html.is-rtl .stat-label,
html.is-rtl .timeline-label,
html.is-rtl .partner-name,
html.is-rtl .partner-title,
html.is-rtl .partner-bio {
    font-family: 'Cairo', 'Rajdhani', 'Inter', sans-serif;
}

/* Keep brand name + logo in Latin font AND force LTR so letters don't reverse */
html.is-rtl .nav-logo,
html.is-rtl .hero-name,
html.is-rtl #heroNameText,
html.is-rtl .hero-title-wrapper,
html.is-rtl .loader-brand {
    font-family: 'Rajdhani', sans-serif;
    direction: ltr;
    unicode-bidi: isolate;
}

/* Hero block stays centered in RTL */
html.is-rtl .hero-content { direction: ltr; }
html.is-rtl .hero-greeting,
html.is-rtl .hero-location { direction: rtl; }

/* Cinema sections: in RTL the row reads right-to-left, but our JS drives LTR translate.
   Force the row to stay LTR so the scroll math stays correct. */
html.is-rtl .cinema-row,
html.is-rtl .social-grid,
html.is-rtl .hero-trust {
    direction: ltr;
}

/* Cinema intro text aligns right in RTL */
html.is-rtl .cinema-intro .section-tag { margin-left: auto; margin-right: 0; }
html.is-rtl .cinema-intro .section-title,
html.is-rtl .cinema-intro .section-subtitle { text-align: right !important; }

html.is-rtl .about-lead,
html.is-rtl .about-text p { text-align: right; }

/* Nav links spacing fine in RTL via flexbox auto */
html.is-rtl .nav-container { direction: rtl; }

/* ===== FX Level: Low disables heavy decorative animations for performance ===== */
[data-fx="low"] .section-title em { animation: none; }
[data-fx="low"] .hero-bg-glow,
[data-fx="low"] .photo-glow,
[data-fx="low"] .loader-brand { animation: none !important; }
[data-fx="low"] .scroll-indicator { display: none; }

/* ===== Theme / Accent Picker ===== */
.theme-picker-wrap {
    position: relative;
}

.theme-picker-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.theme-picker-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--accent-glow-soft);
}

.theme-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    padding: 18px;
    background: rgba(12, 12, 18, 0.97);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    z-index: 1000;
}

.theme-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.theme-panel-title {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent);
}

.theme-panel-x {
    background: none;
    border: 0;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 0;
}
.theme-panel-x:hover { color: var(--text-primary); transform: rotate(90deg); }

.tp-row { margin-bottom: 16px; }

.tp-lab {
    display: block;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 9px;
}

.tp-seg {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
}

.tp-seg button {
    flex: 1;
    padding: 8px 6px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tp-seg button:hover { color: var(--text-primary); }

.tp-seg button.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-glow-soft);
}

.tp-reset {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tp-reset:hover { color: var(--text-primary); border-color: var(--accent); }

[data-mode="light"] .theme-panel {
    background: rgba(255, 255, 255, 0.97);
}

.theme-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.theme-panel-head {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.theme-swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.theme-sw {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-sw:hover {
    transform: scale(1.12);
}

.theme-sw.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3), 0 0 14px currentColor;
}

.theme-sw.active::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.theme-panel-mode {
    width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px !important;
    cursor: pointer;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.theme-panel-mode:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.theme-panel-mode-label {
    font-size: 12px;
}

@media (max-width: 600px) {
    .theme-panel {
        right: -40px;
    }
}

/* ===== Live Pill + Preview Popover ===== */
.nav-live-wrap {
    position: relative;
}

.nav-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px 6px 11px;
    border-radius: 999px;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.25s ease;
    line-height: 1;
    text-transform: uppercase;
    /* default: OFFLINE (muted) */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.nav-live .live-dot {
    background: var(--text-muted);
    box-shadow: none;
    animation: none;
}

.nav-live .live-label { color: var(--text-muted); }

/* LIVE state (green, pulsing) */
.nav-live[data-live="true"] {
    background: rgba(83, 252, 24, 0.1);
    border-color: rgba(83, 252, 24, 0.4);
    color: #53fc18;
}

.nav-live[data-live="true"] .live-label { color: #53fc18; }

.nav-live[data-live="true"] .live-dot {
    background: #53fc18;
    box-shadow: 0 0 8px #53fc18;
    animation: livePulse 1.6s ease-in-out infinite;
}

.nav-live[data-live="true"]:hover {
    background: rgba(83, 252, 24, 0.18);
    border-color: rgba(83, 252, 24, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(83, 252, 24, 0.25);
}

.nav-live:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Preview popover (shows on hover) */
.live-preview {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: rgba(12, 12, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16,1,0.3,1), visibility 0.25s;
    z-index: 1000;
}

.nav-live-wrap:hover .live-preview,
.live-preview.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.live-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-color);
}

.live-preview-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.live-preview-status .live-dot { background: var(--text-muted); width: 7px; height: 7px; }

.live-preview-status[data-live="true"] { color: #53fc18; }
.live-preview-status[data-live="true"] .live-dot {
    background: #53fc18; box-shadow: 0 0 8px #53fc18;
    animation: livePulse 1.6s ease-in-out infinite;
}

.live-preview-handle {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.live-preview-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #14141c, #0a0a12);
    overflow: hidden;
}

.live-preview-stage iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.live-preview-offline {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: var(--text-muted);
    padding: 16px;
}

.live-preview-offline svg { color: #53fc18; opacity: 0.5; }
.live-preview-offline span { font-weight: 700; font-size: 13px; color: var(--text-secondary); }
.live-preview-offline small { font-size: 11px; color: var(--text-muted); max-width: 200px; }

.live-preview-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #53fc18;
    color: #04140c;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.25s ease;
}

.live-preview-cta:hover { background: #45e012; }

@media (max-width: 1024px) {
    .nav-live .live-label { display: none; }
    .nav-live { padding: 6px 9px; }
}

@media (max-width: 600px) {
    .nav-live-wrap { display: none; }
}

/* ===== Tilt Hover Effect (cards NOT in horizontal decks) ===== */
.service-card,
.social-card:not(.social-card-featured) {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --tilt-scale: 1;
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(var(--tilt-scale));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .social-card:not(.social-card-featured) {
        transform: none;
    }
}

/* ===== Horizontal Decks: 3D Coverflow Cards ===== */
.websites-grid,
.projects-grid,
.gfx-grid {
    perspective: 1600px;
    transform-style: preserve-3d;
}

.coverflow-card {
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .coverflow-card {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        transition: none !important;
    }
}

/* ===== Generic Cinema Section (Cars-demo pattern, reusable) ===== */
.cinema-section {
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 25, 0.6) 25%, rgba(15, 15, 25, 0.6) 75%, transparent 100%);
}

.cinema-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0 40px;
    perspective: 1600px;
}

.cinema-intro {
    position: relative;
    z-index: 2;
    margin-bottom: 36px;
    flex-shrink: 0;
}

.cinema-row {
    /* Override scroll-snap behavior since cinema drives X via JS */
    overflow: visible !important;
    scroll-snap-type: none !important;
    padding: 0 30vw !important;
    margin: 0 !important;
    contain: none !important;
    perspective: none !important;
    will-change: transform;
    transform-style: preserve-3d;
    display: flex !important;
    align-items: center;
    gap: 0 !important;
}

.cinema-row > * {
    flex-shrink: 0;
    backface-visibility: hidden;
    transform-origin: center center;
    transition: opacity 0.25s ease, box-shadow 0.3s ease;
    /* Overlap so cards stack like a deck (center card sits on top via z-index from JS) */
    margin-inline-start: -70px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 18px;
}

.cinema-row > *:first-child {
    margin-inline-start: 0;
}

/* Uniform big card widths inside cinema rows */
.cinema-row > .project-card {
    width: 560px;
    max-width: 82vw;
}

.cinema-row > .partner-card {
    width: 420px;
    max-width: 82vw;
    position: static !important;
    align-self: stretch;
}

.cinema-row > .website-card:not(.website-card-featured) {
    width: 600px !important;
    flex: 0 0 600px !important;
    max-width: 82vw;
}

.cinema-row > .website-card.website-card-featured {
    width: min(960px, 82vw) !important;
    flex: 0 0 min(960px, 82vw) !important;
}

.cinema-row > .project-card {
    flex: 0 0 560px !important;
}

.cinema-row::-webkit-scrollbar { display: none; }
.cinema-row { -ms-overflow-style: none; scrollbar-width: none; }

.cinema-progress {
    margin: 24px auto 0;
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.cinema-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #ff4d6d);
    border-radius: 999px;
    box-shadow: 0 0 12px var(--accent-glow);
    transition: width 0.08s linear;
}

/* Mobile cinema: fallback to native horizontal scroll */
@media (max-width: 900px) {
    .cinema-section {
        height: auto;
        padding: 60px 0 40px;
    }
    .cinema-inner {
        position: relative;
        top: auto;
        height: auto;
        padding: 0;
        perspective: none;
    }
    .cinema-row {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        padding: 16px 24px 24px !important;
        scroll-padding-inline: 24px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        transform: none !important;
        gap: 14px !important;
        align-items: stretch !important;
    }
    /* No card overlap on mobile — clean side-by-side swipe */
    .cinema-row > * {
        margin-inline-start: 0 !important;
        scroll-snap-align: center;
        transform: none !important;
        opacity: 1 !important;
    }
    .cinema-row > .website-card:not(.website-card-featured),
    .cinema-row > .website-card.website-card-featured,
    .cinema-row > .project-card,
    .cinema-row > .partner-card {
        width: 84vw !important;
        max-width: 360px !important;
        flex: 0 0 84vw !important;
    }
    .cinema-progress { display: none; }
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section + .section,
.section + .footer {
    border-top: 1px solid var(--border-color);
}

.section-alt {
    background: linear-gradient(180deg,
        rgba(20, 20, 28, 0.4) 0%,
        rgba(10, 10, 15, 0.6) 100%);
    backdrop-filter: blur(4px);
}

[data-mode="light"] .section-alt {
    background: linear-gradient(180deg,
        rgba(245, 245, 247, 0.6) 0%,
        rgba(234, 234, 239, 0.4) 100%);
}

@media (max-width: 768px) {
    .section { padding: 72px 0; }
}

.section-tag {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    gap: 12px;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    text-shadow: 0 0 16px var(--accent-glow-soft);
}

.section-tag::before,
.section-tag::after {
    content: "";
    width: 32px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    flex-shrink: 0;
}

.section-title {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -1.5px;
    line-height: 1.05;
    text-wrap: balance;
}

.section-title em {
    font-style: normal;
    background: linear-gradient(100deg, var(--accent) 0%, #ff7a90 35%, var(--accent) 70%, #ff7a90 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: titleShimmer 4s linear infinite;
}

@keyframes titleShimmer {
    to { background-position: 220% center; }
}

@media (prefers-reduced-motion: reduce) {
    .section-title em { animation: none; }
}

/* Cinema-intro: left-align the tag to match left-aligned title/subtitle */
.cinema-intro .section-tag {
    margin-left: 0;
    margin-right: auto;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-top: -35px;
    margin-bottom: 40px;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 40px;
    align-items: start;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text {
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.decorative-quote {
    position: absolute;
    top: -10px;
    left: 16px;
    font-size: 120px;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    color: var(--accent);
    opacity: 0.12;
    line-height: 1;
    pointer-events: none;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.about-text p:first-of-type {
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 500;
}

.about-lead {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.4px;
    margin-bottom: 18px !important;
}

.about-lead em {
    font-style: normal;
    color: var(--accent);
}

/* What I Do grid */
.about-do-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.about-do {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, background 0.3s ease;
}

.about-do:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent-rgb, 225,29,46), 0.4);
    background: rgba(var(--accent-rgb, 225,29,46), 0.04);
}

.about-do-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb, 225,29,46), 0.1);
    border: 1px solid rgba(var(--accent-rgb, 225,29,46), 0.22);
    color: var(--accent);
}

.about-do-text h4 {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
    line-height: 1.2;
}

.about-do-text p {
    font-size: 11.5px !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
}

@media (max-width: 600px) {
    .about-do-grid { grid-template-columns: 1fr; }
}

/* Skill Bars */
.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.skill-bar-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: var(--gradient-accent);
    transition: width 1.2s ease-out;
}

.skill-bar-fill.animate {
    width: var(--target-width);
}

/* About Right */
.about-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    padding: 24px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent-glow-soft) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

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

.stat-icon {
    color: var(--accent);
    margin: 0 auto 8px;
    display: block;
}

.stat-number {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    display: inline;
    position: relative;
    z-index: 1;
}

.stat-plus {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* Available Pill */
.available-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2ecc71;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
    align-self: center;
    animation: pulse-pill 2s infinite;
}

@keyframes pulse-pill {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
}

/* Timeline */
.about-timeline {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 16px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 0;
}

.timeline-year {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.timeline-label {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    text-align: center;
}

.timeline-divider {
    flex: 1;
    min-width: 20px;
    height: 1px;
    background: var(--border-color);
    margin: 0 8px;
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.service-card {
    padding: 40px 28px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent), transparent 50%, var(--accent) 100%);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(225, 29, 46, 0.12), transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(225, 29, 46, 0.4);
    box-shadow: 0 0 0 1px rgba(225, 29, 46, 0.15), 0 24px 60px -20px rgba(225, 29, 46, 0.4), 0 12px 40px rgba(0, 0, 0, 0.4);
    background: rgba(225, 29, 46, 0.04);
}

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

[data-theme="blue"] .service-card:hover {
    background: rgba(26, 58, 139, 0.05);
}

.service-number {
    position: absolute;
    top: 10px;
    right: 16px;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 80px;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.06;
    line-height: 1;
    pointer-events: none;
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-dark);
    border: 1px solid var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 4px;
}

.service-card h3 {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.service-divider {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.service-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-tags span {
    font-size: 11px;
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
}

/* ===== Tools Showcase (Skills) ===== */
.tools-showcase {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 44px;
    perspective: 1000px;
}

.tools-cat-title {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Hexagon grid layout */
.tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.tools-row .tool-card:nth-child(even) {
    margin-top: 30px;
}

.tool-card {
    width: 110px;
    height: 120px;
    perspective: 800px;
    cursor: default;
    opacity: 0;
    transform: perspective(800px) rotateX(60deg) rotateZ(var(--burst-rz, 15deg)) translateZ(-80px) scale(0.5);
    filter: blur(3px);
}

.tool-card.animate {
    animation: hexBurstIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Wave animation after entrance */
.tool-card.animate.wave {
    animation: hexBurstIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards, hexWave 3s ease-in-out infinite;
    animation-delay: var(--anim-delay, 0ms), var(--wave-delay, 0ms);
}

@keyframes hexWave {
    0%, 100% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-8px) translateZ(10px); }
}

@keyframes hexBurstIn {
    0% { opacity: 0; transform: perspective(800px) rotateX(60deg) rotateZ(var(--burst-rz, 15deg)) translateZ(-80px) scale(0.5); filter: blur(3px); }
    60% { transform: perspective(800px) rotateX(-5deg) rotateZ(0deg) translateZ(20px) scale(1.05); filter: blur(0); }
    100% { opacity: 1; transform: perspective(800px) rotateX(0) rotateZ(0) translateZ(0) scale(1); filter: blur(0); }
}

.tool-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover .tool-card-inner {
    transform: rotateY(180deg);
}

.tool-card-front,
.tool-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    /* Hexagon clip path */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: none;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 10px 14px;
    text-align: center;
    transition: box-shadow 0.3s;
}

/* Hex border glow via layered background */
.tool-card-front {
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(135deg, transparent 30%, var(--accent-glow-soft) 50%, transparent 70%) border-box;
}

.tool-card:hover .tool-card-front {
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow-soft);
    filter: brightness(1.15);
}

.tool-card-back {
    transform: rotateY(180deg);
    background: var(--gradient-accent);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.tool-card-back .tool-name {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

/* Glow behind skill icons */
.tool-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 18px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.tool-card:hover .tool-icon::after {
    opacity: 1;
}

.tool-icon img,
.tool-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

.tool-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.2;
}

[data-mode="light"] .tool-icon {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-mode="light"] .tool-card-front,
[data-mode="light"] .tool-card-back {
    background: var(--bg-card);
}

/* ===== Projects ===== */
.projects-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 22px;
    padding: 24px 6px 28px;
    margin: 0;
    scroll-padding-inline: 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.04);
    -webkit-overflow-scrolling: touch;
    perspective: 1200px;
    contain: layout paint;
}

.projects-grid::-webkit-scrollbar {
    height: 6px;
}

.projects-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    margin: 0 24px;
}

.projects-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent), #ff4d6d);
    border-radius: 999px;
}

.projects-grid > .project-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .projects-grid {
        gap: 16px;
        padding: 24px 6px 28px;
    }
    .projects-grid > .project-card {
        flex: 0 0 300px;
    }
}

.project-card {
    overflow: visible;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    transform-style: preserve-3d;
}

/* Neon border trace via pseudo-element */
.project-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: conic-gradient(from var(--neon-angle, 0deg), transparent 0%, var(--accent) 10%, transparent 20%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
    animation: neonTrace 2s linear infinite;
}

@keyframes neonTrace {
    to { --neon-angle: 360deg; }
}

@property --neon-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Hover: scale + glow */
.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px var(--accent-glow), 0 16px 48px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.project-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    border-radius: 16px 16px 0 0;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.2) 0%, rgba(10, 10, 15, 0.92) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 24px 16px;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-overlay .overlay-title {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    transform: translateY(12px) translateZ(30px);
    opacity: 0;
    transition: transform 0.4s 0.08s, opacity 0.4s 0.08s;
}

.project-overlay .btn {
    transform: translateY(12px) translateZ(20px);
    opacity: 0;
    transition: transform 0.4s 0.15s, opacity 0.4s 0.15s, background 0.3s, box-shadow 0.3s;
}

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

.project-card:hover .project-overlay .overlay-title,
.project-card:hover .project-overlay .btn {
    transform: translateY(0) translateZ(0);
    opacity: 1;
}

.project-info {
    padding: 16px 20px;
}

.project-info h3 {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-badge {
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-video {
    background: rgba(192, 57, 43, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(192, 57, 43, 0.3);
}

.cat-gfx {
    background: rgba(124, 58, 237, 0.15);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.project-tools {
    display: flex;
    gap: 6px;
}

.project-tools span {
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Websites Section ===== */
.websites-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 22px;
    padding: 24px 6px 28px;
    margin: 0;
    scroll-padding-inline: 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.04);
    -webkit-overflow-scrolling: touch;
    contain: layout paint;
}

.websites-grid::-webkit-scrollbar {
    height: 6px;
}

.websites-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    margin: 0 24px;
}

.websites-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent), #ff4d6d);
    border-radius: 999px;
}

.websites-grid > .website-card:not(.website-card-featured) {
    flex: 0 0 360px;
    scroll-snap-align: start;
}

.websites-grid > .website-card.website-card-featured {
    flex: 0 0 min(1040px, calc(100vw - 96px));
    width: min(1040px, calc(100vw - 96px));
    scroll-snap-align: start;
}

@media (max-width: 1100px) {
    .websites-grid > .website-card.website-card-featured {
        flex: 0 0 calc(100vw - 72px);
        width: calc(100vw - 72px);
    }
}

@media (max-width: 768px) {
    .websites-grid {
        gap: 16px;
        padding: 24px 6px 28px;
    }
    .websites-grid > .website-card:not(.website-card-featured) {
        flex: 0 0 290px;
    }
    .websites-grid > .website-card.website-card-featured {
        flex: 0 0 calc(100vw - 48px);
        width: calc(100vw - 48px);
    }
}

/* ===== Featured Website Card (Flagship) ===== */
.website-card.website-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    border: 1px solid var(--accent);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(225, 29, 46, 0.15), 0 30px 80px -30px rgba(225, 29, 46, 0.45), 0 0 60px -20px rgba(225, 29, 46, 0.35);
    background: linear-gradient(135deg, rgba(225, 29, 46, 0.04) 0%, transparent 60%), var(--bg-card);
    position: relative;
}

.website-card.website-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(225, 29, 46, 0.25), 0 40px 90px -30px rgba(225, 29, 46, 0.55), 0 0 80px -15px rgba(225, 29, 46, 0.45);
}

.website-card.website-card-featured .browser-frame {
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--border-color);
    height: 100%;
}

.website-card.website-card-featured .browser-viewport {
    aspect-ratio: auto;
    height: 100%;
    min-height: 380px;
}

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(225, 29, 46, 0.5);
    animation: featuredPulse 2.4s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes featuredPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(225, 29, 46, 0.5); }
    50% { box-shadow: 0 8px 32px rgba(225, 29, 46, 0.8), 0 0 0 6px rgba(225, 29, 46, 0.1); }
}

.featured-content {
    padding: 36px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    min-width: 0;
}

.featured-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-title {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin: 0;
    word-wrap: break-word;
}

.featured-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.featured-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 4px 0 6px;
}

.featured-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
}

.featured-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}

.featured-features li svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 3px;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.featured-tags span {
    padding: 5px 11px;
    background: rgba(225, 29, 46, 0.1);
    border: 1px solid rgba(225, 29, 46, 0.25);
    color: var(--accent);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.featured-cta {
    align-self: flex-start;
    margin-top: 10px;
    padding: 13px 24px;
    font-size: 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Tablet -single column */
@media (max-width: 900px) {
    .website-card.website-card-featured {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }
    .website-card.website-card-featured .browser-frame {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .website-card.website-card-featured .browser-viewport {
        min-height: 280px;
        aspect-ratio: 16 / 10;
    }
    .featured-content {
        padding: 26px 24px 24px;
        gap: 12px;
    }
    .featured-features {
        grid-template-columns: 1fr 1fr;
    }
}

/* Small mobile */
@media (max-width: 600px) {
    .website-card.website-card-featured {
        border-radius: 16px;
    }
    .website-card.website-card-featured .browser-viewport {
        min-height: 200px;
    }
    .featured-badge {
        top: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 10px;
        letter-spacing: 1px;
    }
    .featured-content {
        padding: 22px 18px 20px;
        gap: 11px;
    }
    .featured-subtitle {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
    .featured-desc {
        font-size: 13.5px;
    }
    .featured-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .featured-features li {
        font-size: 13px;
    }
    .featured-tags span {
        font-size: 10.5px;
        padding: 4px 9px;
    }
    .featured-cta {
        align-self: stretch;
        justify-content: center;
        padding: 13px 20px;
    }
}

/* Tiny mobile (320-360px) */
@media (max-width: 380px) {
    .featured-content {
        padding: 20px 16px 18px;
    }
    .featured-title {
        font-size: 21px;
    }
    .featured-desc {
        font-size: 13px;
        line-height: 1.55;
    }
}

.website-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

/* Hover: scale + glow */
.website-card:hover {
    transform: scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow), 0 12px 40px rgba(0, 0, 0, 0.3);
    z-index: 4;
}

.browser-frame {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Browser top bar */
.browser-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

[data-mode="light"] .browser-bar {
    background: rgba(0, 0, 0, 0.03);
}


.browser-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.browser-dots span:hover {
    transform: scale(1.3);
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(1):hover { box-shadow: 0 0 8px #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(2):hover { box-shadow: 0 0 8px #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-dots span:nth-child(3):hover { box-shadow: 0 0 8px #28c840; }

.browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Inter', monospace;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
}

.browser-url:hover {
    border-color: var(--accent);
    color: var(--accent);
}

[data-mode="light"] .browser-url {
    background: rgba(0, 0, 0, 0.03);
}

.browser-url svg {
    flex-shrink: 0;
    color: #28c840;
}

/* Viewport with screenshot image */
.browser-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-card);
}

.browser-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.site-placeholder {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, rgba(225, 29, 46, 0.18) 0%, transparent 60%), linear-gradient(135deg, #14141c 0%, #0a0a0f 100%);
    position: relative;
}

/* Mobile App Viewport Treatment */
.mobile-app-viewport {
    background: linear-gradient(135deg, #1a1a26 0%, #0a0a0f 100%);
    position: relative;
}

.mobile-app-viewport img {
    object-fit: contain;
    object-position: center;
    padding: 0;
    background: #fff;
}

/* ===== Luxury / Automotive Badge ===== */
.luxury-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px 5px 9px;
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow: 0 6px 18px rgba(212, 160, 23, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}

.luxury-badge svg { color: #fff; }

/* ===== Restaurant / Food Badge ===== */
.food-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 9px;
    background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.5);
}
.food-badge svg { color: #fff; }

/* ===== E-commerce Badge ===== */
.ecom-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 9px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.ecom-badge svg { color: #fff; }

/* ===== Tebex Shop Card ===== */
.tebex-viewport {
    background: linear-gradient(135deg, #0a1424 0%, #1a2538 100%);
    position: relative;
    overflow: hidden;
}

.tebex-image-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.tebex-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 9px;
    background: linear-gradient(135deg, #5c8aff 0%, #2563eb 100%);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    box-shadow: 0 6px 18px rgba(92, 138, 255, 0.5);
}

.tebex-badge svg {
    color: #fff;
}

/* Tebex shop mockup */
.tebex-mock {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 10px 14px 14px;
    gap: 8px;
}

.tebex-mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-top: 18px;
}

.tebex-mock-logo {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, #5c8aff, #2563eb);
    padding: 3px 9px;
    border-radius: 5px;
    letter-spacing: -0.5px;
}

.tebex-mock-nav {
    display: flex;
    gap: 8px;
}

.tebex-mock-nav span {
    width: 28px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.tebex-mock-cart {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(92, 138, 255, 0.2);
    color: #5c8aff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(92, 138, 255, 0.3);
}

.tebex-mock-hero {
    text-align: center;
    padding: 6px 0;
}

.tebex-mock-hero h4 {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    margin: 0;
    letter-spacing: -0.3px;
}

.tebex-mock-hero p {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.55);
    margin: 2px 0 0;
    font-weight: 500;
}

.tebex-mock-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.tebex-mock-product {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.tebex-mock-img {
    flex: 1;
    border-radius: 5px;
    min-height: 40px;
}

.tebex-mock-img-1 { background: linear-gradient(135deg, #5c8aff, #2563eb); }
.tebex-mock-img-2 { background: linear-gradient(135deg, #f59e0b, #dc2626); }
.tebex-mock-img-3 { background: linear-gradient(135deg, #10b981, #059669); }

.tebex-mock-line {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    width: 80%;
}

.tebex-mock-price {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: #5c8aff;
}

/* ===== Discord Featured Card Preview (left side of featured card) ===== */
.website-card.website-card-featured#discordBotsCard {
    grid-template-columns: 1.1fr 1fr;
    grid-template-rows: 520px;
    overflow: hidden;
}

.website-card.website-card-featured#discordBotsCard .featured-content {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.website-card.website-card-featured#discordBotsCard .featured-content::-webkit-scrollbar { width: 5px; }
.website-card.website-card-featured#discordBotsCard .featured-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 999px; }

.discord-preview {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2d4a 0%, #14172a 100%);
    border-right: 1px solid var(--border-color);
    isolation: isolate;
}

.discord-preview-img {
    position: absolute;
    top: 20px;
    left: 70px;
    right: 70px;
    bottom: 64px;
    width: calc(100% - 140px);
    height: calc(100% - 84px);
    object-fit: contain;
    object-position: center;
    display: block;
    transition: opacity 0.35s ease;
    cursor: zoom-in;
    border-radius: 8px;
}

.discord-preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(225, 29, 46, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(225, 29, 46, 0.35);
    color: #fff;
    cursor: pointer;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 3;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.discord-preview-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 22px rgba(225, 29, 46, 0.6);
}

.discord-preview-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.discord-preview-prev { left: 14px; }
.discord-preview-next { right: 14px; }

.discord-preview-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 6px 12px;
    background: rgba(10, 10, 20, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.4px;
}

#discordPreviewCurrent { color: var(--accent); }

.discord-preview-expand {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--accent);
    border: 0;
    color: #fff;
    border-radius: 999px;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 22px rgba(225, 29, 46, 0.45);
    appearance: none;
    -webkit-appearance: none;
}

.discord-preview-expand:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 28px rgba(225, 29, 46, 0.6);
    background: #f02d40;
}

.discord-preview-expand:active {
    transform: translateX(-50%) translateY(0);
}

/* Tablet */
@media (max-width: 900px) {
    .website-card.website-card-featured#discordBotsCard {
        grid-template-columns: 1fr;
        grid-template-rows: 360px auto;
    }
    .discord-preview {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .discord-preview-img {
        left: 60px;
        right: 60px;
        bottom: 60px;
        width: calc(100% - 120px);
        height: calc(100% - 80px);
    }
    .website-card.website-card-featured#discordBotsCard .featured-content {
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .website-card.website-card-featured#discordBotsCard {
        grid-template-rows: 280px auto;
    }
    .discord-preview-img {
        top: 16px;
        left: 50px;
        right: 50px;
        bottom: 58px;
        width: calc(100% - 100px);
        height: calc(100% - 74px);
    }
    .discord-preview-nav {
        width: 36px;
        height: 36px;
    }
    .discord-preview-prev { left: 8px; }
    .discord-preview-next { right: 8px; }
    .discord-preview-counter {
        font-size: 11px;
        padding: 5px 10px;
        top: 10px;
        right: 10px;
    }
    .discord-preview-expand {
        font-size: 11.5px;
        padding: 8px 16px;
        bottom: 12px;
    }
}

/* ===== Gallery Lightbox ===== */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 70px 110px;
    background: rgba(5, 5, 10, 0.92);
    backdrop-filter: blur(20px);
}

.gallery-lightbox.active {
    display: flex;
    animation: galleryFadeIn 0.3s ease;
}

@keyframes galleryFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
    z-index: 1;
}

.gallery-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.gallery-header {
    position: absolute;
    top: 22px;
    left: 24px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
}

.gallery-title {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}

.gallery-counter {
    padding: 5px 12px;
    background: rgba(225, 29, 46, 0.15);
    border: 1px solid rgba(225, 29, 46, 0.3);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#galleryCurrent { color: var(--accent); }
.gallery-sep { color: rgba(255, 255, 255, 0.4); margin: 0 2px; }

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.gallery-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 10px 30px rgba(225, 29, 46, 0.5);
}

.gallery-prev { left: 18px; }
.gallery-next { right: 18px; }

.gallery-stage {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-stage img {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
    object-fit: contain;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    padding: 7px 18px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(225, 29, 46, 0.3);
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.gallery-thumbs {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
    max-width: calc(100% - 40px);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.gallery-thumbs::-webkit-scrollbar { height: 6px; }
.gallery-thumbs::-webkit-scrollbar-track { background: transparent; }
.gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.gallery-thumb {
    flex: 0 0 auto;
    width: 70px;
    height: 50px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s ease;
    opacity: 0.55;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb:hover {
    opacity: 0.85;
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(225, 29, 46, 0.3), 0 0 16px rgba(225, 29, 46, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
    .gallery-lightbox { padding: 56px 12px 100px; }
    .gallery-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
    .gallery-header { top: 16px; left: 16px; gap: 10px; }
    .gallery-title { font-size: 14px; }
    .gallery-counter { font-size: 11px; padding: 4px 10px; }
    .gallery-nav { width: 42px; height: 42px; }
    .gallery-prev { left: 8px; }
    .gallery-next { right: 8px; }
    .gallery-caption { bottom: 78px; font-size: 11px; padding: 5px 14px; max-width: calc(100% - 30px); overflow: hidden; text-overflow: ellipsis; }
    .gallery-thumb { width: 56px; height: 40px; }
    .gallery-stage img { max-height: calc(100vh - 180px); }
}

/* Legacy carousel kept for backwards compatibility (hidden) */
.discord-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1d29 0%, #0a0f1c 100%);
    border-radius: 0;
}

.discord-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.discord-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: zoom-in;
    background: linear-gradient(135deg, #2a2d38 0%, #1a1d29 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.discord-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.discord-slide:hover img {
    transform: scale(1.02);
}

/* Placeholder shown when image fails to load (uses ::before/::after) */
.discord-slide:has(img[src=""]),
.discord-slide img[src=""],
.discord-slide img:not([src]) {
    background: linear-gradient(135deg, #2a2d38, #1a1d29);
}

/* Navigation buttons */
.discord-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 4;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.discord-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(225, 29, 46, 0.5);
}

.discord-prev { left: 14px; }
.discord-next { right: 14px; }

/* Counter */
.discord-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.discord-counter-sep {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 2px;
}

#discordCurrent { color: var(--accent); }

/* Caption */
.discord-caption {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(225, 29, 46, 0.25);
    color: #fff;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    max-width: calc(100% - 120px);
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* Dots */
.discord-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 4;
    padding: 6px 10px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 999px;
}

.discord-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discord-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.discord-dot.active {
    background: var(--accent);
    width: 18px;
    border-radius: 999px;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Discord-specific badge color (purple-tinted for Discord brand feel, but keep red accent for consistency) */
.featured-badge-discord {
    background: linear-gradient(135deg, #5865F2 0%, #404eed 100%) !important;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.55) !important;
}

@keyframes featuredPulseDiscord {
    0%, 100% { box-shadow: 0 8px 24px rgba(88, 101, 242, 0.55); }
    50% { box-shadow: 0 8px 32px rgba(88, 101, 242, 0.85), 0 0 0 6px rgba(88, 101, 242, 0.12); }
}

.featured-badge-discord {
    animation: featuredPulseDiscord 2.4s ease-in-out infinite !important;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .discord-nav {
        width: 38px;
        height: 38px;
    }
    .discord-prev { left: 10px; }
    .discord-next { right: 10px; }
    .discord-caption {
        bottom: 44px;
        font-size: 11px;
        padding: 5px 12px;
        max-width: calc(100% - 100px);
    }
    .discord-counter {
        font-size: 11px;
        padding: 5px 11px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 600px) {
    .discord-nav {
        width: 34px;
        height: 34px;
    }
    .discord-nav svg {
        width: 16px;
        height: 16px;
    }
    .discord-caption {
        bottom: 40px;
        font-size: 10px;
        padding: 4px 10px;
        max-width: calc(100% - 80px);
    }
    .discord-dots {
        bottom: 10px;
        padding: 5px 8px;
    }
}

/* ===== Raya Image Showcase ===== */
.raya-image {
    background: #f5f5f7;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.raya-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ===== Raya Custom Showcase (HTML/CSS Phone Mockups - legacy, kept for reference) ===== */
.raya-showcase {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8eef5 100%);
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 18px 14px 14px;
    overflow: hidden;
    position: relative;
}

.raya-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 60, 130, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 60, 130, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.raya-phones {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    flex: 1;
    width: 100%;
    z-index: 1;
}

.raya-phone {
    width: 70px;
    aspect-ratio: 1 / 2.05;
    background: #1a1a26;
    border-radius: 11px;
    padding: 4px;
    box-shadow: 0 12px 28px rgba(10, 30, 60, 0.18), 0 4px 8px rgba(10, 30, 60, 0.1);
    position: relative;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.raya-phone-1 { transform: translateY(6px) rotate(-2deg); }
.raya-phone-2 { transform: translateY(0); z-index: 2; }
.raya-phone-3 { transform: translateY(-2px); z-index: 3; }
.raya-phone-4 { transform: translateY(4px) rotate(1.5deg); }

.raya-showcase:hover .raya-phone-1 { transform: translateY(2px) rotate(-3deg); }
.raya-showcase:hover .raya-phone-2 { transform: translateY(-4px); }
.raya-showcase:hover .raya-phone-3 { transform: translateY(-6px); }
.raya-showcase:hover .raya-phone-4 { transform: translateY(0) rotate(2.5deg); }

.raya-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 4px;
    background: #0a0a0f;
    border-radius: 999px;
    z-index: 2;
}

.raya-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 14px 7px 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.raya-rtl { direction: rtl; text-align: right; }

.raya-logo-mini {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 9px;
    color: #0a3d8a;
    text-align: left;
    margin-bottom: 2px;
}

.raya-rtl .raya-logo-mini { text-align: right; }

.raya-welcome {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 7px;
    color: #1a1a26;
    line-height: 1.2;
}

.raya-welcome span {
    color: #0a3d8a;
    font-weight: 800;
}

.raya-search {
    height: 8px;
    background: #f0f0f5;
    border-radius: 999px;
    margin-top: 3px;
}

.raya-hero-img {
    flex: 1;
    background: linear-gradient(135deg, #ffb88c 0%, #de6262 50%, #4a90c2 100%);
    border-radius: 6px;
    margin-top: 4px;
    position: relative;
}

.raya-hero-img::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    border-radius: 4px;
}

.raya-splash {
    background: linear-gradient(135deg, #0a3d8a 0%, #1a5cc0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.raya-splash .raya-notch { background: rgba(255,255,255,0.3); }

.raya-splash-logo {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    letter-spacing: -0.5px;
}

.raya-splash-sub {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 5px;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.raya-screen-list {
    padding: 16px 6px 6px;
    gap: 4px;
}

.raya-list-header {
    height: 10px;
    background: #f0f0f5;
    border-radius: 999px;
    margin-bottom: 3px;
}

.raya-card {
    height: 32px;
    border-radius: 5px;
}

.raya-card-1 { background: linear-gradient(135deg, #4a90c2, #2a5a8e); }
.raya-card-2 { background: linear-gradient(135deg, #d4a574, #8b6a3f); }

.raya-info {
    z-index: 1;
    text-align: center;
    margin-top: 8px;
}

.raya-info-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 5px;
}

.raya-chip {
    padding: 3px 10px;
    background: rgba(10, 61, 138, 0.1);
    color: #0a3d8a;
    border: 1px solid rgba(10, 61, 138, 0.2);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.raya-info-text {
    font-size: 10px;
    color: #5a6478;
    margin: 0;
    font-weight: 500;
}

/* Mobile responsive for Raya showcase */
@media (max-width: 600px) {
    .raya-phone { width: 56px; }
    .raya-phones { gap: 6px; }
    .raya-info-text { font-size: 9px; }
    .raya-chip { font-size: 8px; padding: 2px 8px; }
}

@media (max-width: 420px) {
    .raya-phone { width: 48px; padding: 3px; }
    .raya-phones { gap: 5px; }
    .raya-screen { padding: 11px 5px 4px; }
    .raya-welcome { font-size: 6px; }
    .raya-logo-mini { font-size: 8px; }
    .raya-splash-logo { font-size: 11px; }
    .raya-info { margin-top: 6px; }
}

.mobile-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 9px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    color: var(--accent);
    border: 1px solid rgba(225, 29, 46, 0.4);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mobile-badge svg {
    color: var(--accent);
}

/* Phone Mockup for Mobile App Placeholder */
.phone-mockup {
    width: 90px;
    height: 170px;
    background: linear-gradient(135deg, #2a2a36 0%, #1a1a26 100%);
    border: 2px solid #3a3a46;
    border-radius: 14px;
    padding: 8px 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(225, 29, 46, 0.15);
    position: relative;
    animation: placeholderFloat 3s ease-in-out infinite;
}

.phone-mockup::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background: #0a0a0f;
    border-radius: 999px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(225, 29, 46, 0.08) 0%, rgba(10, 10, 15, 0.6) 100%);
    border-radius: 7px;
    padding: 14px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phone-line {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.phone-line-1 { width: 80%; background: rgba(225, 29, 46, 0.5); }
.phone-line-2 { width: 60%; }
.phone-line-3 { width: 50%; margin-top: 4px; }

.phone-block {
    height: 48px;
    background: linear-gradient(135deg, rgba(225, 29, 46, 0.2), rgba(225, 29, 46, 0.05));
    border-radius: 4px;
    margin-top: 4px;
}

.site-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(225, 29, 46, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 29, 46, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    z-index: 1;
    padding: 20px;
}

.placeholder-content svg {
    filter: drop-shadow(0 0 12px rgba(225, 29, 46, 0.4));
    animation: placeholderFloat 3s ease-in-out infinite;
}

.placeholder-title {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 4px 0 0;
    letter-spacing: -0.3px;
}

.placeholder-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

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

/* Hover overlay -only visible when iframe is not being interacted with */
.website-overlay {
    position: absolute;
    inset: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.15) 0%, rgba(10, 10, 15, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 28px 16px;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 16px;
    z-index: 3;
}

.website-card:hover .website-overlay {
    opacity: 1;
    pointer-events: auto;
}

.website-overlay .overlay-title {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.35s 0.05s ease-out, opacity 0.35s 0.05s ease-out;
}

.website-overlay .btn {
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.35s 0.12s ease-out, opacity 0.35s 0.12s ease-out, background 0.3s, box-shadow 0.3s;
}

.website-card:hover .website-overlay .overlay-title,
.website-card:hover .website-overlay .btn {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive deck rules now inline above */

/* ===== Graphic Design + Partner Layout ===== */
.gfx-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.partner-card {
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(192, 57, 43, 0.2);
}

[data-theme="blue"] .partner-card {
    border-color: rgba(26, 58, 139, 0.2);
}

.partner-photo-wrap {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-accent);
    box-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--accent-glow-soft);
}

.partner-photo-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.partner-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
}

.partner-label {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.partner-name {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.partner-title {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.partner-location {
    font-size: 12px;
    color: var(--text-muted);
}

.partner-available {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2ecc71;
    font-size: 12px;
    font-weight: 600;
}

.partner-bio {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.partner-socials .social-icon {
    width: 40px;
    height: 40px;
}

.gfx-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 18px;
    padding: 18px 6px 24px;
    margin: 0;
    scroll-padding-inline: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.04);
    -webkit-overflow-scrolling: touch;
    perspective: 1200px;
    contain: layout paint;
}

.gfx-grid::-webkit-scrollbar {
    height: 5px;
}

.gfx-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    margin: 0 24px;
}

.gfx-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent), #ff4d6d);
    border-radius: 999px;
}

.gfx-grid > .project-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .gfx-grid {
        gap: 14px;
    }
    .gfx-grid > .project-card {
        flex: 0 0 240px;
    }
}

/* ===== Social Media Section ===== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.social-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: var(--text-primary);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s, border-color 0.4s;
}

.social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--social-gradient, linear-gradient(135deg, rgba(192,57,43,0.15), transparent));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.social-card > * {
    position: relative;
    z-index: 1;
}

.social-card:hover {
    transform: translateY(-6px);
    border-color: var(--social-color, var(--accent));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--social-color, var(--accent));
}

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

.social-card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--social-color, var(--accent));
    color: #fff;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-card:hover .social-card-icon {
    transform: scale(1.08) rotate(-4deg);
}

.social-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-card-platform {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.social-card-handle {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-card-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-card:hover .social-card-arrow {
    background: var(--social-color, var(--accent));
    border-color: var(--social-color, var(--accent));
    color: #fff;
    transform: translateX(4px);
}

/* Featured social card (Kick - LIVE) */
.social-card.social-card-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(83, 252, 24, 0.12), rgba(83, 252, 24, 0.04) 50%, transparent);
    border: 1px solid rgba(83, 252, 24, 0.35);
    position: relative;
}

.social-card.social-card-featured:hover {
    border-color: rgba(83, 252, 24, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px -20px rgba(83, 252, 24, 0.35), 0 0 0 1px rgba(83, 252, 24, 0.4);
}

.social-card.social-card-featured .social-card-icon {
    background: linear-gradient(135deg, #53fc18, #2bbf0a);
    color: #04140c;
}

.social-card.social-card-featured .social-card-platform {
    color: #53fc18;
    font-weight: 800;
}

.social-live-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px 5px 9px;
    background: #53fc18;
    color: #04140c;
    border-radius: 999px;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 6px 16px rgba(83, 252, 24, 0.45);
}

.social-live-pill .live-dot {
    background: #04140c;
    box-shadow: 0 0 6px rgba(4, 20, 12, 0.5);
    animation: livePulse 1.6s ease-in-out infinite;
}

/* Brand colors */
.social-card-linkedin  { --social-color: #0A66C2; --social-gradient: linear-gradient(135deg, rgba(10,102,194,0.18), transparent 60%); }
.social-card-behance   { --social-color: #1769FF; --social-gradient: linear-gradient(135deg, rgba(23,105,255,0.18), transparent 60%); }
.social-card-instagram { --social-color: #E4405F; --social-gradient: linear-gradient(135deg, rgba(228,64,95,0.20), rgba(255,165,0,0.10) 50%, transparent 80%); }
.social-card-instagram .social-card-icon { background: linear-gradient(135deg, #FEDA77 0%, #F58529 25%, #DD2A7B 50%, #8134AF 75%, #515BD4 100%); }
.social-card-tiktok    { --social-color: #FF0050; --social-gradient: linear-gradient(135deg, rgba(255,0,80,0.18), rgba(0,242,234,0.10) 60%, transparent 80%); }
.social-card-tiktok .social-card-icon { background: #000; }
.social-card-facebook  { --social-color: #1877F2; --social-gradient: linear-gradient(135deg, rgba(24,119,242,0.18), transparent 60%); }
.social-card-kick      { --social-color: #53FC18; --social-gradient: linear-gradient(135deg, rgba(83,252,24,0.18), transparent 60%); }
.social-card-kick .social-card-icon { background: #53FC18; color: #000; }
.social-card-discord   { --social-color: #5865F2; --social-gradient: linear-gradient(135deg, rgba(88,101,242,0.18), transparent 60%); }
.social-card-telegram  { --social-color: #229ED9; --social-gradient: linear-gradient(135deg, rgba(34,158,217,0.18), transparent 60%); }
.social-card-email     { --social-color: #EA4335; --social-gradient: linear-gradient(135deg, rgba(234,67,53,0.18), transparent 60%); }

[data-mode="light"] .social-card-arrow {
    background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 1024px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .social-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .social-card { padding: 16px 18px; gap: 14px; }
    .social-card-icon { width: 50px; height: 50px; }
    .social-card-platform { font-size: 16px; }
    .social-card-handle { font-size: 12px; }
    .social-card-arrow { width: 34px; height: 34px; }
}

/* ===== Contact ===== */
.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: -30px;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-form {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow-soft);
}

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

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

.form-status {
    text-align: center;
    font-size: 14px;
    color: #2ecc71;
    min-height: 20px;
}

.form-status.error { color: #e74c3c; }
.form-status.info { color: var(--accent); }

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    justify-content: center;
}

.contact-info-card h3 {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.contact-info-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    background: var(--bg-card);
}

.social-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow-soft);
    transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 24px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: clamp(40px, 8vw, 100px);
    font-weight: 800;
    color: var(--text-primary);
    opacity: 0.02;
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 8px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-nav a:hover { color: var(--accent); }

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

.footer-socials .social-icon {
    width: 36px;
    height: 36px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 800;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow-strong);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.3s;
    cursor: default;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

/* ===== Reveal Animations (Cinematic) ===== */
.fade-in {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(10px);
    transition:
        opacity 850ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 850ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 850ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .gfx-layout {
        grid-template-columns: 1fr;
    }
    .partner-card {
        position: static;
        max-width: 320px;
        margin: 0 auto;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* .nav-links goes position:fixed below, so it leaves the grid flow. Without this the
       3-track desktop grid keeps its empty third column and .nav-right lands in the middle
       of the bar instead of at the right edge. */
    .nav-container {
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 12px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        transition: right 0.3s;
        border-left: 1px solid var(--border-color);
        z-index: 999;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    [data-mode="light"] .nav-links {
        background: rgba(245, 245, 247, 0.97);
    }

    .nav-links.open { right: 0; }

    /* Stop the page scrolling underneath the open drawer */
    body.menu-open { overflow: hidden; }

    /* Drawer links need a real touch target, not an 18px-tall line of text */
    .nav-links a {
        display: block;
        padding: 10px 0;
        min-height: 44px;
        line-height: 24px;
    }

    .nav-menu-btn {
        display: flex;
        z-index: 1001;
        /* 32x24 was well under the 44px minimum touch target */
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        margin-right: -10px;
    }

    .theme-picker-btn {
        width: 44px;
        height: 44px;
    }

    .about-stats {
        flex-direction: row;
    }

    .stat-card {
        flex: 1;
        padding: 18px 12px;
    }

    .stat-number { font-size: 30px; }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-name { font-size: clamp(24px, 7vw, 36px); letter-spacing: -1.5px; }

    .photo-wrapper {
        width: 220px;
        height: 220px;
    }

    .photo-ring {
        width: 270px;
        height: 270px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 30px;
        margin-bottom: 36px;
    }

    .tools-row {
        gap: 10px;
    }

    .tools-row .tool-card:nth-child(even) {
        margin-top: 20px;
    }

    .tool-card {
        width: 95px;
        height: 105px;
    }

    .tool-card-front,
    .tool-card-back {
        padding: 14px 6px 10px;
        gap: 6px;
    }

    .tool-icon {
        width: 40px;
        height: 40px;
    }

    .tool-icon img,
    .tool-icon svg {
        width: 24px;
        height: 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav { justify-content: center; }
    .footer-socials { justify-content: center; }

    .about-timeline {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .about-stats {
        flex-direction: column;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }

    .hero-trust {
        gap: 4px;
        padding: 16px 14px;
        margin-top: 32px;
        max-width: 340px;
    }
    .trust-num { font-size: 22px; }
    .trust-plus { font-size: 16px; }
    .trust-label { font-size: 9px; }
    .trust-divider { height: 30px; }

    .tools-row {
        gap: 8px;
        justify-content: center;
    }

    .tools-row .tool-card:nth-child(even) {
        margin-top: 18px;
    }

    .tool-card {
        width: 80px;
        min-width: 80px;
        height: 90px;
    }

    .tool-card-front,
    .tool-card-back {
        padding: 12px 4px 8px;
        gap: 4px;
    }

    .tool-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .tool-name {
        font-size: 11px;
    }

    .tools-cat-title {
        font-size: 16px;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== Premium Enhancements ===== */

/* ===== Scroll Progress Glow ===== */
.scroll-progress {
    box-shadow: 0 0 16px var(--accent-glow), 0 0 32px var(--accent-glow-soft);
}

/* ===== Enhanced Navbar Glassmorphism ===== */
.navbar.scrolled {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.03), 0 14px 40px rgba(0, 0, 0, 0.24);
}

.navbar.scrolled::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 18%, rgba(255, 255, 255, 0.75) 50%, var(--accent) 82%, transparent 100%);
    opacity: 0.58;
    filter: blur(0.4px);
    pointer-events: none;
}

.nav-links a::after {
    left: 50%;
    transform: translateX(-50%) translate3d(0, 0, 0);
    transform-origin: center;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: width 0.35s ease, opacity 0.35s ease;
    opacity: 0.72;
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a:focus-visible::after,
.nav-links a.touch-active::after {
    width: 100%;
    opacity: 1;
}

/* ===== Animated Hero Gradient ===== */
.hero {
    overflow: hidden;
}

.hero-bg-glow {
    top: auto;
    left: auto;
    transform: none;
    inset: 7% 7% auto;
    width: auto;
    height: 78%;
    border-radius: 999px;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.12), transparent 26%),
        radial-gradient(circle at 78% 28%, var(--accent-glow) 0%, transparent 30%),
        radial-gradient(circle at 52% 82%, rgba(255, 140, 90, 0.18), transparent 28%),
        linear-gradient(120deg, rgba(255, 90, 70, 0.12) 0%, rgba(255, 255, 255, 0.04) 28%, rgba(255, 120, 80, 0.18) 52%, rgba(255, 255, 255, 0.03) 74%, rgba(120, 30, 20, 0.18) 100%);
    background-size: 170% 170%;
    background-position: 0% 50%;
    filter: blur(24px);
    opacity: 0.95;
    animation: heroGradientShift 18s ease-in-out infinite alternate;
    will-change: background-position, transform;
    transform: translate3d(0, 0, 0);
}

[data-theme="blue"] .hero-bg-glow {
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.14), transparent 26%),
        radial-gradient(circle at 80% 24%, rgba(26, 58, 139, 0.4), transparent 30%),
        radial-gradient(circle at 52% 82%, rgba(107, 139, 255, 0.22), transparent 28%),
        linear-gradient(120deg, rgba(26, 58, 139, 0.18) 0%, rgba(255, 255, 255, 0.05) 28%, rgba(82, 121, 255, 0.2) 52%, rgba(255, 255, 255, 0.04) 74%, rgba(15, 37, 115, 0.2) 100%);
    background-size: 170% 170%;
}

@keyframes heroGradientShift {
    0% {
        background-position: 0% 50%;
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        background-position: 100% 50%;
        transform: translate3d(0, -12px, 0) scale(1.04);
    }
    100% {
        background-position: 0% 100%;
        transform: translate3d(0, 0, 0) scale(1.08);
    }
}

/* ===== Performance: will-change only on hover ===== */
.custom-cursor-dot,
.custom-cursor-circle {
    will-change: transform;
}

.project-card:hover,
.service-card:hover,
.website-card:hover {
    will-change: transform, box-shadow;
}

/* ===== Section Scroll Entrance ===== */
.section-reveal {
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
    transform-origin: center bottom;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* ===== Card Stagger Entrance ===== */
.card-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: var(--card-delay, 0ms);
}

.card-reveal.card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===== Staggered Section Entrances (legacy) ===== */
.stagger-children > * {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--stagger-delay, 0ms);
}

.stagger-children.stagger-visible > * {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* ===== Touch Device Hover Equivalents ===== */
.service-card.touch-active {
    transform: scale(1.03);
}

.project-card.touch-active .project-overlay {
    opacity: 1;
}

.project-card.touch-active .project-thumb img {
    transform: scale(1.05);
}

.btn-primary:focus-visible,
.btn-outline:focus-visible,
.btn-service:focus-visible,
.btn.touch-active,
.social-icon:focus-visible,
.social-icon.touch-active,
.back-to-top:focus-visible,
.back-to-top.touch-active {
    transform: translate3d(0, -3px, 0);
}

.btn-outline.touch-active,
.btn-outline:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow-soft);
}

.btn-primary.touch-active,
.btn-primary:focus-visible {
    box-shadow: 0 8px 30px var(--accent-glow-strong);
}

.btn-service.touch-active,
.btn-service:focus-visible {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.social-icon.touch-active,
.social-icon:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow-soft);
}

body.is-touch-device .custom-cursor-dot,
body.is-touch-device .custom-cursor-circle {
    display: none;
}

/* ===== Reduced Motion Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .custom-cursor-dot,
    .custom-cursor-circle {
        display: none !important;
    }

    .hero-bg-glow,
    .photo-ring,
    .photo-wrapper,
    .scroll-indicator,
    .pulse-dot,
    .available-pill,
    .tool-card-inner {
        animation: none !important;
    }

    .fade-in,
    .fade-in.visible,
    .section-reveal,
    .section-reveal.revealed,
    .card-reveal,
    .card-reveal.card-visible,
    .stagger-children > *,
    .stagger-children.stagger-visible > *,
    .project-card,
    .service-card,
    .btn,
    .social-icon,
    .back-to-top {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ===== Mobile hero gradient ===== */
@media (max-width: 768px) {
    .hero-bg-glow {
        inset: 12% 3% auto;
        height: 62%;
        filter: blur(18px);
    }
}

/* ============================================================
   PREMIUM POLISH PASS
   Cursor spotlight, fine gradient borders, grain texture.
   GPU-only (opacity/transform), reduced-motion safe, hover-gated.
   ============================================================ */

/* --- Fine gradient border on dev-work cards (premium edge) --- */
.website-card { position: relative; }
.website-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.28),
        rgba(255, 255, 255, 0.04) 42%,
        rgba(var(--accent-rgb), 0.45)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

/* --- Cursor-follow spotlight on solid cards --- */
.about-do, .stat-card, .social-card { position: relative; }

@media (hover: hover) and (pointer: fine) {
    .about-do::after,
    .stat-card::after,
    .social-card::after,
    .website-card .browser-viewport::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(
            240px circle at var(--gx, 50%) var(--gy, 50%),
            rgba(var(--accent-rgb), 0.16),
            transparent 62%
        );
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
        z-index: 2;
    }
    .about-do:hover::after,
    .stat-card:hover::after,
    .social-card:hover::after,
    .website-card:hover .browser-viewport::after { opacity: 1; }

    /* keep social-card content above the spotlight layer */
    .social-card > * { position: relative; z-index: 3; }

    /* brighten the fine border on hover */
    .website-card:hover::before { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .about-do::after,
    .stat-card::after,
    .social-card::after,
    .website-card .browser-viewport::after { transition: none; }
}

/* --- Subtle film grain over the fixed background (cinematic texture) --- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.028;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-mode="light"] body::after { opacity: 0.018; }

/* --- Trust band (career stats moved below the hero) --- */
.trust-band {
    position: relative;
    z-index: 1;
    padding: 4px 24px 60px;
}
.trust-band .hero-trust {
    margin-top: 0;
}
@media (max-width: 768px) {
    .trust-band { padding: 0 16px 44px; }
}

/* --- Word-by-word headline reveal (premium entrance) --- */
.rv-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.5em);
    filter: blur(8px);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--wi, 0) * 60ms);
    will-change: opacity, transform, filter;
}
.rv-word > em { display: inline-block; }
.section-title.rv-in .rv-word {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
    .rv-word {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* ============================================================
   ANIMATED HERO BACKGROUND - god rays (matches accent color)
   One composited layer, slow rotation, paused off-screen.
   ============================================================ */
.hero-rays {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 128vmax;
    height: 128vmax;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    /* soft, wide, gradient-faded beams (no hard edges) */
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        rgba(var(--accent-rgb), 0) 0deg,
        rgba(var(--accent-rgb), 0.07) 9deg,
        rgba(var(--accent-rgb), 0) 18deg
    );
    -webkit-mask: radial-gradient(circle at 50% 50%, #000 0%, #000 10%, rgba(0, 0, 0, 0.4) 33%, transparent 60%);
            mask: radial-gradient(circle at 50% 50%, #000 0%, #000 10%, rgba(0, 0, 0, 0.4) 33%, transparent 60%);
    opacity: 0.7;
    animation: heroRaysSpin 150s linear infinite;
    will-change: transform;
}

/* soft volumetric core glow that breathes under the beams */
.hero-aura {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 70vmax;
    height: 70vmax;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%,
        rgba(var(--accent-rgb), 0.16) 0%,
        rgba(var(--accent-rgb), 0.06) 26%,
        transparent 60%);
    animation: heroAuraPulse 8s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes heroRaysSpin {
    to { transform: translate(-50%, -50%) rotate(1turn); }
}

@keyframes heroAuraPulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

/* Pause rotation when the hero leaves the viewport (perf) */
body.hero-hidden .hero-rays { animation-play-state: paused; }

/* FX level + light mode intensity */
[data-fx="low"] .hero-rays { display: none; }
[data-fx="high"] .hero-rays { opacity: 0.66; }
[data-mode="light"] .hero-rays { opacity: 0.2; }

@media (prefers-reduced-motion: reduce) {
    .hero-rays { animation: none; opacity: 0.24; }
}

@media (max-width: 600px) {
    .hero-rays { width: 185vmax; height: 185vmax; opacity: 0.42; }
}

/* ============================================================
   JOURNEY TIMELINE (About) - alternating cards, color per era
   ============================================================ */
.journey-wrap { margin-top: 84px; }
.journey-heading {
    margin-bottom: 14px !important;
}
.journey-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 56px;
    font-size: 15px;
    line-height: 1.6;
}
.journey {
    position: relative;
    max-width: 940px;
    margin: 0 auto;
}
.journey::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    bottom: 8px;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}
[data-mode="light"] .journey::before { background: rgba(0, 0, 0, 0.1); }
/* bright colored fill that grows with scroll (--jp 0..1) */
.journey::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 2px;
    height: calc(100% - 16px);
    transform: translateX(-50%);
    background: linear-gradient(180deg,
        #3b82f6 0%, #6366f1 16%, #a855f7 33%, #22c55e 50%,
        #06b6d4 66%, #f59e0b 83%, var(--accent) 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.45);
    clip-path: inset(0 0 calc((1 - var(--jp, 1)) * 100%) 0);
    will-change: clip-path;
}
.journey-item {
    position: relative;
    width: 50%;
    padding: 0 46px 44px 0;
    box-sizing: border-box;
}
.journey-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 44px 46px;
}
.journey-item::before {
    content: "";
    position: absolute;
    top: 20px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--j-color, var(--accent));
    box-shadow: 0 0 14px var(--j-color, var(--accent));
    z-index: 2;
}
.journey-item:nth-child(odd)::before { right: -7.5px; }
.journey-item:nth-child(even)::before { left: -7.5px; }
.journey-item::after {
    content: "";
    position: absolute;
    top: 4px;
    width: 240px;
    height: 170px;
    background: radial-gradient(circle, var(--j-color, var(--accent)), transparent 68%);
    opacity: 0.1;
    filter: blur(26px);
    pointer-events: none;
    z-index: 0;
}
.journey-item:nth-child(odd)::after { right: 24px; }
.journey-item:nth-child(even)::after { left: 24px; }
.journey-card {
    position: relative;
    z-index: 1;
    padding: 22px 24px;
    border-radius: 16px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.journey-item:nth-child(odd) .journey-card { text-align: right; }
.journey-card:hover {
    transform: translateY(-3px);
    border-color: var(--j-color, var(--accent));
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
}
.journey-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.journey-item:nth-child(odd) .journey-top { flex-direction: row-reverse; }
.journey-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--j-color, var(--accent));
}
[data-mode="light"] .journey-icon { background: rgba(0, 0, 0, 0.04); }
.journey-year {
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--j-color, var(--accent));
    letter-spacing: 0.5px;
}
.journey-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.journey-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 768px) {
    .journey-wrap { margin-top: 56px; }
    .journey::before { left: 15px; }
    .journey-item,
    .journey-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 30px 44px;
    }
    .journey-card,
    .journey-item:nth-child(odd) .journey-card { text-align: left; }
    .journey-item:nth-child(odd) .journey-top,
    .journey-top { flex-direction: row; }
    .journey-item::before,
    .journey-item:nth-child(odd)::before,
    .journey-item:nth-child(even)::before { left: 8px; right: auto; }
    .journey-item::after { display: none; }
    .journey::before, .journey::after { left: 15px; }
}

/* Journey reveal - JS adds .reveal-on, then .in per item as it enters view */
/* Choreographed reveal: card slides, dot pops, contents stagger in.
   Hidden states are instant (no transition) so there is no flash on load. */
.journey.reveal-on .journey-card { opacity: 0; filter: blur(8px); }
.journey.reveal-on .journey-item:nth-child(odd) .journey-card { transform: translateX(-40px); }
.journey.reveal-on .journey-item:nth-child(even) .journey-card { transform: translateX(40px); }
.journey.reveal-on .journey-item::before { transform: scale(0); }
.journey.reveal-on .journey-icon { opacity: 0; transform: translateY(10px) scale(0.8); }
.journey.reveal-on .journey-year,
.journey.reveal-on .journey-title,
.journey.reveal-on .journey-desc { opacity: 0; transform: translateY(12px); }

.journey.reveal-on .journey-item.in .journey-card {
    opacity: 1; transform: translateX(0); filter: blur(0);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1), filter .7s cubic-bezier(.16,1,.3,1);
}
.journey.reveal-on .journey-item.in::before {
    transform: scale(1);
    transition: transform .55s cubic-bezier(.34,1.56,.64,1) .12s;
}
.journey.reveal-on .journey-item.in .journey-icon {
    opacity: 1; transform: none;
    transition: opacity .5s ease .28s, transform .55s cubic-bezier(.34,1.56,.64,1) .28s;
}
.journey.reveal-on .journey-item.in .journey-year {
    opacity: 1; transform: none;
    transition: opacity .5s ease .34s, transform .5s ease .34s;
}
.journey.reveal-on .journey-item.in .journey-title {
    opacity: 1; transform: none;
    transition: opacity .5s ease .42s, transform .5s ease .42s;
}
.journey.reveal-on .journey-item.in .journey-desc {
    opacity: 1; transform: none;
    transition: opacity .5s ease .5s, transform .5s ease .5s;
}

/* Dot ignites as the scroll-fill reaches it */
.journey-item.lit::before {
    box-shadow: 0 0 22px var(--j-color, var(--accent)), 0 0 8px var(--j-color, var(--accent));
    animation: journeyDotPulse 1.9s ease-in-out infinite;
}
@keyframes journeyDotPulse {
    0%, 100% { box-shadow: 0 0 14px var(--j-color, var(--accent)); }
    50% { box-shadow: 0 0 28px var(--j-color, var(--accent)), 0 0 12px var(--j-color, var(--accent)); }
}

/* Glowing comet rides the leading edge of the fill */
.journey-comet {
    position: absolute;
    left: 50%;
    top: calc(8px + (100% - 16px) * var(--jp, 0));
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.7), 0 0 24px 7px rgba(var(--accent-rgb), 0.5);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity .4s ease;
}
.journey.fill-active .journey-comet { opacity: 1; }

@media (max-width: 768px) {
    .journey.reveal-on .journey-item:nth-child(odd) .journey-card,
    .journey.reveal-on .journey-item:nth-child(even) .journey-card { transform: translateY(22px); }
    .journey.reveal-on .journey-item.in .journey-card { transform: translateY(0); }
    .journey-comet { left: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .journey.reveal-on .journey-card,
    .journey.reveal-on .journey-icon,
    .journey.reveal-on .journey-year,
    .journey.reveal-on .journey-title,
    .journey.reveal-on .journey-desc { opacity: 1; transform: none; filter: none; transition: none; }
    .journey.reveal-on .journey-item::before { transform: scale(1); }
    .journey-item.lit::before { animation: none; }
    .journey-comet { display: none; }
}

/* ===== Aurora shader background (hero) ===== */
#auroraBg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.72;
}
.hero.aurora-on .hero-rays { display: none; }
.hero.aurora-on .hero-aura { opacity: 0.5; }
@media (prefers-reduced-motion: reduce) {
    #auroraBg { display: none; }
}

/* ==========================================================================
   Mobile performance layer
   Phones were repainting large areas every frame: infinite animations on
   non-composited properties (box-shadow, background-position, gradient
   angle), stacked backdrop-filter blurs, and a full-viewport SVG grain
   overlay. Transform/opacity animations are composited and stay on.
   ========================================================================== */
@media (max-width: 768px) {
    /* Full-viewport film grain: one extra composited layer over everything */
    body::after { display: none; }

    /* box-shadow / background-position / gradient-angle animations all force
       a repaint of their element every frame */
    .photo-wrapper,
    .section-title em,
    .hero-bg-glow,
    .project-card::before,
    .featured-cta,
    .discord-featured-cta {
        animation: none !important;
    }

    /* Keep the live-status pulse but drop its expanding box-shadow ring */
    .nav-live-dot,
    .live-dot,
    .status-pill::before {
        animation: none !important;
    }

    /* Halve the blur radius; stacked 20-30px backdrop blurs are the single
       most expensive thing a mobile GPU does while scrolling */
    .navbar,
    .glass-card,
    .theme-panel,
    .website-card,
    .project-card,
    .partner-card,
    .social-card {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Long scroll rows do not need a permanent compositing hint */
    .cinema-row {
        will-change: auto;
        transform-style: flat;
    }
}

/* ==========================================================================
   Touch devices: reveal the card overlays
   .website-overlay / .project-overlay were opacity:0 until :hover, which a
   touch screen never fires. That left all 35 "Visit Site" / "View on Behance"
   buttons invisible and untappable on phones and tablets. Show them
   permanently where there is no hover, weighting the scrim to the bottom so
   the screenshot above stays visible.
   ========================================================================== */
@media (hover: none) {
    .website-overlay,
    .project-overlay {
        opacity: 1;
        pointer-events: auto;
        background: linear-gradient(180deg,
            rgba(10, 10, 15, 0) 0%,
            rgba(10, 10, 15, 0.35) 45%,
            rgba(10, 10, 15, 0.92) 100%);
    }

    .website-overlay .overlay-title,
    .website-overlay .btn,
    .project-overlay .overlay-title,
    .project-overlay .btn {
        opacity: 1;
        transform: none;
    }

    /* Comfortable tap target for the card CTAs */
    .website-overlay .btn,
    .project-overlay .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
