/* --- تنظیمات پایه و متغیرها --- */
:root {
    --gold: #D4AF37;       /* طلایی اصلی */
    --gold-light: #F3E5AB; /* طلایی روشن برای پس زمینه */
    --dark: #1a1a1a;       /* مشکی متن */
    --white: #ffffff;
    --gray: #f8f9fa;
    --gap: 25px;           /* فاصله استاندارد بین باکس‌ها */
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}

/* جلوگیری از پرش صفحه هنگام لودینگ */
body.hidden-content {
    overflow: hidden;
}

a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- کانتینر برای نظم دهی --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- لودینگ مدرن و حرفه‌ای --- */
#loader {
    position: fixed; 
    inset: 0; 
    /* گرادینت عمیق و مدرن بجای مشکی ساده */
    background: radial-gradient(circle at center, #2c2c2c 0%, #000000 100%); 
    z-index: 9999;
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); /* افکت حرکت نرم و حرفه‌ای */
}

/* کلاس برای جمع شدن لودینگ به بالا */
#loader.slide-up {
    transform: translateY(-100%);
}

.loader-content { 
    text-align: center; 
    color: var(--gold); 
    position: relative;
    z-index: 2;
}

.icon-wrapper {
    margin-bottom: 20px;
    perspective: 1000px; /* برای افکت سه بعدی */
}

.loader-icon { 
    font-size: 3.5rem; 
    /* انیمیشن چرخش لوکس سه بعدی */
    animation: luxurySpin 2s infinite linear; 
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.loader-text { 
    font-size: 1.5rem;
    letter-spacing: 5px; 
    font-weight: 300; 
    color: var(--white); 
    margin-bottom: 10px;
    /* انیمیشن باز شدن متن */
    animation: letterSpacing 1.5s ease-in-out infinite alternate;
}

.loader-line {
    width: 0;
    height: 1px;
    background: var(--gold);
    margin: 0 auto;
    animation: lineGrow 1.5s ease-in-out forwards;
}

/* کی‌فریم‌های انیمیشن لودینگ */
@keyframes luxurySpin { 
    0% { transform: rotateY(0deg); opacity: 0.8; } 
    50% { transform: rotateY(180deg); opacity: 1; text-shadow: 0 0 25px var(--gold); } 
    100% { transform: rotateY(360deg); opacity: 0.8; } 
}

@keyframes letterSpacing {
    from { letter-spacing: 2px; opacity: 0.7; }
    to { letter-spacing: 6px; opacity: 1; }
}

@keyframes lineGrow {
    0% { width: 0; opacity: 0; }
    100% { width: 100px; opacity: 1; }
}

/* --- انیمیشن ورود محتوای سایت --- */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

/* وقتی کلاس loaded به بادی اضافه شود، این استایل‌ها اعمال می‌شوند */
body.loaded .reveal-element {
    opacity: 1;
    transform: translateY(0);
}

.reveal-element.delay-1 {
    transition-delay: 0.3s; /* تاخیر برای بخش هیرو */
}

/* --- دکمه‌های شناور (واتساپ/اینستا) --- */
.floating-socials {
    position: fixed;
    bottom: 30px;
    left: 30px; /* سمت چپ صفحه */
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 30px; color: var(--white);
    box-shadow: 2px 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.float-btn:hover { transform: scale(1.1); }
.whatsapp { background-color: #25D366; }
.insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

/* --- هدر و منو --- */
.navbar {
    background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000; padding: 15px 0;
}
.nav-box { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: bold; color: var(--dark); }
.gold { color: var(--gold); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; }
.nav-links a:hover { color: var(--gold); }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- هدر اصلی (Hero) --- */
.hero {
    height: 85vh;
    background: url('https://amirdadgostar.github.io/site/zibai/Asli.jpeg') center/cover;
    position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.hero-content { position: relative; z-index: 2; padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

.btn { padding: 12px 35px; border-radius: 50px; font-weight: bold; display: inline-block; margin: 5px; }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #b59226; }
.btn-white { background: var(--white); color: var(--dark); }

/* --- سکشن‌ها عمومی --- */
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 10px; color: var(--dark); }
.section-desc { text-align: center; color: #777; margin-bottom: 50px; }
.bg-light { background-color: var(--gray); }

/* --- خدمات (نظم دهی دقیق) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* گرید ریسپانسیو */
    gap: var(--gap); /* فاصله یکسان بین باکس‌ها */
}

.service-card {
    background: var(--white);
    padding: 40px 25px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: 0.3s;
}
.service-card:hover { transform: translateY(-10px); border-bottom: 3px solid var(--gold); }
.icon-box { font-size: 2.5rem; color: var(--gold); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 15px; font-size: 1.2rem; }

/* --- گالری (تصاویر بزرگ) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* فاصله بین عکس‌ها */
}
.gallery-item {
    position: relative; height: 300px; overflow: hidden; border-radius: 10px; cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s;
}
.gallery-item:hover img { transform: scale(1.1); filter: brightness(0.7); }
.overlay {
    position: absolute; inset: 0; display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: 0.3s; color: var(--white); font-size: 2rem;
}
.gallery-item:hover .overlay { opacity: 1; }

/* --- تماس و آدرس (تمیز و مرتب) --- */
.contact-wrapper {
    background: var(--dark); color: var(--white);
}
.white-text { color: var(--white); }
.contact-box {
    background: #222;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #333;
    max-width: 800px; margin: 0 auto;
}
.c-row {
    display: flex; align-items: center; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 20px;
}
.icon-gold { font-size: 1.8rem; color: var(--gold); }
.c-row h4 { color: var(--gold); margin-bottom: 5px; }
.phone-link { color: var(--white); font-size: 1.2rem; font-weight: bold; }

/* دکمه نشان */
.map-buttons { text-align: center; margin-top: 30px; }
.btn-neshan {
    background: #0050FF; /* رنگ برند نشان */
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 80, 255, 0.3);
}
.btn-neshan:hover { background: #0040cc; }

/* --- فوتر --- */
.footer { text-align: center; padding: 20px; background: #111; color: #666; font-size: 0.9rem; }

/* --- ریسپانسیو (موبایل) --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; right: -100%; top: 70px; width: 80%; height: 100vh;
        background: var(--white); flex-direction: column; padding: 40px; transition: 0.3s;
        box-shadow: -5px 0 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .hamburger { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .c-row { flex-direction: column; text-align: center; }
}
