/* ============================================
   Enhanced CSS with Better Performance & UX
   ============================================ */

:root {
    /* ========== Color Palette ========== */
    /* Primary Colors */
    --primary-color: #1A365D;
    --secondary-color: #2B77AD;
    --accent-color: #F56500;
    --accent-light: #FF8A00;
    --gold-color: #D4AF37;
    --success-color: #38A169;
    
    /* Text Colors */
    --text-dark: #2D3748;
    --text-light: #718096;
    --text-muted: #A0AEC0;
    
    /* Background Colors */
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.1);
    --bg-overlay: rgba(0, 0, 0, 0.6);
    
    /* Surface Colors */
    --card-bg: #FFFFFF;
    --card-border: rgba(0, 0, 0, 0.08);
    --card-hover-border: rgba(212, 175, 55, 0.4);
    
    /* Gradient Backgrounds */
    --nav-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --footer-bg: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
    --hero-overlay: linear-gradient(135deg, 
        rgba(26, 54, 93, 0.85) 0%, 
        rgba(43, 119, 173, 0.75) 50%, 
        rgba(245, 101, 0, 0.65) 100%);
    
    /* ========== Spacing & Sizing ========== */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --border-radius-circle: 50%;
    
    /* ========== Shadows ========== */
    --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-bold: 0 20px 60px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.3);
    
    /* ========== Transitions ========== */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ========== Effects ========== */
    --blur-light: blur(10px);
    --blur-medium: blur(20px);
    --blur-heavy: blur(30px);
}

[data-theme="dark"] {
    /* ========== Dark Mode Colors ========== */
    --text-dark: #F7FAFC;
    --text-light: #CBD5E0;
    --text-muted: #718096;
    
    --bg-light: #1A202C;
    --bg-white: #2D3748;
    --bg-glass: rgba(255, 255, 255, 0.08);
    --bg-overlay: rgba(0, 0, 0, 0.8);
    
    --card-bg: #2D3748;
    --card-border: rgba(255, 255, 255, 0.12);
    --card-hover-border: rgba(212, 175, 55, 0.5);
    
    --nav-bg: linear-gradient(135deg, #2D3748 0%, #4A5568 100%);
    --footer-bg: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
    --hero-overlay: linear-gradient(135deg, 
        rgba(26, 32, 44, 0.9) 0%, 
        rgba(45, 55, 72, 0.85) 50%, 
        rgba(245, 101, 0, 0.75) 100%);
    
    /* Enhanced Shadows for Dark Mode */
    --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-bold: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* ============================================
   Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 1.5rem);
}

/* ============================================
   Header & Navigation
   ============================================ */

header {
    background: var(--nav-bg);
    backdrop-filter: var(--blur-medium);
    color: white;
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    padding: 0.8rem 0;
    background: rgba(26, 54, 93, 0.96);
    backdrop-filter: var(--blur-heavy);
    box-shadow: var(--shadow-soft);
}

[data-theme="dark"] header.scrolled {
    background: rgba(45, 55, 72, 0.96);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 2rem;
}

/* Logo */
.logo {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-color), var(--accent-color));
    border-radius: 2px;
    opacity: 0.8;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-circle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    backdrop-filter: var(--blur-light);
    position: relative;
    z-index: 1001;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(180deg) scale(1.05);
    border-color: var(--gold-color);
    box-shadow: var(--shadow-glow);
}

.theme-toggle:active {
    transform: rotate(180deg) scale(0.95);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    position: relative;
    transition: var(--transition);
    backdrop-filter: var(--blur-light);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    border-color: var(--gold-color);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    position: relative;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: var(--transition);
    font-weight: 500;
    overflow: hidden;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--gold-color));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 25px;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    color: white;
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Phone Button */
.phone-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: white;
    padding: clamp(0.6rem, 2vw, 0.9rem) clamp(1.2rem, 4vw, 1.8rem);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    font-size: clamp(0.85rem, 2vw, 1rem);
    white-space: nowrap;
    flex-shrink: 0;
}

.phone-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: right 0.6s ease;
}

.phone-btn:hover::before {
    right: 100%;
}

.phone-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--shadow-bold);
}

.phone-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    padding: 0 1rem;
    line-height: 1.8;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
    padding: 0 1rem;
}

.btn {
    padding: clamp(1rem, 3vw, 1.2rem) clamp(2rem, 5vw, 2.5rem);
    border-radius: 35px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    min-width: 200px;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: right 0.6s ease;
}

.btn-primary:hover::before {
    right: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-bold);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1);
}

.btn-secondary {
    background: var(--bg-glass);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--blur-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--gold-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

/* ============================================
   Services Section
   ============================================ */

.services {
    padding: clamp(4rem, 15vw, 8rem) 0;
    background: var(--bg-light);
    position: relative;
    transition: var(--transition);
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(245, 101, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 54, 93, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

[data-theme="dark"] .services::before {
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(245, 101, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 54, 93, 0.12) 0%, transparent 50%);
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    margin-bottom: 4rem;
    color: var(--text-dark);
    font-weight: 900;
    position: relative;
    padding-bottom: 1.5rem;
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
    border-radius: 5px;
}

/* Services Slider */
.services-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 clamp(2rem, 8vw, 4rem);
}

.services-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: clamp(1.2rem, 3vw, 2rem);
    padding: 1.5rem 0 2.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-grid::-webkit-scrollbar {
    display: none;
}

/* Service Card */
.service-card {
    flex: 0 0 auto;
    width: clamp(280px, 40vw, 340px);
    scroll-snap-align: center;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--card-border);
    opacity: 0;
    transform: translateY(30px);
    animation: cardFloatIn 0.6s ease-out forwards;
    animation-delay: calc(var(--card-index) * 0.1s);
}

.service-card:nth-child(1) { --card-index: 0; }
.service-card:nth-child(2) { --card-index: 1; }
.service-card:nth-child(3) { --card-index: 2; }
.service-card:nth-child(4) { --card-index: 3; }
.service-card:nth-child(5) { --card-index: 4; }
.service-card:nth-child(6) { --card-index: 5; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, 
        rgba(245, 101, 0, 0.08), 
        rgba(212, 175, 55, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-bold);
    border-color: var(--card-hover-border);
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-card:hover::after {
    opacity: 1;
}

/* Service Image */
.service-image-container {
    width: 100%;
    height: clamp(200px, 25vw, 240px);
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.service-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        transparent 0%, 
        rgba(245, 101, 0, 0.08) 50%, 
        rgba(212, 175, 55, 0.15) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover .service-image-container::before {
    opacity: 0.5;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.05) contrast(1.05);
}

.service-card:hover .service-image {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

/* Service Overlay */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(26, 54, 93, 0.9), 
        rgba(245, 101, 0, 0.85));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    backdrop-filter: var(--blur-light);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-search-icon {
    color: white;
    font-size: clamp(3rem, 5vw, 4rem);
    animation: bounceGlow 2s ease-in-out infinite;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
}

.service-overlay-text {
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s;
}

.service-card:hover .service-overlay-text {
    opacity: 1;
    transform: translateY(0);
}

/* Service Content */
.service-content {
    padding: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    position: relative;
    background: var(--card-bg);
    transition: var(--transition);
    z-index: 1;
}

.service-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
    transition: width 0.4s ease;
    transform: translateX(-50%);
}

.service-card:hover .service-content::before {
    width: 80%;
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
    transition: left 0.4s ease;
}

.service-card:hover h3 {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.service-card:hover h3::after {
    left: 0;
}

.service-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-light);
    line-height: 1.7;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover p {
    color: var(--text-dark);
    transform: translateY(-1px);
}

/* Service Icon Floating */
.service-icon-floating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: clamp(45px, 8vw, 55px);
    height: clamp(45px, 8vw, 55px);
    background: linear-gradient(135deg, var(--accent-color), var(--gold-color));
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    z-index: 3;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 20px rgba(245, 101, 0, 0.4);
}

.service-card:hover .service-icon-floating {
    transform: scale(1) rotate(360deg);
}

/* Services Navigation Buttons */
.services-slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    border: none;
    padding: clamp(0.8rem, 3vw, 1rem);
    cursor: pointer;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    z-index: 5;
    border-radius: var(--border-radius-circle);
    width: clamp(50px, 10vw, 60px);
    height: clamp(50px, 10vw, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.services-slider-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-bold);
}

.services-slider-nav-btn:active {
    transform: translateY(-50%) scale(1);
}

.services-slider-nav-btn.prev {
    right: 0;
}

.services-slider-nav-btn.next {
    left: 0;
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: clamp(4rem, 15vw, 8rem) 0;
    background: var(--bg-white);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

[data-theme="dark"] .features {
    background: var(--bg-light);
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(245, 101, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 40vw, 320px), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 4rem;
}

.feature-item {
    text-align: center;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 3vw, 2rem);
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 101, 0, 0.08), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-bold);
}

.feature-icon {
    width: clamp(70px, 12vw, 85px);
    height: clamp(70px, 12vw, 85px);
    background: linear-gradient(135deg, var(--accent-color), var(--gold-color));
    border-radius: var(--border-radius-circle);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: var(--border-radius-circle);
    background: linear-gradient(135deg, var(--accent-color), var(--gold-color));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.feature-item:hover .feature-icon::after {
    opacity: 0.3;
    animation: pulse 1.5s infinite;
}

.feature-item h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-weight: 700;
    transition: var(--transition);
    line-height: 1.4;
}

.feature-item:hover h3 {
    color: var(--accent-color);
}

.feature-item p {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    color: var(--text-light);
    transition: var(--transition);
    line-height: 1.7;
}

.feature-item:hover p {
    color: var(--text-dark);
}

/* ============================================
   Gallery Section
   ============================================ */

.gallery {
    padding: clamp(4rem, 15vw, 8rem) 0;
    background: var(--bg-light);
    transition: var(--transition);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(300px, 45vw, 360px), 1fr));
    gap: clamp(1.2rem, 3vw, 2rem);
    margin-top: 4rem;
}

.gallery-item {
    height: clamp(260px, 35vw, 320px);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: var(--shadow-bold);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(26, 54, 93, 0.85), 
        rgba(245, 101, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    text-align: center;
    padding: 0 1rem;
    pointer-events: none;
}

.gallery-item:hover .gallery-placeholder {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
    padding: clamp(4rem, 15vw, 8rem) 0;
    background: var(--nav-bg);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(245, 101, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(3rem, 8vw, 5rem);
    align-items: start;
}

.contact-info h3 {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, white 0%, var(--gold-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.contact-info p {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: white;
    font-weight: 600;
    padding: clamp(0.9rem, 3vw, 1.1rem) clamp(1.2rem, 4vw, 1.5rem);
    background: var(--bg-glass);
    border-radius: 15px;
    backdrop-filter: var(--blur-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(-8px);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--gold-color);
}

.contact-item i {
    margin-left: 1.5rem;
    color: var(--gold-color);
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

/* Contact Form */
.contact-form {
    background: var(--bg-glass);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 20px;
    backdrop-filter: var(--blur-medium);
    box-shadow: var(--shadow-bold);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
    border-radius: 20px 20px 0 0;
}

.contact-form h4 {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    margin-bottom: 2rem;
    color: var(--gold-color);
    text-align: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: clamp(1rem, 3vw, 1.2rem) clamp(1.2rem, 4vw, 1.5rem);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    transition: var(--transition);
    backdrop-filter: var(--blur-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-color);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

.form-group textarea {
    height: clamp(130px, 20vw, 160px);
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn-primary {
    width: 100%;
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    padding: clamp(1rem, 3vw, 1.2rem) 0;
    margin-top: 1rem;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--footer-bg);
    color: white;
    padding: clamp(3rem, 8vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2rem);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 40vw, 320px), 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(2rem, 5vw, 3rem);
    text-align: right;
}

.footer-section h4 {
    color: var(--gold-color);
    margin-bottom: 1.5rem;
    font-size: clamp(1.45rem, 3.5vw, 1.85rem);
    font-weight: 700;
}

.footer-section p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-links a {
    width: clamp(48px, 8vw, 55px);
    height: clamp(48px, 8vw, 55px);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-circle);
    text-decoration: none;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: right 0.6s ease;
}

.social-links a:hover::before {
    right: 100%;
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-bold);
}

.social-links a:active {
    transform: translateY(-2px) scale(1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(0.9rem, 2vw, 1.05rem);
}

/* ============================================
   Floating Elements
   ============================================ */

.whatsapp-float {
    position: fixed;
    width: clamp(60px, 12vw, 70px);
    height: clamp(60px, 12vw, 70px);
    bottom: clamp(20px, 5vw, 30px);
    left: clamp(20px, 5vw, 30px);
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 4vw, 2.4rem);
    text-decoration: none;
    box-shadow: var(--shadow-bold);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12) rotate(5deg);
    animation: none;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:active {
    transform: scale(1.05);
}

.scroll-top {
    position: fixed;
    bottom: clamp(20px, 5vw, 30px);
    right: clamp(20px, 5vw, 30px);
    width: clamp(50px, 10vw, 60px);
    height: clamp(50px, 10vw, 60px);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    border: none;
    border-radius: var(--border-radius-circle);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.scroll-top:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: var(--shadow-bold);
}

.scroll-top:active {
    transform: translateY(-2px) scale(1);
}

/* ============================================
   Slider Styles
   ============================================ */

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slider-image.active {
    opacity: 1;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-overlay);
    color: white;
    border: none;
    padding: clamp(0.9rem, 3vw, 1.1rem) clamp(0.7rem, 2vw, 0.9rem);
    cursor: pointer;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    z-index: 3;
    transition: var(--transition);
    border-radius: 12px;
    backdrop-filter: var(--blur-light);
}

.slider-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.08);
}

.slider-nav-btn:active {
    transform: translateY(-50%) scale(1);
}

.slider-nav-btn.prev {
    left: clamp(1rem, 4vw, 2rem);
}

.slider-nav-btn.next {
    right: clamp(1rem, 4vw, 2rem);
}

.slider-dots {
    position: absolute;
    bottom: clamp(1.5rem, 6vw, 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: clamp(0.8rem, 3vw, 1.2rem);
}

.dot {
    width: clamp(12px, 3vw, 16px);
    height: clamp(12px, 3vw, 16px);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-circle);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.dot.active {
    background: var(--gold-color);
    transform: scale(1.25);
    border-color: white;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-bold);
    }
    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-bold), 0 0 0 10px rgba(255, 255, 255, 0.1);
    }
}

@keyframes cardFloatIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounceGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.9));
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1200px) {
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-info .contact-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        max-width: 450px;
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: var(--shadow-bold);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: var(--blur-medium);
        z-index: 999;
        min-height: 60vh;
        justify-content: flex-start;
        gap: 0;
    }
    
    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        padding: 1.3rem 2rem;
        display: block;
        font-size: 1.15rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        margin: 0;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: none;
    }
    
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        z-index: -1;
        backdrop-filter: blur(3px);
    }
    
    .phone-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }
    
    .header-controls {
        gap: 0.7rem;
    }
    
    .theme-toggle,
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    
    .btn {
        width: 90%;
        max-width: 380px;
        padding: 1.1rem 2rem;
    }
    
    .services-grid,
    .features-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        width: 90vw;
        max-width: 380px;
    }
    
    .services-slider-wrapper {
        padding: 0 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .contact-form {
        padding: 1.8rem;
    }
    
    .service-card {
        width: 87vw;
        max-width: 340px;
    }
    
    .services-slider-wrapper {
        padding: 0 2rem;
    }
    
    .slider-nav-btn {
        padding: 0.7rem 0.6rem;
        font-size: 1.4rem;
    }
    
    .phone-btn span {
        display: none;
    }
    
    .phone-btn {
        padding: 0.6rem 0.8rem;
        min-width: 40px;
        justify-content: center;
    }
    
    .theme-toggle,
    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .header-controls {
        gap: 0.5rem;
    }
}

@media (max-width: 360px) {
    .service-card {
        width: 85vw;
    }
}

/* ============================================
   Dark Mode Specific
   ============================================ */

[data-theme="dark"] .service-overlay {
    background: linear-gradient(135deg, 
        rgba(45, 55, 72, 0.92), 
        rgba(245, 101, 0, 0.88));
}

[data-theme="dark"] .gallery-item::before {
    background: linear-gradient(135deg, 
        rgba(45, 55, 72, 0.88), 
        rgba(245, 101, 0, 0.75));
}

/* ============================================
   Accessibility & Performance
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.35);
        --shadow-bold: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
    
    .service-card,
    .feature-item,
    .gallery-item {
        border-width: 2px;
    }
}

/* Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold-color);
    outline-offset: 3px;
}

/* Print Styles */
@media print {
    .whatsapp-float,
    .scroll-top,
    .theme-toggle,
    .mobile-menu-toggle,
    .slider-nav-btn,
    .services-slider-nav-btn {
        display: none !important;
    }
    
    .hero {
        height: auto;
        min-height: 50vh;
    }
    
    * {
        box-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* GPU Acceleration Hints */
.service-card,
.feature-item,
.gallery-item,
.btn,
.whatsapp-float,
.scroll-top {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}