/* =============================================
   عيادة حور لطب الأسنان - CSS (Light Theme)
   ============================================= */

/* CSS Variables - Royal Blue & Dark Gray Palette */
:root {
    /* Primary Colors - Royal Blue */
    --primary: #1E6BB3;
    --primary-dark: #165a96;
    --primary-light: #3a8ad4;
    --primary-glow: rgba(30, 107, 179, 0.25);

    /* Secondary Colors - Dark Slate Gray */
    --secondary: #666666;
    --secondary-dark: #4a4a4a;
    --secondary-light: #888888;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #1E6BB3 0%, #3a8ad4 100%);
    --gradient-blue: linear-gradient(135deg, #1E6BB3 0%, #3a8ad4 100%);

    /* Background Colors - Light Theme */
    --bg-light: #ffffff;
    --bg-section: #F0F7FF;
    --bg-alt: #F0F7FF;
    --bg-card: #ffffff;
    --bg-card-hover: #F0F7FF;
    --bg-footer: #1a1a2e;

    /* Text Colors */
    --text-dark: #666666;
    --text-heading: #333333;
    --text-body: #666666;
    --text-muted: #888888;
    --text-white: #ffffff;

    /* Others */
    --border-color: rgba(30, 107, 179, 0.15);
    --border-light: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 10px 40px rgba(30, 107, 179, 0.25);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-light);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Main wrapper to contain all content and prevent horizontal overflow */
.main-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* =============================================
   Preloader
   ============================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader .tooth {
    font-size: 4rem;
    color: var(--primary);
    animation: pulse 1s ease infinite;
}

.loader p {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

@keyframes pulse {

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

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* =============================================
   WhatsApp Float Button
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-normal);
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes bounce {

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

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

/* =============================================
   Navigation
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    padding: 10px 0;
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: var(--transition-normal);
}

.navbar.scrolled .logo-img {
    width: 80px;
    height: 80px;
}

.logo-text {
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    position: relative;
    padding: 5px 0;
}

.navbar:not(.scrolled) .nav-link {
    color: var(--text-heading);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-normal);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    padding: 12px 28px !important;
    border-radius: var(--radius-lg);
    color: white !important;
    text-shadow: none !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-heading);
    border-radius: 3px;
    transition: var(--transition-normal);
}

.navbar:not(.scrolled) .nav-toggle span {
    background: var(--text-heading);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    overflow: hidden;
    overflow-x: hidden;
}

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

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 107, 179, 0.92) 0%, rgba(58, 138, 212, 0.85) 50%, rgba(30, 107, 179, 0.75) 100%);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    text-align: center;
    box-sizing: border-box;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 25px;
}

.hero-badge i {
    color: #ffffff;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-white);
}

.gradient-text {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

/* Hero section keeps white text */
.hero .gradient-text {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.9;
}

.hero-subtitle strong {
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius-lg);
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--bg-light);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
}

.hero-stats {
    display: flex;
    gap: 50px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-white);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-image {
    display: none;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    animation: scrollBounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.3rem;
    color: #ffffff;
}

@keyframes scrollBounce {

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

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

/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* =============================================
   Section Styles
   ============================================= */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-badge {
    display: inline-block;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 8px 24px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 15px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   About Section
   ============================================= */
.about {
    background: var(--bg-section);
}

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

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-primary);
}

.exp-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.exp-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.about-text h3 {
    font-size: 2rem;
    color: var(--text-heading);
    margin-bottom: 20px;
}

.about-lead {
    font-size: 1.1rem;
    color: var(--text-body);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.feature:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1rem;
    color: var(--text-heading);
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* =============================================
   Services Section
   ============================================= */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-alt);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition-normal);
}

.service-icon.featured {
    background: var(--primary);
    border: none;
    color: white;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
    background: var(--primary);
    color: white;
    border: none;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.service-features span {
    font-size: 0.75rem;
    background: var(--bg-alt);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.service-features span i {
    margin-left: 5px;
    font-size: 0.7rem;
}

/* =============================================
   Video Section
   ============================================= */
.video-section {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
}

.video-section .section-badge {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.video-section .section-title {
    color: white;
}

.video-section .section-title .gradient-text {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.video-section .section-desc {
    color: rgba(255, 255, 255, 0.9);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.video-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.video-placeholder {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--text-heading);
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-overlay p {
    position: absolute;
    bottom: 30px;
    color: white;
    font-size: 1rem;
}

.play-btn {
    width: 100px;
    height: 100px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    transition: var(--transition-normal);
    animation: playPulse 2s infinite;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-btn i {
    margin-right: -5px;
}

@keyframes playPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 30px transparent;
    }
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
}

/* =============================================
   Before After Section
   ============================================= */
.before-after {
    background: var(--bg-section);
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ba-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.ba-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.ba-slider {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.ba-before,
.ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-before img,
.ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-after {
    clip-path: inset(0 50% 0 0);
}

.ba-label {
    position: absolute;
    bottom: 15px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.85rem;
    border-radius: 20px;
}

.ba-before .ba-label {
    left: 15px;
}

.ba-after .ba-label {
    right: 15px;
    background: var(--primary);
}

.ba-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: white;
    z-index: 5;
    pointer-events: none;
}

.ba-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ba-handle::after {
    content: '⟷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--primary);
}

.ba-info {
    padding: 20px;
    text-align: center;
}

.ba-info h4 {
    color: var(--text-heading);
    margin-bottom: 5px;
}

.ba-info p {
    color: var(--primary);
    font-size: 0.9rem;
}

/* =============================================
   Reviews Section - Image Gallery Style
   ============================================= */
.reviews {
    background: var(--bg-light);
}

.reviews-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.review-image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    aspect-ratio: 3/4;
    cursor: pointer;
}

.review-image-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

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

.review-image-card:hover img {
    transform: scale(1.1);
}

.review-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: var(--transition-normal);
}

.review-image-card:hover .review-image-overlay {
    opacity: 1;
}

.review-image-overlay p {
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-heading);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.lightbox-close:hover {
    background: var(--primary);
    color: white;
}

/* =============================================
   FAQ Section
   ============================================= */
.faq {
    background: var(--bg-section);
}

.faq-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.faq-item:hover,
.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    text-align: right;
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    transition: var(--transition-normal);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    color: var(--primary);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* =============================================
   Contact Section
   ============================================= */
.contact {
    background: var(--primary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at right, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.contact .section-badge {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-title .gradient-text {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.contact .section-desc {
    color: rgba(255, 255, 255, 0.9);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-icon.whatsapp {
    background: #25d366;
    color: white;
}

.contact-details h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-details a,
.contact-details p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    display: block;
    margin-bottom: 3px;
}

.contact-details a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    transition: var(--transition-normal);
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #dc2743;
}

.social-link.whatsapp-link:hover {
    background: #25d366;
    border-color: #25d366;
}

.contact-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

.map-wrapper {
    height: 100%;
    min-height: 450px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--bg-footer);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    /* Logo with original colors */
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--primary-light);
    font-size: 1rem;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 12px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--primary-light);
    padding-right: 10px;
}

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

.footer-contact p i {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.footer-copyright a {
    color: white !important;
    font-weight: 600;
    transition: var(--transition-normal);
}

.footer-copyright a:hover {
    color: var(--primary-light) !important;
}

/* =============================================
   Back to Top Button
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-primary);
}

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

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

/* =============================================
   Reveal Animations
   ============================================= */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* Disable horizontal animations on mobile to prevent overflow */
@media (max-width: 768px) {

    .reveal-left,
    .reveal-right {
        transform: translateY(30px);
    }

    .reveal-left.revealed,
    .reveal-right.revealed {
        transform: translateY(0);
    }
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .logo-img {
        width: 90px;
        height: 90px;
    }

    .navbar.scrolled .logo-img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper img {
        height: 400px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ba-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .faq-container {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-img {
        width: 80px;
        height: 80px;
    }

    .navbar.scrolled .logo-img {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 768px) {

    /* Fix horizontal scroll - comprehensive fix */
    html {
        overflow-x: hidden;
        overflow-y: auto !important;
    }

    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* Ensure all sections stay within viewport */
    section,
    .hero,
    .about,
    .services,
    .video-section,
    .before-after,
    .reviews,
    .faq,
    .contact,
    .footer {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .navbar {
        width: 100%;
        max-width: 100vw;
        overflow: visible;
        left: 0;
        right: 0;
    }

    .nav-container {
        max-width: 100%;
        width: 100%;
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        padding-top: 30px;
        gap: 20px;
        transition: transform 0.3s ease, visibility 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    /* Show logo in mobile menu */
    .nav-menu::before {
        content: '';
        display: block;
        width: 80px;
        height: 80px;
        background-image: url('../images/logo.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin-bottom: 20px;
    }

    .nav-menu .nav-link {
        color: var(--text-heading) !important;
        text-shadow: none !important;
    }

    /* Mobile CTA button - white text */
    .nav-menu .nav-cta {
        background: var(--primary);
        color: #ffffff !important;
        padding: 12px 28px !important;
        border-radius: var(--radius-lg);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 140px 0 80px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 25px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .ba-grid {
        grid-template-columns: 1fr;
    }

    .reviews-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }

    .footer-links h4::after,
    .footer-services h4::after,
    .footer-contact h4::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-contact p {
        justify-content: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .back-to-top {
        bottom: 85px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .logo-img {
        width: 70px;
        height: 70px;
    }

    .navbar.scrolled .logo-img {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .reviews-gallery {
        grid-template-columns: 1fr;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    .navbar.scrolled .logo-img {
        width: 50px;
        height: 50px;
    }
}