/* ===================================
   Swift Code Website - Professional CSS
   Primary Color: Green (#4CAF50)
   Arabic/English Bilingual Support
   All Images Display Fully - No Cropping
   =================================== */

/* ==================
   ROOT VARIABLES
   ================== */
:root {
    /* Primary Green Colors */
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #81C784;
    --primary-lighter: #C8E6C9;
    
    /* Accent Colors */
    --secondary-color: #2E7D32;
    --accent-color: #66BB6A;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --black: #000000;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #F5F5F5;
    --bg-gray: #EEEEEE;
    --border-color: #E0E0E0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(46, 125, 50, 0.9) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --transition-slow: all 0.7s ease;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
}

/* ==================
   RESET & BASE
   ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Arabic Text (RTL) */
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* Force LTR for numbers and phone numbers in Arabic */
[dir="rtl"] .phone-number,
[dir="rtl"] .stat-number,
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] .number {
    direction: ltr;
    unicode-bidi: embed;
}

body {
    font-variant-numeric: lining-nums;
}

bdi {
    unicode-bidi: isolate;
}

/* Language Display Control */
.lang-en {
    display: none;
}

body[dir="ltr"] .lang-ar {
    display: none;
}

body[dir="ltr"] .lang-en {
    display: inline;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================
   TOP BAR
   ================== */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    color: var(--accent-color);
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.lang-btn i {
    font-size: 1rem;
}

body[dir="rtl"] .lang-btn[data-lang="ar"] {
    display: none;
}

body[dir="ltr"] .lang-btn[data-lang="en"] {
    display: none;
}

/* ==================
   HEADER & NAVBAR
   ================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-fast);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

[dir="ltr"] .nav-menu a::after {
    right: auto;
    left: 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* ==================
   HERO SECTION
   ================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--white);
}

/* ==================
   BUTTONS
   ================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: inherit;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-lighter);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ==================
   SECTION COMMON
   ================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 20px;
    border-radius: var(--radius-sm);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ==================
   ABOUT SECTION - عرض الصور كاملة
   ================== */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-fast);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* About Image - الصورة تظهر كاملة */
.about-image {
    position: relative;
    background: linear-gradient(135deg, #f9f9f9 0%, #ececec 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius-md);
    transition: var(--transition-medium);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(76, 175, 80, 0.05) 0%, 
        transparent 70%);
    opacity: 0;
    transition: var(--transition-medium);
    z-index: 1;
    pointer-events: none;
}

.about-image:hover::before {
    opacity: 1;
}

.about-image:hover img {
    transform: scale(1.03);
    filter: drop-shadow(0 15px 30px rgba(76, 175, 80, 0.3));
}

/* إطار متوهج */
.about-image::after {
    content: '';
    position: absolute;
    inset: 15px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: var(--transition-medium);
    animation: borderGlow 3s ease-in-out infinite;
}

.about-image:hover::after {
    opacity: 0.4;
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    }
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 25px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
    z-index: 2;
    animation: badgePulse 2s ease-in-out infinite;
}

[dir="rtl"] .experience-badge {
    left: auto;
    right: 30px;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.experience-badge .number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-top: 10px;
}

/* ==================
   SERVICES SECTION
   ================== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-lighter);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==================
   PRODUCTS SECTION - عرض الصور كاملة
   ================== */
.products {
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.2);
}

/* Product Image - الصورة تظهر كاملة */
.product-image {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    padding: 30px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    object-position: center;
    transition: var(--transition-medium);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotate(-2deg);
    filter: drop-shadow(0 10px 25px rgba(76, 175, 80, 0.25));
}

/* تأثير الإضاءة الخلفية */
.product-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, 
        rgba(76, 175, 80, 0.15) 0%, 
        transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: var(--transition-medium);
    border-radius: 50%;
}

.product-card:hover .product-image::before {
    transform: translate(-50%, -50%) scale(1.5);
}

/* دوائر ديكورية */
.product-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: 2px dashed var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-medium);
}

.product-card:hover .product-image::after {
    opacity: 0.5;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 2;
    animation: badgeBounce 2s ease-in-out infinite;
}

[dir="rtl"] .product-badge {
    right: auto;
    left: 20px;
}

@keyframes badgeBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.product-badge.new {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

.product-content {
    padding: 30px 25px;
}

.product-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.product-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ==================
   STATS SECTION
   ================== */
.stats {
    position: relative;
    background: var(--primary-color);
    background-image: url('../images/stats-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: var(--spacing-xl) 0;
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.stats .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-item p {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.95;
}

/* ==================
   BLOG SECTION - عرض الصور كاملة
   ================== */
.blog {
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* Blog Image - الصورة تظهر كاملة */
.blog-image {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: auto;
    max-height: 230px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius-md);
    transition: var(--transition-medium);
    filter: brightness(1) contrast(1.05);
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.1) saturate(1.1);
}

/* تأثير Overlay متدرج */
.blog-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.1) 0%, 
        transparent 50%, 
        rgba(46, 125, 50, 0.1) 100%);
    opacity: 0;
    transition: var(--transition-medium);
}

.blog-card:hover .blog-image::before {
    opacity: 1;
}

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

[dir="rtl"] .blog-date {
    right: auto;
    left: 20px;
}

.blog-date span:first-child {
    font-size: 1.8rem;
    display: block;
    line-height: 1;
}

.blog-date span:last-child {
    font-size: 0.9rem;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: var(--primary-color);
}

.blog-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.read-more:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ==================
   CONTACT SECTION
   ================== */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.info-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.info-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: grid;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

[dir="ltr"] .form-group label {
    right: auto;
    left: 15px;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -10px;
    right: 10px;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: var(--white);
    padding: 0 5px;
}

[dir="ltr"] .form-group input:focus ~ label,
[dir="ltr"] .form-group textarea:focus ~ label,
[dir="ltr"] .form-group input:valid ~ label,
[dir="ltr"] .form-group textarea:valid ~ label {
    right: auto;
    left: 10px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    justify-self: start;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==================
   FOOTER
   ================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-section p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--primary-light);
    padding-right: 5px;
}

[dir="ltr"] .footer-section ul li a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-list i {
    color: var(--primary-light);
    margin-top: 3px;
}

.contact-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-list a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* ==================
   SCROLL TO TOP
   ================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 998;
}

[dir="rtl"] .scroll-top {
    right: auto;
    left: 30px;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-top i {
    font-size: 1.3rem;
}

/* ==================
   WHATSAPP BUTTON
   ================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    animation: slideInUp 0.8s ease-out;
}

[dir="rtl"] .whatsapp-float {
    left: auto;
    right: 30px;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.whatsapp-float a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.whatsapp-icon i {
    font-size: 20px;
}

.whatsapp-text {
    font-size: 14px;
    font-weight: 600;
}

.whatsapp-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(37, 211, 102, 0.3);
    border-radius: 50%;
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================
   ANIMATIONS
   ================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==================
   RESPONSIVE DESIGN
   ================== */

/* Tablet */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 110px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 110px);
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-fast);
        overflow-y: auto;
    }
    
    [dir="rtl"] .nav-menu {
        right: auto;
        left: -100%;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    [dir="rtl"] .nav-menu.active {
        left: 0;
        right: auto;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        min-height: 400px;
        padding: 25px;
    }
    
    .about-image img {
        max-height: 400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-image {
        min-height: 300px;
        padding: 25px;
    }
    
    .product-image img {
        max-height: 250px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-image {
        min-height: 260px;
        padding: 20px;
    }
    
    .blog-image img {
        max-height: 220px;
    }
    
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .top-bar-content {
        justify-content: center;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-image {
        min-height: 350px;
        padding: 20px;
    }
    
    .about-image img {
        max-height: 350px;
    }
    
    .experience-badge {
        padding: 20px 25px;
        bottom: 20px;
        left: 20px;
    }
    
    [dir="rtl"] .experience-badge {
        right: 20px;
        left: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        min-height: 280px;
        padding: 20px;
    }
    
    .product-image img {
        max-height: 240px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-image {
        min-height: 240px;
        padding: 18px;
    }
    
    .blog-image img {
        max-height: 204px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    [dir="rtl"] .scroll-top {
        right: auto;
        left: 20px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }
    
    [dir="rtl"] .whatsapp-float {
        left: auto;
        right: 20px;
    }
    
    .whatsapp-float a {
        padding: 12px 15px;
    }
    
    .whatsapp-text {
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
    
    .about-image {
        min-height: 300px;
        padding: 15px;
    }
    
    .about-image img {
        max-height: 270px;
    }
    
    .product-image {
        min-height: 260px;
        padding: 15px;
    }
    
    .product-image img {
        max-height: 230px;
    }
    
    .blog-image {
        min-height: 220px;
        padding: 15px;
    }
    
    .blog-image img {
        max-height: 190px;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-float a {
        width: 55px;
        height: 55px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    
    .whatsapp-icon {
        background: transparent;
        width: 100%;
        height: 100%;
    }
    
    .whatsapp-icon i {
        font-size: 24px;
    }
}

/* ==================
   PRINT STYLES
   ================== */
@media print {
    .top-bar,
    .header,
    .hero,
    .scroll-top,
    .whatsapp-float,
    .mobile-menu-toggle {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}