/* ============================================
    للصناعات والتشكيلات المعدنية
   ملف التنسيقات الرئيسي
   ============================================ */

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

:root {
    /* ============================================
       DESIGN TOKENS (The DNA of our Components)
       ============================================ */

    /* Colors - Brand Palette */
    --primary-main: #1e293b;
    --primary-light: #334155;
    --secondary-main: #0284c7;
    --secondary-light: #0ea5e9;
    --accent-main: #f59e0b;
    --accent-light: #fbbf24;

    /* Semantic Colors */
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-gray: #475569;
    --text-light: #f1f5f9;
    --border-soft: rgba(226, 232, 240, 0.4);

    /* Glassmorphism Tokens */
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-secondary: linear-gradient(135deg, #0c4a6e 0%, #0284c7 100%);
    --gradient-accent: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));

    /* Layout & Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.2);

    /* Missing Variables */
    --gradient-section-alt: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --bg-services: #f0f7ff;
    --lighter-gray: #f8fafc;
    --light-gray: #f1f5f9;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.16);
    --shadow-xl: 0 12px 32px rgba(15, 23, 42, 0.20);
    --shadow-2xl: 0 24px 48px rgba(15, 23, 42, 0.24);

    /* Colored Shadows */
    --shadow-blue: 0 8px 24px rgba(2, 132, 199, 0.25);
    --shadow-blue-lg: 0 12px 32px rgba(2, 132, 199, 0.30);
    --shadow-orange: 0 8px 24px rgba(245, 158, 11, 0.35);
    --shadow-orange-lg: 0 12px 32px rgba(245, 158, 11, 0.40);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    background-image:
        radial-gradient(ellipse 80% 50% at 10% 20%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(2, 132, 199, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
    direction: rtl;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1e293b 0%, #0284c7 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.section-title p {
    color: #475569;
    font-size: 1.25rem;
    max-width: 750px;
    margin: 25px auto 0;
    line-height: 1.9;
}

/* ============================================
   COMPONENT: NAVIGATION BAR (Glassmorphism)
   ============================================ */
header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

.dropdown {
    position: relative;
}

nav ul {
    display: flex;
    gap: 8px;
    /* Reduced gap for better fit with brochure button */
    align-items: center;
}

nav a {
    color: var(--white);
    font-weight: 600;
    padding: 8px 12px;
    /* Slightly reduced padding */
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-light);
}

/* Dropdown Component */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-dark);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    min-width: 240px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 15px 0;
    margin-top: 10px;
    width: max-content;
    max-width: 350px;
    z-index: 1100;
}

.dropdown-content a {
    color: var(--white);
    padding: 15px 25px;
    border-right: 3px solid transparent;
    display: block;
    text-align: right;
    line-height: 1.6;
    font-size: 1.05rem;
    white-space: nowrap;
    margin-bottom: 2px;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-right-color: var(--accent-main);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* ============================================
   COMPONENT: BUTTONS
   ============================================ */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-bounce);
    cursor: pointer;
    border: none;
    gap: 10px;
}

.cta-button.primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 10px 20px -10px rgba(245, 158, 11, 0.5);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.cta-button.primary:hover {
    filter: brightness(1.1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    height: 90vh;
    /* Fixed height to prevent shifting */
    display: flex;
    align-items: flex-start;
    /* Align to top */
    justify-content: center;
    padding-top: 12vh;
    /* Lifted up from 20vh to provide more space at bottom */
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    /* Fill space without cropping too much */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    /* No scale transform to keep natural size */
}

.hero-slide.active {
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Neutral dark overlay to maximize project image visibility */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    padding: 0 40px;
    min-height: 350px;
    /* Fixed height container to wrap all text lengths */
    animation: fadeInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: center;
}

/* Premium Hero Title */
.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 4px 20px rgba(245, 158, 11, 0.4));
    letter-spacing: 2px;
    animation: shimmer 3s ease-in-out infinite;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shimmer {

    0%,
    100% {
        filter: drop-shadow(0 4px 20px rgba(245, 158, 11, 0.4));
    }

    50% {
        filter: drop-shadow(0 4px 30px rgba(245, 158, 11, 0.7));
    }
}

/* Hero Tagline */
.hero-tagline {
    font-size: 1.6rem;
    margin-bottom: 40px;
    font-weight: 600;
    line-height: 1.8;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Buttons - Fixed at Bottom */
.hero-btns {
    position: absolute;
    bottom: 60px;
    /* Reduced from 80px to provide more room for text */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 20;
    width: auto;
}

.dynamic-btn {
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 35px -10px rgba(245, 158, 11, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.dynamic-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.7);
    border-color: #fbbf24;
}

.fade-out {
    opacity: 0;
    transform: translateY(15px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: #ffffff;
    opacity: 0.8;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

.hero p {
    font-size: 1.8rem;
    /* Larger font size since H2 is gone */
    margin-bottom: 50px;
    font-weight: 700;
    line-height: 1.6;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95);
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SPECIALTIES SECTION
   ============================================ */
#specialties {
    padding: var(--section-padding);
    background: var(--gradient-secondary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

#specialties::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

/* Specialty Section Styling using Tokens */
#specialties .section-title h2 {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#specialties .section-title p {
    color: var(--text-light);
}

#specialties .section-title h2::after {
    background: var(--gradient-accent);
    box-shadow: var(--shadow-orange);
}

.category-tab:hover .tab-icon {
    transform: scale(1.2);
}

.category-tab.active {
    color: var(--accent-light);
    border-bottom: 3px solid var(--accent-main);
    background: rgba(245, 158, 11, 0.1);
    /* Warmer, more visible glow */
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    /* Glow for high legibility */
}

.category-tab.active .tab-icon {
    opacity: 1;
    transform: scale(1.2);
}

.product-grid {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    min-height: 400px;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   COMPONENT: MODULAR CARDS
   ============================================ */
.modular-card {
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    border: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
    height: auto;
    /* Changed from 100% to prevent excessive expansion */
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.modular-card.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--white) !important;
}

.modular-card.glass-card h3,
.modular-card.glass-card p {
    color: var(--white) !important;
}

.modular-card.solid-card {
    background: var(--white);
    color: var(--text-dark);
    border-color: var(--border-soft);
}

.modular-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.modular-card.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* Specialty Icons */
.specialty-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
    padding: var(--section-padding);
    background: var(--gradient-section-alt);
}

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

.about-text h3 {
    font-size: 2.2rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    font-weight: 800;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.9;
}

.strengths {
    display: grid;
    gap: 20px;
}

/* Strength Component (Applied to Cards) */
.strength-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-orange);
}

.strength-text h4 {
    font-size: 1.3rem;
    color: var(--primary-main);
    margin-bottom: 8px;
    font-weight: 700;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
#services {
    padding: var(--section-padding);
    background: var(--white);
}

.services-container {
    display: grid;
    gap: 50px;
}

.service-category {
    background: linear-gradient(145deg, var(--lighter-gray) 0%, var(--light-gray) 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    scroll-margin-top: 100px;
    border: 1px solid var(--border-light);
}

.service-category:hover {
    box-shadow: var(--shadow-blue-lg);
    border-color: var(--secondary-lighter);
    transform: translateY(-2px);
}

.service-category h3 {
    font-size: 2rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-category h3 .icon {
    font-size: 2.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 3px 6px rgba(251, 191, 36, 0.4));
}

.service-items {
    display: grid;
    gap: 20px;
}

.service-item {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border-right: 4px solid var(--secondary-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateX(-8px);
    border-right-color: var(--accent-main);
    box-shadow: var(--shadow-blue);
    background: var(--gradient-card-hover);
}

.service-item h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.service-item p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

.service-item ul {
    margin-top: 15px;
    padding-right: 20px;
}

.service-item ul li {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.9;
    padding-right: 25px;
    position: relative;
    margin-bottom: 10px;
}

.service-item ul li::before {
    content: '▸';
    position: absolute;
    right: 0;
    color: var(--accent-main);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
#why-choose-us {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--lightest-gray) 0%, var(--lighter-gray) 50%, var(--light-gray) 100%);
}

/* Why Us grid using Modular Components */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.why-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    box-shadow: var(--shadow-orange-lg);
}

/* ============================================
   QUALITY SECTION
   ============================================ */
/* Quality Section Styling - Re-styled for Sky Blue Theme */
#quality .section-title h2 {
    background: linear-gradient(135deg, #1e293b 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#quality .section-title p {
    color: var(--text-gray);
}

#quality .section-title h2::after {
    background: var(--gradient-accent);
    box-shadow: var(--shadow-orange);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.quality-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #bae6fd;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px -5px rgba(14, 165, 233, 0.1);
}

.quality-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    border-color: #0284c7;
}

.quality-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.quality-card h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quality-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-gray);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
    padding: var(--section-padding);
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.contact-info {
    background: var(--gradient-secondary-main);
    color: var(--white);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-blue-lg);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 800;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.contact-item-icon {
    font-size: 2rem;
    background: var(--gradient-accent-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.contact-item-text h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-item-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.contact-form {
    background: linear-gradient(135deg, var(--lightest-gray) 0%, var(--lighter-gray) 100%);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-light);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

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

.submit-button {
    width: 100%;
    background: var(--gradient-accent-main);
    color: var(--white);
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-bounce);
    font-family: 'Cairo', sans-serif;
    box-shadow: var(--shadow-orange);
}

.submit-button:hover {
    background: var(--gradient-accent-light);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-orange-lg);
}

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

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 60px 20px 20px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--accent-light);
    transform: translateX(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* ============================================
   PAGE HERO (للصفحات الداخلية)
   ============================================ */
.page-hero {
    background: var(--gradient-secondary);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 20px;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.2);
}

/* ============================================
   ACTIVE NAVIGATION LINK
   ============================================ */
nav a.active {
    background: var(--gradient-glass);
    border-bottom: 2px solid var(--accent-light);
}

/* ============================================
   DETAILED SERVICES (Selective Display)
   ============================================ */
#services-detail-section {
    background-color: var(--bg-services);
    padding: 80px 0;
    position: relative;
}

.services-page .service-detail-item {
    display: none;
    /* يتم التحكم فيه بواسطة JS */
    background: var(--white);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
    /* Soft blue-tinted shadow */
    margin-bottom: 40px;
    border-right: 6px solid var(--secondary-main);
    animation: slideUp 0.6s ease forwards;
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.service-detail-header .icon {
    font-size: 3.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.3));
}

.service-detail-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.service-detail-body h4 {
    font-size: 1.5rem;
    color: var(--secondary-main);
    margin-bottom: 20px;
}

.service-detail-body ul {
    list-style: none;
    margin-top: 25px;
}

.service-detail-body ul li {
    padding: 12px 0;
    padding-right: 30px;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-gray);
    border-bottom: 1px dashed var(--border-color);
}

.service-detail-body ul li::before {
    content: '←';
    position: absolute;
    right: 0;
    color: var(--accent-main);
    font-weight: bold;
}

.back-link-wrapper {
    text-align: center;
    margin-top: 50px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h2 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {

    /* Mobile Menu */
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--bg-dark);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 600px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    nav a {
        padding: 15px 20px;
        width: 100%;
        display: block;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }

    .dropdown-content a {
        padding-right: 40px;
        background: rgba(255, 255, 255, 0.05);
    }

    .hero {
        min-height: 550px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .service-category {
        padding: 30px 20px;
    }

    .contact-form,
    .contact-info {
        padding: 35px 25px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .hero h2 {
        font-size: 1.9rem;
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

    .cta-button {
        padding: 16px 35px;
        font-size: 1.1rem;
    }

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

/* ============================================
   ENHANCED HERO BUTTONS
   ============================================ */
.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--white);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

/* ============================================
   PROJECT GALLERY STYLES
   ============================================ */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.gallery-grid.slider-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    width: 100%;
}

.gallery-item {
    flex: 0 0 100%;
    position: relative;
    height: 500px;
    border-radius: 0;
    /* Handled by container */
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-main);
    width: 30px;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    padding: 30px 20px;
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
    text-align: right;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--accent-light);
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   QUOTE FORM STYLES
   ============================================ */
.quote-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    background: var(--white);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border-light);
    align-items: center;
}

.quote-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-darkest);
}

.contact-brief {
    margin-top: 30px;
}

.contact-brief li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--gray-text);
}

.quote-form .form-group {
    margin-bottom: 15px;
}

.quote-form select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    background: var(--lightest-gray);
    cursor: pointer;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (max-width: 968px) {
    .quote-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 40px;
    }
}


/* ============================================
   SERVICE FEATURE BLOCKS
   ============================================ */
.service-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.service-feature:last-child {
    margin-bottom: 0;
}

.service-feature:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-light);
}

.service-feature.reverse {
    direction: ltr;
    /* To flip blocks visually */
}

.service-feature.reverse .feature-text {
    direction: rtl;
    /* To keep text right-to-left */
}

.feature-text h4 {
    font-size: 1.8rem;
    color: var(--secondary-main);
    margin-bottom: 20px;
    font-weight: 800;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.feature-text ul {
    list-style: none;
}

.feature-text ul li {
    padding-right: 30px;
    position: relative;
    margin-bottom: 12px;
    color: var(--dark-text);
    font-weight: 600;
}

.feature-text ul li::before {
    content: '?';
    position: absolute;
    right: 0;
    color: var(--accent-main);
}

.feature-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-feature:hover .feature-image img {
    transform: scale(1.05);
}

@media (max-width: 968px) {
    .service-feature {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .service-feature.reverse {
        direction: rtl;
    }

    .feature-image {
        height: 600px;
    }
}


/* ============================================
   SERVICES PAGE: UNIFIED NAVIGATION BAR
   ============================================ */
.services-nav-section {
    background: var(--bg-dark);
    padding: 20px 0;
    /* Removed sticky and top: 70px to fix standard scroll behavior */
    z-index: 900;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}

.services-overview-reveal {
    padding: 60px 0;
}

.services-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service-nav-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s;
}

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

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

.service-nav-card .card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.service-nav-card h3 {
    font-size: 1.6rem;
    color: var(--primary-main);
    margin-bottom: 15px;
    font-weight: 800;
}

.service-nav-card p {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-explore {
    color: var(--secondary-main);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.service-nav-card:hover .btn-explore {
    transform: translateX(-5px);
    color: var(--accent-main);
}

.back-to-overview {
    margin-bottom: 40px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-soft);
}

.back-btn:hover {
    background: var(--white);
    border-color: var(--secondary-main);
    color: var(--secondary-main);
}

.interactive-items {
    margin-top: 20px;
}

.deep-dive-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.deep-dive-trigger:hover {
    background: var(--white);
    border-color: var(--secondary-main);
    transform: translateX(-5px);
    box-shadow: var(--shadow-sm);
}

.deep-dive-trigger span {
    font-weight: 700;
    color: var(--text-dark);
}

.deep-dive-trigger .chevron {
    color: var(--secondary-main);
    font-size: 1.2rem;
    transition: var(--transition);
}

.deep-dive-trigger:hover .chevron {
    transform: translateX(-5px);
}

/* ============================================
   AMAZON-STYLE SERVICE NAVIGATOR
   ============================================ */
.service-navigator {
    margin-top: 50px;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.category-tabs-wrapper {
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.category-tabs-wrapper::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.category-tabs {
    display: flex;
    gap: 10px;
    min-width: max-content;
}

.category-tab {
    background: none;
    border: none;
    color: #94a3b8;
    /* Clearer, lighter blue-gray instead of dark gray */
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.category-tab .tab-icon {
    font-size: 1.4rem;
    opacity: 0.9;
    /* Increased opacity from 0.7 */
    transition: transform 0.3s;
}

.category-tab:hover {
    color: var(--white);
    /* White on hover for maximum clarity */
}

/* PRODUCT CARD ENHANCEMENTS */
.product-image-box {
    position: relative;
    overflow: hidden;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-spec-btn {
    background: var(--white);
    color: var(--primary-main);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .view-spec-btn {
    transform: translateY(0);
}

.view-spec-btn:hover {
    background: var(--accent-main);
    color: var(--white);
    transform: scale(1.05);
}

.view-details-link {
    color: var(--accent-light);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    margin-top: 10px;
}

.view-details-link:hover {
    color: var(--white);
    transform: translateX(-5px);
}

.category-tab:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.category-tab:hover .tab-icon {
    transform: scale(1.2);
}

.category-tab.active {
    color: var(--accent-light);
    border-bottom: 3px solid var(--accent-main);
    background: rgba(194, 29, 51, 0.05);
}

.category-tab.active .tab-icon {
    opacity: 1;
    transform: scale(1.2);
}

.product-grid {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    min-height: 400px;
}

/* MODAL OVERLAY (Deep Dive) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--white);
    width: 95%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 25px;
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 30px;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: sticky;
    top: 10px;
    margin-right: auto;
    /* Pushes to the left in RTL */
    margin-bottom: -45px;
    /* Offset to not take up vertical space */
    z-index: 100;
    background: var(--secondary-main);
    border: 2px solid var(--white);
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-md);
}

.modal-close:hover {
    background: var(--secondary-main);
    color: var(--white);
    transform: rotate(90deg);
}

/* MODAL CONTENT LAYOUT */
.modal-detail-view {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Info left, Image right (RTL) */
    gap: 40px;
    align-items: start;
}

.modal-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-soft);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info h2 {
    font-size: 2.2rem;
    color: var(--primary-main);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.modal-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.tech-specs {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
    border-right: 6px solid var(--accent-main);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.tech-specs h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.tech-specs ul {
    list-style: none;
}

.tech-specs ul li {
    padding-right: 25px;
    position: relative;
    margin-bottom: 10px;
}

.tech-specs ul li::before {
    content: '?';
    position: absolute;
    right: 0;
    color: var(--secondary-main);
}

@media (max-width: 768px) {
    .modal-container {
        padding: 20px;
        max-height: 90vh;
        width: 95%;
    }

    .modal-detail-view {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .modal-image {
        order: -1;
        /* Image on top for mobile */
        aspect-ratio: 16/9;
        height: auto;
    }

    .modal-info h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .tech-specs {
        padding: 20px;
    }
}

/* ============================================
   FLOATING ACTIONS
   ============================================ */
.floating-actions {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    z-index: 1000;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition-bounce);
    font-weight: 700;
    text-decoration: none;
    pointer-events: auto;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #20ba59;
    color: white;
}

.back-to-top {
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-bounce);
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--gradient-accent);
}

@media (max-width: 768px) {
    .floating-actions {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .whatsapp-btn span {
        display: none;
    }

    .whatsapp-btn {
        padding: 12px;
        border-radius: 50%;
    }
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

#services-content-wrapper.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    /* Stretch cards to match the tallest in the row */
}

@media (max-width: 1100px) {
    #services-content-wrapper.grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    #services-content-wrapper.grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    #services-content-wrapper.grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

#services-detail-section {
    padding: 60px 0 100px;
}

/* Category Headers - Hidden for Unified Grid Display */
#services-content-wrapper.grid-layout .service-detail-header {
    display: none !important;
}

#services-content-wrapper.grid-layout .service-detail-item {
    display: contents !important;
}

#services-content-wrapper.grid-layout .service-detail-body {
    display: contents;
    /* Allows children (features) to be direct grid items */
}

/* Individual Feature Cards */
#services-content-wrapper.grid-layout .service-feature {
    display: flex;
    flex-direction: column !important;
    background: #ffffff;
    padding: 0;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    height: 100%;
    /* Equal height for all cards */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

#services-content-wrapper.grid-layout .service-feature:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.15);
    border-color: var(--secondary-main);
}

#services-content-wrapper.grid-layout .service-feature .feature-image {
    width: 100% !important;
    height: 200px;
    /* Proper height for desktop */
    object-fit: cover;
    border-radius: 0;
    order: -1 !important;
}

#services-content-wrapper.grid-layout .service-feature .feature-text {
    padding: 12px 10px;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    order: 1 !important;
    background: transparent;
    text-align: right;
}

#services-content-wrapper.grid-layout .service-feature .feature-text h4 {
    font-size: 1.25rem;
    /* Proper desktop font size */
    color: var(--primary-main);
    margin-bottom: 12px;
    font-weight: 800;
    border-right: none;
    border-bottom: 3px solid var(--accent-main);
    padding-bottom: 8px;
    display: table;
}

#services-content-wrapper.grid-layout .service-feature .feature-text p {
    font-size: 0.95rem;
    /* Proper desktop font size */
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#services-content-wrapper.grid-layout .service-feature .feature-text .interactive-items {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 5px;
}

/* Cleanup feature text grid legacy */
#services-content-wrapper.grid-layout .service-feature .feature-text p,
#services-content-wrapper.grid-layout .service-feature .feature-text .interactive-items {
    grid-column: auto !important;
    /* Avoid 2-column overlap */
    text-align: right;
}

.service-feature .feature-text p {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.service-feature .feature-text .interactive-items {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Modern Action Buttons instead of triggers */
.deep-dive-trigger {
    background: #0f172a !important;
    /* Deep navy/black footer-like background */
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-bounce);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.deep-dive-trigger span,
.deep-dive-trigger i {
    color: #ffffff !important;
    opacity: 1 !important;
}

.deep-dive-trigger:hover {
    background: var(--accent-main);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.deep-dive-trigger .chevron {
    transition: transform 0.3s;
    font-style: normal;
}

.deep-dive-trigger:hover .chevron {
    transform: translateX(-5px);
}

/* Mobile adjustments for Service Features */
@media (max-width: 900px) {

    .service-feature,
    .modular-card {
        height: auto !important;
        min-height: unset !important;
    }

    .service-feature {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px;
        padding: 10px;
    }

    .service-feature.reverse {
        direction: rtl !important;
    }

    .feature-image {
        order: -1 !important;
        width: 100%;
        margin-bottom: 5px;
    }

    .feature-image img {
        height: 160px;
        /* Slightly smaller */
        width: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

    .feature-text {
        order: 1 !important;
        padding: 5px;
        text-align: right;
        display: block !important;
        /* Switch to block to avoid flex stretching */
    }

    .feature-text p {
        flex-grow: 0 !important;
        height: auto !important;
        min-height: unset !important;
        margin-bottom: 12px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 5 !important;
        line-clamp: 5 !important;
        /* Standard property */
        /* Limit text height */
    }

    .feature-text h4 {
        border-right: none;
        border-bottom: 3px solid var(--accent-main);
        display: table;
        margin-bottom: 15px;
        padding-bottom: 5px;
        font-size: 1.25rem;
    }

    .interactive-items {
        margin-top: 15px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

.service-detail-item {
    margin-bottom: 80px;
    transition: all 0.5s ease;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto 15px;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 10px;
    animation: loading 1.5s infinite ease-in-out;
}

#preloader p {
    color: var(--white);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes loading {
    0% {
        left: -40%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: -40%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-wrapper {
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 5px solid var(--white);
    margin-top: 40px;
}

.map-wrapper iframe {
    filter: grayscale(1) invert(0.9) contrast(1.2);
    /* Dark Map Theme */
    display: block;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition-bounce);
    text-decoration: none;
}

.social-link:hover {
    background: var(--secondary-main);
    transform: translateY(-5px);
    color: var(--white);
}

/* ============================================
   INTERACTIVE POLISH
   ============================================ */
.modular-card {
    position: relative;
    overflow: hidden;
}

.modular-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(2, 132, 199, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.modular-card:hover::after {
    opacity: 1;
}

/* Form Polish */
.contact-form .form-group input,
.contact-form .form-group textarea {
    background: var(--bg-light);
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-main);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

/* Scroll Animation Enhancements */
/* Standard Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.reveal-active.reveal-left,
.reveal-active.reveal-right {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   TECHNOLOGIES SECTION
   ============================================ */
#technologies,
#about,
#quality,
#quote,
.quality-section,
.brochure-section {
    background: #e0f2fe;
    /* Shared Sky Blue Aesthetic */
    padding: 80px 0;
    border-top: 1px solid #bae6fd;
    border-bottom: 1px solid #bae6fd;
}

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

.tech-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #bae6fd;
    /* Softer border for sky blue bg */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px -5px rgba(14, 165, 233, 0.1);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.tech-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.tech-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    border-color: #0284c7;
    /* Brand blue on hover */
}

.tech-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 25px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tech-card:hover .tech-image {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tech-card h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   MODAL TECHNICAL TABLES
   ============================================ */
.modal-body-section {
    margin-bottom: 30px;
}

.modal-body-section h4 {
    color: var(--secondary-main);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.tech-specs h4 {
    color: var(--primary-main);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 800;
    border-right: 4px solid var(--accent-main);
    padding-right: 15px;
}

.specs-table-container {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-soft);
    margin-bottom: 30px;
    overflow-x: auto;
}

.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.specs-table tr {
    transition: var(--transition);
}

.specs-table tr:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.specs-table td {
    padding: 15px;
    font-size: 1rem;
}

.spec-label {
    width: 40%;
    color: #64748b;
    /* Sharper gray for labels */
    font-weight: 700;
    background: rgba(15, 23, 42, 0.03);
    border-left: 1px solid #e2e8f0;
}

.spec-value {
    width: 60%;
    color: var(--primary-main);
    font-weight: 600;
}

.specs-table tr:hover {
    background: #ffffff;
}

.modal-cta {
    margin-top: 40px;
    text-align: center;
}

.modal-cta .cta-button {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .tech-card {
        padding: 25px 20px;
    }

    .tech-image {
        height: 180px;
    }

    .tech-card h3 {
        font-size: 1.2rem;
    }
}

/* ============================================
   BROCHURE DOWNLOAD STYLES
   ============================================ */
.nav-highlight a {
    background: var(--gradient-accent);
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-md);
    font-weight: 700 !important;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(255, 138, 0, 0.2);
    transition: var(--transition-bounce) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-highlight a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 138, 0, 0.3);
}

.brochure-box {
    margin: 80px auto;
    padding: 60px 50px;
    background: var(--surface-main);
    border: 1px solid rgba(255, 138, 0, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-right: 10px solid var(--accent-main);
    position: relative;
    overflow: hidden;
}

.brochure-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.brochure-text h2 {
    font-size: 2.22rem;
    color: var(--primary-main);
    margin-bottom: 15px;
    font-weight: 800;
}

.brochure-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.brochure-action .cta-button.large {
    padding: 18px 40px;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
}

@media (max-width: 992px) {
    .brochure-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-highlight a {
        margin: 10px 0;
        justify-content: center;
        width: 100%;
        margin-right: 0;
    }

    .brochure-text h2 {
        font-size: 1.8rem;
    }

    .brochure-box {
        padding: 40px 25px;
        margin: 40px 15px;
    }
}