/* ===== Base (همون قبلی) ===== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    line-height: 1.8;
    background: #f9fafb;
    color: #333;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(0, 136, 204, 0.9), rgba(0, 170, 255, 0.9));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #fff;
    transition: all 0.3s;
    flex-wrap: wrap;
}

.header-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.header-right a {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
}

/* رنگ‌ها و هاور همون قبلیه */
.header-right a:first-child {
    background: #fff;
    color: #0088cc;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.header-right a:first-child:hover {
    background: #0088cc;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 136, 204, 0.4);
}

.header-right a:nth-child(2) {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.header-right a:nth-child(2):hover {
    background: #fff;
    color: #0088cc;
}

.header-right a:nth-child(3) {
    background: #f1f5f9;
    color: #444;
}

.header-right a:nth-child(3):hover {
    background: #e2e8f0;
}

.header-left img {
    height: 48px;
}

/* ===== Hero ===== */
.hero {
    height: 100vh;
    background: url("assets/pattern.svg") no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgb(20 0 0 / 10%), #095ac37a);
    animation: pulse 6s infinite;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 800px;
    animation: fadeIn 2s;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.95;
}

.hero-content .cta {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 28px;
    background: #0088cc;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.4);
    transition: .3s;
}

.hero-content .cta:hover {
    background: #00aaff;
    box-shadow: 0 0 20px #00aaff, 0 0 30px #00aaff;
    transform: translateY(-3px);
}

/* ===== Sections ===== */
section {
    padding: 90px 20px;
}

h2.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 45px;
    color: #222;
}

/* ===== Register ===== */
.register {
    background: #fff;
}

.levels {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.level {
    background: #f9fafb;
    padding: 35px 28px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: .4s;
    flex: 1 1 280px;
    max-width: 300px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.level.show {
    opacity: 1;
    transform: translateY(0);
}

.level:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.level img {
    width: 50px;
    margin-bottom: 10px;
}

.level h3 {
    font-size: 20px;
    margin: 15px 0;
    color: #111;
}

.level p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.level a {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #0088cc, #005f99);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: .3s;
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.4);
}

.level a:hover {
    background: linear-gradient(135deg, #00aaff, #006699);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

/* ===== Footer ===== */
footer {
    background: #111;
    color: #eee;
    padding: 40px 20px;
    text-align: center;
    transition: .3s;
}

footer .social {
    margin: 15px 0;
}

footer .social a {
    margin: 0 8px;
    display: inline-block;
}

footer .social img {
    width: 24px;
    filter: invert(1);
    opacity: .8;
    transition: all 0.3s;
}

footer .social img:hover {
    opacity: 1;
    transform: scale(1.2);
}

footer p {
    font-size: 13px;
    color: #bbb;
}

@media (max-width:992px) {
    .levels {
        gap: 15px;
    }

    .level {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

@media (max-width:768px) {
    header {
        padding: 12px 20px;
    }

    .header-right {
        position: absolute;
        top: 60px;
        right: 0;
        background: linear-gradient(90deg, rgba(0, 136, 204, 0.9), rgba(0, 170, 255, 0.9));
        flex-direction: column;
        width: 100%;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .header-right.active {
        max-height: 300px;
    }

    .header-right a {
        margin: 10px 0;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 70px;
        height: calc(100vh - 70px);
    }

    .header-left img {
        height: 40px;
    }

    .level {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 25px 18px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-content .cta {
        padding: 10px 22px;
        font-size: 13px;
    }
}

@media (max-width:480px) {
    header {
        padding: 10px 15px;
    }

    .hero {
        padding-top: 60px;
        height: calc(100vh - 60px);
    }

    .header-left img {
        height: 36px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }
}

/* ===== Hamburger Icon ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}