:root {
    /* Brand Colors */
    --color-primary: #006C35;
    /* Deep Emerald Green */
    --color-primary-dark: #004D25;
    --color-gold: #D4AF37;
    /* Metallic Gold */
    --color-gold-light: #F4CF57;
    --color-gold-dark: #AA8C2C;
    --color-dark: #1A1A1A;
    /* Charcoal Gray */
    --color-light: #F8F9FA;
    /* Off-white */
    --color-white: #FFFFFF;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(0, 108, 53, 0.9), rgba(26, 26, 26, 0.8));
    --gradient-gold: linear-gradient(45deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-light));
    --gradient-text: linear-gradient(to right, var(--color-gold), var(--color-white));

    /* Typography */
    --font-heading: 'Outfit', 'Montserrat', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --container-width: 1280px;
    --section-padding: 5rem 2rem;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gold {
    color: var(--color-gold);
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-dark);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: var(--glass-blur);
    padding: 1rem 0;
    border-bottom: var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-white);
}

.logo-icon {
    font-size: 1.8rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text .saudi {
    font-size: 0.8em;
    color: var(--color-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-subtitle {
    display: block;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-white);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 50%;
    animation: scrollWheel 2s infinite;
}

.countdown-container {
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.countdown-label {
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1rem;
    border-radius: 12px;
    min-width: 90px;
    box-shadow: 0 0 15px rgba(0, 108, 53, 0.2);
}

.time-box span:first-child {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
    font-family: var(--font-heading);
}

.time-box .label {
    font-size: 0.75rem;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* About Section */
.section {
    padding: var(--section-padding);
}

.about {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about .section-title::after {
    margin-left: 0;
    /* Left align */
}

.about .section-title {
    color: var(--color-primary);
}

.lead {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

.stat-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--color-dark);
}

.visual-card {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
    opacity: 0.1;
    transform: translate(30%, -30%);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Programs Section */
.programs {
    background-color: #111;
    color: var(--color-white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    filter: brightness(0.7);
}

.program-card:hover .card-bg {
    transform: scale(1.1);
    filter: brightness(0.5);
}

.sanda-bg {
    background-image: url('../assets/images/sanda-card.png');
    background-color: #2a2a2a;
}

/* Fallback color */
.taolu-bg {
    background-image: url('../assets/images/taolu-card.png');
    background-color: #2a2a2a;
}

.youth-bg {
    background-image: url('../assets/images/youth-card.png');
    background-color: #2a2a2a;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.program-card:hover .card-content {
    transform: translateY(0);
}

.program-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.program-subtitle {
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.learn-more {
    display: inline-block;
    color: var(--color-white);
    margin-top: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.program-card:hover .learn-more {
    opacity: 1;
    transform: translateY(0);
}

/* Events & News */
.events {
    background-color: var(--color-light);
    color: var(--color-dark);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}

.view-all-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.date-badge {
    background: var(--color-light);
    color: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.date-badge .day {
    font-size: 1.5rem;
    line-height: 1;
}

.date-badge .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-details {
    flex: 1;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-gold-dark);
    font-size: 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.event-card h4 {
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.event-details p {
    font-size: 0.9rem;
    color: #666;
}

.news-card {
    background: var(--color-primary-dark);
    color: var(--color-white);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    grid-column: span 1;
    /* Default */
    display: flex;
    align-items: flex-end;
}

@media (min-width: 900px) {
    .news-card {
        grid-column: span 2;
    }
}

.news-content {
    padding: 2rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
    width: 100%;
}

.news-card h4 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

/* Partners */
.partners {
    background-color: var(--color-white);
    padding: 3rem 0;
    border-top: 1px solid #eee;
}

.partners-logos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: 0.6;
    filter: grayscale(100%);
}

.partner-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: #aaa;
    /* In reality, use <img> here */
}

/* Footer */
.footer {
    background-color: #0b1110;
    /* Very dark green/black */
    color: var(--color-white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #888;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--color-gold);
    color: var(--color-dark);
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gov-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

/* Media Queries */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
    }

    .mobile-menu-btn .bar {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--color-white);
        margin-bottom: 5px;
        transition: 0.3s;
    }

    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about .section-title {
        text-align: center;
    }

    .about .section-title::after {
        margin: 1rem auto;
    }
}