/* ==========================================
   BOOFABI PARSEH - MAIN STYLESHEET
   Professional Rewrite with Enhanced Readability
   ========================================== */

/* ==========================================
   CSS VARIABLES & ROOT SETTINGS
   ========================================== */
:root {
    /* Colors */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #303235;
    --text-light: #424345;
    --text-dark: #111827;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #0f172a;
    --bg-hero: #0a0e27;
    
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Typography */
    --font-primary: 'Inter', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Container */
    --container-max-width: 1280px;
}

/* RTL Support */
[dir="rtl"] {
    --font-primary: 'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
    overflow-x: hidden;
}

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

/* ==========================================
   TYPOGRAPHY - ENHANCED READABILITY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    font-feature-settings: 'liga' 1, 'clig' 1;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.75rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-feature-settings: 'liga' 1;
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    cursor: pointer;
}

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

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    text-align: center;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.6;
    font-weight: 500;
}

/* ==========================================
   BUTTONS - ACCESSIBILITY OPTIMIZED
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    min-height: 52px;
    position: relative;
    z-index: 1;
    font-family: var(--font-primary);
    letter-spacing: -0.025em;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ==========================================
   LOADING SCREEN
   ========================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    text-align: center;
    color: white;
}

.globe-loader {
    width: 100px;
    height: 100px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-lg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

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

/* ==========================================
   NAVIGATION - TRANSPARENT & RESPONSIVE
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
    z-index: 1000;
    transition: all var(--transition-base);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

/* Transparent navbar on hero section */
.hero-section .navbar {
    background: rgba(217, 219, 228, 0.75) !important;
    box-shadow: none !important;
}

.hero-section .navbar.scrolled {
    background: rgba(228, 228, 231, 0.9) !important;
}

.hero-section .nav-menu a {
    color: rgba(255, 255, 255, 0.95) !important;
}

.hero-section .nav-menu a:hover {
    color: white !important;
}

.hero-section .logo-text {
    background: linear-gradient(135deg, white, #cbd5e1) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hero-section .lang-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.hero-section .lang-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
}

.hero-section .mobile-menu-toggle span {
    background: white !important;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    margin: 0;
    align-items: center;
}

.nav-menu a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    padding: 0.5rem 0;
    position: relative;
    min-height: 48px;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
    letter-spacing: -0.01em;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

/* Language Selector */
.language-selector {
    position: relative;
    z-index: 100;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
    min-height: 48px;
    white-space: nowrap;
    font-size: 1rem;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.lang-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-xl);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1000;
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.875rem 1.25rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-fast);
    min-height: 48px;
    border-left: 3px solid transparent;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

[dir="rtl"] .lang-option {
    text-align: right;
}

.lang-option:hover {
    background: var(--bg-secondary);
    border-left-color: var(--primary-color);
    padding-left: 1.5rem;
    [dir="rtl"] & {
        padding-left: 1.25rem;
        padding-right: 1.5rem;
    }
}

.lang-option.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-left-color: white;
    font-weight: 600;
}

.lang-option:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    border-radius: var(--radius-md);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 48px;
    z-index: 1001;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--bg-secondary);
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    position: relative;
}

.hero-section .mobile-menu-toggle span {
    background: white !important;
}

/* ==========================================
   HERO SECTION - ENHANCED READABILITY
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hero);
    overflow: hidden;
    padding-top: 80px;
    color: white;
}

.globe-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 950px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
    position: relative;
    z-index: 3;
}

/* Hero Title - Enhanced Readability */
.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 
        0 4px 25px rgba(0, 0, 0, 0.65),
        0 8px 40px rgba(37, 99, 235, 0.4),
        0 0 30px rgba(255, 255, 255, 0.15);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga' 1;
}

/* Hero Subtitle - Enhanced */
.hero-subtitle {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    text-shadow: 
        0 2px 15px rgba(0, 0, 0, 0.55),
        0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.98);
}

/* Hero Tagline - Enhanced */
.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
    text-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.95);
}

/* Hero Description - Enhanced */
.hero-description {
    font-size: 1.25rem;
    line-height: 1.75;
    margin-bottom: var(--spacing-2xl);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 
        0 1px 10px rgba(0, 0, 0, 0.45),
        0 2px 8px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
    z-index: 4;
    position: relative;
}

.hero-highlights {
    display: flex;
    gap: var(--spacing-2xl);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.highlight-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    z-index: 2;
    animation: bounce 2s infinite;
    direction: ltr;
}

.mouse {
    width: 36px;
    height: 60px;
    border: 2.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    margin: 0 auto 1rem;
    position: relative;
    animation: float 2s ease-in-out infinite;
}

.wheel {
    width: 5px;
    height: 10px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { 
        opacity: 0; 
        top: 15px; 
    }
    50% { 
        opacity: 1; 
        top: 25px; 
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

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

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(16, 185, 129, 0.03));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

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

.service-card.featured {
    border-color: var(--secondary-color);
    position: relative;
    box-shadow: 0 0 0 3px var(--secondary-color), var(--shadow-xl);
}

.featured-badge {
    position: absolute;
    top: -14px;
    right: var(--spacing-lg);
    background: var(--secondary-color);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}

[dir="rtl"] .featured-badge {
    right: auto;
    left: var(--spacing-lg);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1;
}

.service-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 800;
}

.service-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.service-description {
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.service-features {
    list-style: none;
    margin-bottom: var(--spacing-xl);
    padding-left: 0;
}

.service-features li {
    padding: 0.625rem 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    position: relative;
    padding-left: 1.75rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.125rem;
}

.service-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.price {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.1;
}

.price-note {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects-section {
    padding: var(--spacing-3xl) 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-xl);
}

.project-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    z-index: 1;
}

.project-card:hover::before {
    transform: scaleX(1);
}

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

.project-header {
    margin-bottom: var(--spacing-lg);
}

.project-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 800;
}

.project-category {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.project-description {
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.project-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.result-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.result-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
}

.result-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1.1;
}

.result-item:hover .result-number {
    color: white;
}

.result-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.result-item:hover .result-label {
    color: rgba(255, 255, 255, 0.9);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: var(--spacing-md);
}

.tag {
    padding: 0.375rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-story {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-3xl);
}

.about-story h3 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 900;
}

.about-story p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-3xl);
}

.team-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    z-index: 1;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.team-icon {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1;
}

.team-card h4 {
    font-size: 1.875rem;
    margin-bottom: var(--spacing-md);
    font-weight: 800;
}

.team-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    font-size: 1.05rem;
}

.team-card blockquote {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border-color);
    font-size: 1.125rem;
    font-weight: 500;
    position: relative;
}

.team-card blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-xl);
    text-align: center;
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-color);
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: var(--spacing-3xl) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    max-width: 1300px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 900;
}

.contact-info p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
}

.contact-methods {
    margin: var(--spacing-2xl) 0;
}

.contact-method {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.contact-method:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    [dir="rtl"] & {
        transform: translateX(-5px);
    }
}

.method-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-details h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.method-details a {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.method-details a:hover {
    color: var(--primary-dark);
}

.method-details p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.payment-methods {
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin-top: var(--spacing-2xl);
    border: 1px solid var(--border-color);
}

.payment-methods h4 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.payment-icons {
    display: flex;
    gap: var(--spacing-lg);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.payment-icons span {
    transition: transform var(--transition-fast);
}

.payment-icons span:hover {
    transform: scale(1.2) rotate(5deg);
}

.payment-note {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    z-index: 1;
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xl);
    font-weight: 900;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1.125rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-family: inherit;
    font-size: 1.05rem;
    transition: all var(--transition-fast);
    background: var(--bg-secondary);
    min-height: 52px;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: white;
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
    padding: 1.25rem;
    line-height: 1.6;
}

.promo-banner {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    color: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin-top: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.promo-icon {
    font-size: 3rem;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

.promo-content {
    position: relative;
    z-index: 1;
}

.promo-content h4 {
    margin-bottom: 0.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
}

.promo-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 2;
}

.footer-col h4 {
    color: white;
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--transition-fast);
    font-size: 1.05rem;
    font-weight: 500;
    display: inline-block;
    position: relative;
    padding: 0.375rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
    [dir="rtl"] & {
        padding-left: 0;
        padding-right: 0.5rem;
    }
}

.footer-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: var(--spacing-lg);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-links a {
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.crypto-accepted {
    margin-top: var(--spacing-lg);
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.footer-badges {
    display: flex;
    gap: var(--spacing-xl);
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-badges span {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-badges span::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.75rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.back-to-top:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 2.5rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-2xl);
    background: linear-gradient(135deg, var(--primary-dark), #1e3a8a);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

/* ==========================================
   ACCESSIBILITY & PERFORMANCE
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-tagline,
    .hero-description {
        text-shadow: none !important;
        color: white !important;
        -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.8);
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator,
    .loading-screen {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: var(--primary-color) !important;
        text-decoration: underline !important;
    }
    
    .service-card,
    .project-card,
    .team-card,
    .contact-form-wrapper {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}