/* ========================================
   Dr. Eman Tantawy Dental Clinic
   Premium Stylesheet
   ======================================== */

/* ===== CSS Variables (Brand Identity) ===== */
:root {
    /* Brand Colors (from logo) */
    --primary: #5BC2E7;
    --primary-dark: #3DA8CF;
    --primary-light: #B8E3F2;
    --primary-pale: #EAF6FB;

    --secondary: #0A6E8A;
    --secondary-dark: #075168;

    --accent: #2C9CB8;
    --silver: #A8B0B5;
    --silver-light: #D5DADC;

    /* Neutrals */
    --dark: #1A2433;
    --gray-900: #2A3447;
    --gray-700: #4A5568;
    --gray-500: #718096;
    --gray-300: #CBD5E0;
    --gray-100: #F1F5F9;
    --gray-50: #FAFBFC;
    --white: #FFFFFF;

    /* Semantic */
    --success: #10B981;
    --gold: #F2C94C;

    /* Typography */
    --font-arabic: 'Cairo', sans-serif;
    --font-display: 'Playfair Display', 'Cairo', serif;

    /* Spacing & Sizing */
    --container-max: 1280px;
    --section-padding: 100px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 110, 138, 0.06);
    --shadow-md: 0 8px 24px rgba(10, 110, 138, 0.10);
    --shadow-lg: 0 16px 48px rgba(10, 110, 138, 0.14);
    --shadow-xl: 0 24px 64px rgba(10, 110, 138, 0.18);

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: var(--font-arabic);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: clip;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
}

h4 {
    font-size: 1.15rem;
}

p {
    color: var(--gray-700);
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Every section clips overflowing absolutely-positioned children */
section {
    overflow-x: hidden;
    position: relative;
}

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

.mt-50 {
    margin-top: 50px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn i {
    transition: transform var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(91, 194, 231, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(91, 194, 231, 0.5);
}

.btn-primary:hover i {
    transform: translateX(-4px);
}

.btn-secondary {
    background: var(--dark);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-light {
    background: var(--white);
    color: var(--secondary);
}

.btn-light:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--secondary);
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--dark);
    color: var(--white);
    font-size: 0.875rem;
    padding: 10px 0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-info i {
    color: var(--primary);
    margin-left: 6px;
}

.separator {
    opacity: 0.4;
}

.top-bar-social {
    display: flex;
    gap: 14px;
}

.top-bar-social a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.top-bar-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ===== Header ===== */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 20px;
}

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

.logo-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
}

.logo-tagline {
    font-size: 0.78rem;
    color: var(--secondary);
    font-weight: 500;
}

.main-nav .nav-list {
    display: flex;
    gap: 6px;
}

.nav-link {
    padding: 10px 16px;
    font-weight: 600;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    position: relative;
    font-size: 0.95rem;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.header-cta {
    padding: 11px 22px;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    /* Premium Gradient Background replacing the old image/white gradient */
    background: linear-gradient(135deg, rgba(244, 250, 253, 1) 0%, rgba(220, 240, 249, 1) 50%, rgba(184, 227, 242, 0.4) 100%);
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.glowing-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    mix-blend-mode: multiply;
    animation: pulse-shapes 8s ease-in-out infinite alternate;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(91, 194, 231, 0.4) 0%, rgba(10, 110, 138, 0.1) 70%);
}

.shape-2 {
    bottom: -10%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 110, 138, 0.3) 0%, rgba(91, 194, 231, 0.05) 70%);
    animation-delay: -3s;
}

@keyframes pulse-shapes {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -20px) scale(1.1);
    }
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-grid-wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    max-width: 680px;
    z-index: 5;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(91, 194, 231, 0.15);
    color: var(--secondary-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(91, 194, 231, 0.35);
    box-shadow: 0 4px 12px rgba(10, 110, 138, 0.05);
}

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    line-height: 1.22;
    margin-bottom: 24px;
    color: var(--dark);
    font-weight: 900;
}

.text-accent {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
}

.hero-description {
    font-size: 1.18rem;
    color: var(--gray-700);
    margin-bottom: 40px;
    line-height: 1.85;
}

.hero-cta-group {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-glow {
    box-shadow: 0 10px 28px rgba(91, 194, 231, 0.45);
    animation: btn-pulse 3s infinite;
}

@keyframes btn-pulse {

    0%,
    100% {
        box-shadow: 0 10px 28px rgba(91, 194, 231, 0.45);
    }

    50% {
        box-shadow: 0 14px 38px rgba(91, 194, 231, 0.65);
    }
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    color: var(--secondary-dark);
    border: 2px solid rgba(10, 110, 138, 0.2);
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(10, 110, 138, 0.08);
}

.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 30px;
    border-radius: var(--radius-lg);
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-stars {
    color: var(--gold);
    font-size: 1rem;
    display: flex;
    gap: 3px;
}

.trust-icon {
    font-size: 1.8rem;
    color: var(--secondary);
}

.trust-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.trust-text strong {
    font-size: 1.25rem;
    color: var(--dark);
    font-weight: 800;
}

.trust-text span {
    font-size: 0.8rem;
    color: var(--gray-700);
    font-weight: 500;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(10, 110, 138, 0.15);
}

/* --- Hero Visual (Doctor Frame) --- */
.hero-visual-side {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    position: relative;
}

.hero-image-frame-wrap {
    position: relative;
    width: 100%;
    max-width: 430px;
    /* 
     * Padding creates space for floating badges so they don't overflow.
     * The card itself shrinks accordingly because of box-sizing: border-box.
     */
    padding: 42px 58px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Premium Image Card for Doctor */
.hero-image-card {
    width: 100%;
    aspect-ratio: 0.85;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 3;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(10, 110, 138, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.6);
    transition: var(--transition-slow);
}

.hero-dr-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.image-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 110, 138, 0.4) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.hero-image-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 35px 75px rgba(10, 110, 138, 0.25);
}

.hero-image-card:hover .hero-dr-img {
    transform: scale(1.05);
}

/* --- Hero Visual (Floating Badges Area) --- */
.hero-visual-side {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.doctor-frame-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    filter: blur(24px);
    opacity: 0.25;
    border-radius: var(--radius-xl);
    z-index: 1;
}

/* Floating Badges in Hero */
.floating-glass-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(10, 110, 138, 0.15);
    z-index: 10;
    /* Don't use max-content - it causes overflow */
    white-space: nowrap;
    max-width: calc(100% - 10px);
}

.floating-glass-badge .badge-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.floating-glass-badge .badge-content {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.floating-glass-badge .badge-content strong {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 700;
}

.floating-glass-badge .badge-content span {
    font-size: 0.72rem;
    color: var(--gray-700);
}

.badge-top-right {
    top: 0;
    right: 0;
}

.badge-bottom-left {
    bottom: 0;
    left: 0;
}

/* Animations for Floating Badges */
.float-anim {
    animation: float-y 5s ease-in-out infinite;
}

.float-anim-reverse {
    animation: float-y-rev 5s ease-in-out infinite;
}

@keyframes float-y {

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

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

@keyframes float-y-rev {

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

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

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    animation: bounce 2s infinite;
    z-index: 5;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== Features Strip ===== */
.features-strip {
    padding: 60px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-item:hover {
    background: var(--white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(91, 194, 231, 0.3);
}

.feature-content h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* ===== Section Headers ===== */
.section-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    position: relative;
    padding-right: 40px;
}

.section-eyebrow::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

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

.section-header.text-center .section-eyebrow {
    padding-right: 0;
}

.section-header.text-center .section-eyebrow::before {
    display: none;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle,
.section-lead {
    font-size: 1.1rem;
    color: var(--gray-700);
    max-width: 700px;
    line-height: 1.7;
}

.text-center .section-subtitle {
    margin: 0 auto;
}

.section-lead {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 20px;
}

/* ===== About Preview ===== */
.about-preview-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
    position: relative;
}

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

.about-preview-images {
    position: relative;
    /* Extra padding to accommodate absolutely positioned overlapping elements */
    padding: 20px 30px 60px 30px;
}

.img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.img-main img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.img-main:hover img {
    transform: scale(1.05);
}

.img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--white);
}

.img-secondary img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -10px;
    left: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge strong {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge span {
    font-size: 0.85rem;
    font-weight: 500;
}

.about-points {
    margin: 28px 0;
}

.about-points li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-900);
    font-weight: 500;
}

.about-points i {
    color: var(--primary);
    font-size: 1.1rem;
}

.signature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.signature-img {
    height: 60px;
    width: auto;
    opacity: 0.8;
}

/* ===== Services Section ===== */
.services-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

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

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

.service-featured {
    background: linear-gradient(135deg, var(--primary-pale) 0%, var(--white) 100%);
    border-color: var(--primary-light);
}

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

.service-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold);
    color: var(--dark);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    box-shadow: 0 10px 24px rgba(91, 194, 231, 0.35);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(-8deg) scale(1.05);
}

.service-card h3 {
    margin-bottom: 14px;
}

.service-card p {
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.service-link i {
    transition: transform var(--transition);
}

.service-link:hover {
    color: var(--primary);
}

.service-link:hover i {
    transform: translateX(-6px);
}

/* ===== Why Section ===== */
.why-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-pale) 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.why-features {
    margin-top: 30px;
}

.why-feature {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(10, 110, 138, 0.1);
}

.why-feature:last-child {
    border-bottom: none;
}

.why-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    min-width: 50px;
}

.why-feature h4 {
    margin-bottom: 6px;
    color: var(--dark);
}

.why-feature p {
    font-size: 0.95rem;
    margin: 0;
}

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

.why-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    background-position: center;
}

.floating-stat {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    padding: 20px 26px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
}

.floating-stat i {
    font-size: 2rem;
    color: var(--success);
}

.floating-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.floating-stat span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(91, 194, 231, 0.2) 0%, transparent 50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(91, 194, 231, 0.15);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    border: 2px solid rgba(91, 194, 231, 0.3);
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

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

/* ===== Testimonials ===== */
.testimonials-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

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

.testimonial-card {
    background: var(--white);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.t-stars {
    color: var(--gold);
    margin-bottom: 16px;
    display: flex;
    gap: 3px;
}

.t-quote {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.6;
}

.t-text {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 0.98rem;
    position: relative;
    z-index: 1;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.t-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.t-author strong {
    display: block;
    color: var(--dark);
    font-weight: 700;
}

.t-author span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== CTA Banner ===== */
.cta-banner {
    margin-top: 100px;
    padding: 80px 0;
    background:
        linear-gradient(135deg, rgba(10, 110, 138, 0.95) 0%, rgba(26, 36, 51, 0.95) 100%),
        url('https://www.genspark.ai/api/files/s/ZjszuGe2') center/cover;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(91, 194, 231, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    padding: 4px;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
}

.footer-about {
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-right: 6px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 5px;
    flex-shrink: 0;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-credit a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== Backdrop for Mobile Menu ===== */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 36, 51, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Floating Elements ===== */
.whatsapp-float {
    position: fixed;
    margin-right: 50px;
    bottom: 24px;
    /* ثبّت الأيقونة على اليسار (يسار الشاشة فعلياً) */
    left: 24px !important;
    right: 10px !important;
    /* إلغاء كامل للخصائص المنطقية لمنع تدخل RTL */
    inset-inline-start: unset !important;
    inset-inline-end: unset !important;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    animation: pulse-wa 2s infinite;
    min-width: 58px;
    min-height: 58px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Legacy pulse for other elements */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    /* Force placement on the right side (اليمين) to prevent overlap with WhatsApp */
    right: 24px !important;
    left: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    width: 46px;
    height: 46px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

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

/* ===== Page Banner (Inner Pages) ===== */
.page-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-pale) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(91, 194, 231, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-banner-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    margin-bottom: 16px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--secondary);
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span.separator {
    color: var(--gray-300);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

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

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

    .about-preview-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-preview-images {
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    /* Stacking Hero grid on Medium/Tablet screens and adjusting background */
    .hero-grid-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-trust-bar {
        margin: 0 auto;
    }

    .hero-section {
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.92),
                rgba(255, 255, 255, 0.92)),
            url('../images/imgi_31_dsc00265-hdr-edit.png');
        background-position: center center;
    }

    .hero-visual-side {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }

    /* Ensure no horizontal overflow on tablets */
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 16px;
        width: 100%;
    }

    /* Prevent text/images from causing overflow */
    img,
    video,
    iframe,
    embed,
    object {
        max-width: 100%;
        height: auto;
    }

    .top-bar-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 6px 0;
    }

    .top-bar-info {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        font-size: 0.75rem;
    }

    .top-bar-info .separator {
        display: inline-block;
    }

    .top-bar-social {
        justify-content: flex-end;
        gap: 6px;
        margin-top: 0;
    }

    .top-bar-social a {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        display: block;
        padding: 14px 20px;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--gray-100);
        border-radius: 0;
    }

    .nav-link.active::after {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
        flex-shrink: 0;
    }

    .logo-tagline {
        display: none;
    }

    .logo-name {
        font-size: 1rem;
    }

    .hero-section {
        min-height: auto;
        padding: 50px 0 30px;
        overflow: hidden;
    }

    .hero-grid-wrap {
        gap: 20px;
    }

    .hero-glass-accent-card {
        padding: 30px 20px;
        aspect-ratio: auto;
        min-height: 260px;
    }

    /* Hero frame: contain all floating badges inside */
    .hero-image-frame-wrap {
        padding: 50px 60px;
        max-width: 100%;
        width: 100%;
    }

    /* Badges are absolutely positioned within the padded frame */
    .badge-top-right {
        right: 0;
        top: 0;
    }

    .badge-bottom-left {
        left: 0;
        bottom: 0;
    }

    .features-grid,
    .services-grid,
    .testimonials-grid,
    .ba-grid {
        grid-template-columns: 1fr;
    }

    /* About section images */
    .about-preview-images {
        overflow: visible;
    }

    .img-secondary {
        width: 150px;
        right: 0;
        bottom: -20px;
    }

    .experience-badge {
        left: 0;
        bottom: 70px;
        top: auto;
        padding: 14px 20px;
    }

    .experience-badge strong {
        font-size: 2rem;
    }

    .img-main img {
        height: 380px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .scroll-indicator {
        display: none;
    }

    .stats-grid {
        gap: 30px;
    }

    .stat-num {
        font-size: 2.2rem;
    }

    .signature-row {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Floating buttons - ensure always visible */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 16px !important;
        right: auto !important;
        inset-inline-start: unset !important;
        inset-inline-end: unset !important;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 16px !important;
        left: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .btn {
        padding: 11px 20px;
        font-size: 0.88rem;
    }

    .btn-lg {
        padding: 13px 24px;
        font-size: 0.92rem;
    }

    .hero-title {
        font-size: 1.9rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    /* Hero frame tight on small screens */
    .hero-image-frame-wrap {
        padding: 45px 55px;
    }

    .floating-glass-badge {
        padding: 8px 10px;
        border-radius: 10px;
        gap: 6px;
    }

    .floating-glass-badge .badge-icon {
        font-size: 1rem;
    }

    .floating-glass-badge .badge-content strong {
        font-size: 0.75rem;
    }

    .floating-glass-badge .badge-content span {
        font-size: 0.62rem;
    }

    /* Badges stay inside the padded frame */
    .badge-top-right {
        right: 0;
        top: 0;
    }

    .badge-bottom-left {
        left: 0;
        bottom: 0;
    }

    .experience-badge {
        left: 0;
        bottom: 50px;
        top: auto;
        padding: 10px 16px;
    }

    .experience-badge strong {
        font-size: 1.7rem;
    }

    .experience-badge span {
        font-size: 0.72rem;
    }

    .img-secondary {
        width: 130px;
    }

    .img-secondary img {
        height: 130px;
    }

    .img-main img {
        height: 320px;
    }

    .service-card {
        padding: 22px 18px;
    }

    .testimonial-card {
        padding: 22px 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .hero-trust-bar {
        flex-direction: column;
        gap: 14px;
        width: 100%;
        padding: 16px 20px;
    }

    .trust-divider {
        width: 80%;
        height: 1px;
    }

    /* Floating buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        font-size: 1.4rem;
        bottom: 16px;
        left: 14px !important;
        right: auto !important;
        inset-inline-start: unset !important;
        inset-inline-end: unset !important;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 16px;
        right: 14px !important;
        left: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
    }

    /* Header on very small screens */
    .header-container {
        padding: 14px 16px;
    }

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

/* ===== Premium UI Polish (Language selector & smooth styles) ===== */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    background: var(--primary-pale);
    border: 1px solid rgba(10, 110, 138, 0.15);
    transition: var(--transition);
    margin-left: 10px;
}

.lang-toggle-btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .lang-toggle-btn {
        margin-left: 0;
        margin-top: 0;
        width: auto;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ===== Google Reviews Testimonials Section ===== */
.google-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 15px;
    border: 1px solid var(--gray-100);
}

.google-logo-sm {
    width: 24px;
    height: 24px;
}

.gr-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gr-score {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--dark);
}

.gr-stars {
    color: #fbbc05;
    font-size: 0.9rem;
}

.gr-count {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-right: 4px;
}

.testimonials-slider-wrapper {
    position: relative;
    padding: 20px 0;
    margin-top: 20px;
}

.testimonials-scroll-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-scroll-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.google-review-card {
    min-width: 340px;
    max-width: 340px;
    scroll-snap-align: center;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
    position: relative;
    transition: transform var(--transition);
}

.google-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.t-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.t-author-img img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.t-author-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.t-author-info strong {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.t-date {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.google-icon-corner img {
    width: 20px;
    height: 20px;
}

.google-review-card .t-stars {
    color: #fbbc05;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.google-review-card .t-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin: 0;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .google-review-card {
        min-width: 280px;
        max-width: 280px;
    }
}