       /*
          resources/public/css/style.css
          تنظیمات پیشرفته و مدرن UI
       */
   :root {
       --primary-dark: #0B1120; /* سرمه‌ای تقریباً مشکی - عمق بسیار زیاد */
       --primary-light: #1E293B;
       --accent-gold: #D4AF37;
       --accent-gold-gradient: linear-gradient(135deg, #F2D06B 0%, #D4AF37 100%);
       --accent-blue-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);

       --text-main: #1E293B;
       --text-muted: #64748B;
       --bg-body: #F8FAFC;
       --bg-card: #FFFFFF;

       --radius-xl: 30px; /* گوشه‌های بسیار نرم */
       --radius-full: 999px;

       --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
       --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
       --shadow-gold-glow: 0 10px 30px -10px rgba(212, 175, 55, 0.3);
       --shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.1);

       --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

       --white: #FFFFFF;
   }

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

html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    /* اسکرول بار زیبا */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) var(--primary-dark);
}

/* استایل اسکرول بار برای کروم */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- انیمیشن‌ها --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- کامپوننت دکمه --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-gold-gradient);
    color: var(--primary-dark);
    box-shadow: var(--shadow-gold-glow);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* --- تیترها --- */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--primary-dark); /* فال‌بک */
    background: -webkit-linear-gradient(45deg, var(--primary-dark), #64748B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- هدر --- */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1002;
}
.logo i {
    color: var(--accent-gold);
    font-size: 1.6rem;
}

/* --- استایل‌های منوی موبایل (جدید) --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1002;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* انیمیشن دکمه همبرگری به X */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.header-btn-wrapper {
    display: block; /* در دسکتاپ نمایش داده شود */
}

/* --- منوی دسکتاپ --- */
.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--primary-dark);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    right: 0;
    background: var(--accent-gold-gradient);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.nav-link:hover::after {
    width: 100%;
}

/*dropdown*/
.nav-item {
    position: relative;
}

/* آیکون چرخش هنگام هاور */
.dropdown-toggle i {
    transition: transform 0.3s;
}
.nav-item:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* استایل زیر منو */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    min-width: 240px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 1001;
}

/* نمایش زیر منو هنگام هاور */
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 25px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.2s;
    position: relative;
}

.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.1); /* طلایی کم رنگ */
    color: var(--accent-gold);
    padding-right: 30px; /* افکت حرکت به چپ */
}

/* نشانگر کوچک کنار آیتم‌ها */
.dropdown-menu a::before {
    content: '•';
    position: absolute;
    right: 10px;
    opacity: 0;
    color: var(--accent-gold);
    transition: opacity 0.2s;
}
.dropdown-menu a:hover::before {
    opacity: 1;
}

/* --- بخش Hero (اصلی) --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #F8FAFC 0%, #E2E8F0 100%);
    padding-top: 100px; /* فاصله برای هدر فیکس */
    overflow: hidden;
}

/* شکل انتزاعی پس‌زمینه */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 1;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.hero-text h1 span {
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-main-img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 20px 20px 60px rgba(0,0,0,0.15);
    transform: rotate(-2deg);
    transition: var(--transition);
    border: 8px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(5px);
}

.hero-image-wrapper:hover .hero-main-img {
    transform: rotate(0deg) scale(1.02);
}

.floating-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 4s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.5);
}

.floating-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- خدمات --- */
.services {
    padding: 120px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-body);
    padding: 50px 40px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,0);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold-glow);
    border-color: rgba(212, 175, 55, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 30px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-gold-gradient);
    color: var(--white);
    transform: rotateY(360deg);
}

/* --- آمار (بار شیشه‌ای) --- */
.stats {
    padding: 80px 0;
    background: var(--primary-dark);
    color: var(--white);
    position: relative;
}

/* دکوراتیو برای آمار */
.stats::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* --- پروژه ها --- */
.portfolio {
    padding: 120px 0;
    background: var(--bg-body);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 17, 32, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(11, 17, 32, 0.95) 20%, rgba(11, 17, 32, 0.4) 100%);
}

.project-title {
    color: var(--accent-gold);
    font-size: 1.4rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: 0.4s;
}

.project-card:hover .project-title {
    transform: translateY(0);
}

/* --- تماس --- */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-container {
    display: flex;
    gap: 60px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    border: 1px solid #f1f1f1;
}

.contact-info-panel {
    flex: 1;
    background: var(--primary-dark);
    padding: 60px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-info-panel::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent-gold);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.contact-form-panel {
    flex: 1.5;
    padding: 60px;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-field {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-family: inherit;
    transition: var(--transition);
    background: #F8FAFC;
}

.input-field:focus {
    border-color: var(--accent-gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    z-index: 2;
    position: relative;
}

.contact-icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- آیکون‌ها --- */
.icon-black {
    filter: brightness(0) saturate(100%);
}

.icon-white {
    filter: invert(100%) brightness(100%);
}

.icon-gold {
    filter:
        brightness(40)      /* اگر لازم بود اول سیاه خالص کن (اکثر مواقع اضافه کن) */
        saturate(60%)
        invert(69%)
        sepia(91%)
        saturate(1781%)
        hue-rotate(13deg)
        brightness(91%)
        contrast(80%);
}

/* آبی */
.icon-blue {
    filter: invert(47%) sepia(99%) saturate(1352%) hue-rotate(190deg) brightness(92%) contrast(101%);
}

/* قرمز */
.icon-red {
    filter: invert(16%) sepia(88%) saturate(7471%) hue-rotate(0deg) brightness(92%) contrast(118%);
}

/* --- فوتر --- */
footer {
    background: var(--primary-dark);
    color: #94A3B8;
    padding: 80px 0 30px;
    border-top: 4px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.footer-brand h3 span { color: var(--accent-gold); }

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-right: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

/* ==============================
   مدیا کوئری (Responsive)
   ============================== */

/* تبلت */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text { margin-bottom: 50px; }
    .hero-text h1 { font-size: 3rem; }
    .hero-buttons { justify-content: center; }
    .hero-image-wrapper { max-width: 600px; margin: 0 auto; }

    .contact-container { flex-direction: column; }
    .contact-info-panel { min-width: 100%; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* موبایل */
@media (max-width: 768px) {
    .container { padding: 0 20px; }

    /* هدر و منوی موبایل */
    .mobile-toggle { display: flex; } /* نمایش دکمه همبرگری */
    .header-btn-wrapper { display: none; } /* مخفی کردن دکمه مشاوره در هدر */

    .nav-menu {
        position: fixed;
        top: 0;
        right: -280px; /* شروع از بیرون صفحه */
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        padding: 20px;
        z-index: 1001;
        gap: 20px; /* فاصله بین آیتم‌ها در ستون */
    }

    .nav-menu.active {
        right: 0; /* وارد شدن منو */
    }

    /* تنظیمات لینک‌ها در منوی موبایل */
    .nav-link { font-size: 1.1rem; }

    /* باز شدن زیرمنو در موبایل (ساده‌سازی) */
    .nav-item { width: 100%; text-align: center; }
    .dropdown-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 10px 0;
        display: none; /* پیش فرض بسته */
    }
    .nav-item:hover .dropdown-menu { display: block; }
    .dropdown-menu a { color: var(--text-muted); padding: 10px; }

    /* بخش هیرو */
    .hero { padding-top: 80px; min-height: auto; padding-bottom: 60px; }
    .hero-text h1 { font-size: 2.2rem; }
    .section-header h2 { font-size: 2rem; }

    /* مخفی کردن تصویر هیرو در موبایل برای فوکوس روی متن (اختیاری) */
    .hero-image-wrapper { display: none; }

    /* خدمات */
    .services { padding: 60px 0; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .service-card { padding: 30px 20px; }

    /* آمار */
    .stats { padding: 40px 0; }
    .stats-grid { flex-direction: column; align-items: center; gap: 30px; }
    .stat-number { font-size: 2.5rem; }

    /* پروژه‌ها */
    .portfolio { padding: 60px 0; }
    .portfolio-grid { grid-template-columns: 1fr; }

    /* تماس */
    .contact { padding: 60px 0; }
    .contact-info-panel, .contact-form-panel { padding: 40px 20px; }

    /* فوتر */
    footer { padding: 40px 0 20px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; margin-bottom: 30px; }
    .footer-links a { display: inline-block; margin: 0 10px; }
}
