:root {
    --bg-dark: #0A1F44; /* Deep Navy Blue */
    --bg-surface: #102A5C; /* Dark Blue */
    --accent-primary: #F5F7FA; /* Star White */
    --accent-secondary: #E6E6E6; /* Soft Light Gray */
    --accent-tertiary: #dcdcdc; /* Lighter Gray for gradients */
    --accent-glow: rgba(245, 247, 250, 0.3);
    --blue-glow: rgba(230, 230, 230, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #E6E6E6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(245, 247, 250, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(230, 230, 230, 0.05) 0%, transparent 40%);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

/* Typed.js Cursor */
.typed-cursor {
    color: var(--accent-secondary);
}

/* Utilities */
.text-accent { color: var(--accent-primary); }
.text-secondary-accent { color: var(--accent-secondary) !important; }
.ls-2 { letter-spacing: 2px; }
.py-100 { padding-top: 100px; padding-bottom: 100px; }
.fw-extrabold { font-weight: 800; }
.max-width-700 { max-width: 700px; }
.z-index-2 { z-index: 2; position: relative; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #102A5C; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-secondary); }

/* Navigation & Brand Icon */
.navbar-brand {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    /* تحويل الشعار الداكن إلى الأبيض ليبرز على الخلفية الداكنة */
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--accent-glow));
}

.navbar-brand:hover .navbar-logo {
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

.navbar {
    background: rgba(10, 31, 68, 0.8) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-primary) !important;
}

/* Buttons */
.btn-accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #0A1F44;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #ffffff, var(--accent-primary));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--accent-glow);
    color: #0A1F44;
}

.btn-outline-light {
    border-color: var(--glass-border);
    border-width: 2px;
}

.btn-outline-light:hover {
    background: white;
    color: black;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    background: radial-gradient(circle at 20% 50%, rgba(245, 247, 250, 0.05) 0%, transparent 50%);
    overflow: hidden;
}

.text-glow {
    filter: drop-shadow(0 0 15px var(--accent-glow));
    background: linear-gradient(to bottom, #fff, var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    letter-spacing: -3px;
    line-height: 0.9;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at 70% 40%, rgba(230, 230, 230, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-secondary);
    border-right: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    margin: -5px;
    animation: arrows-down 2s infinite;
}

.arrows span:nth-child(2) { animation-delay: -0.2s; }
.arrows span:nth-child(3) { animation-delay: -0.4s; }

@keyframes arrows-down {
    0% { opacity: 0; transform: rotate(45deg) translate(-10px, -10px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(10px, 10px); }
}

/* Mockup Visual & Static Card */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--blue-glow);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    animation: aura-pulse 4s infinite alternate;
}

@keyframes aura-pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

.floating-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 35px;
    animation: float-simple 6s ease-in-out infinite;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    max-width: 420px;
    width: 100%;
}

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

.card-header-mock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.stream-badge {
    background: rgba(245, 247, 250, 0.1);
    color: var(--accent-primary);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    border: 1px solid rgba(245, 247, 250, 0.3);
    box-shadow: 0 0 15px var(--accent-glow);
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-align: center;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.team-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-top: 10px;
}

.vs-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vs {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--bg-dark);
    background: var(--accent-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(245, 247, 250, 0.5);
    box-shadow: 0 0 15px var(--accent-glow);
}

.stats-mock {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.stat {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat i {
    color: var(--accent-secondary);
}

/* Section Dividers */
.section-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.section-divider .shape-fill {
    fill: #0A1F44;
}

/* Feature Cards */
.features-section h2, .about-section h2 {
    background: linear-gradient(to right, #fff, var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card {
    background: linear-gradient(145deg, var(--bg-surface), #0A1F44);
    border: 1px solid var(--glass-border);
    padding: 45px 35px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(245, 247, 250, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.icon-box {
    width: 65px;
    height: 65px;
    background: rgba(245, 247, 250, 0.05);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
    border: 1px solid rgba(245, 247, 250, 0.1);
}

.feature-card:hover .icon-box {
    background: var(--accent-secondary);
    box-shadow: 0 0 20px var(--blue-glow);
}

.feature-card:hover .icon-box i {
    color: var(--bg-dark) !important;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0A1F44 0%, #102A5C 100%);
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
    filter: blur(100px);
    transform: translate(-50%, -50%);
    z-index: 1;
    border-radius: 50%;
    opacity: 0.4;
}

.pulse-btn {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 247, 250, 0.5); }
    70% { box-shadow: 0 0 0 25px rgba(245, 247, 250, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 247, 250, 0); }
}

.glow-on-hover:hover {
    box-shadow: 0 0 35px var(--accent-primary);
}

/* Footer */
footer {
    background: #061226;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 150px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .py-100 {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}
