@font-face {
    font-family:'Digi-Trafic-Bold';
    src: url(../font/Digi\ Trafic\ Bold.otf);
}

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Digi-Trafic-Bold', 'JetBrains Mono', monospace;
}

body {
    direction: rtl;
    background: #0b0b0b;
    color: #eee;
}

/* ===== HERO ===== */
.contact-hero {
    position: relative;
    height: 60vh;
    background: url("https://images.unsplash.com/photo-1519389950473-47ba0277781c") center/cover no-repeat;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    color: #0dff00;
    font-size: 46px;
    text-shadow: 0 0 20px rgba(13,255,0,.6);
}

.hero-content p {
    margin-top: 10px;
    color: #aaa;
    font-size: 18px;
}

/* ===== CONTACT CONTAINER ===== */
.contact-container {
    max-width: 1100px;
    margin: 100px auto;
    padding: 0 20px;
    display: flex; /* فرم و info کنار هم */
    justify-content: center; /* وسط افقی */
    align-items: center; /* وسط عمودی */
    gap: 50px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(13,255,0,.2);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(12px);
    box-shadow: #8a8a8a 0px 0px 5px;
}

.contact-form h2 {
    color: #0dff00;
    margin-bottom: 25px;
    text-align: center;
    font-size: 26px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(13,255,0,.25);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
    color: #fff;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: #0dff00;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.contact-form button:hover {
    box-shadow: 0 0 25px rgba(13,255,0,.6);
}

/* ===== CONTACT INFO ===== */
.contact-info {
    width: 400px;
}

.contact-info h2 {
    color: #0dff00;
    margin-bottom: 25px;
    text-align: center;
    font-size: 26px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    color: #ccc;
    font-size: 16px;
}

.info-item i {
    color: #0dff00;
    margin-left: 10px;
    font-size: 18px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.socials i {
    font-size: 22px;
    color: #0dff00;
    cursor: pointer;
    transition: 0.3s;
}

.socials i:hover {
    transform: scale(1.2);
}

/* ===== SCROLL ANIMATION ===== */
.scroll-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.scroll-anim.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

/* زیر 1024px – gap کمتر */
@media(max-width:1024px){
    .contact-container {
        gap: 30px;
    }
}

/* زیر 768px – فرم بالا و بزرگ، info زیرش */
@media(max-width:768px) {
    .contact-container {
        flex-direction: column;
        align-items: center; /* وسط چین */
        gap: 30px;
        margin: 50px auto;
        padding: 0 20px;
    }

    .contact-form {
        width: 100%;
        max-width: 500px;
        padding: 40px;
        order: 1;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
        padding: 16px;
    }

    .contact-form button {
        font-size: 16px;
        padding: 16px;
    }

    .contact-info {
        width: 100%;
        max-width: 500px;
        order: 2;
        padding: 20px 0;
        text-align: center;
    }

    .contact-info h2 {
        font-size: 24px;
    }

    .info-item {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .info-item i {
        font-size: 20px;
    }

    .socials i {
        font-size: 22px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

/* زیر 480px – موبایل کوچک */
@media(max-width:480px) {
    .contact-hero {
        height: 220px;
    }

    .contact-container {
        padding: 0 15px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
        padding: 14px;
    }

    .contact-form button {
        font-size: 14px;
        padding: 14px;
    }

    .info-item {
        font-size: 14px;
    }

    .info-item i {
        font-size: 16px;
    }

    .socials i {
        font-size: 20px;
    }
}
