/* ==============================================================================
   Apex Agency - Minimalist, Airy & Serene Luxury Coming Soon Styling
   Official Logo from D:\important projects\ApexWebsite & Zero-Box Scrollbar
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Orbitron:wght@500;700;900&family=Inter:wght@400;500;600;700&display=swap');

/* --- 1. ROOT DESIGN TOKENS --- */
:root {
    --bg-base: #090c1f;
    --text-pure: #ffffff;
    --text-glow: #e0f2fe;
    --text-muted: #94a3b8;
    
    --accent-cyan: #00d4ff;
    --accent-purple: #8b5cf6;
    --accent-emerald: #10b981;
}

/* --- 2. ZERO-BOX SCROLLBAR (NO WHITE BOX / TRANSPARENT TRACK) --- */
html, body {
    scrollbar-width: thin;
    scrollbar-color: #00d4ff transparent;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    background: transparent !important; /* إزالة البوكس والمسار الأبيض بالكامل */
    border: none !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d4ff 0%, #8b5cf6 100%) !important;
    border-radius: 10px !important;
    border: none !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6) !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #38bdf8 0%, #a855f7 100%) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.9) !important;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* --- 3. BASE STYLING (SINGLE VIEWPORT FIT - NO DESKTOP SCROLL) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    background-color: var(--bg-base);
    color: var(--text-pure);
    font-family: 'Cairo', 'Inter', -apple-system, sans-serif;
    direction: rtl;
    text-align: right;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

/* --- 4. SOFT & SOOTHING AMBIENT LIGHTING (مريحة للعين ومشرقة) --- */
.ambient-glow-wrapper {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.ambient-light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.55;
    animation: calm-drift 14s ease-in-out infinite alternate;
}

.ambient-light-orb.center-orb {
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.28) 0%, rgba(139, 92, 246, 0.18) 50%, transparent 75%);
}

.ambient-light-orb.top-glow {
    top: -100px;
    left: 20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
}

@keyframes calm-drift {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.45; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.65; }
}

.bg-ambient-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

/* --- 5. MAIN STAGE CONTAINER (AIRY & SPACIOUS) --- */
.main-stage {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-stage.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- 6. TOP APP BAR (CLEAN & MINIMAL) --- */
.top-app-bar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-badge-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.brand-badge-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.replay-intro-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.replay-intro-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-cyan);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

/* --- 7. HERO SECTION (BREATHING ROOM, SERENE & UNCLUTTERED) --- */
.hero-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

/* Central Glowing Official 3-Blade Apex Logo (from ApexWebsite) */
.solo-logo-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solo-logo-halo {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.35) 0%, rgba(139, 92, 246, 0.2) 50%, transparent 75%);
    filter: blur(25px);
    animation: halo-breathing 5s ease-in-out infinite alternate;
}

@keyframes halo-breathing {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 1; }
}

.official-apex-svg {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.8));
    animation: emblem-float 4s ease-in-out infinite alternate;
}

@keyframes emblem-float {
    0% { transform: translateY(0px) scale(0.98); }
    100% { transform: translateY(-6px) scale(1.02); }
}

/* Minimalist Elegant Status Pill */
.minimal-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.35);
    padding: 6px 18px;
    border-radius: 30px;
    color: #e0f2fe;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
    backdrop-filter: blur(8px);
}

.status-dot-pulse {
    width: 7px;
    height: 7px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* Titles */
.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 46px;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.15;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.hero-tagline {
    font-size: 18px;
    font-weight: 600;
    color: #cbd5e1;
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* Actions Grid (Clean, Spacious, Balanced) */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

/* Primary WhatsApp */
.hero-btn.btn-whatsapp {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    border: none;
}

.hero-btn.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

/* Portal Showcase */
.hero-btn.btn-showcase {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(8px);
}

.hero-btn.btn-showcase:hover {
    background: rgba(0, 212, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.45);
}

/* Portfolio Link */
.hero-btn.btn-portfolio {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: #e2e8f0;
    backdrop-filter: blur(8px);
}

.hero-btn.btn-portfolio:hover {
    background: rgba(139, 92, 246, 0.22);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* --- 8. MINIMAL FOOTER --- */
.footer-bar {
    width: 100%;
    padding: 16px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(9, 12, 31, 0.5);
    backdrop-filter: blur(8px);
}

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

.footer-text strong {
    color: #ffffff;
}

/* --- 9. RESPONSIVE MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    .main-stage {
        height: auto;
        min-height: 100vh;
    }
    
    .top-app-bar {
        padding: 18px 20px 0;
    }
    
    .solo-logo-container {
        width: 100px;
        height: 100px;
        margin-bottom: 18px;
    }
    
    .official-apex-svg {
        width: 75px;
        height: 75px;
    }
    
    .hero-title {
        font-size: 30px;
        letter-spacing: 2px;
    }
    
    .hero-tagline {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btn {
        width: 100%;
    }
}
