@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('../fonts/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;
}

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%;
}

.contact-section {
    font-family: 'Pinar';
    min-height: 100vh;
    /* کل صفحه رو بگیره */
    display: flex;
    align-items: center;
    /* وسط عمودی */
    justify-content: center;
    /* وسط افقی */
    padding: 40px 20px;
    background: #0f172a;
    color: #fff;
}

.contact-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    gap: 40px;
}

/* کارت ها */
.contact-card {
    flex: 1;
    background: #1e293b;
    padding: 50px 40px;
    /* قد بیشتر */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.123);
    min-height: 480px;
    /* ارتفاع بیشتر */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card h2 {
    margin-bottom: 30px;
    font-size: 24px;
    border-bottom: 2px solid #38bdf8;
    display: inline-block;
    padding-bottom: 6px;
}

/* ===== FORM BOX (Glass) ===== */

.contact-form-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
}

/* ===== INPUTS ===== */

.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* ===== BUTTON ===== */

.contact-btn {
    font-family: 'Pinar';
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient(to left, #38bdf8, #6366f1);
    color: #fff;
    transition: 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(56, 189, 248, 0.5);
}

/* ارتباط مستقیم */
.direct-contact {
    align-items: center;
}

.icon-box {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.icon-box a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    /* بزرگ‌تر */
    background: #334155;
    border-radius: 18px;
    font-size: 34px;
    color: #38bdf8;
    transition: 0.3s ease;
}

.icon-box a:hover {
    background: #38bdf8;
    color: #000;
    transform: translateY(-6px);
}




/* ===== 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.08);
    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;
}





@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;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-card {
        min-height: auto;
    }
}