/* الألوان والإعدادات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-dark: #4a1e7c;
    --purple-medium: #5d3a8e;
    --purple-light: #7b4fa3;
    --teal: #2c9b96;
    --teal-light: #3dbdb7;
    --gold: #d4af37;
    --gold-light: #e5c981;
    --white: #ffffff;
    --bg-dark: #1a1a2e;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: "Cairo", "Tajawal", sans-serif;
    background: var(--bg-dark);
    color: var(--white);
    direction: rtl;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* HEADER */
.main-header {
    position: sticky;
    top: 0;
    background: var(--purple-dark);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    order: 2; /* على اليمين */
}

.header-logos img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.logo-divider {
    width: 2px;
    height: 50px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
}

.main-nav {
    order: 1; /* على اليسار */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* زر القائمة للموبايل */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    order: 0; /* على أقصى اليسار في الموبايل */
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* HERO */
.hero-section {
    position: relative;
    min-height: 90vh;
    background: linear-gradient(
        135deg,
        #3a1560 0%,
        #4a1e7c 30%,
        #5d3a8e 60%,
        #2c9b96 100%
    );
    padding: 4rem 0 6rem;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.02) 2px,
        rgba(255, 255, 255, 0.02) 4px
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 70vh;
}

.stats-circle {
    width: 450px;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle,
        rgba(123, 79, 163, 0.9) 0%,
        rgba(93, 58, 142, 0.8) 50%,
        rgba(74, 30, 124, 0.9) 100%
    );
    border-radius: 50%;
    border: 6px solid var(--white);
    box-shadow: 0 0 0 12px rgba(123, 79, 163, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5), inset 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.circle-label-top {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.circle-number {
    font-size: 140px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.circle-label-bottom {
    font-size: 2rem;
    color: var(--white);
    margin-top: 1rem;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.right-text h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1.2;
    margin: 1.5rem 0;
}

.right-text p {
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 600;
}

.criteria-section {
    margin-top: 3rem;
}

.criteria-title {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.criteria-subtitle {
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 2rem;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.criterion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 600;
}

.criterion-icon {
    color: var(--gold);
    font-size: 1.5rem;
}

.wave-bottom {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 150px;
    /* background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(44, 155, 150, 0.3) 50%,
        rgba(44, 155, 150, 0.6) 100%
    ); */
    clip-path: polygon(0 50%, 100% 20%, 100% 100%, 0 100%);
}

/* SECTIONS */
section {
    padding: 5rem 0;
}

/* COUNTDOWN */
.countdown-section {
    background: linear-gradient(
        135deg,
        var(--purple-medium) 0%,
        var(--purple-dark) 100%
    );
    /* background: linear-gradient(135deg, #329095 0%, var(--purple-dark) 100%); */
    /* background: linear-gradient(180deg, #329095 0%, var(--purple-dark) 100%); */
    padding: 4rem 0;
}

.countdown-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(123, 79, 163, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.countdown-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.countdown-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.countdown-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.countdown-timer {
    display: grid;
    grid-template-columns: auto auto auto auto auto auto auto;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.countdown-item {
    text-align: center;
    background: rgba(74, 30, 124, 0.6);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    min-width: 100px;
}

.countdown-value {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    font-family: "Cairo", sans-serif;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.countdown-label {
    display: block;
    font-size: 1.1rem;
    color: var(--white);
    margin-top: 0.5rem;
    font-weight: 600;
}

.countdown-separator {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
}

.countdown-date {
    text-align: center;
    font-size: 1.3rem;
    color: var(--gold-light);
    font-weight: 600;
    padding: 1rem;
    background: rgba(74, 30, 124, 0.4);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.countdown-message {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    min-height: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-line {
    width: 100px;
    height: 4px;
    background: var(--gold);
    margin: 1rem auto;
}

.section-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}

/* ABOUT */
.about-section {
    background: linear-gradient(
        135deg,
        var(--purple-dark) 0%,
        var(--purple-medium) 100%
    );
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(123, 79, 163, 0.2);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(74, 30, 124, 0.4);
    background: rgba(123, 79, 163, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.about-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* TRACKS */
.tracks-section {
    background: linear-gradient(
        135deg,
        var(--purple-dark) 0%,
        var(--purple-medium) 100%
    );
}

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

.track-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
    text-align: center;
}

.track-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.track-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.track-card h3 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.track-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.track-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--gold);
    color: var(--purple-dark);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.track-btn:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

/* TIMELINE */
.timeline-section {
    background: linear-gradient(
        135deg,
        #3a1560 0%,
        var(--purple-dark) 50%,
        var(--purple-medium) 100%
    );
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold), var(--gold-light));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) {
    padding-right: 0;
    padding-left: calc(50% + 2rem);
}

.timeline-dot {
    position: absolute;
    right: calc(50% - 12px);
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--gold);
    border-radius: 50%;
    border: 4px solid var(--purple-dark);
    z-index: 2;
}

.timeline-content {
    background: rgba(123, 79, 163, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.timeline-date {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-item.highlight .timeline-content {
    border: 2px solid var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.badge {
    display: inline-block;
    background: var(--gold);
    color: var(--purple-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* FILES */
.files-section {
    background: linear-gradient(
        135deg,
        var(--purple-dark) 0%,
        var(--purple-medium) 100%
    );
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.file-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    text-align: center;
    transition: all 0.3s;
}

.file-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.file-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.file-card h3 {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.file-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.file-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--gold);
    color: var(--purple-dark);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.file-btn:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

/* FOOTER */
.footer-bar {
    background: linear-gradient(
        135deg,
        #3a1560 0%,
        var(--purple-dark) 50%,
        rgba(44, 155, 150, 0.3) 100%
    );
    padding: 2rem 0;
    text-align: center;
    color: var(--white);
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: right;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-copy {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 1rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    .stats-circle {
        width: 350px;
        height: 350px;
    }
    .circle-number {
        font-size: 100px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .right-text h2 {
        font-size: 3rem;
    }

    .header-logos img {
        height: 60px;
    }

    .main-nav ul {
        gap: 1rem;
    }

    .main-nav a {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }

    .countdown-timer {
        gap: 0.5rem;
    }

    .countdown-item {
        padding: 1rem 1.5rem;
        min-width: 80px;
    }

    .countdown-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Header mobile */
    .header-wrapper {
        flex-wrap: wrap;
        position: relative;
    }

    .header-logos {
        order: 1;
        gap: 1rem;
    }

    .header-logos img {
        height: 50px;
    }

    .logo-divider {
        height: 40px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 0;
    }

    .main-nav {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 400px;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .main-nav a {
        display: block;
        text-align: center;
        padding: 0.8rem 1rem;
        width: 100%;
    }

    /* Rest of mobile styles */
    .stats-circle {
        width: 280px;
        height: 280px;
    }
    .circle-number {
        font-size: 80px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .right-text h2 {
        font-size: 2rem;
    }
    .criteria-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2rem;
    }
    .timeline-item {
        padding-right: 2rem !important;
        padding-left: 0 !important;
    }
    .timeline::before {
        right: 0;
    }
    .timeline-dot {
        right: -12px;
    }
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .countdown-wrapper {
        padding: 2rem 1rem;
    }

    .countdown-header h3 {
        font-size: 1.5rem;
    }

    .countdown-timer {
        grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
        gap: 0.3rem;
    }

    .countdown-item {
        padding: 0.8rem 0.5rem;
        min-width: 60px;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.8rem;
    }

    .countdown-separator {
        font-size: 2rem;
    }

    .countdown-date {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-logos img {
        height: 45px;
    }

    .logo-divider {
        height: 35px;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }
}
