/* ============================================================
   Video Guard - Complete Styles
   ============================================================ */

:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --primary-light: #A29BFE;
    --secondary: #00CEC9;
    --gradient-1: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
    --gradient-2: linear-gradient(135deg, #00CEC9 0%, #6C5CE7 100%);
    --dark: #1a1a2e;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(108, 92, 231, 0.15);
    --shadow-hover: 0 20px 60px rgba(108, 92, 231, 0.25);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Font Face Definitions ===== */
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', 'Vazirmatn', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 22px;
    color: var(--dark);
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--dark);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.nav-list a:hover {
    background: var(--light-gray);
    color: var(--primary);
}

.nav-list a.active {
    color: var(--primary);
}

.nav-list .btn-login {
    background: var(--gradient-1);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
}

.nav-list .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    background: var(--gradient-1);
    color: var(--white);
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
}

.lang-link {
    text-decoration: none;
    color: var(--gray);
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-link.active {
    color: var(--primary);
}

.lang-divider {
    color: #ddd;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

#securityMesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
}

.hero-text {
    color: var(--white);
    padding-right: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-text h1 .gradient-text {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(108, 92, 231, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--white);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ============================================================
   ABOUT US
   ============================================================ */
.about {
    padding: 100px 0;
    background: var(--white);
    overflow: hidden;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

.about-content .section-tag {
    margin-bottom: 12px;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.about-text {
    margin: 20px 0 30px;
}

.about-text p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
}

.about-stat {
    display: flex;
    flex-direction: column;
}

.about-stat .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.about-stat .stat-label {
    font-size: 14px;
    color: var(--gray);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(108, 92, 231, 0.05);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
    padding: 100px 0;
    background: var(--light-gray);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.step h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   WHY VIDEO GUARD
   ============================================================ */
.why {
    padding: 100px 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 100%;
}

.why-card {
    background: var(--white);
    padding: 28px 22px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(108, 92, 231, 0.05);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.why-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.why-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* ============================================================
   TEAM
   ============================================================ */
.team {
    padding: 100px 0;
    background: var(--light-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.team-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 4px solid var(--primary-light);
    background: var(--light-gray);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-card span {
    font-size: 14px;
    color: var(--gray);
    display: block;
    margin-bottom: 12px;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
    padding: 80px 0;
    background: var(--dark);
    color: var(--white);
}

.cta-wrapper {
    text-align: center;
}

.cta-wrapper h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-wrapper p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 32px;
}

.btn-cta {
    background: var(--white);
    color: var(--primary);
    font-size: 18px;
    padding: 16px 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
    padding: 100px 0;
    background: var(--light-gray);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(108, 92, 231, 0.02);
}

.faq-question h4 {
    font-size: 16px;
    font-weight: 600;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--gray);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

.contact-info-grid .info-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(108, 92, 231, 0.05);
}

.contact-info-grid .info-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.contact-info-grid .info-item i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.contact-info-grid .info-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info-grid .info-item p {
    color: var(--gray);
    font-size: 14px;
}

.contact-info-grid .info-item a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-grid .info-item a:hover {
    color: var(--primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    opacity: 0.6;
    font-size: 14px;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-contact .footer-phone i {
    color: var(--secondary);
}

.footer-contact .footer-whatsapp i {
    color: #25D366;
}

.footer-contact .footer-email i {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    opacity: 0.4;
    font-size: 14px;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
}

.loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

/* ============================================================
   JUSTIFY & CENTER MIX
   ============================================================ */
p, .hero-text p, .about-text p, .feature-card p, .step p, .why-card p, 
.faq-answer p, .team-card span, .info-item p, .cta-wrapper p,
.section-header p, .about-content p, .value-card p,
.hero-buttons .btn, .nav-list a, .footer p, .footer a,
.login-form p, .register-link p, .dashboard-header p,
.stat-label, .help-text, .message, .form-group label,
.captcha-group input::placeholder, .login-form .form-options .forgot-link,
.purchase-info .info-box p, .purchase-info .info-box ul li,
.dashboard-actions .btn, .table-container td, .table-container th {
    text-align: justify;
    text-justify: inter-word;
}

/* ===== Center specific texts ===== */
.section-header p, 
.about-content p, 
.team-card span,
.info-item p,
.cta-wrapper p,
.purchase-info .info-box p,
.login-info .info-box p,
.why-subtitle,
.how-it-works .section-header p,
.features .section-header p,
.why .section-header p,
.team .section-header p,
.faq .section-header p,
.contact .section-header p,
.value .section-header p,
.section-header .section-subtitle,
.about-subtitle,
.team-subtitle,
.faq-subtitle,
.contact-subtitle {
    text-align: center !important;
}

/* ===== Exception for elements that should stay centered ===== */
.hero-badge, .section-tag, .section-header h2, 
.step-number, .feature-icon, .why-card-icon,
.dashboard-stats .stat-card, .empty-state,
.contact-info-grid .info-item, .team-card h4,
.logo, .lang-switcher, .menu-toggle,
.btn, .hero-buttons, .cta-wrapper h2,
.footer-brand, .footer-links, .footer-contact,
.login-form h3, .purchase-form h3 {
    text-align: center !important;
}

/* ===== RTL specific ===== */
html[dir="rtl"] p, 
html[dir="rtl"] .hero-text p, 
html[dir="rtl"] .about-text p, 
html[dir="rtl"] .feature-card p, 
html[dir="rtl"] .step p, 
html[dir="rtl"] .why-card p, 
html[dir="rtl"] .faq-answer p, 
html[dir="rtl"] .team-card span, 
html[dir="rtl"] .info-item p, 
html[dir="rtl"] .cta-wrapper p,
html[dir="rtl"] .section-header p, 
html[dir="rtl"] .about-content p, 
html[dir="rtl"] .value-card p {
    text-align: justify;
    text-justify: kashida;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ====== تبلت ====== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-text {
        padding-right: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-text p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        width: 100%;
        max-width: 400px;
    }
    
    .hero-image img {
        max-width: 400px;
    }
    
    .about-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
        width: 100%;
        max-width: 100%;
    }
    
    .about-image {
        width: 100%;
        max-width: 400px;
    }
    
    .about-image img {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .about-content {
        width: 100%;
        max-width: 100%;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====== موبایل ====== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .hero-image {
        max-width: 300px;
    }
    
    .hero-image img {
        max-width: 300px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .about-content h2 {
        font-size: 28px;
    }
    
    .about-image {
        max-width: 300px;
    }
    
    .about-image img {
        max-width: 280px;
    }
    
    .about-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .about-stat .stat-number {
        font-size: 22px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    
    .nav.open {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .nav-list a {
        display: block;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-contact {
        align-items: center;
    }
}

/* ====== موبایل کوچک ====== */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero-text h1 {
        font-size: 26px;
    }
    
    .hero-text p {
        font-size: 14px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .hero-image {
        max-width: 220px;
    }
    
    .hero-image img {
        max-width: 220px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .about {
        padding: 40px 0;
    }
    
    .about-content h2 {
        font-size: 24px;
    }
    
    .about-image {
        max-width: 220px;
    }
    
    .about-image img {
        max-width: 200px;
    }
    
    .about-text p {
        font-size: 14px;
    }
    
    .about-stats {
        gap: 12px;
    }
    
    .about-stat .stat-number {
        font-size: 18px;
    }
    
    .about-stat .stat-label {
        font-size: 12px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   TABLE - برای مدیریت سرریز
   ============================================================ */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
}

/* ============================================================
   IMAGES - جلوگیری از سرریز
   ============================================================ */
.about-image img,
.hero-image img,
.team-image img {
    max-width: 100%;
    height: auto;
}