  /* =========================================
           1. RESET & VARIABLES & FONTS
           ========================================= */
        @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;300;500;700;900&display=swap');

      
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            outline: none;
            -webkit-tap-highlight-color: transparent;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Vazirmatn', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-light);
            overflow-x: hidden;
            line-height: 1.8;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: all var(--transition-speed) ease;
        }

        ul {
            list-style: none;
        }

        /* اسکرول بار سفارشی */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg-dark);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-hover);
        }

        /* =========================================
           2. PRELOADER (انیمیشن لودینگ)
           ========================================= */
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-dark);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            transition: opacity 0.5s ease-out;
        }

        .loader-circle {
            width: 80px;
            height: 80px;
            border: 3px solid transparent;
            border-top-color: var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .loader-circle:before {
            content: "";
            position: absolute;
            top: 5px;
            left: 5px;
            right: 5px;
            bottom: 5px;
            border-radius: 50%;
            border: 3px solid transparent;
            border-top-color: #ffffff;
            animation: spin 3s linear infinite;
        }

        .loader-text {
            margin-top: 20px;
            font-size: 1.2rem;
            letter-spacing: 2px;
            animation: pulse 1.5s infinite;
        }

        /* =========================================
           3. BACKGROUND CANVAS
           ========================================= */
        #particle-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: radial-gradient(circle at center, #1a1a40 0%, #000000 100%);
        }

        /* =========================================
           4. HEADER & NAVIGATION
           ========================================= */
        .header {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 20px 0;
            z-index: 1000;
            transition: all 0.4s ease;
        }

        .header.scrolled {
            padding: 10px 0;

            background: rgba(5, 5, 16, 0.85);
            backdrop-filter: blur(15px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.5);
            border-bottom: 1px solid var(--glass-border);
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 1.8rem;
            font-weight: 900;
            color: #fff;
            position: relative;
        }

        .logo img {
            width: 40px;
            height: 40px;
        }

        .logo i {
            color: var(--primary-color);
            font-size: 2.2rem;
            filter: drop-shadow(0 0 5px var(--primary-color));
        }

        /* منوی دسکتاپ */
        .nav-menu {
            display: flex;
            gap: 40px;
        }

        .nav-link {
            position: relative;
            font-size: 1.1rem;
            font-weight: 500;
            padding: 10px 0;
            color: rgba(255,255,255,0.8);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: width 0.3s ease;
            box-shadow: 0 0 10px var(--primary-color);
        }

        .nav-link:hover {
            color: #fff;
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .cta-btn-header {
            padding: 10px 25px;
            background: transparent;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
            border-radius: 50px;
            font-weight: bold;
            overflow: hidden;
            position: relative;
            z-index: 1;
        }

        .cta-btn-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0%;
            height: 100%;
            background: var(--primary-color);
            z-index: -1;
            transition: width 0.3s ease;
        }

        .cta-btn-header:hover {
            color: #fff;
        }

        .cta-btn-header:hover::before {
            width: 100%;
        }

        /* دکمه همبرگری */
        .hamburger {
            display: none;
            cursor: pointer;
            z-index: 1001;
        }

        .bar {
            display: block;
            width: 30px;
            height: 3px;
            margin: 6px auto;
            transition: all 0.3s ease-in-out;
            background-color: #fff;
            border-radius: 2px;
        }

        /* =========================================
           5. HERO SECTION (خانه)
           ========================================= */
        main {
            padding-top: 100px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }

        .hero-section {
            width: 100%;
            min-height: 85vh;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 0 20px;
            position: relative;
        }

        .hero-content {
            background: rgba(20, 20, 40, 0.4);
            backdrop-filter: blur(10px);
            padding: 60px 40px;
            border-radius: 30px;
            border: 1px solid var(--glass-border);
            max-width: 900px;
            width: 100%;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            transform: translateY(50px);
            opacity: 0; /* برای انیمیشن JS */
            transition: all 0.8s ease-out;
        }

        .hero-content.visible {
            transform: translateY(0);
            opacity: 1;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 900;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #fff, var(--primary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 10px 20px rgba(0,0,0,0.5);
            line-height: 1.3;
        }

        .hero-desc {
            font-size: 1.3rem;
            color: var(--text-gray);
            margin-bottom: 40px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        .hero-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .btn {
            padding: 15px 40px;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .btn-primary {
            background: linear-gradient(90deg, var(--primary-color), #ff4500);
            color: white;
            border: none;
            box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(255, 107, 0, 0.6);
        }

        .btn-secondary {
            background: rgba(255,255,255,0.1);
            color: white;
            border: 1px solid rgba(255,255,255,0.2);
            backdrop-filter: blur(5px);
        }

        .btn-secondary:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-3px);
        }

        /* =========================================
           6. LOCATION SECTION (نقشه)
           ========================================= */
        .location-section {
            width: 100%;
            padding: 100px 20px;
            display: flex;
            justify-content: center;
        }

        .map-container {
            width: 90%;
            max-width: 1200px;
            height: 500px;
            background: var(--glass-bg);
            padding: 15px;
            border-radius: 30px;
            border: 1px solid var(--glass-border);
            box-shadow: 0 0 30px rgba(0,0,0,0.5);
            transform: scale(0.9);
            opacity: 0;
            transition: all 0.8s ease;
        }

        .map-container.visible {
            transform: scale(1);
            opacity: 1;
        }

        .map-frame {
            width: 100%;
            height: 100%;
            border-radius: 20px;
            filter: grayscale(100%) invert(92%) contrast(83%); /* تم تاریک نقشه */
            border: none;
            transition: filter 0.5s;
        }

        .map-container:hover .map-frame {
            filter: grayscale(0%) invert(0%); /* بازگشت به رنگ عادی با هاور */
        }

        /* =========================================
           7. FOOTER (PERFECTLY CENTERED)
           ========================================= */
        footer {
            background: linear-gradient(to top, #000000, #0a0a20);
            padding-top: 80px;
            position: relative;
            overflow: hidden;
            border-top: 1px solid var(--glass-border);
            text-align: center; /* وسط‌چین کردن کلی */
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 30px 60px;
        }

        .footer-col {
            display: flex;
            flex-direction: column;
            align-items: center; /* آیتم‌ها در وسط ستون قرار گیرند */
        }

        .footer-col h3 {
            font-size: 1.4rem;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
            display: inline-block; /* برای اینکه عرض به اندازه متن باشد */
        }

        /* خط زیر تیتر - دقیقاً وسط */
        .footer-col h3::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%; /* شروع از وسط */
            transform: translateX(-50%); /* شیفت به چپ برای مرکز دقیق */
            width: 50px;
            height: 3px;
            background: var(--primary-color);
            border-radius: 2px;
        }

        .footer-col p {
            color: var(--text-gray);
            margin-bottom: 20px;
            line-height: 1.8;
            max-width: 300px; /* جلوگیری از پخش شدن بیش از حد متن */
        }

        .footer-links li {
            margin-bottom: 15px;
            width: 100%;
            display: flex;
            justify-content: center;
        }

        /* حذف انیمیشن حرکت به چپ و راست برای حفظ وسط‌چینی */
        .footer-links li:hover {
            transform: scale(1.05); /* فقط کمی بزرگ شود */
        }

        .footer-links a {
            color: #ccc;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .footer-links a:hover {
            color: var(--primary-color);
        }

        .contact-info {
            width: 100%;
        }

        .contact-info li {
            display: flex;
            align-items: center;
            justify-content: center; /* وسط‌چین کردن محتوای لیست */
            gap: 15px;
            margin-bottom: 20px;
            color: var(--text-gray);
        }

        .contact-info i {
            color: var(--primary-color);
            font-size: 1.2rem;
            /* margin-top: 5px; حذف شد تا دقیق وسط بماند */
        }

        /* سوشال مدیا - وسط‌چین */
        .social-row {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
        }

        .social-btn {
            width: 45px;
            height: 45px;
            border-radius: 12px;
            background: rgba(255,255,255,0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            border: 1px solid rgba(255,255,255,0.1);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .social-btn::before {
            content: '';
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary-color);
            transition: top 0.3s ease;
            z-index: 0;
        }

        .social-btn:hover::before {
            top: 0;
        }

        .social-btn i {
            z-index: 1;
            color: #fff;
        }

        .copy-right {
            text-align: center;
            padding: 25px;
            background: rgba(0,0,0,0.3);
            color: #666;
            font-size: 0.9rem;
            border-top: 1px solid rgba(255,255,255,0.05);
        }

        /* =========================================
           8. ANIMATIONS (Keyframes)
           ========================================= */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes pulse {
            0% { opacity: 0.5; }
            50% { opacity: 1; }
            100% { opacity: 0.5; }
        }

        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }

        .floating {
            animation: float 4s ease-in-out infinite;
        }

        /* =========================================
           9. RESPONSIVE DESIGN
           ========================================= */
        @media (max-width: 1024px) {
            .hero-title { font-size: 3rem; }
        }

        @media (max-width: 768px) {
            .hamburger {
                display: block;
            }

            .hamburger.active .bar:nth-child(2) {
                opacity: 0;
            }
            .hamburger.active .bar:nth-child(1) {
                transform: translateY(9px) rotate(45deg);
            }
            .hamburger.active .bar:nth-child(3) {
                transform: translateY(-9px) rotate(-45deg);
            }

            .nav-menu {
                position: fixed;
                left: -100%;
                top: 0;
                gap: 0;
                flex-direction: column;
                background-color: #050510;
                width: 80%;
                height: 100vh;
                text-align: center;
                transition: 0.4s;
                padding-top: 100px;
                box-shadow: 5px 0 15px rgba(0,0,0,0.5);
            }

            .nav-menu.active {
                left: 0;
            }

            .nav-item {
                margin: 20px 0;
            }

            .nav-link {
                font-size: 1.3rem;
            }

            .cta-btn-header {
                display: none; /* مخفی کردن دکمه هدر در موبایل */
            }

            .hero-title {
                font-size: 2.2rem;
            }

            .card1 {
                width: 95%;
                padding: 30px 20px;
            }

            .map-container {
                height: 350px;
            }
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: 1.8rem;
            }
            .btn {
                width: 100%;
                justify-content: center;
            }
        }