﻿/* ---------------------------
   📌 General Page
---------------------------- */
.contact-page {
    padding: 60px 20px;
    background: #000;
}

.title {
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}

/* ---------------------------
   📌 Grid System
---------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 25px;
}

/* Desktop Layout */
.address {
    grid-column: span 12;
}

.phone {
    grid-column: span 6;
}

.fax {
    grid-column: span 6;
}

.website {
    grid-column: span 6;
}

.email {
    grid-column: span 6;
}

.social {
    grid-column: span 12;
}

/* Responsive */
@media (max-width: 576px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        grid-column: span 1 !important;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .address, .social {
        grid-column: 1 / -1;
    }
}

/* ---------------------------
   📌 Card Wrapper
---------------------------- */
.contact-card {
    background: transparent;
    padding: 0;
}

/* ---------------------------
   🔄 Flip Card
---------------------------- */
/*.flip-card {
    perspective: 1200px;
    height: 180px;
}

.flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.2s ease-in-out;
}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}*/

/* Front & Back */
/*.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .flip-front i {
        font-size: 32px;
        color: #f4b942;
        margin-bottom: 8px;
    }

    .flip-front h3 {
        color: #333;
        margin: 0;
    }*/

/* Back side */
/*.flip-back {
    background: #f4b942;
    color: white;
    transform: rotateY(180deg);
    text-align: center;
}*/

/* Social icons */
/*.social-icons {
    display: flex;
    gap: 15px;
}

    .social-icons a {
        color: white;
        font-size: 22px;
    }*/
/* ============================================================
   🍏 Apple Style Ultra Smooth Flip
   ============================================================ */

.flip-card {
    perspective: 2000px; /* عمق بیشتر برای حس سه بعدی واقعی‌تر */
    height: 180px;
    border-radius: 20px; /* لبه‌های گردتر مشابه دیوایس‌های اپل */
}

.flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    /* فیزیک حرکت اپل: نرم شروع شده، سریع می‌چرخد و نرم تمام می‌شود */
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* سایه پایه (خیلی محو) */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 20px;
}

.flip-card:hover .flip-inner {
    /* چرخش همراه با کمی بزرگنمایی برای حس تعامل بیشتر */
    transform: rotateY(180deg) scale(1.04);
    /* سایه عمیق‌تر در حالت Hover */
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Front & Back Global */
.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.1); /* لبه‌های براق بسیار نازک */
}

/* Front - Clean Minimalist */
.flip-front {
/*    background: rgba(255, 255, 255, 0.95);*/
      background:rgba(244, 185, 66,0.95);
      backdrop-filter: blur(10px); /* حالت شیشه‌ای مات (Frosted Glass) */
}
/*#f4b942*/
.flip-front i {
    font-size: 36px;
    background: linear-gradient(135deg, #ffffff, #fffff0); /* گرادینت روی آیکون */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    transition: 0.3s;
}

    .flip-front h3 {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1d1d1f; /* رنگ متن معروف اپل */
        letter-spacing: -0.02em;
    }

/* Back - Premium Gradient */
.flip-back {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: black;
    transform: rotateY(180deg);
    text-align: center;
}

    .flip-back p {
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.6;
        margin: 0;
    }

/* بهبود آیکون‌های شبکه اجتماعی در پشت کارت */
.social-icons {
    display: flex;
    gap: 20px;
}

    .social-icons a {
        color: white;
        font-size: 24px;
        transition: transform 0.3s ease;
    }

        .social-icons a:hover {
            transform: scale(1.2);
        }

