/* ------------------- */
/* ۱. تنظیمات پایه و متغیرها */
/* ------------------- */
:root {
    --bg-color: #121212;
    --card-bg-color: #1E1E1E;
    --primary-color: #00BCD4; /* فیروزه‌ای */
    --accent-color: #FF5722;  /* نارنجی */
    --text-primary: #E0E0E0;
    --text-secondary: #BDBDBD;
    --border-radius: 12px;
    --shadow: 0 8px 20px rgba(0,0,0,0.5);
    --hover-bg: rgba(0, 188, 212, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-secondary);
    line-height: 1.8;
    overflow-x: hidden;
    direction: rtl;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { color: var(--text-primary); font-weight: 700; margin-bottom: 1.5rem; }
p { margin-bottom: 1.5rem; }
a { color: var(--text-secondary); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--primary-color); }

/* دکمه‌ها */
.btn {
    display: inline-block; padding: 12px 28px; border-radius: 50px;
    text-decoration: none; font-weight: 500; transition: 0.3s;
    border: 2px solid transparent; cursor: pointer;
}
.btn-primary {
    background-color: var(--primary-color); color: #121212; font-weight: 700;
}
.btn-primary:hover {
    background-color: #00acc1; transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

/* ------------------- */
/* ۲. هدر و نویگیشن */
/* ------------------- */
.main-header {
    background: rgba(18, 18, 18, 0.95); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #333;
}
.main-header .container {
    display: flex; justify-content: space-between; align-items: center; padding: 15px 20px;
}
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo { max-width: 120px; }

.desktop-nav { display: flex; align-items: center; gap: 20px; }
.contact-link { color: var(--text-secondary); text-decoration: none; transition: 0.3s; }
.contact-link:hover { color: var(--primary-color); }

/* منوی موبایل */
.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px;
}
.mobile-menu-btn span {
    width: 25px; height: 3px; background: var(--text-primary); transition: 0.3s;
}
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100%;
    background: var(--card-bg-color); z-index: 1001; transition: 0.4s;
    padding-top: 60px; box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}
.mobile-nav.active { right: 0; }
.mobile-nav ul { list-style: none; }
.mobile-nav li:hover { background-color: #00a5ba; color: #1E1E1E; }
.mobile-nav a {
    display: block; padding: 15px 25px; color: var(--text-primary);
    text-decoration: none; border-bottom: 1px solid #333;
}

/* ------------------- */
/* ۳. استایل‌های اختصاصی صفحه تماس */
/* ------------------- */
.page-content { padding-top: 2rem; min-height: 80vh; }
.content-section { padding: 60px 0; }
.bg-alternate { background-color: rgba(255, 255, 255, 0.02); }

/* Hero Section */
.hero-section {
    padding: 80px 0;
    text-align: center;
    background: radial-gradient(circle at top, #1e1e1e 0%, #121212 70%);
}
.hero-section h1 { font-size: 2.8rem; margin-bottom: 1rem; color: var(--primary-color); }
.hero-description { font-size: 1.1rem; max-width: 700px; margin: 0 auto; color: var(--text-secondary); }

/* Contact Cards Grid */
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 20px;
}

.contact-card {
    background: var(--card-bg-color); border: 1px solid #333; border-radius: var(--border-radius);
    padding: 40px 30px; text-align: center; display: flex; flex-direction: column; align-items: center;
    transition: 0.3s;
}
.contact-card:hover {
    transform: translateY(-10px); border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.card-icon {
    width: 80px; height: 80px; background: var(--hover-bg); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin-bottom: 25px;
    border: 1px solid rgba(0, 188, 212, 0.3);
}
.card-icon i { font-size: 2rem; color: var(--primary-color); }

.contact-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--primary-color); }
.card-text { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.8; }

/* Contact Details List */
.contact-details { width: 100%; margin-top: 10px; }
.detail-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid #333;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: var(--text-secondary); font-size: 0.9rem; }
.detail-row a { color: var(--text-primary); font-weight: 500; }
.detail-row a:hover { color: var(--primary-color); }

/* Link Button inside Card */
.btn-link {
    margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
    color: var(--primary-color);
}
.btn-link:hover { gap: 12px; }

/* Social Buttons */
.social-buttons { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 10px; border-radius: 8px; background: rgba(255,255,255,0.03);
    color: var(--text-primary); transition: 0.2s;
}
.social-btn:hover {
    background: var(--hover-bg); color: var(--primary-color); transform: translateX(-5px);
}

/* ------------------- */
/* ۴. فوتر */
/* ------------------- */
.main-footer { background: #0a0a0a; padding: 60px 0 20px; border-top: 1px solid #333; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--primary-color); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col a { color: var(--text-secondary); text-decoration: none; display: block; padding: 5px 0; transition: 0.3s; }
.footer-col a:hover { color: var(--primary-color); padding-right: 5px; }
.social-links { display: flex; gap: 15px; }
.social-links a { display: inline-block; font-size: 1.2rem; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #222; font-size: 0.9rem; }

/* ------------------- */
/* ۵. ریسپانسیو */
/* ------------------- */
@media (max-width: 768px) {
    /* هدر موبایل */
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    
    /* محتوا در موبایل */
    .hero-section h1 { font-size: 2.2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .detail-row { flex-direction: column; gap: 5px; align-items: flex-start; }
    
    /* فوتر موبایل - وسط چین */
    .footer-grid { text-align: center; }
    .footer-col { display: flex; flex-direction: column; align-items: center; }
    .footer-col h4 { border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 5px; width: fit-content; }
    .social-links, .enamas-box { justify-content: center; width: 100%; }
    .footer-col a:hover { padding-right: 0; }
}