:root {
    --primary-color: #fb8122;
    --primary-dark: #e06a1a;
    --primary-light: #ff9e4d;
    --background-dark: #1d2228;
    --background-light: #e1e2e2;
    --background-white: #ffffff;
    --text-white: #ffffff;
    --text-dark: #1d2228;
    --text-muted: #6b7280;
    --whatsapp-green: #25D366;
    --gradient-primary: linear-gradient(135deg, #fb8122 0%, #e06a1a 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(251, 129, 34, 0.85) 0%, rgba(29, 34, 40, 0.95) 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    background: var(--background-dark);
    overflow-x: hidden;
}

body.arabic {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

body.arabic h1,
body.arabic h2,
body.arabic h3,
body.arabic h4,
body.arabic h5,
body.arabic h6 {
    font-family: 'Lateef', sans-serif;
}

/* Scroll Behavior (Hybrid Approach) */
html {
    scroll-behavior: smooth;
    contain: layout style paint;
}

.main-container {
    display: block;
    width: 100%;
    max-width: 100vw;
    height: auto;
}

.section {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    scroll-snap-align: none;
    scroll-snap-stop: none;
    padding-top: 80px;
    padding-bottom: 40px;
}

@media (min-width: 992px) {
    body {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
    
    html {
        scroll-snap-type: x mandatory;
    }
    
    .main-container {
        display: flex !important;
        width: max-content !important;
        height: 100vh;
    }
    
    .section {
        width: 100vw;
        height: 100vh;
        flex-shrink: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        overflow-y: auto;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    /* Hide scrollbar for internal section scroll but keep functionality */
    .section::-webkit-scrollbar {
        width: 8px;
    }
    .section::-webkit-scrollbar-track {
        background: transparent;
    }
    .section::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
}

@media (max-width: 991px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    html {
        scroll-snap-type: y mandatory;
    }
    
    .main-container {
        display: block;
        width: 100%;
        height: auto;
    }
    
    .section {
        width: 100%;
        min-height: 100vh;
        scroll-snap-align: none;
        scroll-snap-stop: none;
        padding-top: 80px;
        padding-bottom: 40px;
    }
}

.section-content-wrapper {
    min-height: 100%;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

/* Navigation */
.navbar-custom {
    height: 80px;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: none;
    padding: 15px 0;
}

.navbar-custom.scrolled {
    background: transparent;
}

.navbar-brand img {
    height: 60px;
}

.nav-link-custom {
    color: white;
    font-weight: 600;
    margin: 0 10px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
}

.nav-link-custom:hover {
    color: white;
    background: var(--gradient-primary);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
}

.lang-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.lang-link:hover,
.lang-link.active {
    background: var(--gradient-primary);
    color: white;
}

/* Buttons */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 129, 34, 0.4);
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-custom:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 129, 34, 0.5);
    color: white;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: white;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    width: 100%;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 40px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: var(--background-light);
}

.hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta-buttons .btn {
    font-size: 1rem;
    padding: 12px 30px;
}

/* Floating CTAs */
.floating-ctas {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 15px;
}

body.arabic .floating-ctas {
    right: auto;
    left: 30px;
}

.floating-cta {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 28px;
    cursor: pointer;
}

.floating-cta:hover {
    transform: scale(1.1);
}

.whatsapp-float {
    background-color: var(--whatsapp-green);
    color: white;
}

.call-float {
    background: var(--gradient-primary);
    color: white;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    background: rgba(20, 24, 28, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
    box-sizing: border-box;
    contain: strict layout style paint;
}

.mobile-sticky-btn {
    flex: 1;
    border: none;
    border-radius: 12px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.mobile-sticky-btn.btn-call {
    background: var(--gradient-primary);
}

.mobile-sticky-btn.btn-wa {
    background: var(--whatsapp-green);
}

.mobile-sticky-btn.btn-map {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    flex: 0 0 50px;
    border-radius: 12px;
    font-size: 1.1rem;
}

.mobile-sticky-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
    color: white;
}

.mobile-sticky-btn i {
    font-size: 1rem;
}

/* Mobile Hamburger & Menu */
.mobile-hamburger {
    position: fixed;
    top: 16px;
    left: 16px;
    height: 44px;
    padding: 0 16px;
    background: rgba(20, 24, 28, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1001;
    cursor: pointer;
    color: white;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
}

body.arabic .mobile-hamburger {
    left: auto;
    right: 16px;
}

.mobile-lang-switcher {
    position: fixed;
    top: 16px;
    right: 16px;
    height: 44px;
    padding: 0 16px;
    background: rgba(20, 24, 28, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    font-weight: 700;
    font-size: 13px;
    color: white;
    text-decoration: none;
    gap: 4px;
}

.mobile-lang-switcher::before {
    content: '🌐';
    font-size: 14px;
}

body.arabic .mobile-lang-switcher {
    right: auto;
    left: 16px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: #111418;
    z-index: 1002;
    box-shadow: 4px 0 40px rgba(0,0,0,0.5);
    transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.arabic .mobile-menu {
    left: auto;
    right: -100%;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
}

.mobile-menu.show { left: 0; }
body.arabic .mobile-menu.show { right: 0; left: auto; }

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(251,129,34,0.06);
}

.mobile-menu-header img {
    height: 44px;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: white;
    font-size: 16px;
}

.mobile-menu-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    z-index: 1001;
    display: none;
}
.mobile-menu-overlay.show { display: block; }

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
}

.mobile-menu-link i {
    width: 32px;
    height: 32px;
    background: rgba(251,129,34,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    color: white;
    background: rgba(251,129,34,0.08);
    padding-left: 24px;
}

.mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    background: var(--background-white);
    border: 1px solid rgba(251, 129, 34, 0.15);
    display: flex;
    flex-direction: column;
}

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

.service-card img {
    height: 140px;
    object-fit: cover;
    width: 100%;
}

.service-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.3;
}

.service-card-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.4;
    flex: 1;
}

.service-card .btn {
    margin-top: auto;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--primary-light);
    margin-bottom: 30px;
}

/* Contact Info */
.contact-info {
    background: white;
    border: 1px solid rgba(251, 129, 34, 0.2);
    padding: 25px;
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info .d-flex {
    margin-bottom: 15px;
}

.contact-info h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-info .d-grid {
    gap: 10px;
}

.contact-info .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--text-white);
    padding: 30px 0;
    border-top: 1px solid rgba(251, 129, 34, 0.2);
}
.footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.footer a:hover { opacity: 0.8; }

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-custom { display: none; }
    
    .mobile-sticky-bar, .mobile-hamburger, .mobile-lang-switcher {
        display: flex;
    }
    .floating-ctas {
        display: none !important;
    }
    
    .hero-video {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-content-wrapper {
        padding: 30px 0;
    }
    
    .service-card img {
        height: 160px;
    }
}

@media (max-width: 767px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 20px; }
    
    .service-card img {
        height: 140px;
    }
    
    .service-card-title {
        font-size: 1.1rem;
    }
    
    .service-card-text {
        font-size: 0.85rem;
    }
}
