:root {
    --primary-color: #2E5AAC;
    --accent-gold: #C8102E;
    --light-teal: #4A7BC8;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Header */
header {
    background: #fff;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    text-align: right;
}

.logo-container img {
    max-width: 300px;
    height: auto;
    animation: fadeInDown 1s ease-out;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-menu a.active {
    background: var(--accent-gold);
    color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    margin: 6px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section with Video */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}

.cta-button {
    display: inline-block;
    padding: 1.8rem 4rem;
    background: #000000;
    color: var(--white);
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Cairo', sans-serif;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--white);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    background: #1a1a1a;
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
    background: var(--white);
    position: relative;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.3rem;
    line-height: 2;
    color: var(--dark-gray);
    text-align: justify;
    font-weight: 400;
    animation: fadeIn 1s ease-out;
}

/* Prizes Section */
.prizes-section {
    padding: 5rem 2rem;
    background: var(--light-gray);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Cairo', sans-serif;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeIn 1s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--primary-color) 100%);
}

.section-heading {
    text-align: center;
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Cairo', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease-out;
}

.prizes-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.prize-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.prize-card:nth-child(1) { animation-delay: 0.1s; }
.prize-card:nth-child(2) { animation-delay: 0.2s; }
.prize-card:nth-child(3) { animation-delay: 0.3s; }
.prize-card:nth-child(4) { animation-delay: 0.4s; }
.prize-card:nth-child(5) { animation-delay: 0.5s; }
.prize-card:nth-child(6) { animation-delay: 0.6s; }
.prize-card:nth-child(7) { animation-delay: 0.7s; }
.prize-card:nth-child(8) { animation-delay: 0.8s; }

.prize-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-gold) 100%);
}

.prize-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(46, 90, 172, 0.15);
}

.prize-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.prize-rank {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Cairo', sans-serif;
    color: var(--accent-gold);
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.prize-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Cairo', sans-serif;
}

/* Rules Section */
.rules-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.rules-container {
    max-width: 1200px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 20px;
    border-right: 6px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    animation: fadeInRight 1s ease-out;
    animation-fill-mode: both;
}

.rule-item:nth-child(2) { animation-delay: 0.1s; }
.rule-item:nth-child(3) { animation-delay: 0.2s; }
.rule-item:nth-child(4) { animation-delay: 0.3s; }
.rule-item:nth-child(5) { animation-delay: 0.4s; }
.rule-item:nth-child(6) { animation-delay: 0.5s; }

.rule-item:hover {
    transform: translateX(-10px);
    box-shadow: 0 10px 30px rgba(46, 90, 172, 0.1);
    border-right-width: 10px;
}

.rule-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-teal) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 5px 20px rgba(46, 90, 172, 0.3);
}

.rule-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-family: 'Cairo', sans-serif;
}

.rule-content p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--dark-gray);
}

.rule-note {
    margin-top: 3rem;
    padding: 2rem;
    background: #000000;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--white);
    animation: pulse 2s infinite;
}

.rule-note p {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    font-family: 'Cairo', sans-serif;
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a6b 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sponsors-section {
    margin-bottom: 3rem;
}

.sponsors-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.sponsor-logo {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sponsor-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.social-media {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Cairo', sans-serif;
}

.footer-divider {
    width: 100px;
    height: 3px;
    background: var(--accent-gold);
    margin: 2rem auto;
}

.copyright {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-top: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo-container {
        order: 1;
        flex: 0 0 auto;
    }

    .menu-toggle {
        display: block;
        order: 2;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        order: 3;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        text-align: center;
        padding: 1rem;
    }

    .logo-container img {
        max-width: 200px;
    }

    .cta-button {
        font-size: 1.8rem;
        padding: 1.3rem 3rem;
    }

    .section-heading {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .prizes-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .prize-rank {
        font-size: 3rem;
    }

    .prize-amount {
        font-size: 1.5rem;
    }

    .rule-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .rule-icon {
        margin: 0 auto;
    }

    .rule-content h3 {
        font-size: 1.4rem;
    }

    .rule-content p {
        font-size: 1rem;
    }

    .rule-note p {
        font-size: 1.1rem;
    }

    .about-text {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .sponsors-grid {
        gap: 1.5rem;
    }

    .sponsor-logo {
        max-width: 100px;
    }
}
