/* 
 * Main CSS file for Tarmeez website
 * Author: Tarmeez Telecommunications & IT
 * Description: Comprehensive styles for company website
 * Version: 1.0
 */

/* ========================================
   CSS VARIABLES (CUSTOM PROPERTIES)
   ======================================== */
:root {
    /* Color Palette - Enhanced for accessibility */
    --primary-color: #1e3f73;
    --primary-dark: #0f2a4a;
    --secondary-color: #f8f9fa;
    --accent-color: #ff6b35;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-light: #6c757d;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    
    /* Typography */
    --font-family-primary: 'Noto Sans Arabic', 'Tajawal', 'Cairo', 'Amiri', 'Arial', sans-serif;
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 3rem;
    --line-height-base: 1.6;
    --line-height-tight: 1.2;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --border-radius-sm: 5px;
    --border-radius-md: 8px;
    --border-radius-lg: 15px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Enhanced Visual Effects */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 63, 115, 0.9) 0%, rgba(15, 42, 74, 0.95) 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    --box-shadow-card: 0 4px 20px rgba(30, 63, 115, 0.1);
    --box-shadow-hover: 0 8px 30px rgba(30, 63, 115, 0.15);
    --text-shadow-light: 0 1px 2px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-family-primary);
    direction: rtl;
    text-align: right;
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    /* Arabic text improvements */
    font-feature-settings: "liga" 1, "kern" 1, "calt" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-spacing: 0.15em;
    letter-spacing: 0.03em;
    font-size: 16px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    box-sizing: border-box;
}

/* Additional spacing utilities for Arabic text */
.text-spacing-normal {
    word-spacing: 0.15em;
    letter-spacing: 0.03em;
}

.text-spacing-wide {
    word-spacing: 0.2em;
    letter-spacing: 0.04em;
}

.margin-bottom-lg {
    margin-bottom: 2rem;
}

.margin-bottom-xl {
    margin-bottom: 3rem;
}

/* ========================================
   ARABIC TYPOGRAPHY ENHANCEMENTS
   ======================================== */
.arabic-text {
    font-family: 'Noto Sans Arabic', 'Tajawal', 'Cairo', 'Amiri', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    word-spacing: 0.15em;
    letter-spacing: 0.03em;
}

/* Arabic headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Tajawal', 'Noto Sans Arabic', 'Arial', sans-serif;
    font-weight: 600;
    line-height: 1.6;
    word-spacing: 0.15em;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

/* Arabic paragraph text */
p {
    line-height: 2;
    word-spacing: 0.2em;
    letter-spacing: 0.04em;
    text-align: right;
    margin-bottom: 1.5rem;
    text-rendering: optimizeLegibility;
}

/* Arabic list items */
li {
    line-height: 1.8;
    word-spacing: 0.15em;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

/* Arabic button text */
button, .cta-button, .submit-button {
    font-family: 'Tajawal', 'Cairo', 'Noto Sans Arabic', 'Arial', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Arabic navigation text */
.nav-link {
    font-family: 'Tajawal', 'Cairo', 'Noto Sans Arabic', 'Arial', sans-serif;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
*:focus {
    outline: 3px solid #ff6b35;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px #ffffff, 0 0 0 4px #ff6b35;
}

/* High contrast focus for interactive elements */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
    outline: 3px solid #ff6b35;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px #ffffff, 0 0 0 4px #ff6b35;
    background-color: rgba(255, 107, 53, 0.1);
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #ff6b35;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --text-primary: #000000;
        --text-secondary: #000000;
        --border-color: #000000;
    }
    
    .service-card,
    .value-item,
    .contact-info,
    .contact-form-section {
        border: 2px solid #000000;
    }
}

/* Focus indicators for better accessibility */
[data-focused="true"] {
    box-shadow: 0 0 0 3px #ff6b35, 0 0 0 6px rgba(255, 107, 53, 0.3);
}

/* Improved button accessibility */
button:disabled,
.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #6c757d !important;
}

/* Screen reader only content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Ensure sufficient color contrast for links */
a {
    color: #1e3f73;
    text-decoration: underline;
}

a:hover,
a:focus {
    color: #0f2a4a;
    text-decoration: underline;
}

/* Improve form accessibility */
.form-input:invalid,
.form-textarea:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.form-input:valid,
.form-textarea:valid {
    border-color: #28a745;
}

/* Required field indicators */
.form-label [aria-label="مطلوب"] {
    color: #dc3545;
    font-weight: bold;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.image-placeholder {
    background: linear-gradient(45deg, var(--light-gray), var(--border-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ========================================
   HEADER STYLES
   ======================================== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Header scroll effect */
.header.scrolled {
    box-shadow: 0 4px 20px var(--shadow-medium);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 70px;
}

/* Logo and Company Name */
.logo-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    direction: rtl;
}

.company-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.05);
}

.company-name {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2c5aa0;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Cairo', 'Tajawal', 'Noto Sans Arabic', 'Arial', sans-serif;
    letter-spacing: 0.03em;
    word-spacing: 0.12em;
    line-height: 1.3;
}

.company-name:hover {
    color: #1e3f73;
}

/* Navigation Styles */
.navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    word-spacing: 0.1em;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: #2c5aa0;
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.nav-link:active {
    transform: translateY(0);
}

/* Active link styling */
.nav-link.active {
    color: #2c5aa0;
    background-color: #e3f2fd;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Add padding to body to account for fixed header */
body {
    padding-top: 80px;
}

/* Responsive text spacing adjustments */
@media (max-width: 768px) {
    body {
        font-size: 15px;
        word-spacing: 0.12em;
        letter-spacing: 0.025em;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .about-heading {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .about-description {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 20px;
    }
    
    .service-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .service-description {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .about, .services, .contact {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .services-grid {
        gap: 25px;
        margin-top: 50px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 50px;
    }
}

/* Header scroll effect */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Navigation link underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #2c5aa0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section Styles */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 120px 0 100px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Enhanced visual effects */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.4;
    text-shadow: var(--text-shadow-light);
    animation: fadeInUp 1s ease-out;
    /* Enhanced typography */
    letter-spacing: 0.02em;
    word-spacing: 0.15em;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback for browsers that don't support background-clip: text */
    color: white;
    /* Mobile responsive title */
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-description {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
    word-spacing: 0.15em;
    letter-spacing: 0.03em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* About Section Styles */
.about {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.8rem;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-weight: bold;
    position: relative;
    line-height: 1.4;
    word-spacing: 0.15em;
    letter-spacing: 0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    word-spacing: 0.15em;
    letter-spacing: 0.03em;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* About Main Content */
.about-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.about-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.about-text {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.about-heading {
    font-size: 2rem;
    color: #2c5aa0;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.4;
    word-spacing: 0.15em;
    letter-spacing: 0.02em;
}

.about-description {
    font-size: 1.2rem;
    line-height: 2;
    color: #555;
    margin-bottom: 25px;
    word-spacing: 0.2em;
    letter-spacing: 0.03em;
    text-align: right;
}

.about-description:last-child {
    margin-bottom: 0;
}

/* Vision and Mission */
.about-vision-mission {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.vision-mission-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #ff6b35;
}

.vision-mission-item:hover {
    transform: translateX(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.vm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #2c5aa0, #1e3f73);
    color: white;
    border-radius: 50%;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.vm-title {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.4;
    word-spacing: 0.15em;
    letter-spacing: 0.02em;
}

.vm-description {
    font-size: 1.1rem;
    line-height: 2;
    color: #555;
    word-spacing: 0.2em;
    letter-spacing: 0.03em;
    text-align: right;
}

/* Company Values */
.about-values {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.values-title {
    font-size: 2rem;
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
}

.values-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

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

.value-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
}

.value-item:hover {
    background: white;
    border-color: #ff6b35;
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.15);
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-title {
    font-size: 1.4rem;
    color: #2c5aa0;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.4;
    word-spacing: 0.15em;
    letter-spacing: 0.02em;
}

.value-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    word-spacing: 0.15em;
    letter-spacing: 0.03em;
    text-align: right;
}

/* Company Statistics */
.about-stats {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    padding: 50px;
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Services Section Styles */
.services {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
}

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

.service-card {
    background: var(--gradient-card);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--box-shadow-card);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    /* Enhanced visual effects */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 90, 160, 0.05), transparent);
    transition: left 0.6s ease;
}

.service-card:hover,
.service-card:focus {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
    /* Enhanced hover effects */
    background: linear-gradient(145deg, #ffffff 0%, #f0f8ff 100%);
}

.service-card:focus {
    outline: 3px solid #ff6b35;
    outline-offset: 2px;
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    margin-bottom: 25px;
    font-size: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
    /* Enhanced visual effects */
    box-shadow: 0 4px 15px rgba(30, 63, 115, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(8deg);
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

.service-title {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-bottom: 25px;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    line-height: 1.4;
    word-spacing: 0.15em;
    letter-spacing: 0.02em;
}

.service-card:hover .service-title {
    color: #1e3f73;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #666;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    word-spacing: 0.15em;
    letter-spacing: 0.03em;
    text-align: right;
}

.service-card:hover .service-description {
    color: #555;
}

/* Services section background decoration */
.services::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(44, 90, 160, 0.05), rgba(255, 107, 53, 0.05));
    border-radius: 50%;
    z-index: 1;
}

.services::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.05), rgba(44, 90, 160, 0.05));
    border-radius: 50%;
    z-index: 1;
}

/* Contact Section Styles */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    /* Enhanced visual effects */
    background-attachment: fixed;
    background-size: cover;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(30, 63, 115, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-top: 80px;
    align-items: start;
}

/* Contact Information */
.contact-info {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(45deg, #2c5aa0, #ff6b35);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.contact-details {
    flex: 1;
}

.contact-title {
    font-size: 1.4rem;
    color: #2c5aa0;
    margin-bottom: 12px;
    font-weight: bold;
    line-height: 1.4;
    word-spacing: 0.15em;
    letter-spacing: 0.02em;
}

.contact-link {
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #2c5aa0, #ff6b35);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: #2c5aa0;
}

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

/* Contact Form */
.contact-form-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(45deg, #ff6b35, #2c5aa0);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-label {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    transition: color 0.3s ease;
    word-spacing: 0.1em;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.form-input,
.form-textarea {
    padding: 18px 24px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: var(--font-family-primary);
    transition: all var(--transition-normal);
    background-color: #f8f9fa;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    word-spacing: 0.15em;
    letter-spacing: 0.03em;
    /* Enhanced visual effects */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1), 0 4px 20px rgba(44, 90, 160, 0.15);
    transform: translateY(-3px) scale(1.01);
}

.form-input:focus + .form-label,
.form-textarea:focus + .form-label {
    color: #2c5aa0;
}

.form-group.focused .form-label {
    color: #2c5aa0;
    transform: translateY(-2px);
}

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

.form-input.error,
.form-textarea.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

.submit-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow-card);
    /* Enhanced visual effects */
    text-shadow: var(--text-shadow-light);
    border: 2px solid transparent;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-button:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(255, 255, 255, 0.3);
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:active {
    transform: translateY(-1px);
}

.submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Contact section background decoration */
.contact::before {
    content: '';
    position: absolute;
    top: 15%;
    right: -3%;
    width: 180px;
    height: 180px;
    background: linear-gradient(45deg, rgba(44, 90, 160, 0.08), rgba(255, 107, 53, 0.08));
    border-radius: 50%;
    z-index: 1;
}

/* ========================================
   MOBILE RESPONSIVE FIXES
   ======================================== */

/* Prevent horizontal scroll on all screen sizes */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Mobile-specific improvements for Arabic text */
@media screen and (max-width: 768px) {
    
    /* Fix horizontal scroll issues */
    .container {
        max-width: 100%;
        padding: 0 1rem;
        overflow-x: hidden;
    }
    
    /* Improved hero title for mobile */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        /* Better text wrapping for Arabic */
        word-break: keep-all;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        /* Ensure proper line breaks for Arabic text */
        white-space: normal;
        text-align: center;
    }
    
    /* Enhanced hero description with better line spacing */
    .hero-description {
        font-size: 1.2rem;
        line-height: 1.7;
        margin-bottom: 2rem;
        max-width: 95%;
        word-spacing: 0.1em;
        letter-spacing: 0.02em;
    }
    
    /* Ensure all sections fit within viewport */
    .hero,
    .about,
    .services,
    .contact {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Fix any potential overflow from grid layouts */
    .services-grid,
    .values-grid,
    .stats-grid {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure images don't cause horizontal scroll */
    img {
        max-width: 100%;
        height: auto;
        width: auto;
    }
    
    /* Fix navigation menu overflow */
    .nav-menu {
        max-width: 100%;
        overflow-x: hidden;
        flex-wrap: wrap;
    }
    
    /* Prevent text overflow in cards */
    .service-card,
    .value-item {
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Small mobile specific fixes */
@media screen and (max-width: 480px) {
    
    /* Better hero title formatting for small screens */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.25;
        /* Improved Arabic text display */
        word-spacing: 0.08em;
        letter-spacing: 0.01em;
        /* Better line breaks for "مرحباً بكم في عالم ترميز" */
        text-align: center;
        max-width: 100%;
    }
    
    /* Enhanced description line height */
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.8;
        word-spacing: 0.12em;
        letter-spacing: 0.025em;
        margin-bottom: 2rem;
    }
    
    /* Better text spacing for all content */
    .about-description,
    .service-description,
    .value-description,
    .vm-description {
        line-height: 1.7;
        word-spacing: 0.12em;
        letter-spacing: 0.025em;
    }
    
    /* Ensure container never exceeds viewport */
    .container {
        padding: 0 0.8rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Fix any remaining overflow issues */
    .header-content,
    .hero-content,
    .about-content,
    .contact-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Extra small mobile fixes */
@media screen and (max-width: 320px) {
    
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.2;
        word-spacing: 0.05em;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .container {
        padding: 0 0.6rem;
    }
}der-radius: 50%;
    z-index: 1;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: -3%;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.08), rgba(44, 90, 160, 0.08));
    border-radius: 50%;
    z-index: 1;
}

/* Footer Section Styles */
.footer {
    background: linear-gradient(135deg, #1e3f73 0%, #2c5aa0 100%);
    color: white;
    padding: 50px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/footer-pattern.png') repeat;
    opacity: 0.05;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.footer-info {
    padding-right: 20px;
}

.footer-title {
    font-size: 1.5rem;
    color: #ff6b35;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.footer-section-title {
    font-size: 1.2rem;
    color: #ff6b35;
    margin-bottom: 20px;
    font-weight: bold;
    position: relative;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ff6b35;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #ff6b35;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #ff6b35;
    transform: translateX(10px);
}

.footer-link:hover::before {
    width: 10px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.footer-contact-item i {
    color: #ff6b35;
    width: 20px;
    text-align: center;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #ff6b35;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    /* About section tablet styles */
    .about-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }
    
    /* Services section tablet styles */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .service-card {
        padding: 35px 25px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    /* Contact section tablet styles */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info,
    .contact-form-section {
        padding: 35px 30px;
    }
    
    /* Footer section tablet styles */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-info {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 0.5rem 0;
        gap: 1rem;
    }
    
    .logo-section {
        flex: none;
    }
    
    .navigation {
        flex: none;
        justify-content: center;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .company-name {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    body {
        padding-top: 100px;
    }
    
    /* Hero responsive styles */
    .hero {
        padding: 60px 0;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* About section mobile styles */
    .about {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    /* Services section mobile styles */
    .services {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
        margin-top: 40px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .service-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .service-description {
        font-size: 0.95rem;
    }
    
    /* Contact section mobile styles */
    .contact {
        padding: 60px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .contact-info,
    .contact-form-section {
        padding: 30px 25px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .contact-title {
        font-size: 1.2rem;
    }
    
    .contact-link {
        font-size: 1rem;
    }
    
    .form-label {
        font-size: 1rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .submit-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Footer section mobile styles */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-info {
        margin-bottom: 15px;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .footer-description {
        font-size: 0.95rem;
    }
    
    .footer-section-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-link:hover {
        transform: none;
    }
    
    .footer-link::before {
        display: none;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .about-text {
        padding: 30px 25px;
    }
    
    .about-heading {
        font-size: 1.5rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .vision-mission-item {
        padding: 25px 20px;
    }
    
    .vm-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .vm-title {
        font-size: 1.2rem;
    }
    
    .vm-description {
        font-size: 0.95rem;
    }
    
    .about-values {
        padding: 40px 25px;
    }
    
    .values-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .value-item {
        padding: 25px 15px;
    }
    
    .value-icon {
        width: 70px;
        height: 70px;
        font-size: 1.7rem;
    }
    
    .value-title {
        font-size: 1.2rem;
    }
    
    .value-description {
        font-size: 0.95rem;
    }
    
    .about-stats {
        padding: 40px 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* About section extra small mobile styles */
    .about {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Services section extra small mobile styles */
    .services {
        padding: 40px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 25px 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .service-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    /* Contact section extra small mobile styles */
    .contact {
        padding: 40px 0;
    }
    
    .contact-info,
    .contact-form-section {
        padding: 25px 20px;
    }
    
    .contact-item {
        gap: 15px;
        padding: 15px 0;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .contact-title {
        font-size: 1.1rem;
    }
    
    .contact-link {
        font-size: 0.95rem;
    }
    
    .form-group {
        gap: 20px;
    }
    
    .form-label {
        font-size: 0.95rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .form-textarea {
        min-height: 100px;
    }
    
    .submit-button {
        padding: 10px 25px;
        font-size: 0.95rem;
        align-self: stretch;
    }
    
    /* Footer section extra small mobile styles */
    .footer {
        padding: 30px 0 10px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-section-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .footer-menu li {
        margin-bottom: 8px;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .footer-contact-item {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .copyright {
        font-size: 0.85rem;
    }
    
    .about-text {
        padding: 25px 20px;
    }
    
    .about-heading {
        font-size: 1.3rem;
    }
    
    .vision-mission-item {
        padding: 20px 15px;
    }
    
    .about-values {
        padding: 30px 20px;
    }
    
    .values-title {
        font-size: 1.5rem;
    }
    
    .value-item {
        padding: 20px 10px;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .about-stats {
        padding: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ========================================
   ENHANCED ANIMATIONS AND VISUAL EFFECTS
   ======================================== */

/* Floating animation for service cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Subtle pulse animation for icons */
@keyframes pulse-subtle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Gradient animation for backgrounds */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced service card animations */
.service-card {
    animation: float 6s ease-in-out infinite;
}

.service-card:nth-child(1) {
    animation-delay: 0s;
}

.service-card:nth-child(2) {
    animation-delay: 1.5s;
}

.service-card:nth-child(3) {
    animation-delay: 3s;
}

.service-card:nth-child(4) {
    animation-delay: 4.5s;
}

/* Enhanced icon animations */
.service-icon i,
.value-icon i,
.contact-icon {
    animation: pulse-subtle 4s ease-in-out infinite;
}

/* Enhanced hero background */
.hero {
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* Improved text selection */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(255, 107, 53, 0.3);
    color: var(--text-primary);
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

/* Enhanced focus states for better accessibility */
.service-card:focus-visible,
.nav-link:focus-visible,
.cta-button:focus-visible,
.submit-button:focus-visible,
.contact-link:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.2);
}

/* Improved loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Enhanced glass morphism effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Improved dark mode support (for future use) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f8f9fa;
        --text-secondary: #e9ecef;
        --secondary-color: #212529;
        --light-gray: #343a40;
        --border-color: #495057;
    }
}

/* Enhanced print styles */
@media print {
    .hero-background,
    .service-card::before,
    .submit-button::before {
        display: none !important;
    }
    
    .service-card,
    .contact-form {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Performance optimizations for animations */
.service-card,
.service-icon,
.hero,
.form-input,
.form-textarea,
.submit-button {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .service-card {
        animation: none !important;
    }
    
    .hero {
        animation: none !important;
    }
}