/* ==========================================================================
   Dr. Hashem Maitah Clinic - Custom Design Stylesheet
   ========================================================================== */

/* --- Custom Variables & Theme Configurations --- */
:root {
    /* Color Palette - Light Theme (Trustworthy Medical Teal & Sky Blue) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    
    --primary-color: #0d9488;       /* Teal */
    --primary-light: #2dd4bf;
    --primary-dark: #0f766e;
    --accent-color: #0ea5e9;        /* Sky Blue */
    --accent-light: #38bdf8;
    
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(226, 232, 240, 0.8);
    --nav-bg: rgba(255, 255, 255, 0.8);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(13, 148, 136, 0.08), 0 8px 16px -6px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 40px -15px rgba(13, 148, 136, 0.15);
    --shadow-glow: 0 0 20px rgba(45, 212, 191, 0.3);
    
    --glass-blur: 12px;
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --transition-speed: 0.4s;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

body.dark-theme {
    /* Color Palette - Dark Theme (Sleek, Premium, High-Contrast Medical Slate) */
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-accent: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    
    --primary-color: #14b8a6;       /* Bright Teal */
    --primary-light: #2dd4bf;
    --primary-dark: #0d9488;
    --accent-color: #38bdf8;        /* Sky Blue */
    --accent-light: #7dd3fc;
    
    --card-bg: rgba(17, 24, 39, 0.6);
    --card-border: rgba(30, 41, 59, 0.8);
    --nav-bg: rgba(11, 15, 25, 0.8);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 25px -5px rgba(20, 184, 166, 0.15), 0 8px 16px -6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 45px -12px rgba(20, 184, 166, 0.25);
    --shadow-glow: 0 0 25px rgba(20, 184, 166, 0.4);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-en);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Apply Arabic font when language direction is RTL */
html[dir="rtl"] body {
    font-family: var(--font-ar);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1000;
    width: 0%;
    transition: width 0.1s ease;
}

/* Helper Layout Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* --- Button Typography & Micro-interactions --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    backdrop-filter: blur(var(--glass-blur));
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-google {
    background-color: #4285f4;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-google:hover {
    background-color: #357ae8;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(66, 133, 244, 0.4);
}

/* --- Sticky Header / Navbar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    background-color: var(--nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--card-border);
    transition: background-color var(--transition-speed) ease, padding 0.3s ease;
    padding: 16px 0;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.clinic-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.logo-area:hover .clinic-logo {
    transform: rotate(15deg) scale(1.05);
}

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

.logo-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 600;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* logical flipping support */
html[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

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

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

/* Nav Controls Area */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.control-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background-color: var(--bg-accent);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 1px solid var(--card-border);
}

.control-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

#lang-toggle {
    width: auto;
    padding: 0 14px;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.mobile-only {
    display: none !important;
}

/* Mobile Drawer Nav */
.mobile-drawer {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--card-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.mobile-drawer.open {
    max-height: 400px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-accent);
}

.mobile-nav-link:last-of-type {
    border-bottom: none;
}

.mobile-nav-btn {
    text-align: center;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    margin-top: 10px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 160px 0 100px 0;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-color: var(--bg-primary);
    transition: background-color var(--transition-speed) ease;
}

#hero-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.liquid-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.65;
    pointer-events: none;
    animation: liquidMove 25s infinite alternate ease-in-out;
    will-change: transform;
    z-index: 1;
}

body.dark-theme .liquid-shape {
    opacity: 0.45;
}

.liquid-shape-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.45) 0%, transparent 85%);
}

.liquid-shape-2 {
    bottom: -10%;
    left: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.45) 0%, transparent 85%);
    animation: liquidMove 30s infinite alternate-reverse ease-in-out;
}

.liquid-shape-3 {
    top: 30%;
    left: 20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.35) 0%, transparent 85%);
    animation: liquidMove 20s infinite alternate ease-in-out;
}

@keyframes liquidMove {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(50px, -30px) scale(1.1) rotate(120deg);
    }
    66% {
        transform: translate(-30px, 40px) scale(0.9) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

html[dir="rtl"] .hero-title {
    font-size: 3.2rem;
    line-height: 1.25;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Portrait Styling & Motion */
.hero-image-area {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 0.95;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--card-border);
}

.image-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    position: relative;
    animation: floatPortrait 6s ease-in-out infinite;
}

@keyframes floatPortrait {
    0%, 100% {
        transform: translateY(0) scale(1.02);
    }
    50% {
        transform: translateY(-10px) scale(1);
    }
}

/* --- Stats Bar Section --- */
.stats-section {
    padding: 40px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(var(--glass-blur));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- Section Styling Rules --- */
.section-badge {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

html[dir="rtl"] .section-title {
    font-family: var(--font-ar);
}

/* --- About Doctor Section --- */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

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

.about-image-area {
    display: flex;
    justify-content: center;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 0.85;
    border-radius: var(--border-radius-lg);
    border: 4px solid var(--card-border);
    box-shadow: var(--shadow-lg);
}

.about-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--border-radius-lg) - 4px);
}

.about-image-glow {
    position: absolute;
    top: -15px;
    right: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    opacity: 0.12;
    z-index: -1;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

/* logical adjustment */
html[dir="rtl"] .experience-badge {
    left: auto;
    right: -20px;
}

.exp-num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
    margin-top: 15px;
    width: 100%;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.about-feature-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

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

.service-card {
    position: relative;
    padding: 40px 30px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(var(--glass-blur));
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
}

.service-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(20, 184, 166, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-icon-box {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-md);
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 28px;
    transition: all 0.4s ease;
}

.service-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Service Card Hover States */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card:hover .service-card-glow {
    opacity: 1;
}

.service-card:hover .service-icon-box {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

/* --- Smile Gallery Section --- */
.gallery-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.transformation-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transformation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.15;
    background-color: var(--bg-accent);
}

.comparison-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

.badge-after {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* logical flip */
html[dir="rtl"] .badge-after {
    right: auto;
    left: 12px;
}

.case-details {
    padding: 20px;
    text-align: start;
}

.case-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.case-desc {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

/* Secondary Thumbnail Cases Grid */
.secondary-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.gallery-thumbnail {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 2px solid var(--card-border);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 148, 136, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

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

.gallery-thumbnail:hover .thumbnail-overlay {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1500;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border: 4px solid var(--card-border);
    animation: zoomLightbox 0.3s ease;
}

@keyframes zoomLightbox {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
}

/* --- Contact & Location Section --- */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    margin-top: 50px;
    align-items: stretch;
}

.contact-info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(var(--glass-blur));
    display: flex;
    flex-direction: column;
    text-align: start;
}

.info-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.info-item:last-of-type {
    margin-bottom: 0;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.info-icon.accent {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.info-item:hover .info-icon {
    transform: scale(1.1);
}

.info-details {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

.info-value[href]:hover {
    color: var(--primary-color);
}

.whatsapp-cta-banner {
    margin-top: 30px;
    padding: 24px;
    background-color: var(--bg-accent);
    border-radius: var(--border-radius-md);
    border-left: 4px solid #22c55e;
}

html[dir="rtl"] .whatsapp-cta-banner {
    border-left: none;
    border-right: 4px solid #22c55e;
}

.banner-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #22c55e;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.banner-btn:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

.google-review-banner {
    margin-top: 24px;
    padding: 24px;
    background-color: var(--bg-accent);
    border-radius: var(--border-radius-md);
    border-left: 4px solid #4285f4;
}

html[dir="rtl"] .google-review-banner {
    border-left: none;
    border-right: 4px solid #4285f4;
}

.review-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #4285f4;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.review-btn:hover {
    background-color: #357ae8;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(66, 133, 244, 0.3);
}

.social-icon.google:hover {
    background-color: #4285f4;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

/* Map Card */
.contact-map-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 4px solid var(--card-border);
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 450px;
}

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

.map-wrapper iframe {
    filter: grayscale(0.1) contrast(1.05);
}

body.dark-theme .map-wrapper iframe {
    filter: invert(90%) hue-rotate(180deg) grayscale(0.2) contrast(1.2);
}

/* --- Footer --- */
.footer {
    background-color: #090d16;
    color: #94a3b8;
    padding: 80px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
}

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

.footer-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.footer-logo-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

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

html[dir="rtl"] .footer-heading::after {
    left: auto;
    right: 0;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-list a {
    font-size: 0.95rem;
    transition: color 0.3s ease, padding 0.3s ease;
}

.links-list a:hover {
    color: var(--primary-color);
    padding-left: 6px;
}

html[dir="rtl"] .links-list a:hover {
    padding-left: 0;
    padding-right: 6px;
}

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

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.05);
    color: #ffffff;
}

.social-icon.facebook:hover {
    background-color: #1877f2;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 6px 20px rgba(188, 24, 136, 0.4);
}

.social-icon.snapchat:hover {
    background-color: #fffc00;
    color: #000000;
    box-shadow: 0 6px 20px rgba(255, 252, 0, 0.4);
}

.footer-bottom {
    background-color: #05070a;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
}

.developer i {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* --- Reveal on Scroll Animations --- */
.reveal {
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    will-change: transform, opacity;
}

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

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

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

.reveal-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Media Queries & Responsiveness --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    html[dir="rtl"] .hero-title {
        font-size: 2.6rem;
    }
    .stats-grid, .services-grid, .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .secondary-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image-area {
        order: 2;
    }
    .about-content {
        order: 1;
    }
    .contact-map-card {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .mobile-only {
        display: inline-flex !important;
    }
    .nav-menu, .nav-controls .nav-btn {
        display: none;
    }
    .logo-text {
        display: none;
    }
    #lang-toggle .lang-text {
        display: none;
    }
    #lang-toggle {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    html[dir="rtl"] .hero-title {
        font-size: 2.2rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .services-grid, .gallery-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .secondary-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer {
        padding-top: 50px;
    }
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
    .experience-badge {
        bottom: 10px;
        left: 10px;
    }
    html[dir="rtl"] .experience-badge {
        right: 10px;
    }
    .contact-info-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .secondary-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .logo-title {
        font-size: 1.1rem;
    }
    .logo-subtitle {
        font-size: 0.65rem;
    }
    .btn {
        width: 100%;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .about-image-wrapper {
        aspect-ratio: 1;
    }
    .lightbox-content {
        width: 90%;
    }
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}

/* --- Support for reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-portrait {
        animation: none !important;
    }
}
