:root {
    --bg: #020202;
    --panel: rgba(10, 10, 12, 0.9);
    --text: #ffffff;
    --main: #00d4ff; /* السيان التقني الخاص باللوجو */
    --accent: #00d4ff;; /* الأخضر النيوني */
    --border: rgba(255, 255, 255, 0.08);
}

.light-mode {
    --bg: #f5f7fa;
    --panel: rgba(255, 255, 255, 0.95);
    --text: #0f172a;
    --border: rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; transition: 0.5s; overflow-x: hidden; }

/* Luxury Background */
.luxury-bg-aura { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; z-index: -2; display: flex; align-items: center; justify-content: center; }
.bg-x-img { width: 75vw; opacity: 0.1; filter: invert(1) brightness(1.5) contrast(1.1); mix-blend-mode: lighten; animation: auraPulse 10s infinite ease-in-out; }
@keyframes auraPulse { 0%, 100% { transform: scale(1) translate(-50%, -50%); opacity: 0.08; } 50% { transform: scale(1.08) translate(-50%, -50%); opacity: 0.15; } }
.luxury-bg-aura img { position: absolute; }

/* Navigation */
nav { display: flex; justify-content: space-between; align-items: center; padding: 25px 6%; position: fixed; width: 100%; top: 0; z-index: 1000; backdrop-filter: blur(25px); border-bottom: 1px solid var(--border); background: rgba(var(--bg), 0.4); }
.logo { font-family: 'Syncopate'; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; font-size: 1.1rem; letter-spacing: 3px; }
.logo-link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.luxury-x-img { height: 32px; filter: drop-shadow(0 0 8px var(--main)); }
.nav-links a { text-decoration: none; color: var(--text); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; margin: 0 15px; opacity: 0.6; transition: 0.4s; font-weight: 800; }
.nav-links a:hover { color: var(--main); opacity: 1; }
.nav-links a.active-link { color: var(--main); opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 20px; }

/* Mobile hamburger toggle (hidden on desktop) */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 22px; background: transparent; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: 0.35s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 999; }
.nav-overlay.active { display: block; }

/* Hero Logo Lockup */
.hero-name { font-family: 'Syncopate'; font-weight: 700; font-size: clamp(2.4rem, 8vw, 5.4rem); letter-spacing: 12px; color: var(--text); margin-bottom: 30px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.hero-x-img { height: 0.85em; width: auto; filter: drop-shadow(0 0 16px var(--main)); }
.top-tag { margin-bottom: 22px; }
.top-socials a { color: var(--text); font-size: 1.3rem; margin-left: 20px; transition: 0.4s; display: inline-block; }
.top-socials a:hover { color: var(--main); transform: translateY(-5px) scale(1.2); }

/* Hero Box & Glassmorphism */
.hero-box { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 140px 5% 80px; }
.premium-title { font-family: 'Syncopate'; font-size: clamp(1.3rem, 3.2vw, 2rem); letter-spacing: 14px; margin-bottom: 35px; color: var(--text); text-transform: uppercase; }
.glass-luxury-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); padding: 60px 45px; border-radius: 40px; max-width: 950px; margin: 0 auto; backdrop-filter: blur(35px); position: relative; overflow: hidden; box-shadow: 0 50px 100px rgba(0,0,0,0.5); }
.light-ray { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 60%); animation: moveRay 15s infinite linear; }
@keyframes moveRay { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.card-line { width: 50px; height: 3px; background: var(--main); margin: 35px auto; border-radius: 5px; }
.glass-luxury-card p { font-size: 1.15rem; line-height: 1.9; font-weight: 300; position: relative; z-index: 2; opacity: 0.9; }
.teal-glow { color: var(--main); font-weight: 800; text-shadow: 0 0 15px var(--main); }
.est-box { margin-top: 55px; font-size: 0.65rem; letter-spacing: 6px; opacity: 0.4; font-weight: 800; }

/* Principles */
.section { padding: 120px 8%; text-align: center; }
/* Multi-page section spacing (each section is now a standalone page, needs room under the fixed nav) */
.page-section { padding-top: 170px; }
.placeholder-section { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.placeholder-text { font-size: 0.85rem; letter-spacing: 3px; text-transform: uppercase; opacity: 0.45; font-weight: 600; }
.sec-title { font-family: 'Syncopate'; font-size: 1.8rem; letter-spacing: 12px; margin-bottom: 85px; color: var(--main); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 45px; }
.v-card { background: var(--panel); border: 1px solid var(--border); padding: 70px 40px; border-radius: 35px; display: flex; flex-direction: column; align-items: center; transition: 0.5s; }
.v-card:hover { transform: translateY(-15px); border-color: var(--accent); }
.icon-box { width: 85px; height: 85px; border: 1px solid var(--accent); border-radius: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 35px; color: var(--accent); font-size: 2.5rem; transition: 0.4s; background: rgba(0, 255, 136, 0.03); }
.v-card:hover .icon-box { background: var(--accent); color: #000; box-shadow: 0 0 40px var(--accent); }

/* Course Cards */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 45px; }
.luxury-card { background: var(--panel); border: 1px solid var(--border); border-radius: 35px; overflow: hidden; transition: 0.6s cubic-bezier(0.2, 1, 0.3, 1); }
.luxury-card:hover { transform: translateY(-20px) scale(1.02); border-color: var(--main); box-shadow: 0 40px 80px rgba(0,0,0,0.6); }
.card-img-container { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.card-img-container img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 1s; }
.luxury-card:hover img { transform: scale(1.1); opacity: 1; filter: brightness(1.2); }
.card-content { padding: 45px; text-align: left; }
.tag { border: 1.5px solid var(--main); color: var(--main); padding: 7px 18px; border-radius: 50px; font-size: 0.6rem; letter-spacing: 3px; font-weight: 800; display: inline-block; margin-bottom: 25px; }

/* Founders Side-by-Side */
.founders-flex { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; max-width: 1100px; margin: 0 auto; }
.f-luxury-box { background: var(--panel); border: 1px solid var(--border); padding: 45px 35px; border-radius: 20px; flex: 1; min-width: 250px; text-align: center; transition: 0.4s; }
.f-luxury-box:hover { transform: translateY(-10px); border-color: var(--main); }
.f-luxury-box h4 { font-family: 'Syncopate'; font-size: 0.9rem; letter-spacing: 4px; color: var(--text); margin-bottom: 12px; }
.label { color: var(--main); font-size: 0.65rem; font-weight: 800; letter-spacing: 5px; opacity: 0.8; }

/* CTA Perfectly Centered */
.cta-section { padding: 160px 5%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cta-title { font-family: 'Syncopate'; font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: 15px; margin-bottom: 75px; color: var(--text); }
.cta-buttons { display: flex; gap: 35px; }
.outline-btn { padding: 22px 60px; border: 2px solid var(--text); color: var(--text); text-decoration: none; font-family: 'Syncopate'; font-size: 0.85rem; letter-spacing: 4px; transition: 0.4s; font-weight: 700; }
.outline-btn:hover { background: var(--text); color: var(--bg); box-shadow: 0 0 50px rgba(255,255,255,0.25); }

/* Theme Control UI */
.theme-control { position: fixed; bottom: 35px; right: 35px; z-index: 2000; }
.ui-switch { width: 55px; height: 28px; position: relative; display: inline-block; }
.ui-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--panel); border: 2px solid var(--border); border-radius: 34px; transition: .4s; }
.slider:before { position: absolute; content: "\f185"; font-family: "Font Awesome 6 Free"; font-weight: 900; height: 20px; width: 20px; left: 3px; bottom: 2px; background-color: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 10px; transition: .4s; border-radius: 50%; }
input:checked + .slider:before { transform: translateX(25px); content: "\f186"; background-color: var(--main); color: #000; }

.footer { padding: 90px 5%; text-align: center; border-top: 1px solid var(--border); background: #000; }
.f-logo { font-family: 'Syncopate'; font-size: 1.4rem; letter-spacing: 8px; margin-bottom: 25px; color: #fff; }
.cp { font-size: 0.65rem; letter-spacing: 3px; opacity: 0.5; text-transform: uppercase; color: #fff; }

/* ===== COURSE MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
    position: relative;
    background: linear-gradient(135deg, rgba(0,10,20,0.98), rgba(0,20,35,0.95));
    border: 1px solid rgba(0,212,255,0.35);
    border-radius: 30px;
    padding: 60px 55px;
    max-width: 620px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,212,255,0.1), 0 30px 80px rgba(0,0,0,0.8);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.45s cubic-bezier(0.2,1,0.3,1);
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-glow {
    position: absolute; top: -80px; left: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: modalGlowPulse 4s ease-in-out infinite;
}
@keyframes modalGlowPulse {
    0%,100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}
.close-modal {
    position: absolute; top: 22px; right: 22px;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.2);
    color: var(--main); width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s; z-index: 2;
}
.close-modal:hover { background: var(--main); color: #000; box-shadow: 0 0 20px rgba(0,212,255,0.5); transform: rotate(90deg); }
.modal-tag { font-size: 0.6rem; letter-spacing: 4px; color: var(--main); font-weight: 800; margin-bottom: 20px; opacity: 0.8; position: relative; z-index: 2; }
.modal-title { font-family: 'Syncopate'; font-size: clamp(1.3rem,3vw,1.9rem); letter-spacing: 6px; color: #fff; margin-bottom: 28px; line-height: 1.3; position: relative; z-index: 2; }
.modal-divider { width: 55px; height: 3px; background: linear-gradient(90deg, var(--main), transparent); border-radius: 5px; margin-bottom: 28px; position: relative; z-index: 2; }
.modal-desc { font-size: 1rem; line-height: 1.85; font-weight: 300; color: rgba(255,255,255,0.82); margin-bottom: 38px; position: relative; z-index: 2; }
.modal-meta { display: flex; flex-direction: column; gap: 14px; margin-bottom: 38px; position: relative; z-index: 2; }
.modal-meta-item { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.65); }
.modal-meta-item i { color: var(--main); font-size: 0.9rem; width: 18px; text-align: center; }
.modal-badge { display: inline-block; border: 1.5px solid rgba(0,212,255,0.4); color: var(--main); padding: 8px 22px; border-radius: 50px; font-size: 0.6rem; letter-spacing: 4px; font-weight: 800; position: relative; z-index: 2; background: rgba(0,212,255,0.05); }
.light-mode .modal-box { background: linear-gradient(135deg, rgba(230,245,255,0.98), rgba(210,235,255,0.95)); border-color: rgba(0,150,200,0.4); }
.light-mode .modal-title { color: #0f172a; }
.light-mode .modal-desc { color: rgba(15,23,42,0.8); }
.light-mode .modal-meta-item { color: rgba(15,23,42,0.65); }

.modal-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: 1.5px solid rgba(0,212,255,0.4);
    color: var(--main);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.65rem;
    letter-spacing: 3px;
    font-weight: 800;
    margin-bottom: 20px;
    transition: 0.3s;
    background: rgba(0,212,255,0.05);
    position: relative;
    z-index: 2;
}
.modal-link-btn:hover {
    background: var(--main);
    color: #000;
    box-shadow: 0 0 25px rgba(0,212,255,0.4);
}

/* ===== MODAL TABS (Details / Gallery) ===== */
.modal-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; position: relative; z-index: 2; }
.modal-tab-btn {
    background: transparent;
    border: 1px solid rgba(0,212,255,0.25);
    color: rgba(255,255,255,0.55);
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 3px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}
.modal-tab-btn:hover { border-color: var(--main); color: var(--main); }
.modal-tab-btn.active-tab { background: var(--main); color: #000; border-color: var(--main); }
.modal-tab-content { display: none; position: relative; z-index: 2; }
.modal-tab-content.active-tab-content { display: block; }
.light-mode .modal-tab-btn { color: rgba(15,23,42,0.55); }

/* ===== GALLERY (images + videos carousel) ===== */
.gallery-viewer {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-media-wrap { width: 100%; height: 100%; }
.gallery-media-wrap img,
.gallery-media-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-empty {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(0,212,255,0.35);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: 0.3s;
}
.gallery-arrow:hover { background: var(--main); color: #000; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: 0.3s;
    border: none;
    padding: 0;
}
.gallery-dot.active-dot { background: var(--main); width: 22px; border-radius: 5px; }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 72%;
        max-width: 320px;
        padding: 100px 40px 40px;
        background: var(--panel);
        backdrop-filter: blur(25px);
        border-left: 1px solid var(--border);
        transform: translateX(100%);
        transition: transform 0.45s cubic-bezier(0.2, 1, 0.3, 1);
        z-index: 1000;
    }
    .nav-links.mobile-open { transform: translateX(0); }
    .nav-links a { margin: 14px 0; font-size: 0.9rem; letter-spacing: 3px; }
    .premium-title { font-size: 1.3rem; letter-spacing: 7px; margin-bottom: 28px; }
    .cta-buttons { flex-direction: column; width: 100%; gap: 20px; }
    .f-luxury-box { min-width: 100%; }
    
    /* Course Cards Fix */
    .course-grid { grid-template-columns: 1fr; gap: 30px; padding: 0 5%; }
    .luxury-card { border-radius: 20px; }
    .card-img-container { aspect-ratio: 16 / 9; }
    .card-content { padding: 25px; }
    
    /* Modal Fix */
    .modal-box { padding: 40px 25px; border-radius: 20px; }
    .modal-title { font-size: 1.2rem; letter-spacing: 3px; }
    
    /* Sections */
    .section { padding: 80px 5%; }
    .grid-3 { grid-template-columns: 1fr; gap: 20px; }
    .v-card { padding: 40px 25px; }
    
    /* Hero */
    .glass-luxury-card { padding: 35px 25px; border-radius: 25px; }
    .hero-box { padding: 120px 5% 60px; }

    /* Hero logo lockup */
    .hero-name { font-size: 2.1rem; letter-spacing: 5px; gap: 8px; margin-bottom: 22px; }
    .top-socials a { margin-left: 14px; font-size: 1.15rem; }
    .nav-right { gap: 14px; }

    /* Standalone pages (Circuits / etc) need less top padding on small screens */
    .page-section { padding-top: 130px; }

    /* Modal tabs + gallery on mobile */
    .modal-tab-btn { padding: 8px 16px; font-size: 0.55rem; letter-spacing: 2px; }
    .gallery-arrow { width: 32px; height: 32px; font-size: 0.8rem; }
}
/* ===== Circuits grid (4 cards -> clean 2x2 on desktop) ===== */
.circuits-grid { max-width: 1200px; margin: 0 auto; }
.modal-tab-btn[hidden] { display: none; }

/* ===== CODE TAB ===== */
.code-block { border: 1px solid rgba(0,212,255,0.25); border-radius: 16px; overflow: hidden; background: #050b12; text-align: left; }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: rgba(0,212,255,0.07); border-bottom: 1px solid rgba(0,212,255,0.18); }
.code-lang { font-size: 0.6rem; letter-spacing: 3px; font-weight: 800; color: var(--main); }
.code-copy-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid rgba(0,212,255,0.35); color: var(--main); padding: 6px 14px; border-radius: 50px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.6rem; letter-spacing: 2px; font-weight: 800; cursor: pointer; transition: 0.3s; }
.code-copy-btn:hover { background: var(--main); color: #000; }
.code-block pre { margin: 0; padding: 18px; max-height: 380px; overflow: auto; tab-size: 4; -webkit-overflow-scrolling: touch; }
.code-block code { font-family: 'Consolas', 'Menlo', 'Monaco', 'Courier New', monospace; font-size: 0.78rem; line-height: 1.65; color: #d6e4ee; white-space: pre; display: block; }
.tk-c { color: #5f7c8c; font-style: italic; }
.tk-s { color: #c3e88d; }
.tk-k { color: #00d4ff; font-weight: 700; }
.tk-f { color: #9fe8ff; }
.tk-x { color: #ffcb6b; }
.tk-n { color: #f78c6c; }
@media (max-width: 900px) {
    .code-block code { font-size: 0.68rem; }
    .code-block pre { padding: 14px; max-height: 320px; }
}

/* ===== STORE PAGE ===== */
.store-grid { max-width: 1200px; margin: 0 auto; }
.store-grid .card-img-container { aspect-ratio: 3 / 2; }
.store-grid .card-img-container img { opacity: 1; object-fit: contain; }
.store-grid .luxury-card:hover img { transform: scale(1.05); filter: none; }
.store-grid .card-footer { margin-top: 18px; color: var(--main); font-size: 0.7rem; letter-spacing: 2px; font-weight: 800; text-transform: uppercase; }
.store-grid .card-footer i { margin-right: 6px; }

/* Card image fallback when the photo file is not uploaded yet */
.card-img-container.img-missing { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 20%, rgba(0,212,255,0.18), #02060a 70%); }
.card-img-container.img-missing::after { content: "\f2db"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 3rem; color: var(--main); opacity: 0.7; }

/* Store modal: scrolls inside itself so tall content never gets cut off */
.store-modal .modal-box { padding: 0; max-height: 92vh; display: flex; flex-direction: column; }
.store-modal .modal-scroll { position: relative; z-index: 2; padding: 60px 55px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(0,212,255,0.4) transparent; }
.store-modal .close-modal { z-index: 5; backdrop-filter: blur(6px); }
.store-modal .gallery-viewer { aspect-ratio: 3 / 2; }
.store-modal .gallery-media-wrap { display: flex; align-items: center; justify-content: center; }
.store-modal .gallery-media-wrap img,
.store-modal .gallery-media-wrap video { object-fit: contain; }
.store-gallery[hidden], .gallery-arrow[hidden] { display: none; }

/* Order tab (WhatsApp) */
.order-panel { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 5px; }
.order-icon { width: 84px; height: 84px; border-radius: 50%; border: 1.5px solid rgba(0,212,255,0.45); background: rgba(0,212,255,0.06); color: var(--main); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; margin-bottom: 26px; box-shadow: 0 0 40px rgba(0,212,255,0.18); }
.order-title { font-family: 'Syncopate'; font-size: 1rem; letter-spacing: 4px; color: #fff; margin-bottom: 18px; }
.order-text { margin-bottom: 30px; }
.whatsapp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 38px; border-radius: 50px; background: var(--main); color: #000; text-decoration: none; font-size: 0.7rem; letter-spacing: 3px; font-weight: 800; transition: 0.3s; box-shadow: 0 0 25px rgba(0,212,255,0.3); }
.whatsapp-btn i { font-size: 1.2rem; }
.whatsapp-btn:hover { transform: translateY(-3px); box-shadow: 0 0 45px rgba(0,212,255,0.55); }
.order-number { margin-top: 26px; font-size: 0.82rem; letter-spacing: 2px; color: rgba(255,255,255,0.65); }
.order-number i { color: var(--main); margin-right: 8px; }
.light-mode .order-title { color: #0f172a; }
.light-mode .order-number { color: rgba(15,23,42,0.65); }

@media (max-width: 900px) {
    .store-modal .modal-scroll { padding: 40px 25px; }
    .order-icon { width: 70px; height: 70px; font-size: 2.2rem; }
    .whatsapp-btn { padding: 15px 28px; width: 100%; }
}

/* ===== Circuits: odd last card is centered on 2-column layout ===== */
.gallery-media-wrap { display: flex; align-items: center; justify-content: center; }
@media (min-width: 960px) {
    .circuits-grid > .luxury-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 22.5px); justify-self: center; }
}

/* ===== Store: odd last card is centered on 2-column layout ===== */
@media (min-width: 960px) {
    .store-grid > .luxury-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 22.5px); justify-self: center; }
}

/* ===== LIGHTBOX (full-size gallery photo) ===== */
.gallery-media-wrap img.zoomable { cursor: zoom-in; }
.gallery-viewer { position: relative; }
.gallery-viewer::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; bottom: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.55); border: 1px solid rgba(0,212,255,0.35); color: var(--main); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; pointer-events: none; z-index: 3; }
.lightbox { position: fixed; inset: 0; z-index: 20000; background: rgba(0,0,0,0.94); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.lightbox.active { opacity: 1; pointer-events: all; }
.lb-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 60px 80px; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 80px rgba(0,0,0,0.8); }
.lb-close, .lb-arrow { position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(0,212,255,0.35); color: #fff; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; z-index: 2; }
.lb-close:hover, .lb-arrow:hover { background: var(--main); color: #000; }
.lb-close { top: 20px; right: 20px; width: 46px; height: 46px; font-size: 1rem; }
.lb-arrow { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 1rem; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-arrow[hidden], .lb-counter[hidden] { display: none; }
.lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 0.75rem; letter-spacing: 4px; font-weight: 800; }
@media (max-width: 900px) {
    .lb-media { padding: 70px 12px; }
    .lb-arrow { width: 40px; height: 40px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
    .lb-close { top: 14px; right: 14px; width: 42px; height: 42px; }
}

/* ===== STORE PRICES ===== */
.price-label { font-size: 0.6rem; letter-spacing: 4px; font-weight: 800; opacity: 0.55; }
.price-value { font-family: 'Syncopate'; color: var(--main); font-weight: 700; text-shadow: 0 0 18px rgba(0,212,255,0.45); white-space: nowrap; }
.price-value b { font-size: 1.9rem; font-weight: 700; }
.price-value small { font-size: 0.75rem; letter-spacing: 3px; }
.card-price { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.store-grid .card-footer { margin-top: 16px; }
.modal-price { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; margin-bottom: 26px; border: 1.5px solid rgba(0,212,255,0.4); border-radius: 18px; background: rgba(0,212,255,0.06); }
.modal-price .price-label { color: #fff; }
.order-price { font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 20px; color: #fff; font-weight: 600; }
.order-price b { color: var(--main); font-size: 1.3rem; text-shadow: 0 0 14px rgba(0,212,255,0.45); }
.light-mode .modal-price .price-label, .light-mode .order-price { color: #0f172a; }

/* =====================================================================
   PROFESSIONAL MOBILE + MOTION LAYER
   (everything below only refines; desktop look is unchanged)
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, .luxury-card { -webkit-tap-highlight-color: transparent; }
.luxury-card[data-circuit], .luxury-card[data-course], .luxury-card[data-kit] { cursor: pointer; }
.mobile-socials { display: none; }

/* Modals: content scrolls INSIDE the box, close button always stays visible */
.modal-box.has-scroll { padding: 0; max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column; }
.modal-box.has-scroll .modal-scroll { position: relative; z-index: 2; padding: 60px 55px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(0,212,255,0.4) transparent; }
.modal-box.has-scroll .close-modal { z-index: 5; }

/* Scroll-reveal motion (added by script.js, removed again after it plays) */
.reveal { opacity: 0; translate: 0 22px; transition: opacity .7s ease var(--rd, 0ms), translate .7s cubic-bezier(.2,1,.3,1) var(--rd, 0ms), transform .5s ease, border-color .5s, box-shadow .5s, background .4s, color .4s; }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.in { opacity: 1; translate: 0 0; transition: none; }
    .bg-x-img, .light-ray, .modal-glow { animation: none; }
}

/* Touch screens: no "stuck" hover jumps after a tap, soft press feedback instead */
@media (hover: none) {
    .luxury-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
    .luxury-card:hover img, .store-grid .luxury-card:hover img { transform: none; filter: none; opacity: .85; }
    .store-grid .luxury-card:hover img { opacity: 1; }
    .v-card:hover { transform: none; border-color: var(--border); }
    .v-card:hover .icon-box { background: rgba(0,255,136,0.03); color: var(--accent); box-shadow: none; }
    .f-luxury-box:hover { transform: none; border-color: var(--border); }
    .top-socials a:hover { transform: none; color: var(--text); }
    .outline-btn:hover { background: transparent; color: var(--text); box-shadow: none; }
    .luxury-card:active { transform: scale(0.985); border-color: var(--main); transition: transform .15s ease, border-color .15s ease; }
    .outline-btn:active { background: var(--text); color: var(--bg); }
}

@media (max-width: 900px) {
    /* ---------- Navigation ---------- */
    nav { padding: 12px 5%; backdrop-filter: none; -webkit-backdrop-filter: none; background: none; }
    nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(2,2,2,0.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
    .light-mode nav::before { background: rgba(245,247,250,0.85); }
    .logo { font-size: 0.85rem; letter-spacing: 2px; }
    .luxury-x-img { height: 22px; }
    .top-socials { display: none; }
    .nav-toggle { width: 34px; height: 34px; align-items: center; gap: 5px; }
    .nav-toggle span { width: 24px; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-links { height: 100vh; height: 100dvh; align-items: stretch; justify-content: flex-start; gap: 0; padding: 88px 28px 32px; width: 78%; max-width: 330px; }
    .nav-links a { margin: 0; padding: 17px 0; font-size: 0.8rem; letter-spacing: 3px; opacity: 0.7; border-bottom: 1px solid var(--border); width: 100%; }
    .nav-links a.active-link { opacity: 1; }
    .mobile-socials { display: flex; gap: 12px; margin-top: auto; padding-top: 28px; }
    .nav-links .mobile-socials a { width: 46px; height: 46px; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; letter-spacing: 0; opacity: 1; }
    .nav-links .mobile-socials a:active { background: var(--main); color: #000; border-color: var(--main); }

    /* ---------- Spacing + section titles ---------- */
    .section { padding: 64px 6%; }
    .page-section { padding-top: 104px; }
    .sec-title { font-size: clamp(0.95rem, 4.6vw, 1.25rem); letter-spacing: 0.28em; padding-left: 0.28em; margin-bottom: 34px; line-height: 1.5; }

    /* ---------- Hero ---------- */
    .hero-box { min-height: 100vh; min-height: 100svh; padding: 96px 6% 56px; }
    .top-tag { font-size: 0.58rem; letter-spacing: 0.35em; padding-left: 0.35em; color: var(--main); font-weight: 800; margin-bottom: 20px; }
    .hero-name { font-size: clamp(1.6rem, 8.2vw, 2.2rem); letter-spacing: 0.16em; gap: 8px; margin-bottom: 26px; }
    .hero-x-img { height: 0.8em; }
    .premium-title { font-size: 0.95rem; letter-spacing: 0.4em; padding-left: 0.4em; margin-bottom: 22px; }
    .glass-luxury-card { padding: 30px 22px; border-radius: 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
    .glass-luxury-card p { font-size: 0.95rem; line-height: 1.75; }
    .light-ray { animation: none; }
    .card-line { margin: 22px auto; }
    .est-box { margin-top: 30px; letter-spacing: 0.4em; }

    /* ---------- Principles / founders / CTA ---------- */
    .grid-3 { gap: 14px; }
    .v-card { padding: 30px 24px; border-radius: 22px; }
    .icon-box { width: 66px; height: 66px; font-size: 1.8rem; margin-bottom: 20px; border-radius: 18px; }
    .v-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
    .v-card p { font-size: 0.9rem; line-height: 1.6; opacity: 0.75; }
    .founders-flex { gap: 12px; }
    .f-luxury-box { padding: 26px 20px; border-radius: 16px; }
    .f-luxury-box h4 { font-size: 0.78rem; letter-spacing: 3px; }
    .cta-section { padding: 80px 6%; }
    .cta-title { font-size: clamp(1.15rem, 6vw, 1.6rem); letter-spacing: 0.2em; padding-left: 0.2em; margin-bottom: 36px; }
    .cta-buttons { gap: 12px; }
    .outline-btn { padding: 16px 20px; font-size: 0.7rem; letter-spacing: 0.2em; text-align: center; }
    .footer { padding: 52px 6% 64px; }
    .f-logo { font-size: 1.05rem; letter-spacing: 5px; margin-bottom: 18px; }
    .cp { font-size: 0.55rem; letter-spacing: 2px; line-height: 1.8; }

    /* ---------- Cards (circuits / courses / store) ---------- */
    .course-grid { padding: 0; gap: 20px; }
    .luxury-card { border-radius: 20px; }
    .card-img-container { aspect-ratio: 16 / 10; }
    .store-grid .card-img-container { aspect-ratio: 3 / 2; }
    .card-content { padding: 22px 22px 24px; }
    .tag { padding: 6px 14px; font-size: 0.55rem; letter-spacing: 2.5px; margin-bottom: 16px; }
    .card-content h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 10px; }
    .card-content p { font-size: 0.9rem; line-height: 1.65; opacity: 0.78; }
    .card-footer { font-size: 0.7rem; letter-spacing: 1px; opacity: 0.8; }
    .card-price { margin-top: 18px; padding-top: 16px; }
    .price-value b { font-size: 1.5rem; }
    .store-grid .card-footer { margin-top: 14px; }

    /* ---------- Modals ---------- */
    .modal-overlay { align-items: center; }
    .modal-box { width: 92%; border-radius: 22px; }
    .modal-box.has-scroll .modal-scroll, .store-modal .modal-scroll { padding: 62px 22px 28px; }
    .close-modal { top: 14px; right: 14px; width: 38px; height: 38px; }
    .modal-tag { margin-bottom: 14px; }
    .modal-title { font-size: 1.05rem; letter-spacing: 3px; margin-bottom: 20px; }
    .modal-divider { margin-bottom: 20px; }
    .modal-desc { font-size: 0.92rem; line-height: 1.75; margin-bottom: 26px; }
    .modal-tabs { gap: 8px; margin-bottom: 22px; }
    .modal-tab-btn { flex: 1 1 auto; text-align: center; padding: 11px 12px; }
    .modal-link-btn { width: 100%; justify-content: center; padding: 14px 20px; }
    .modal-meta { gap: 10px; margin-bottom: 26px; }
    .gallery-viewer { aspect-ratio: 4 / 3; border-radius: 16px; }
    .store-modal .gallery-viewer { aspect-ratio: 3 / 2; }
    .modal-price { padding: 14px 18px; margin-bottom: 20px; }
    .order-price { font-size: 0.85rem; }

    /* ---------- Floating controls + background ---------- */
    .theme-control { bottom: 16px; right: 14px; transform: scale(0.88); transform-origin: bottom right; }
    .bg-x-img { width: 92vw; animation: none; transform: none; opacity: 0.07; }
}
@media (max-width: 380px) {
    .card-content { padding: 20px 18px 22px; }
    .modal-box.has-scroll .modal-scroll, .store-modal .modal-scroll { padding: 60px 18px 24px; }
    .modal-tab-btn { padding: 10px 8px; letter-spacing: 1.5px; }
}

/* X sits right next to ELECTRON like one word (letter-spacing already adds the gap) */
.hero-name { gap: 0; }
.logo { gap: 0; }

/* X even closer to ELECTRON */
.hero-x-img { margin-left: -0.08em; }
.luxury-x-img { margin-left: -2px; }