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

html {
    scroll-behavior: smooth;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Light Mode */
    --bg-primary: #f0f4f8;
    --bg-secondary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-nav: rgba(240, 244, 248, 0.94);
    --primary: #0EA5E9;
    --primary-dark: #0284C7;
    --primary-glow: rgba(14, 165, 233, 0.22);
    --accent: #3B82F6;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --gradient-primary: linear-gradient(135deg, #0EA5E9 0%, #3B82F6 100%);
    --gradient-soft: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    --border-subtle: rgba(0, 0, 0, 0.07);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.13);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.2);
}

body.dark-mode {
    /* Dark Mode – nir.html inspired */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-nav: rgba(10, 10, 10, 0.94);
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --primary-glow: rgba(0, 212, 255, 0.22);
    --accent: #3B82F6;
    --text-primary: #ffffff;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #3B82F6 100%);
    --gradient-soft: linear-gradient(135deg, rgba(0, 212, 255, 0.07) 0%, rgba(59, 130, 246, 0.07) 100%);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.2);
}

/* ===== THEMES (light) ===== */
body.theme-purple {
    --primary: #7C3AED; --primary-dark: #5B21B6; --primary-glow: rgba(124,58,237,0.22);
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #a855f7 100%);
    --gradient-soft: linear-gradient(135deg, rgba(124,58,237,0.1) 0%, rgba(168,85,247,0.1) 100%);
    --shadow-glow: 0 0 30px rgba(124,58,237,0.2);
}
body.theme-green {
    --primary: #059669; --primary-dark: #047857; --primary-glow: rgba(5,150,105,0.22);
    --gradient-primary: linear-gradient(135deg, #059669 0%, #34d399 100%);
    --gradient-soft: linear-gradient(135deg, rgba(5,150,105,0.1) 0%, rgba(52,211,153,0.1) 100%);
    --shadow-glow: 0 0 30px rgba(5,150,105,0.2);
}
body.theme-orange {
    --primary: #D97706; --primary-dark: #B45309; --primary-glow: rgba(217,119,6,0.22);
    --gradient-primary: linear-gradient(135deg, #D97706 0%, #f97316 100%);
    --gradient-soft: linear-gradient(135deg, rgba(217,119,6,0.1) 0%, rgba(249,115,22,0.1) 100%);
    --shadow-glow: 0 0 30px rgba(217,119,6,0.2);
}
body.theme-rose {
    --primary: #E11D48; --primary-dark: #BE123C; --primary-glow: rgba(225,29,72,0.22);
    --gradient-primary: linear-gradient(135deg, #E11D48 0%, #fb7185 100%);
    --gradient-soft: linear-gradient(135deg, rgba(225,29,72,0.1) 0%, rgba(251,113,133,0.1) 100%);
    --shadow-glow: 0 0 30px rgba(225,29,72,0.2);
}

/* ===== THEMES (dark) ===== */
body.dark-mode.theme-purple {
    --primary: #a78bfa; --primary-dark: #7C3AED; --primary-glow: rgba(167,139,250,0.22);
    --gradient-primary: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    --gradient-soft: linear-gradient(135deg, rgba(167,139,250,0.07) 0%, rgba(192,132,252,0.07) 100%);
    --shadow-glow: 0 0 30px rgba(167,139,250,0.2);
}
body.dark-mode.theme-green {
    --primary: #34d399; --primary-dark: #059669; --primary-glow: rgba(52,211,153,0.22);
    --gradient-primary: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
    --gradient-soft: linear-gradient(135deg, rgba(52,211,153,0.07) 0%, rgba(110,231,183,0.07) 100%);
    --shadow-glow: 0 0 30px rgba(52,211,153,0.2);
}
body.dark-mode.theme-orange {
    --primary: #fbbf24; --primary-dark: #D97706; --primary-glow: rgba(251,191,36,0.22);
    --gradient-primary: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    --gradient-soft: linear-gradient(135deg, rgba(251,191,36,0.07) 0%, rgba(249,115,22,0.07) 100%);
    --shadow-glow: 0 0 30px rgba(251,191,36,0.2);
}
body.dark-mode.theme-rose {
    --primary: #fb7185; --primary-dark: #E11D48; --primary-glow: rgba(251,113,133,0.22);
    --gradient-primary: linear-gradient(135deg, #fb7185 0%, #fda4af 100%);
    --gradient-soft: linear-gradient(135deg, rgba(251,113,133,0.07) 0%, rgba(253,164,175,0.07) 100%);
    --shadow-glow: 0 0 30px rgba(251,113,133,0.2);
}

body {
    font-family: 'Heebo', 'Open Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== INTRO SCREEN ===== */
.intro-screen {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
    isolation: isolate;
}

.intro-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.04);
}

.intro-content {
    text-align: center;
    color: white;
    position: relative;
}

.intro-loader {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.intro-loader.active {
    opacity: 1;
    transform: scale(1);
}

.spinner {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border: 6px solid var(--primary-glow);
    border-top: 6px solid var(--primary);
    border-right: 6px solid var(--primary-dark);
    border-bottom: 6px solid var(--primary);
    border-left: 6px solid var(--primary-dark);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

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

.loading-text {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ===== ONBOARDING STEPS ===== */
.onboard-step {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    animation: onboardIn 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
    position: relative;
    z-index: 99999;
}

.onboard-step.active {
    display: flex;
}

.onboard-step.onboard-exit {
    animation: onboardOut 0.35s ease forwards;
    pointer-events: none;
}

@keyframes onboardIn {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

@keyframes onboardOut {
    to { opacity: 0; transform: translateY(-20px) scale(0.97); }
}

.onboard-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    text-align: center;
    letter-spacing: 0.04em;
    margin: 0;
}

/* Language tiles */
.onboard-lang-tiles {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.onboard-lang-tile {
    position: relative;
    width: 200px;
    height: 260px;
    border-radius: 24px;
    border: 2px solid rgba(255,255,255,0.18);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 22px;
    background: rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    z-index: 99999;
}

.onboard-lang-tile .tile-flag {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.onboard-lang-tile .tile-code {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Heebo', 'Open Sans', sans-serif;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
    letter-spacing: 0.03em;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    line-height: 1;
}

.onboard-lang-tile:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 28px 60px rgba(0,0,0,0.55);
}

/* Theme tiles */
.onboard-theme-tiles {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.onboard-theme-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.onboard-theme-tile {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    border: 3px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.onboard-theme-tile:hover {
    transform: scale(1.18) translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.55);
    border-color: rgba(255,255,255,0.65);
}

.onboard-theme-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.04em;
}

@media (max-width: 500px) {
    .onboard-lang-tile { width: 140px; height: 185px; }
    .onboard-lang-tile .tile-code { font-size: 3rem; }
    .onboard-theme-tile { width: 70px; height: 70px; border-radius: 16px; }
    .onboard-lang-tiles { gap: 16px; }
    .onboard-theme-tiles { gap: 12px; }
}

.intro-step {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    white-space: nowrap;
}

.intro-step.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.intro-big-text {
    font-size: 5.5rem;
    font-weight: 900;
    font-family: 'Rubik', 'Bricolage Grotesque', sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 12px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px var(--primary-glow)); }
    50% { filter: drop-shadow(0 0 40px var(--primary-glow)); }
}

.intro-medium-text {
    font-size: 2.5rem;
    font-weight: 500;
    font-family: 'Heebo', 'Josefin Sans', sans-serif;
    color: rgba(255, 255, 255, 0.9);
}

.name-highlight {
    font-weight: 900;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.waving-hand {
    font-size: 7rem;
    display: inline-block;
    animation: wave 1s ease-in-out infinite;
    transform-origin: 70% 70%;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.main-content.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== THEME PICKER BANNER ===== */
.welcome-section {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 9px 20px;
    text-align: center;
    position: relative;
    z-index: 100;
}

.theme-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.theme-picker-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.theme-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.theme-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    padding: 0;
    outline: none;
}

.theme-dot:hover {
    transform: scale(1.25);
}

.theme-dot.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--bg-secondary), 0 0 0 4px var(--text-primary);
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.18);
    border-bottom-color: transparent;
}

body.dark-mode .navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-inline-start: auto;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-circle {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    font-family: 'Rubik', 'Bricolage Grotesque', sans-serif;
    box-shadow: 0 4px 15px var(--primary-glow);
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Rubik', 'Bricolage Grotesque', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--gradient-soft);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 28px);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.contact-btn {
    background: var(--gradient-primary);
    color: white;
    border-radius: 25px;
    padding: 8px 20px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-link.contact-btn::after {
    display: none;
}

.nav-link.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    color: white;
    background: var(--gradient-primary);
}

.nav-item.locked .nav-link {
    cursor: pointer;
}

.lock-icon {
    font-size: 0.75rem;
    opacity: 0.65;
}

.nav-item.unlocked .lock-icon {
    display: none;
}

.nav-item.unlocked .nav-link::before {
    content: '✓';
    color: #10B981;
    font-weight: 700;
    font-size: 0.8rem;
}

/* ===== DARK MODE TOGGLE – PILL SWITCH ===== */
.dark-mode-toggle-fixed {
    flex-shrink: 0;
    width: 62px;
    height: 30px;
    border-radius: 15px;
    cursor: pointer;
    padding: 0 5px;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    align-items: center;
    overflow: hidden;
}

body:not(.dark-mode) .dark-mode-toggle-fixed {
    background: linear-gradient(135deg, #74c0e8 0%, #c8eeff 100%);
    border: 2px solid #F59E0B;
    justify-content: flex-start;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
}

body.dark-mode .dark-mode-toggle-fixed {
    background: #111;
    border: 2px solid var(--primary);
    justify-content: flex-end;
    box-shadow: 0 0 16px var(--primary-glow), inset 0 0 10px rgba(0, 212, 255, 0.04);
}

.dark-mode-toggle-fixed:hover {
    transform: scale(1.08);
}

.toggle-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    flex-direction: row;
}

body:not(.dark-mode) .toggle-icon {
    background: #F59E0B;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.65);
}

body:not(.dark-mode) .toggle-icon::before {
    content: '☀️';
    font-size: 0.82rem;
    line-height: 1;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: sunRotate 20s linear infinite;
}

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

body.dark-mode .toggle-icon {
    background: var(--gradient-primary);
    box-shadow: 0 2px 10px var(--primary-glow);
}

body.dark-mode .toggle-icon::before {
    content: '🌙';
    font-size: 0.76rem;
    line-height: 1;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: calc(100vh - 42px);
    display: flex;
    align-items: center;
    padding: 80px 20px 60px;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, var(--primary-glow) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle binary bg */
.hero-section::after {
    content: '01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100 00100001 01000011 01101111 01100100 01100101';
    position: absolute;
    inset: 0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--primary);
    opacity: 0.035;
    line-height: 2.2;
    word-wrap: break-word;
    padding: 20px;
    pointer-events: none;
    z-index: 0;
    animation: binaryScroll 35s linear infinite;
    white-space: pre-wrap;
}

@keyframes binaryScroll {
    0% { transform: translateY(0); opacity: 0.03; }
    50% { opacity: 0.05; }
    100% { transform: translateY(60px); opacity: 0.03; }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
    width: 100%;
}

.hero-text {
    /* inherits */
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(0, 212, 255, 0.07);
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 30px;
    font-size: 0.78rem;
    color: var(--primary);
    margin-bottom: 22px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: slideInRight 0.8s ease-out;
}

body:not(.dark-mode) .badge {
    background: rgba(14, 165, 233, 0.09);
    border-color: rgba(14, 165, 233, 0.28);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    font-family: 'Rubik', 'Bricolage Grotesque', sans-serif;
    line-height: 1.15;
    margin-bottom: 22px;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.shine-word {
    background: linear-gradient(135deg, #0EA5E9 0%, #60d8ff 50%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    display: inline-block;
    position: relative;
    padding-bottom: 3px;
}

.shine-word::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0EA5E9, #60d8ff, #3B82F6);
    animation: underlineGlow 2.2s ease-in-out infinite;
}

.hero-description .shine-word:nth-of-type(2),
.hero-description .shine-word:nth-of-type(2)::after { animation-delay: 0.2s; }
.hero-description .shine-word:nth-of-type(3),
.hero-description .shine-word:nth-of-type(3)::after { animation-delay: 0.4s; }
.hero-description .shine-word:nth-of-type(4),
.hero-description .shine-word:nth-of-type(4)::after { animation-delay: 0.6s; }
.hero-description .shine-word:nth-of-type(5),
.hero-description .shine-word:nth-of-type(5)::after { animation-delay: 0.8s; }

@keyframes underlineGlow {
    0%, 100% {
        box-shadow: 0 0 4px rgba(14, 165, 233, 0.3);
        opacity: 0.4;
        transform: scaleX(0.7);
    }
    50% {
        box-shadow: 0 0 10px rgba(96, 216, 255, 1), 0 0 22px rgba(14, 165, 233, 0.6);
        opacity: 1;
        transform: scaleX(1);
    }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-button {
    padding: 15px 38px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--primary-glow);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--primary-glow);
}

.unlock-message {
    margin-top: 34px;
    padding: 18px 22px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--primary);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

body.dark-mode .unlock-message {
    background: rgba(255, 255, 255, 0.03);
}

.unlock-message p {
    margin: 4px 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.unlock-hint {
    font-size: 0.84rem !important;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
}

/* ===== HERO IMAGE ===== */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 1s ease-out 0.4s both;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 24px;
    opacity: 0.25;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.hero-image:hover::before {
    opacity: 0.5;
}

.profile-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.profile-image:hover {
    transform: scale(1.03) translateY(-5px);
}

/* ===== STATS SECTION ===== */
.stats-section {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    animation: fadeInUp 1s ease-out 1s both;
}

.stat-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 212, 255, 0.2);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    font-family: 'Rubik', 'Bricolage Grotesque', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 80px 20px;
    min-height: 55vh;
    background: var(--bg-secondary);
    margin: 0;
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.content-section:nth-child(even) {
    background: var(--bg-primary);
}

.locked-section .section-content {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

.locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.inline-game-container {
    display: none;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.lock-message {
    text-align: center;
    background: var(--bg-card);
    padding: 42px 55px;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.challenge-btn {
    margin-top: 8px;
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

.challenge-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.55);
}

.skip-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.skip-btn:hover {
    opacity: 1;
    color: var(--text-secondary);
}

.in-game-skip {
    display: block;
    margin: 18px auto 0;
    font-size: 0.85rem;
}

.lock-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.lock-icon-large {
    font-size: 3.2rem;
    display: block;
    margin-bottom: 14px;
}

.lock-message h2 {
    color: var(--text-primary);
    font-size: 1.45rem;
    font-weight: 700;
    font-family: 'Rubik', 'Bricolage Grotesque', sans-serif;
    margin-bottom: 8px;
}

.lock-message p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.locked-section.unlocked .locked-overlay {
    display: none;
}

.locked-section.unlocked .section-content {
    filter: none;
    pointer-events: auto;
    user-select: auto;
}

.section-content h2 {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Rubik', 'Bricolage Grotesque', sans-serif;
    margin-bottom: 16px;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===== GAME MODAL ===== */
.game-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.game-modal.active {
    display: flex;
}

.game-modal-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.dark-mode .game-modal-content {
    border-top: 3px solid var(--primary);
}

@keyframes modalIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--bg-secondary);
    border: none;
    font-size: 1.35rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--gradient-primary);
    color: white;
    transform: rotate(90deg);
}

#game-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 1.7rem;
    font-family: 'Rubik', 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
}

#game-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 26px;
    font-size: 0.98rem;
}

.game-container {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===== GAME STYLES ===== */
.rps-game,
.memory-game,
.quiz-game,
.typing-game,
.math-game {
    text-align: center;
    width: 100%;
}

/* ===================== RPS Game ===================== */
.rps-wrapper {
    width: 100%;
    text-align: center;
    padding: 8px 0 4px;
}

.rps-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary), #60d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rps-scoreboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 16px;
    padding: 8px 22px;
    background: var(--bg-secondary);
    border-radius: 50px;
    width: fit-content;
    border: 1px solid var(--border-subtle);
}

[dir="rtl"] .rps-scoreboard {
    flex-direction: row-reverse;
}

.rps-score-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rps-score-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.rps-score-num {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--primary);
    min-width: 28px;
    text-align: center;
    line-height: 1;
}

.rps-score-sep {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 1px;
}

.rps-arena {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0 auto 14px;
    max-width: 500px;
}

[dir="rtl"] .rps-arena {
    flex-direction: row-reverse;
}

.rps-panel {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rps-panel-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rps-choice-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.rps-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: 10px;
    padding: 7px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-family: inherit;
    color: var(--text-primary);
}

.rps-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--gradient-soft);
    transform: scale(1.05);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.rps-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.rps-btn .rps-emoji {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.rps-btn .rps-lbl {
    font-size: 0.8rem;
    font-weight: 600;
}

.rps-choice-display {
    gap: 6px;
}

.rps-display-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 2px solid transparent;
    width: 100%;
    opacity: 0.6;
}

.rps-display-item .rps-emoji {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.rps-display-item .rps-lbl {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.rps-battle-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 96px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 12px 6px;
}

.rps-fighter {
    font-size: 2.2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    transition: border-color 0.3s;
    flex-shrink: 0;
}

.rps-clash-text {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 1px;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- RPS Animations ---- */
@keyframes rpsSlideFromLeft {
    0%   { transform: translateX(-70px) scale(0.4); opacity: 0; }
    70%  { transform: translateX(6px) scale(1.15); opacity: 1; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes rpsSlideFromRight {
    0%   { transform: translateX(70px) scale(0.4); opacity: 0; }
    70%  { transform: translateX(-6px) scale(1.15); opacity: 1; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes rpsAdvanceLeft {
    0%   { transform: scale(1); }
    50%  { transform: translateX(-30px) scale(1.35); filter: drop-shadow(0 0 10px #22c55e); }
    100% { transform: translateX(-22px) scale(1.25); filter: drop-shadow(0 0 8px #22c55e); }
}

@keyframes rpsAdvanceRight {
    0%   { transform: scale(1); }
    50%  { transform: translateX(30px) scale(1.35); filter: drop-shadow(0 0 10px #22c55e); }
    100% { transform: translateX(22px) scale(1.25); filter: drop-shadow(0 0 8px #22c55e); }
}

@keyframes rpsFall {
    0%   { transform: scale(1) rotate(0); opacity: 1; }
    30%  { transform: scale(0.9) rotate(12deg); }
    70%  { transform: scale(0.5) rotate(60deg) translateY(18px); opacity: 0.4; }
    100% { transform: scale(0.2) rotate(90deg) translateY(30px); opacity: 0; }
}

@keyframes rpsDraw {
    0%, 100% { transform: scale(1) translateX(0); }
    30%       { transform: scale(1.1) translateX(-6px); }
    70%       { transform: scale(1.1) translateX(6px); }
}

@keyframes rpsClashBurst {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.9) rotate(20deg); }
    70%  { transform: scale(1.5) rotate(-12deg); }
    100% { transform: scale(1.3) rotate(0); }
}

.rps-fighter.rps-slide-from-left  { animation: rpsSlideFromLeft  0.55s cubic-bezier(0.175,0.885,0.32,1.275) forwards; }
.rps-fighter.rps-slide-from-right { animation: rpsSlideFromRight 0.55s cubic-bezier(0.175,0.885,0.32,1.275) forwards; }
.rps-fighter.rps-advance-left     { animation: rpsAdvanceLeft  0.55s ease-out forwards; border-color: #22c55e !important; }
.rps-fighter.rps-advance-right    { animation: rpsAdvanceRight 0.55s ease-out forwards; border-color: #22c55e !important; }
.rps-fighter.rps-fall             { animation: rpsFall  0.7s ease-in forwards; border-color: #ef4444 !important; }
.rps-fighter.rps-draw             { animation: rpsDraw  0.6s ease-in-out forwards; border-color: #f59e0b !important; }
.rps-clash-text.rps-clash-anim   { animation: rpsClashBurst 0.5s ease-out forwards; }

.rps-status {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-height: 26px;
    margin-bottom: 4px;
    transition: color 0.3s;
}

.rps-status.rps-win  { color: #22c55e; }
.rps-status.rps-lose { color: #ef4444; }
.rps-status.rps-tie  { color: #f59e0b; }

.rps-hint {
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.55;
}

/* ============================
   Dag Maluach — Red Light Green Light
   ============================ */
.dag-wrapper {
    width: 100%;
    text-align: center;
    padding: 6px 0;
    user-select: none;
    -webkit-user-select: none;
}

.dag-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Track */
.dag-track {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, #87ceeb 52%, #7ec850 52%, #5a9c2e 100%);
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    margin-bottom: 12px;
    cursor: pointer;
    touch-action: none;
}

/* Ground depth shadow */
.dag-track::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 22px;
    background: rgba(0,0,0,0.18);
    pointer-events: none;
}

/* Candy-stripe wall at finish */
.dag-wall {
    position: absolute;
    right: 58px;
    top: 0;
    bottom: 0;
    width: 10px;
    background: repeating-linear-gradient(
        180deg,
        #dc2626 0px, #dc2626 14px,
        #fff5f5 14px, #fff5f5 28px
    );
    z-index: 5;
}

/* Dashed start line */
.dag-start-line {
    position: absolute;
    left: 13%;
    top: 0;
    bottom: 0;
    width: 2px;
    border-left: 2px dashed rgba(255,255,255,0.55);
    z-index: 2;
    pointer-events: none;
}

/* The doll */
.dag-doll {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 2.8rem;
    z-index: 6;
    line-height: 1;
    /* transition drives the visible turn */
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s;
}

.dag-doll.away {
    transform: scaleX(1);    /* faces right → toward wall, back to players */
    filter: none;
}

.dag-doll.turning {
    /* mid-turn squeeze: 1 → 0 → -1 via CSS transition */
    transform: scaleX(0.05);
    filter: drop-shadow(0 0 12px #f59e0b);
}

.dag-doll.watching {
    transform: scaleX(-1);   /* faces left → toward players */
    filter: drop-shadow(0 0 14px #ef4444);
}

/* Characters */
.dag-char {
    position: absolute;
    line-height: 1;
    z-index: 4;
    transition: left 0.04s linear;
    pointer-events: none;
}

.dag-player {
    z-index: 7;
    /* CSS individual transform: flip to face right. Composable with @keyframes using translate/rotate */
    scale: -1 1;
    transition: left 0.04s linear, filter 0.3s;
}

.dag-npc {
    opacity: 0.82;
    scale: -1 1;  /* face right like the player */
}

/* Running bounce — uses individual transform props so they compose with scale:-1 1 above */
@keyframes dagBounce {
    0%   { translate: 0 0;    rotate: -5deg; }
    25%  { translate: 0 -8px; rotate: 0deg;  }
    50%  { translate: 0 0;    rotate: 5deg;  }
    75%  { translate: 0 -5px; rotate: 0deg;  }
    100% { translate: 0 0;    rotate: -5deg; }
}

.dag-running {
    animation: dagBounce 0.28s ease-in-out infinite;
}

.dag-eliminated {
    filter: grayscale(1) opacity(0.55) !important;
    animation: dagElimShake 0.4s ease;
}

@keyframes dagElimShake {
    0%, 100% { transform: rotate(0); }
    25%       { transform: rotate(-14deg) translateY(-5px); }
    75%       { transform: rotate(14deg) translateY(-5px); }
}

/* HUD */
.dag-hud {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.dag-light {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.3s, box-shadow 0.3s;
}

.dag-light.green {
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e, 0 0 22px rgba(34,197,94,0.45);
}

.dag-light.turning {
    background: #f59e0b;
    animation: dagLightPulse 0.35s ease-in-out infinite alternate;
}

.dag-light.red {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444, 0 0 22px rgba(239,68,68,0.45);
}

@keyframes dagLightPulse {
    from { box-shadow: 0 0 6px #f59e0b; }
    to   { box-shadow: 0 0 18px #f59e0b, 0 0 32px rgba(245,158,11,0.5); }
}

.dag-status {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    min-height: 22px;
}

/* Hold button */
.dag-hold-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), #60d8ff);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 13px 36px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    margin-bottom: 8px;
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: transform 0.1s, box-shadow 0.1s, filter 0.1s;
    font-family: inherit;
}

.dag-hold-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none !important;
}

.dag-hold-btn.dag-btn-active {
    transform: scale(0.93);
    box-shadow: 0 2px 7px var(--primary-glow);
    filter: brightness(1.12);
}

.dag-restart-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    margin-inline-start: 8px;
    font-family: inherit;
}

.dag-hint {
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.55;
}

/* ============================
   Archery Game
   ============================ */
.arch-wrapper {
    width: 100%;
    text-align: center;
    padding: 6px 0;
    user-select: none;
    -webkit-user-select: none;
}

.arch-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #92400e, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.arch-arena {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

#arch-canvas {
    border-radius: 12px;
    border: 2px solid var(--border-subtle);
    cursor: crosshair;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    max-width: calc(100% - 48px);
    display: block;
}

.arch-power-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 30px;
    flex-shrink: 0;
}

.arch-power-track {
    flex: 1;
    width: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.arch-power-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #22c55e 0%, #f59e0b 55%, #ef4444 100%);
    border-radius: 8px;
    transition: height 0.04s linear;
}

.arch-power-icon { font-size: 1.1rem; }

.arch-hud {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 6px;
    font-size: 1rem;
    color: var(--text-primary);
}

.arch-status {
    font-size: 1.05rem;
    font-weight: 700;
    min-height: 24px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.arch-hint {
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.55;
}

.arch-restart-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    margin-inline-start: 8px;
    font-family: inherit;
}

/* ============================
   Sprint Race Game
   ============================ */
.sprint-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
}

.sprint-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.sprint-arena {
    width: 100%;
    display: flex;
    justify-content: center;
}

#sprint-canvas {
    max-width: calc(100% - 16px);
    border-radius: 10px;
    background: #0f172a;
    cursor: pointer;
    display: block;
}

.sprint-hud {
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.sprint-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: end;
}

.sprint-tap-btn {
    background: linear-gradient(135deg, #eab308, #f59e0b);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.08s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.sprint-tap-btn:active {
    transform: scale(0.94);
}

.sprint-tap-btn:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
}

.sprint-retry-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-inline-start: 8px;
}

/* ============================
   About Section
   ============================ */
.about-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.about-avatar-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient-soft);
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-avatar-emoji {
    font-size: 2.4rem;
    line-height: 1;
}

.about-name {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.about-tag {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.about-tag--accent {
    border-color: var(--primary);
    color: var(--primary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.about-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.about-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.about-bio {
    background: var(--bg-card);
    border-inline-start: 3px solid var(--primary);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.about-services-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.about-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.about-service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px 14px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.about-service-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.about-service-icon {
    font-size: 1.7rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-service-card h4 {
    margin: 0 0 4px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.about-service-card p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.about-featured-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--gradient-primary);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 24px var(--primary-glow), 0 0 0 2px var(--primary);
    animation: featured-glow 2.5s ease-in-out infinite;
}

.about-featured-star {
    font-size: 0.9rem;
    opacity: 0.85;
    flex-shrink: 0;
}

@keyframes featured-glow {
    0%, 100% { box-shadow: 0 4px 24px var(--primary-glow), 0 0 0 2px var(--primary); }
    50%       { box-shadow: 0 4px 36px var(--primary-glow), 0 0 0 3px var(--primary), 0 0 20px var(--primary-glow); }
}

.about-availability {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 197, 94, 0.07);
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.about-avail-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: about-pulse 2s ease-in-out infinite;
}

@keyframes about-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
    50%       { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.04); }
}

/* ============================
   Projects Grid
   ============================ */
.projects-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    outline: none;
}

.project-card:hover,
.project-card:focus {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--primary);
}

.project-card-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    overflow: hidden;
}

.project-card-img-wrap.no-img::after {
    content: '🖼️';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.3;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.project-card:hover .project-card-img {
    transform: scale(1.06);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

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

.project-card-info {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-card-cat {
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 10px;
    align-self: flex-start;
    letter-spacing: 0.03em;
}

.project-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-card-short {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================
   Project Modal
   ============================ */
.proj-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
}

.proj-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.proj-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s;
    box-shadow: var(--shadow-lg);
}

.proj-modal-overlay.open .proj-modal {
    transform: translateY(0) scale(1);
}

.proj-modal-close {
    position: absolute;
    top: 12px;
    inset-inline-end: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s, color 0.15s;
}

.proj-modal-close:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.proj-modal-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

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

.proj-modal-cat-badge {
    position: absolute;
    bottom: 12px;
    inset-inline-start: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 3px 12px;
    letter-spacing: 0.03em;
}

.proj-modal-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proj-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.proj-modal-desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.proj-modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
}

.proj-tech-tag {
    background: var(--gradient-soft);
    border: 1px solid var(--border-subtle);
    color: var(--primary);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.proj-gallery-btn {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s, scale 0.15s;
    line-height: 1;
}
.proj-gallery-btn:hover {
    background: var(--primary);
    scale: 1.1;
}
.proj-gallery-prev { inset-inline-start: 10px; }
.proj-gallery-next { inset-inline-end: 10px; }

.proj-gallery-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    translate: -50% 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.78rem;
    padding: 2px 12px;
    border-radius: 20px;
    pointer-events: none;
}

.proj-modal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 22px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s, scale 0.15s;
    box-shadow: 0 3px 12px var(--primary-glow);
}
.proj-modal-link:hover {
    opacity: 0.88;
    scale: 1.03;
}

.proj-modal-note {
    margin-top: 14px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(251,191,36,0.1);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,0.25);
}

.proj-modal-iframe-wrap {
    margin-top: 18px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}
.proj-iframe-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
}
.proj-iframe-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}
.proj-iframe-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: opacity 0.2s, scale 0.15s;
}
.proj-iframe-open-btn:hover {
    opacity: 0.85;
    scale: 1.04;
}

.proj-iframe-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.proj-iframe-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, scale 0.15s;
}

.proj-iframe-expand-btn:hover {
    background: var(--primary);
    color: #fff;
    scale: 1.04;
}

/* ===== Fullscreen iframe overlay ===== */
.proj-fullscreen-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.proj-fullscreen-overlay.open {
    display: flex;
}

.proj-fullscreen-overlay iframe {
    width: 90vw;
    height: 90vh;
    border: none;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
    display: block;
}

.proj-fullscreen-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.proj-fullscreen-close:hover {
    background: rgba(239, 68, 68, 0.5);
}

.proj-modal-iframe-wrap iframe {
    display: none;
}

/* ============================
   CV Timeline (Alternating Wave)
   ============================ */
.cv-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 230px;
    margin: 36px 0 40px;
    padding: 0 10px;
    overflow: visible;
    /* RTL: 2024 appears on the left, 2011 on the right */
}

.cv-milestone {
    position: relative;
    flex: 1;
    cursor: pointer;
    z-index: 1;
    outline: none;
}

/* ---- Dot ---- */
.cv-milestone-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--primary);
    left: 50%;
    translate: -50% 0;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    z-index: 2;
}

/* Default / LTR (English): odd = HIGH, even = LOW */
.cv-milestone:nth-child(odd)  .cv-milestone-dot { top: 150px; }
.cv-milestone:nth-child(even) .cv-milestone-dot { top: 40px; }

/* ---- Year label ---- */
.cv-milestone-year {
    position: absolute;
    left: 50%;
    translate: -50% 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* LTR: odd dot is high → year below; even dot is low → year above */
.cv-milestone:nth-child(odd)  .cv-milestone-year { top: 175px; }
.cv-milestone:nth-child(even) .cv-milestone-year { top: 65px; }

/* ---- Dot hover / active states ---- */
.cv-milestone:hover .cv-milestone-dot,
.cv-milestone:focus .cv-milestone-dot,
.cv-milestone.active .cv-milestone-dot {
    background: var(--primary);
    transform: scale(1.4);
    box-shadow: 0 0 0 5px var(--primary-glow);
}

/* ---- Popup base ---- */
.cv-milestone-popup {
    position: absolute;
    left: 50%;
    translate: -50% 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px 14px;
    width: 176px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s;
    z-index: 10;
    text-align: center;
}

/* odd (LOW) → popup BELOW, border-bottom, arrow up */
.cv-milestone:nth-child(odd) .cv-milestone-popup {
    top: 176px; bottom: auto;
    border-bottom: 3px solid var(--primary);
    transform: translateY(-6px);
}
.cv-milestone:nth-child(odd) .cv-milestone-popup::after {
    content: ''; position: absolute;
    bottom: 100%; left: 50%; translate: -50% 0;
    border: 7px solid transparent;
    border-bottom-color: var(--primary);
}

/* even (HIGH) → popup ABOVE, border-top, arrow down */
.cv-milestone:nth-child(even) .cv-milestone-popup {
    bottom: 188px; top: auto;
    border-top: 3px solid var(--primary);
    transform: translateY(6px);
}
.cv-milestone:nth-child(even) .cv-milestone-popup::after {
    content: ''; position: absolute;
    top: 100%; left: 50%; translate: -50% 0;
    border: 7px solid transparent;
    border-top-color: var(--primary);
}

/* Show popup */
.cv-milestone:hover .cv-milestone-popup,
.cv-milestone:focus .cv-milestone-popup,
.cv-milestone.active .cv-milestone-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* LTR edge fixes — only shift the popup box, arrow stays at default left:50% (≈over the dot) */
.cv-milestone:first-child .cv-milestone-popup { left: 0; translate: 0 0; }
.cv-milestone:last-child  .cv-milestone-popup { left: auto; right: 0; translate: 0 0; }

/* RTL edge fixes: first-child is rightmost, last-child is leftmost */
[dir="rtl"] .cv-milestone:first-child .cv-milestone-popup { left: auto; right: 0; translate: 0 0; }
[dir="rtl"] .cv-milestone:last-child  .cv-milestone-popup { left: 0; right: auto; translate: 0 0; }

.cv-popup-company {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3px;
}

.cv-popup-role {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.cv-popup-desc {
    font-size: 0.68rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* CV Open Button */
.cv-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.cv-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: scale 0.15s, opacity 0.15s;
}

.cv-open-btn:hover {
    scale: 1.04;
    opacity: 0.9;
}

/* ============================
   CV Modal
   ============================ */
.cv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.cv-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cv-modal {
    width: 90vw;
    max-width: 960px;
    height: 92vh;
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    transform: scale(0.96);
    transition: transform 0.25s;
}

.cv-modal-overlay.open .cv-modal {
    transform: scale(1);
}

.cv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.cv-modal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cv-modal-icon { font-size: 1.2rem; }

.cv-modal-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.cv-modal-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cv-modal-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, scale 0.15s;
}

.cv-modal-download:hover { opacity: 0.88; scale: 1.04; }

.cv-modal-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(148,163,184,0.15);
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.cv-modal-close-btn:hover {
    background: rgba(239,68,68,0.18);
    color: #ef4444;
}

.cv-modal-body {
    flex: 1;
    overflow: hidden;
}

.cv-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .cv-modal-overlay {
        align-items: stretch;
        padding: 0;
    }

    .cv-modal {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .cv-modal-header {
        padding: 10px 14px;
    }

    .cv-modal-download span:first-child { display: none; }
}

/* ============================
   Testimonials — WhatsApp Chat Style
   ============================ */
.wa-chat-container {
    max-width: 100%;
    margin: 28px 0 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.wa-chat-header {
    background: #1F2C34;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-chat-header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.wa-chat-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wa-chat-header-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #E9EDEF;
}

.wa-chat-header-status {
    font-size: 0.72rem;
    color: #25D366;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-chat-header-status i {
    font-size: 0.55rem;
}

.wa-chat-header-icon {
    font-size: 1.6rem;
    color: #25D366;
}

.wa-chat-messages {
    background: #0B141A;
    padding: 18px 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: stretch;
}

@media (max-width: 700px) {
    .wa-chat-messages {
        grid-template-columns: 1fr;
    }
}

.wa-message {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.wa-message-bubble {
    background: #1F2C34;
    border-radius: 0 14px 14px 14px;
    padding: 12px 14px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

[dir="rtl"] .wa-message-bubble {
    border-radius: 14px 0 14px 14px;
}

.wa-message-sender {
    font-size: 0.76rem;
    font-weight: 700;
    color: #25D366;
    margin-bottom: 5px;
}

.wa-message-stars {
    color: #ffd700;
    font-size: 0.8rem;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.wa-message-text {
    color: #E9EDEF;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.wa-message-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 6px;
}

.wa-message-time {
    font-size: 0.68rem;
    color: #8696A0;
}

.wa-message-ticks {
    color: #53BDEB;
    font-size: 0.75rem;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 74px);
    gap: 10px;
    justify-content: center;
    margin: 18px 0;
}

.memory-card {
    width: 74px;
    height: 74px;
    background: var(--gradient-primary);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.memory-card.flipped {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.memory-card:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.quiz-question {
    font-size: 1.15rem;
    margin-bottom: 22px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.65;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.quiz-option {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.98rem;
    color: var(--text-primary);
    text-align: left;
    font-family: inherit;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: var(--gradient-soft);
}

.quiz-option.correct {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border-color: #10B981;
}

.quiz-option.wrong {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    border-color: #EF4444;
}

.typing-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 18px 0;
    padding: 18px;
    background: var(--bg-secondary);
    border-radius: 12px;
    color: var(--primary);
    border: 1px solid var(--border-subtle);
    line-height: 1.6;
}

.typing-input {
    width: 100%;
    padding: 13px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    margin: 14px 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.typing-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.typing-timer {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.math-question {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 22px 0;
    font-family: 'Rubik', 'Bricolage Grotesque', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.math-input {
    width: 180px;
    padding: 13px;
    font-size: 1.4rem;
    text-align: center;
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    margin: 14px 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.math-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.math-submit,
.game-start-btn {
    padding: 13px 32px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin: 8px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.math-submit:hover,
.game-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    text-align: center;
    padding: 30px;
}

.success-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 14px;
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
    from { transform: scale(0.3); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-message h3 {
    color: #10B981;
    font-size: 1.8rem;
    font-family: 'Rubik', 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lang-label {
    font-size: 0.78rem;
    color: #1e293b;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

body.dark-mode .lang-label {
    color: #e2e8f0;
}

.lang-btn {
    background: var(--bg-card);
    border: 1.5px solid var(--border-subtle);
    border-radius: 10px;
    width: 58px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    line-height: 1;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.lang-btn .lang-flag {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    opacity: 0.3;
    pointer-events: none;
    border-radius: 8px;
}

.lang-btn .lang-code {
    position: relative;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    z-index: 1;
    color: var(--text-primary);
}

.lang-btn.active .lang-code {
    color: var(--primary);
}

body:not(.dark-mode) .lang-btn {
    background: #e2e8f0;
    border-color: #94a3b8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

body.dark-mode .lang-btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    color: #ffffff;
    font-weight: 700;
}

.lang-btn:hover {
    transform: scale(1.1) translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.lang-btn.active {
    border-color: var(--primary);
    background: var(--gradient-soft);
    box-shadow: 0 0 0 2px var(--primary-glow), var(--shadow-sm);
    transform: scale(1.06);
}

body.dark-mode .lang-btn.active {
    background: rgba(0, 212, 255, 0.25);
    border-color: var(--primary);
}

/* ===== HAMBURGER MENU ===== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1.5px solid var(--border-subtle);
    border-radius: 10px;
    cursor: pointer;
    padding: 7px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay backdrop */
.mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9989;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
    cursor: pointer;
}

body.menu-open {
    overflow: hidden;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: waPulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
    animation: none;
}

.whatsapp-tooltip {
    position: fixed;
    bottom: 104px;
    right: 30px;
    background: #fff;
    color: #333;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    z-index: 9998;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(8px);
    animation: waTooltipShow 0.5s ease 3s both;
    pointer-events: none;
}
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 23px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}
@keyframes waTooltipShow {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
    50%       { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.85); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== RTL (Hebrew) SUPPORT ===== */
[dir="rtl"] body {
    font-family: 'Noto Sans Hebrew', 'Heebo', 'Open Sans', sans-serif;
}

[dir="rtl"] .intro-medium-text {
    font-family: 'Noto Sans Hebrew', sans-serif;
}

[dir="rtl"] .unlock-message {
    border-left: none;
    border-right: 3px solid var(--primary);
}

/* Logo stays LTR internally (circle then name) even in RTL mode */
[dir="rtl"] .logo {
    direction: ltr;
}

/* Hero flips to RTL reading */
[dir="rtl"] .hero-content {
    direction: rtl;
}

[dir="rtl"] .hero-text {
    text-align: right;
}

[dir="rtl"] .badge {
    text-align: right;
}

[dir="rtl"] .quiz-option {
    text-align: right;
}

[dir="rtl"] .lock-message {
    direction: rtl;
}

[dir="rtl"] .game-modal-content {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .rps-game,
[dir="rtl"] .memory-game,
[dir="rtl"] .quiz-game,
[dir="rtl"] .typing-game,
[dir="rtl"] .math-game,
[dir="rtl"] .success-message {
    direction: rtl;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hamburger-btn {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -320px;
        left: auto;
        width: min(280px, 85vw);
        height: 100vh;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 80px 20px 32px;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
        display: flex;
        border-top: none;
        border-left: 1px solid var(--border-subtle);
        gap: 6px;
        z-index: 9990;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        align-items: stretch;
    }

    .nav-menu.active {
        right: 0;
    }

    /* mobile-nav-overlay visibility handled by pointer-events in base rule */

    .nav-link {
        padding: 13px 16px;
        font-size: 1rem;
        border-radius: 12px;
        justify-content: flex-start;
    }

    .language-switcher .lang-label {
        display: none;
    }
}

@media (max-width: 768px) {
    .whatsapp-tooltip {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 80px 16px 50px;
    }

    .game-modal-content {
        padding: 24px;
    }

    .rps-choice {
        width: 76px;
        height: 76px;
        font-size: 2.2rem;
    }

    .memory-grid {
        grid-template-columns: repeat(4, 62px);
    }

    .memory-card {
        width: 62px;
        height: 62px;
        font-size: 1.5rem;
    }

    .intro-big-text {
        font-size: 4rem;
        letter-spacing: 8px;
    }

    .waving-hand {
        font-size: 5rem;
    }

    .lock-message {
        padding: 30px 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .stats-section {
        gap: 12px;
    }

    .stat-item {
        padding: 22px 15px;
    }

    .rps-choices {
        gap: 12px;
    }

    .rps-choice {
        width: 68px;
        height: 68px;
        font-size: 2rem;
    }

    .hero-section {
        padding: 70px 14px 40px;
    }

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

/* ============================
   Contact Section
   ============================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
    margin-top: 0;
}

.contact-section-title {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Rubik', 'Bricolage Grotesque', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.contact-section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s;
}

.contact-detail:hover { transform: translateX(-4px); }
[dir="ltr"] .contact-detail:hover { transform: translateX(4px); }

.contact-detail-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb, 99,102,241), 0.12);
    border: 1px solid rgba(var(--primary-rgb, 99,102,241), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.contact-detail:hover .contact-detail-icon {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.contact-detail-icon.wa { color: #25D366; border-color: rgba(37,211,102,0.3); background: rgba(37,211,102,0.1); }
.contact-detail:hover .contact-detail-icon.wa { background: #25D366; color: #fff; border-color: #25D366; }

.contact-detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-detail-text strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-detail-text span {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 36px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group select option { background: var(--bg-card); color: var(--text-primary); }

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

.contact-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.contact-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    gap: 12px;
}

.form-success-icon {
    font-size: 3rem;
    color: #22c55e;
    animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop-in {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.form-success-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.form-success-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }
}

/* ============================
   Footer
   ============================ */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0 24px;
    margin-top: 0;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-name {
    font-size: 1.15rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.82rem;
    color: var(--text-muted, #666);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.83rem;
    color: var(--text-muted, #666);
    letter-spacing: 0.3px;
}

.footer-bottom strong { color: var(--primary); font-weight: 700; }
