﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #2d6a4f 0%, #52b788 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1100;
}

    .hamburger span {
        display: block;
        width: 26px;
        height: 3px;
        background: #2d6a4f;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Animate hamburger to X when open */
    .hamburger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

    .nav-menu a {
        text-decoration: none;
        color: #333;
        font-weight: 600;
        transition: color 0.3s;
        position: relative;
    }

        .nav-menu a:hover {
            color: #2d6a4f;
        }

        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: #2d6a4f;
            transition: width 0.3s;
        }

        .nav-menu a:hover::after {
            width: 100%;
        }

/* Registration Success Panel */
.registration-success-panel {
    max-width: 800px;
    margin: 40px auto;
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    color: white;
    text-align: center;
    animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    font-size: 90px;
    margin-bottom: 25px;
    animation: scaleIn 0.6s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.registration-success-panel h2 {
    font-size: 32px;
    margin-bottom: 35px;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.registration-details {
    background: rgba(255,255,255,0.15);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 35px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.25);
}

    .detail-item:last-child {
        border-bottom: none;
    }

.detail-label {
    font-size: 17px;
    opacity: 0.95;
    font-weight: 600;
}

.detail-value {
    font-size: 19px;
    font-weight: 800;
    direction: ltr;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 10px;
}

.upload-status {
    background: rgba(255,255,255,0.15);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 35px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
}

.upload-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.upload-status h3 {
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 35px;
    background: rgba(255,255,255,0.25);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #52b788, #2d6a4f);
    border-radius: 20px;
    animation: fillProgress 2.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(82,183,136,0.5);
}

@keyframes fillProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.upload-complete {
    font-size: 20px;
    font-weight: 700;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.file-name {
    font-size: 15px;
    opacity: 0.85;
    direction: ltr;
    background: rgba(255,255,255,0.15);
    padding: 10px 20px;
    border-radius: 10px;
    margin-top: 10px;
    word-break: break-all;
}

.support-contact {
    background: rgba(255,255,255,0.15);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
}

.support-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: ring 3s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% {
        transform: rotate(0deg);
    }

    10%, 30% {
        transform: rotate(-15deg);
    }

    20%, 40% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

.support-contact h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.support-contact p {
    font-size: 17px;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.8;
}

.phone-numbers {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 25px 0;
    flex-wrap: wrap;
}

.phone-link {
    background: rgba(255,255,255,0.3);
    color: white;
    padding: 18px 35px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    direction: ltr;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

    .phone-link:hover {
        background: rgba(255,255,255,0.45);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

.support-hours {
    font-size: 15px;
    opacity: 0.85;
    margin-top: 20px;
    font-style: italic;
}

.info-note {
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 15px;
    padding: 20px;
    font-size: 15px;
}

    .info-note p {
        margin: 0;
        line-height: 1.8;
        font-weight: 600;
    }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(45,106,79,0.92) 0%, rgba(27,67,50,0.92) 100%), url('Images/hero-bg.jpg') center/cover;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
        animation: pulse 8s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: white;
    color: #2d6a4f;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}

    .cta-button:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.3);
        background: #f0faf4;
    }

/* About Section */
.about {
    background: white;
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2d6a4f 0%, #52b788 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
    color: #555;
}

/* Categories Section */
.categories {
    background: linear-gradient(135deg, #f0faf4 0%, #d8f3dc 100%);
    padding: 5rem 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .category-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #2d6a4f 0%, #52b788 100%);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .category-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }

        .category-card:hover::before {
            transform: scaleX(1);
        }

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.category-card p {
    color: #666;
    line-height: 1.8;
}

/* Rules Section */
.rules {
    background: white;
    padding: 5rem 2rem;
}

.rules-list {
    max-width: 900px;
    margin: 3rem auto 0;
}

.rule-item {
    background: linear-gradient(135deg, #f0faf4 0%, #d8f3dc 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border-right: 5px solid #2d6a4f;
    transition: all 0.3s ease;
}

    .rule-item:hover {
        transform: translateX(-10px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .rule-item h4 {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 0.8rem;
        color: #2d6a4f;
    }

    .rule-item p {
        color: #555;
        line-height: 1.8;
    }

/* Prizes Section */
.prizes {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    padding: 5rem 2rem;
    color: white;
}

    .prizes .section-title {
        color: white;
        -webkit-text-fill-color: white;
    }

    .prizes .section-subtitle {
        color: rgba(255,255,255,0.9);
    }

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.prize-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

    .prize-card:hover {
        background: rgba(255,255,255,0.2);
        transform: scale(1.05);
    }

.prize-rank {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.prize-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.prize-description {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    background: white;
    padding: 5rem 2rem;
}

.contact-info {
    max-width: 700px;
    margin: 3rem auto 0;
    text-align: center;
}

.contact-item {
    background: linear-gradient(135deg, #f0faf4 0%, #d8f3dc 100%);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

    .contact-item strong {
        color: #2d6a4f;
        font-weight: 700;
    }

/* Footer */
.footer {
    background: #1b4332;
    color: white;
    text-align: center;
    padding: 2rem;
}

    .footer p {
        margin-bottom: 0.5rem;
    }

/* ── Responsive / Mobile Nav ── */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        padding: 1rem 0;
        list-style: none;
    }

        .nav-menu.open {
            display: flex;
        }

        .nav-menu li a {
            display: block;
            padding: 0.9rem 1.5rem;
            font-size: 1rem;
            border-bottom: 1px solid #e8f5e9;
        }

        .nav-menu li:last-child a {
            border-bottom: none;
        }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .categories-grid,
    .prizes-grid {
        grid-template-columns: 1fr;
    }

    .registration-success-panel {
        padding: 30px 20px;
        margin: 20px;
    }

        .registration-success-panel h2 {
            font-size: 24px;
        }

    .phone-numbers {
        flex-direction: column;
        gap: 15px;
    }

    .phone-link {
        font-size: 18px;
        padding: 15px 25px;
    }
}
