@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.0.0/Vazirmatn-font-face.css');

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-main: #ededed;
    --text-muted: #888888;
    --accent: #d4af37;
}

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

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh; /* اضافه شده برای رفع باگ ارتفاع موبایل */
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%; background: rgba(10, 10, 10, 0.6);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    backdrop-filter: blur(5px);
}

.logo img { 
    height: 40px; 
    width: auto; 
    object-fit: contain; 
    filter: invert(1); 
}
.logo-text { font-size: 1.8rem; font-weight: 800; letter-spacing: 2px; color: #fff; text-decoration: none;}

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 1rem; transition: color 0.3s; text-transform: uppercase; letter-spacing: 1px;}
.nav-links a:hover { color: var(--accent); }

main { flex: 1; margin-top: 80px; }
section { padding: 4rem 10%; }

.page-title { font-size: 2.5rem; margin-bottom: 3rem; position: relative; display: inline-block; }
.page-title::after { content: ''; position: absolute; bottom: -10px; right: 0; width: 50%; height: 3px; background: var(--accent); }

.hero-slider {
    position: fixed; top: 0; left: 0; width: 100%; /* تغییر 100vw به 100% برای جلوگیری از پرش افقی */
    height: 100vh; height: 100dvh; /* اضافه شدن 100dvh */
    z-index: -1; background-color: #000;
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out;
}
.slide.active { opacity: 1; }
.slider-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.2)); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 3rem; }
.team-member { position: relative; aspect-ratio: 3/4; overflow: hidden; cursor: pointer; border-radius: 4px; background-color: #222; }
.team-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.team-overlay { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; text-align: center; padding: 1rem; color: var(--accent); font-size: 1.2rem; font-weight: bold; }
.team-member:hover .team-overlay { opacity: 1; }
.team-member:hover .team-img { transform: scale(1.05); }

.team-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); align-items: center; justify-content: center; }
.team-modal.active { display: flex; }
.team-modal-content { display: flex; flex-wrap: wrap; max-width: 900px; width: 90%; background: var(--bg-card); border-radius: 8px; overflow: hidden; }
.team-modal-img { flex: 1; min-width: 300px; }
.team-modal-img img { width: 100%; height: 100%; object-fit: cover; }
.team-modal-info { flex: 1; min-width: 300px; padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.team-modal-info h2 { color: var(--accent); margin-bottom: 0.5rem; }
.team-modal-info h4 { color: var(--text-muted); margin-bottom: 1.5rem; font-weight: normal; }
.team-modal-info p { color: var(--text-main); font-size: 1rem; line-height: 1.8; }
.modal-close { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 50px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
.modal-close:hover { color: var(--accent); }

/* گرید پروژه‌ها */
.ig-grid { column-count: 3; column-gap: 15px; }
@media (max-width: 900px) { .ig-grid { column-count: 2; } }
@media (max-width: 600px) { .ig-grid { column-count: 1; } }

.ig-item { position: relative; overflow: hidden; display: block; border-radius: 4px; background-color: #222; margin-bottom: 15px; break-inside: avoid; width: 100%; }
.ig-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ig-overlay { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; text-align: center; padding: 1rem; }
.ig-item:hover .ig-overlay { opacity: 1; }
.ig-item:hover .ig-img { transform: scale(1.08); }
.ig-overlay h3 { color: var(--accent); font-size: 1.5rem; margin: 0; }

.project-header { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.project-header-img { flex: 1; min-width: 300px; }
.project-header-img img { width: 100%; border-radius: 4px; object-fit: cover; }
.project-header-text { flex: 1; min-width: 300px; }
.project-header-text h1 { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; line-height: 1.3; }
.project-header-text p { color: var(--text-muted); font-size: 1.1rem; }

.project-gallery { column-count: 3; column-gap: 15px; }
@media (max-width: 900px) { .project-gallery { column-count: 2; } }
@media (max-width: 600px) { .project-gallery { column-count: 1; } }

.gallery-img { width: 100%; height: auto; object-fit: cover; border-radius: 4px; cursor: pointer; transition: transform 0.3s; background-color: #222; margin-bottom: 15px; break-inside: avoid; }
.gallery-img:hover { transform: scale(1.03); }

.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 50px; font-weight: bold; cursor: pointer; transition: color 0.3s; user-select: none; padding: 20px; z-index: 2001; }
.lightbox-arrow:hover { color: var(--accent); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 4px; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 50px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
.lightbox-close:hover { color: var(--accent); }

footer { padding: 2rem 10%; text-align: center; background-color: transparent; position: relative; z-index: 10; margin-top: auto;}
footer p { color: var(--text-muted); font-size: 0.9rem; }

.project-meta { list-style: none; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px dashed #333; font-size: 0.85rem; color: #999999; font-family: Tahoma, Arial, sans-serif; }
.project-meta li { margin-bottom: 0.6rem; display: flex; align-items: center; }
.project-meta strong { color: var(--accent); width: 100px; display: inline-block; }

/* ========================================= */
/* استایل‌های مربوط به منوی منظومه شمسی */
/* ========================================= */

.solar-system-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 800px; 
    height: 800px;
}

.sun-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    text-align: center;
    cursor: pointer;
    opacity: 0.6;
    animation: pulse 2s infinite alternate ease-in-out;
    transition: opacity 0.3s ease;
}

.sun-container:hover { opacity: 1; }

.sun-logo {
    width: 300px; 
    height: auto;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.95); }
    100% { transform: translate(-50%, -50%) scale(1.05); }
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; 
}

.orbit-1 { width: 420px; height: 420px; transition-delay: 0.1s; }
.orbit-2 { width: 560px; height: 560px; transition-delay: 0.2s; }
.orbit-3 { width: 700px; height: 700px; transition-delay: 0.3s; }
.orbit-4 { width: 840px; height: 840px; transition-delay: 0.4s; }

.planet {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 10px 24px; 
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s, color 0.3s;
    pointer-events: none; 
}

.planet:hover {
    background: #fff;
    color: #000;
}

.orbit-1 .planet { transform: translate(-50%, -50%) rotate(45deg) translate(210px) rotate(-45deg); }
.orbit-2 .planet { transform: translate(-50%, -50%) rotate(135deg) translate(280px) rotate(-135deg); }
.orbit-3 .planet { transform: translate(-50%, -50%) rotate(225deg) translate(350px) rotate(-225deg); }
.orbit-4 .planet { transform: translate(-50%, -50%) rotate(315deg) translate(420px) rotate(-315deg); }

.solar-system-menu.active .orbit {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.solar-system-menu.active .planet {
    pointer-events: auto;
}

/* ========================================= */
/* استایل‌های صفحه درباره ما و اعضای تیم */
/* ========================================= */

.about-indam { margin-bottom: 2rem; max-width: 800px; }
.about-description { font-size: 1.2rem; line-height: 1.9; color: #ccc; }

.team-category-title { font-size: 2rem; margin: 3rem 0 2rem; color: var(--accent); border-bottom: 1px dashed #333; padding-bottom: 10px; font-weight: normal; }

.team-grid-circles { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 40px; 
    margin-bottom: 4rem; 
}

.team-circle { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 1/1; 
    border-radius: 50%; 
    overflow: hidden; 
    cursor: pointer; 
}

.team-circle img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: grayscale(100%) brightness(0.8); 
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
}

.team-circle:hover img { 
    filter: grayscale(0%) brightness(1); 
    transform: scale(1.1); 
}

.circle-overlay { 
    position: absolute; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.75); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: opacity 0.4s ease; 
    color: #fff; 
    text-align: center; 
}

.team-circle:hover .circle-overlay { opacity: 1; }
.circle-overlay h4 { font-size: 1.4rem; color: var(--accent); margin-bottom: 5px; }
.circle-overlay span { font-size: 0.95rem; font-weight: 300; letter-spacing: 1px; color: #ddd; }

/* ========================================= */
/* انیمیشن و استایل مدال (پاپ‌آپ) مشخصات فرد */
/* ========================================= */

.member-modal { 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.92); 
    backdrop-filter: blur(15px); 
    z-index: 3000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.5s ease; 
}

.member-modal.active { 
    opacity: 1; 
    pointer-events: auto; 
}

.modal-container { 
    display: flex; 
    width: 90%; 
    max-width: 1100px; 
    gap: 4rem; 
    align-items: center; 
    justify-content: space-between; 
    position: relative; 
}

.close-member-modal { 
    position: absolute; 
    top: -60px; 
    right: 0; 
    font-size: 50px; 
    color: #fff; 
    cursor: pointer; 
    transition: color 0.3s; 
    z-index: 3001;
}

.close-member-modal:hover { color: var(--accent); }

.modal-image-wrapper { 
    order: 1; 
    width: 400px; 
    height: 400px; 
    border-radius: 50%; 
    overflow: hidden; 
    transform: translate(-100px, 100px) scale(0.6); 
    opacity: 0; 
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); 
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    flex-shrink: 0;
}

.member-modal.active .modal-image-wrapper { 
    transform: translate(0, -30px) scale(1); 
    opacity: 1; 
}

.modal-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.modal-text-content { 
    order: 2; 
    flex: 1; 
    opacity: 0; 
    transform: translateX(50px); 
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s; 
    color: #fff; 
}

.member-modal.active .modal-text-content { 
    opacity: 1; 
    transform: translateX(0); 
}

.modal-text-content h2 { font-size: 3.5rem; color: #fff; margin-bottom: 5px; line-height: 1.1; }
.modal-text-content h4 { font-size: 1.4rem; color: var(--accent); font-weight: normal; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 2px; }
.modal-text-content p { font-size: 1.15rem; line-height: 1.8; color: #b3b3b3; margin-bottom: 40px; max-width: 600px; }

.member-socials { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
    align-items: center; 
}

.member-socials a, .email-btn { 
    display: inline-block; 
    cursor: pointer; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.member-socials a:hover, .email-btn:hover { 
    transform: scale(1.2) translateY(-3px); 
}

.social-icon { 
    width: 32px; 
    height: 32px; 
    object-fit: contain; 
    filter: invert(1); 
}

.email-display {
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 1px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, height 0.4s ease;
}

.email-display.show {
    opacity: 1;
    height: auto;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .modal-container { flex-direction: column; text-align: center; gap: 2rem; }
    .modal-image-wrapper { order: 1; width: 250px; height: 250px; transform: translate(0, 50px) scale(0.6); }
    .member-modal.active .modal-image-wrapper { transform: translate(0, 0) scale(1); }
    .modal-text-content { order: 2; transform: translateY(50px); }
    .member-modal.active .modal-text-content { transform: translateY(0); }
    .member-socials { justify-content: center; }
    .close-member-modal { top: -30px; right: 10px; }
}

/* ========================================= */
/* استایل‌های صفحه Contact */
/* ========================================= */

.contact-header-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.contact-description {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #ccc;
    margin-bottom: 2.5rem;
}

.contact-socials {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.contact-socials a {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-socials a:hover {
    transform: scale(1.2) translateY(-3px); 
}

.contact-socials .social-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: invert(1); 
    display: block;
}

.locations-section {
    margin-top: 4rem;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
}

.location-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.3); 
}

.map-container {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    filter: grayscale(100%) invert(90%) contrast(80%); 
    transition: filter 0.5s ease;
}

.location-card:hover .map-container {
    filter: grayscale(0%) invert(0%) contrast(100%); 
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; 
}

.location-info {
    padding: 2rem;
    text-align: center;
}

.location-info h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.location-info p {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.direction-btn {
    display: inline-block;
    padding: 10px 25px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.direction-btn:hover {
    background: #fff;
    color: #000;
}
