* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #010d54 0%, #142862 50%, #161a7c 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #010d54;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 2px solid #3109a0;
}

.logo-placeholder {
    text-align: center;
}

.logo-placeholder img {
    max-height: 60px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #1800ad;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #161a7c, #142862);
    padding: 60px 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px #3109a0;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 24px;
    color: #0E99B3;
    margin-bottom: 20px;
    font-weight: bold;
}

.btn-primary {
    background: #3109a0;
    color: #ffffff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1800ad;
    transform: scale(1.05);
}

.btn-large {
    padding: 18px 50px;
    font-size: 20px;
}

/* About Section */
.about, .tracks, .register-section, .timeline-section, .faq-section, .prizes, .sponsors, .contact-section {
    padding: 80px 0;
    background: #142862;
    margin: 20px 0;
    border-radius: 20px;
}

h2 {
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 32px;
    text-align: center;
}

.about-intro {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.goals {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.goal-card {
    background: #161a7c;
    padding: 30px;
    border-radius: 15px;
    flex: 1;
    min-width: 250px;
    border: 1px solid #3109a0;
}

.goal-card h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.goal-card ul {
    list-style: none;
    padding-right: 20px;
}

.goal-card li {
    margin-bottom: 10px;
}

/* Countdown */
.countdown {
    background: #010d54;
    padding: 60px 0;
    text-align: center;
    border-radius: 20px;
    margin: 20px 0;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.timer div {
    background: #161a7c;
    padding: 20px 30px;
    border-radius: 15px;
    font-size: 24px;
    font-weight: bold;
    min-width: 100px;
    border-bottom: 3px solid #3109a0;
}

.timer span {
    font-size: 48px;
    display: block;
    color: #ffffff;
}

/* Tracks Page */
.page-header {
    background: #010d54;
    padding: 60px 0;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 20px;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.track-card {
    background: #161a7c;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #3109a0;
    transition: transform 0.3s;
}

.track-card:hover {
    transform: translateY(-5px);
}

.track-card h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 24px;
}

.challenge {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #3109a0;
}

.challenge ul {
    padding-right: 20px;
    margin-top: 10px;
}

.challenge li {
    margin-bottom: 8px;
}

/* Challenges Summary */
.challenges-summary {
    background: #142862;
    padding: 80px 0;
    border-radius: 20px;
    margin: 20px 0;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.challenge-card {
    background: #161a7c;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border-bottom: 4px solid #3109a0;
}

.challenge-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

/* Register Page */
.register-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.register-info ul {
    list-style: none;
    padding-right: 20px;
}

.register-info li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.register-form {
    background: #161a7c;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.telegram-link {
    display: inline-block;
    margin: 15px 0;
    color: #ffffff;
    background: #3109a0;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
}

.form-note {
    margin-top: 20px;
    color: #ffffffcc;
    font-size: 14px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.timeline-date {
    background: #3109a0;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 180px;
    text-align: center;
}

.timeline-content {
    background: #161a7c;
    padding: 15px 25px;
    border-radius: 15px;
    flex: 1;
    margin-right: 20px;
}

/* FAQ */
.faq-item {
    background: #161a7c;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    background: #010d54;
    border-bottom: 1px solid #3109a0;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 300px;
}

/* Prizes */
.prizes-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.prize-card {
    background: #161a7c;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    min-width: 200px;
    border: 2px solid #3109a0;
}

.prize-card h3 {
    margin-bottom: 15px;
}

.prize-amount {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
}

.prize-total {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

/* Sponsors */
.sponsor-tiers {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.tier {
    text-align: center;
    min-width: 200px;
    background: #010d54;
    padding: 20px;
    border-radius: 15px;
}

.tier h3 {
    margin-bottom: 15px;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.sponsor-item {
    text-align: center;
    background: #010d54;
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.3s;
}

.sponsor-item:hover {
    transform: translateY(-5px);
}

.sponsor-img {
    max-width: 180px;
    max-height: 100px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 12px;
    margin: 10px auto;
}

.img-placeholder {
    color: #ffffff80;
    font-size: 12px;
    margin-top: 10px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.email {
    font-size: 20px;
    background: #010d54;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-placeholder {
    background: #3109a0;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s;
}

.social-placeholder:hover {
    background: #1800ad;
}

.event-date {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #3109a0;
    font-weight: bold;
}

/* Footer */
footer {
    background: #010d54;
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    border-top: 1px solid #3109a0;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    nav a {
        display: inline-block;
        margin: 5px 10px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-content {
        margin-right: 0;
        margin-top: 10px;
    }
    
    .timeline-date {
        text-align: center;
    }
}