@font-face {
    font-family: 'hesab';
    src: url(../fonts/W_hesab.ttf);
}

@font-face {
    font-family: 'Pinar';
    src: url('../fonts/Pinar-ExtraBold.woff2') format('woff2'),
        url('../font/Pinar-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar';
    src: url('../fonts/Pinar-Bold.woff2') format('woff2'),
        url('../fonts/Pinar-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar';
    src: url('../fonts/Pinar-Light.woff2') format('woff2'),
        url('../fonts/Pinar-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar';
    src: url('../fonts/Pinar-Medium.woff2') format('woff2'),
        url('../fonts/Pinar-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar';
    src: url('../fonts/Pinar-Regular.woff2') format('woff2'),
        url('../fonts/Pinar-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pinar';
    src: url('../fonts/Pinar-SemiBold.woff2') format('woff2'),
        url('../fonts/Pinar-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pinar';
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}



body {
    background: #0f172a;
    color: white;
    margin: 0;
}

/* ===== HEADER ===== */

.header {
    font-family: 'Pinar';
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 70px;
    border-radius: 20px;
    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);

    z-index: 1000;
}

.logo {
    font-weight: bold;
    font-size: 18px;
}

/* ===== NAV ===== */

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-size: 15px;
    padding: 5px 0;
    transition: 0.3s;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* خط زیر از راست */
.nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0%;
    height: 2px;
    background: #00e0ff;
    transition: width 0.9s ease;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: #00e0ff;
}

.nav a.active {
    color: #00e0ff;
}

.nav a.active::after {
    width: 100%;
}



/* ===== ABOUT PAGE DESKTOP ===== */

.about {
    font-family: 'Pinar';
    min-height: 100vh;
    padding: 120px 10% 80px;
    background: #0f172a;
    color: #ffffff;
}

/* Hero Section */
.about-hero {
    text-align: center;
    margin-bottom: 70px;
}

.about-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.6;
    display: inline-block;
    position: relative;
}

.about-hero h1::after {
    content: "";
    display: block;
    width: 60%;
    height: 4px;
    margin: 15px auto 0;
    border-radius: 10px;
    background: linear-gradient(to left, #38bdf8, #6366f1);
}

.about-subtitle {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
    line-height: 2;
    text-align: justify;
}

/* Content Section */
.about-content {
    max-width: 1000px;
    margin: auto;
}

.about-content h2 {
    margin-top: 50px;
    margin-bottom: 15px;
    font-size: 26px;
    color: #38bdf8;
}

.about-content p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 2.1;
    opacity: 0.85;
    margin-bottom: 25px;
    font-size: 16px;
}



/* ===== FOOTER ===== */

.footer {
    font-family: 'Pinar';
    font-size: 15px;
    font-weight: small;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.048);
    backdrop-filter: blur(20px);
    z-index: 10;
}

.loader-wrapper {
    position: fixed;
    inset: 0;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;

    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-wrapper.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* لوگو وسط */
.loader img {
    border-radius: 5px;
    width: 60px;
    z-index: 2;
}

/* حلقه دور */
.spinner {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #38bdf8;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

a {
    text-decoration: none;
    color: white;
}

.mobile-menu {
    display: none;
}

.logo-mobile {
    display: none;
}

.footer-mobile {
    display: none;
}

.about-teacher {
    max-width: 1100px;
    margin: 10px auto;
    padding: 40px 50px;
    border-radius: 10px;
}

.about-teacher h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #38bdf8;
}

.teacher-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.teacher-photo img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #00b4d8;
}

.teacher-info {
    flex: 1;
}

.teacher-info h3 {
    margin-bottom: 15px;
    font-size: 1.6em;
    color: #38bdf8;
}

.teacher-info p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 2.1;
    opacity: 0.85;
    margin-bottom: 25px;
    font-size: 16px;
}


.class-gallery {
    color: #e0e0e0;
    padding: 60px 0;
    text-align: center;
}

.class-gallery h2 {
    color: #38bdf8;
    margin-bottom: 30px;
    font-size: 2em;
}




.soon-button-container {
    text-align: center;
    /* برای اینکه دکمه وسط چین بشه */
    margin-top: 25px;
    margin-bottom: 25px;
}

.btn-soon {
    position: relative;
    /* برای استایل‌دهی به متن‌های داخلش */
    padding: 15px 30px;
    font-family: 'YourChosenFont', sans-serif;
    /* فونت دلخواهت رو اینجا بذار */
    font-size: 18px;
    font-weight: bold;
    color: #e0e0e0;
    /* رنگ متن روشن */
    background: linear-gradient(90deg, #2563eb, #400e6b);
    /* گرادینت بنفش تیره */
    border: none;
    border-radius: 10px;
    /* گرد کردن زیاد برای ظاهر مدرن */
    cursor: pointer;
    overflow: hidden;
    /* برای اینکه افکت‌ها بیرون نزنه */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* انیمیشن نرم */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* سایه برای عمق */
    display: inline-block;
    /* برای اینکه اندازه بگیره */
}

.btn-soon:hover {
    transform: translateY(-10px);
    /* کمی بالا رفتن موقع هاور */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    /* سایه بیشتر */
    filter: brightness(1.1);
    /* کمی روشن‌تر شدن */
}

/* بلوک عکس */
.image-block {
    margin: 30px 0 50px;
    text-align: center;
}

.image-block img {
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease;
}

.image-block img:hover {
    transform: scale(1.02);
}

.image-block figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #9a9a9a;
}






@media (max-width: 1000px) {

    /* تیتر بره سمت راست کامل */


    .header {
        padding: 0 20px;

    }

    .logo {
        display: none;
    }

    .logo-mobile {
        display: flex;
        font-weight: bold;
        font-size: 20px;
        order: 1;
    }

    .footer {
        display: none;
    }

    .footer-mobile {
        font-family: 'Pinar';
        font-size: 15px;
        font-weight: small;
        position: fixed;
        bottom: 0;
        width: 100%;
        height: 60px;

        display: flex;
        align-items: center;
        justify-content: center;

        background: rgba(255, 255, 255, 0.048);
        backdrop-filter: blur(20px);
        z-index: 10;
    }

    .menu-toggle {
        display: block;
        order: 2;
    }

    .nav {
        display: none;
    }

    .mobile-menu {
        font-family: 'Pinar';
        position: fixed;
        top: 0;
        left: 0;
        width: 100dvw;
        height: 100dvh;
        overflow-y: auto;
        /* این مهمه */

        background: #0b1a35;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        transform: translateX(100%);
        transition: 0.4s ease;
        z-index: 99999;
    }

    .mobile-menu.active {
        transform: translateX(0);
        color: #00e0ff;
    }

    /* آیتم‌ها */
    .menu-items {
        width: 80%;
        max-width: 400px;
    }

    .menu-items a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        /* 👈 فاصله آیکن و متن */

        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 15px;
        margin: 15px 0;

        text-decoration: none;
        color: white;
        font-size: 18px;

        transition: 0.3s;
    }



    /* دکمه بستن */
    .close-menu {
        gap: 8px;
        font-family: 'Pinar';
        margin-top: 40px;
        padding: 12px 30px;
        background: #38bdf8;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        cursor: pointer;
    }

    /* ===== ABOUT PAGE MOBILE ===== */


    .about {
        padding: 100px 20px 60px;
    }

    .about-hero h1 {
        font-size: 28px;
        top: 20px;
    }

    .about-hero h1::after {
        width: 70%;
        height: 3px;
        margin-bottom: 20px;
    }

    .about-subtitle {
        font-size: 14px;
    }

    .about-content h2 {
        font-size: 20px;
        margin-top: 35px;
    }

    .about-content p {
        font-size: 14px;
        line-height: 2;
    }


}