/* ============================================
   CHAP SAFIR - Modern UI Redesign
   Color Palette from Panel CSS:
   - Primary Blue: #04a9f5
   - Dark Slate: #39465f
   - Heading: #1d2630
   - Active BG: #f3f5f7
   Font: Vazirmatn (Persian web font)
   ============================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --primary: #04a9f5;
    --primary-dark: #0390d4;
    --primary-light: #e8f7fe;
    --primary-rgb: 4, 169, 245;
    --secondary: #39465f;
    --secondary-dark: #2a3447;
    --secondary-light: #e8ecf1;
    --heading: #1d2630;
    --text: #5b6b79;
    --text-light: #8996a4;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-section: #f3f5f7;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #1de9b6;
    --warning: #f4c22b;
    --danger: #f44236;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(27, 46, 94, 0.06);
    --shadow-md: 0 4px 16px rgba(27, 46, 94, 0.08);
    --shadow-lg: 0 8px 32px rgba(27, 46, 94, 0.12);
    --shadow-xl: 0 16px 48px rgba(27, 46, 94, 0.16);
    --shadow-primary: 0 8px 24px rgba(var(--primary-rgb), 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    --header-height: 80px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul { list-style: none; }

img {
    max-width: 100%;
    display: block;
}

/* ===== UTILITY ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.text-right {
    text-align: right;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(var(--primary-rgb), 0.3);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

.btn i {
    font-size: 1.1em;
    transition: transform var(--transition);
}

.btn:hover i {
    transform: translateX(-4px);
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-tag i {
    font-size: 1.1em;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--heading);
    line-height: 1.4;
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loader-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    border-top-color: var(--primary);
    animation: spin 1.2s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 75%;
    height: 75%;
    border-right-color: #6366f1;
    animation: spin 1.6s linear infinite reverse;
}

.loader-ring:nth-child(3) {
    width: 50%;
    height: 50%;
    border-bottom-color: var(--success);
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--heading);
    line-height: 1.3;
}

.logo-tagline {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Nav */
.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link i {
    font-size: 0.7rem;
    transition: transform var(--transition);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-menu li a i {
    font-size: 1.1rem;
    color: var(--primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-section);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    transition: all var(--transition);
}

.header-phone:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.header-phone i {
    color: var(--primary);
    font-size: 1rem;
    animation: phone-ring 2s ease-in-out infinite;
}

@keyframes phone-ring {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(0); }
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--heading);
    border-radius: 2px;
    transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--bg);
    z-index: 2000;
    padding: 24px;
    transition: right var(--transition);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-header .logo-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--heading);
}

.menu-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-section);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--heading);
    font-size: 1.4rem;
    transition: all var(--transition);
}

.menu-close:hover {
    background: var(--danger);
    color: #fff;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 32px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 50%, var(--primary-light) 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: rgba(var(--primary-rgb), 0.15);
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.12);
    bottom: -100px;
    right: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(var(--primary-rgb), 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge i {
    color: var(--warning);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--heading);
    line-height: 1.3;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 2;
    margin-bottom: 32px;
    max-width: 520px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-card-main {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 3;
    position: relative;
    border: 1px solid var(--border-light);
}

.hero-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    flex-shrink: 0;
}

.hero-card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 4px;
}

.hero-card-content p {
    font-size: 0.88rem;
    color: var(--text-light);
}

.hero-card-float {
    position: absolute;
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--heading);
    border: 1px solid var(--border-light);
    z-index: 4;
}

.hero-card-float i {
    font-size: 1.3rem;
    color: var(--primary);
}

.hero-card-1 {
    top: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.hero-card-2 {
    bottom: 25%;
    left: 0;
    animation: float 6s ease-in-out infinite 2s;
}

.hero-card-3 {
    bottom: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite 4s;
}

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

/* Print Stack Illustration */
.hero-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.15;
}

.print-paper {
    width: 200px;
    height: 260px;
    background: var(--bg);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    position: absolute;
}

.pp1 {
    transform: rotate(-8deg) translateX(-30px);
    opacity: 0.4;
}

.pp2 {
    transform: rotate(4deg) translateX(10px);
    opacity: 0.7;
}

.pp3 {
    transform: rotate(-2deg) translateX(40px);
    opacity: 1;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.75rem;
    animation: fadeInUp 1s ease 1s forwards;
    opacity: 0;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #6366f1);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.service-card.featured {
    background: linear-gradient(160deg, var(--heading) 0%, var(--secondary-dark) 100%);
    color: #fff;
    border-color: transparent;
}

.service-card.featured .service-title {
    color: #fff;
}

.service-card.featured .service-description {
    color: rgba(255, 255, 255, 0.7);
}

.service-card.featured .service-features li {
    color: rgba(255, 255, 255, 0.85);
}

.service-card.featured .service-features li i {
    color: var(--success);
}

.service-card.featured .service-link {
    color: var(--primary);
}

.service-card.featured .service-link:hover {
    color: #fff;
}

.service-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.6rem;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.service-card.featured .service-icon {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
}

.service-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
}

.service-badge {
    padding: 4px 12px;
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 12px;
}

.service-description {
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text);
}

.service-features li i {
    color: var(--primary);
    font-size: 1.1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition);
}

.service-link:hover {
    gap: 12px;
}

/* ===== WHY US SECTION ===== */
.why-us {
    background: var(--bg-alt);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition-slow);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.why-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all var(--transition);
}

.why-card:hover .why-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== TARIFFS SECTION ===== */
.tariffs {
    background: var(--bg);
}

.tariff-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.tariff-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.tariff-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tariff-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.tariff-tab i {
    font-size: 1.2rem;
}

.tariff-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tariff-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tariff-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.tariff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tariff-table thead {
    background: linear-gradient(135deg, var(--heading), var(--secondary-dark));
}

.tariff-table th {
    padding: 16px 20px;
    color: #fff;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.tariff-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    color: var(--secondary);
    text-align: right;
    white-space: nowrap;
}

.tariff-table tbody tr {
    transition: background var(--transition);
}

.tariff-table tbody tr:hover {
    background: var(--primary-light);
}

.tariff-table tbody tr:last-child td {
    border-bottom: none;
}

.tariff-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.88rem;
    color: var(--text-light);
}

.tariff-note i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-frame {
    position: relative;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-radius: var(--radius-xl);
    padding: 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: patternMove 8s ease-in-out infinite;
}

@keyframes patternMove {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.about-stats-card {
    position: absolute;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.about-stats-card:first-of-type {
    top: 20px;
    right: -20px;
}

.about-stats-card.card-2 {
    bottom: 20px;
    left: -20px;
    animation-delay: 3s;
}

.about-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.about-stat-text {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 500;
}

.about-content .section-tag {
    display: inline-flex;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--text);
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary);
}

.about-feature i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: var(--bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--bg);
    border: none;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--heading);
    cursor: pointer;
    text-align: right;
    transition: all var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-item.active .faq-question {
    color: var(--primary);
    background: var(--primary-light);
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-right: 16px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.92rem;
    line-height: 2;
    color: var(--text);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 60px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--heading) 0%, var(--secondary-dark) 50%, #1a1f36 100%);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(var(--primary-rgb), 0.15);
    top: -200px;
    right: -100px;
    filter: blur(60px);
}

.cta-shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.15);
    bottom: -150px;
    left: -50px;
    filter: blur(60px);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.contact-info-icon.social-icons {
    display: flex;
    gap: 12px;
    background: transparent;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    transition: all var(--transition);
}

.social-icon.whatsapp {
    background: #25d366;
}

.social-icon.telegram {
    background: #0088cc;
}

.social-icon:hover {
    transform: scale(1.15);
}

.contact-info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 8px;
}

.contact-info-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.8;
}

.contact-info-card a {
    color: var(--primary);
}

.contact-info-card a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.92rem;
    color: var(--heading);
    background: var(--bg);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--heading);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-name {
    color: #fff;
}

.footer-logo .logo-tagline {
    color: rgba(255, 255, 255, 0.5);
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 16px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: all var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(-4px);
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
}

.footer-contact li i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom strong {
    color: var(--primary);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.5);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        order: -1;
    }

    .about-image-frame {
        min-height: 300px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 70px 0;
    }

    .navbar { display: none; }
    .header-phone { display: none; }
    .menu-toggle { display: flex; }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        min-height: 300px;
    }

    .hero-card-float {
        display: none;
    }

    .why-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tariff-tabs {
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
        margin: 0 auto 40px;
    }

    .cta-card {
        padding: 50px 24px;
    }

    .about-image-frame {
        padding: 60px 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-card-main {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== AUTH MODAL ===== */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.auth-overlay.open {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 460px;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.auth-overlay.open .auth-modal {
    transform: translateY(0) scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-section);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.3rem;
    transition: all var(--transition);
    z-index: 10;
}

.auth-modal-close:hover {
    background: var(--danger);
    color: #fff;
}

.auth-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-step.active {
    display: block;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.auth-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--heading);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.auth-header p strong {
    color: var(--primary);
    direction: ltr;
    display: inline-block;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Login Tabs */
.login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 4px;
}

.login-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    font-family: var(--font-family);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
}

.login-tab:hover {
    color: var(--secondary);
}

.login-tab.active {
    background: var(--bg);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.login-tab i {
    font-size: 1.1rem;
}

.login-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.login-panel.active {
    display: block;
}

/* OTP Hint */
.otp-hint {
    font-size: 0.82rem !important;
    color: var(--success) !important;
    background: rgba(29, 233, 182, 0.08);
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-top: 8px;
}

.otp-hint strong {
    color: var(--success) !important;
    letter-spacing: 4px;
    direction: ltr;
    display: inline-block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap > i:first-child {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    transition: color var(--transition);
}

.input-icon-wrap input {
    padding-right: 46px !important;
}

.input-icon-wrap:focus-within > i:first-child {
    color: var(--primary);
}

.toggle-password {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    transition: color var(--transition);
}

.toggle-password:hover {
    color: var(--primary);
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    gap: 10px;
    direction: ltr;
    justify-content: center;
    margin-bottom: 8px;
}

.otp-input {
    width: 52px;
    height: 56px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-family);
    color: var(--heading);
    background: var(--bg);
    outline: none;
    transition: all var(--transition);
    caret-color: var(--primary);
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}

.otp-input.filled {
    border-color: var(--primary);
    background: var(--primary-light);
}

.otp-timer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.otp-timer strong {
    color: var(--primary);
    font-weight: 700;
}

.resend-link {
    color: var(--primary);
    font-weight: 600;
}

.resend-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    font-size: 0.88rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    transition: all var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

.auth-footer a i {
    font-size: 1rem;
}

/* ===== FOOTER BOTTOM BADGES ===== */
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    transition: transform var(--transition);
}

.footer-badge:hover {
    transform: scale(1.05);
}

.zarinpal-logo,
.enamad-logo {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.footer-dev {
    width: 100%;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-dev a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition);
}

.footer-dev a:hover {
    color: var(--primary);
}

.footer-dev a i {
    font-size: 1rem;
}

/* ===== RESPONSIVE: Auth ===== */
@media (max-width: 480px) {
    .auth-modal {
        padding: 32px 20px;
    }

    .otp-input {
        width: 44px;
        height: 48px;
        font-size: 1.2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-badges {
        justify-content: center;
    }
}

