/* ===================================================
   Dr. Abdullah Baqays — Professional Website Styles
   Domain: drbaqays.com — Premium Aesthetic Edition
   =================================================== */

/* --- Design Tokens --- */
:root {
    --primary-dark: #1a3c2e;
    --primary: #2d5a45;
    --primary-light: #3d7a5e;
    --accent-gold: #c9a962;
    --accent-gold-light: #e0c88a;
    --cream: #f5f0e8;
    --cream-dark: #e8e0d0;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #888888;
    --border-light: rgba(201, 169, 98, 0.3);
    --shadow-sm: 0 3px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 25px rgba(0,0,0,0.05);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 30px 60px rgba(0,0,0,0.15);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
    --glass-bg: rgba(255,255,255,0.12);
    --glass-border: rgba(255,255,255,0.18);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- LTR Font Overrides --- */
body[dir="ltr"] { font-family: 'Inter', 'Playfair Display', sans-serif; }
body[dir="ltr"] .hero-title { font-family: 'Playfair Display', serif; }
body[dir="ltr"] .section-title { font-family: 'Playfair Display', serif; }
body[dir="ltr"] .nav-logo-text { font-family: 'Cormorant Garamond', serif; }
body[dir="ltr"] .hero-subtitle,
body[dir="ltr"] .section-label { font-family: 'Cormorant Garamond', serif; }

/* --- Arabic Heading Font --- */
.hero-title { font-family: 'Tajawal', 'Cairo', sans-serif; }
.hero-subtitle { font-family: 'Tajawal', 'Cairo', sans-serif; }
.section-title { font-family: 'Amiri', 'Cairo', serif; }
.hero-title-en { font-family: 'Playfair Display', serif; }
.about-content h3 { font-family: 'Amiri', 'Cairo', serif; }
.stat-label { font-family: 'Cairo', sans-serif; font-weight: 600; }
.timeline-title { font-family: 'Cairo', sans-serif; font-weight: 700; }
.pub-title { font-family: 'Cairo', sans-serif; font-weight: 600; }
.membership-title { font-family: 'Cairo', sans-serif; font-weight: 600; }
.award-title { font-family: 'Cairo', sans-serif; font-weight: 600; }
.contact-info h3 { font-family: 'Amiri', 'Cairo', serif; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ===================================================
   LOADING SCREEN
   =================================================== */
.loading-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loading-screen.hidden {
    opacity: 0; visibility: hidden; pointer-events: none;
}
.loading-logo-container {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    opacity: 0; animation: loadingFade 1s ease forwards;
}
.loading-logo-img {
    height: 60px; width: auto; object-fit: contain;
}
.loading-icon {
    font-size: 2rem; color: var(--accent-gold);
    animation: stethoscopePulse 1.5s ease-in-out infinite;
}
@keyframes loadingFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes stethoscopePulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* ===================================================
   SCROLL PROGRESS BAR
   =================================================== */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 10001;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary), var(--accent-gold));
    background-size: 200% 100%;
    animation: shimmerProgress 3s linear infinite;
    width: 0%; transition: width 0.1s linear;
}
@keyframes shimmerProgress {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================================================
   CUSTOM CURSOR
   =================================================== */
.cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--accent-gold); border-radius: 50%;
    pointer-events: none; z-index: 99998;
    transition: transform 0.1s ease, opacity 0.3s ease;
    transform: translate(-50%, -50%);
}
.cursor-ring {
    position: fixed; top: 0; left: 0;
    width: 35px; height: 35px;
    border: 2px solid rgba(201,169,98,0.4); border-radius: 50%;
    pointer-events: none; z-index: 99997;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    transform: translate(-50%, -50%);
}
.cursor-dot.hover { transform: translate(-50%, -50%) scale(2.5); background: var(--primary); }
.cursor-ring.hover {
    width: 50px; height: 50px;
    border-color: var(--primary); border-width: 1px;
}
.cursor-dot.hidden, .cursor-ring.hidden { opacity: 0; }
@media (pointer: coarse), (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none !important; }
}

/* ===================================================
   ACCESSIBILITY: SKIP LINK
   =================================================== */
.skip-link {
    position: absolute; top: -100%; left: 50%;
    transform: translateX(-50%);
    background: var(--primary); color: white;
    padding: 12px 24px; border-radius: 0 0 10px 10px;
    z-index: 10000; font-size: 0.95rem;
    text-decoration: none; transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* ===================================================
   NAVIGATION — Glassmorphism
   =================================================== */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 15px 0; transition: all var(--transition-medium); background: transparent;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 30px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(201,169,98,0.15);
    padding: 8px 0;
}
.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img {
    height: 28px; width: auto; object-fit: contain;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    mix-blend-mode: multiply;
}
.nav-logo:hover .nav-logo-img { transform: scale(1.08); }
.nav-logo-text {
    font-family: 'Cormorant Garamond', serif; font-size: 1.1rem;
    color: var(--primary-dark); font-weight: 600; letter-spacing: 2px;
}
.nav-logo-text-group {
    display: flex; flex-direction: column; line-height: 1.2;
}
.nav-logo-text-ar {
    font-family: 'Tajawal', 'Cairo', sans-serif; font-size: 0.65rem;
    color: var(--accent-gold); font-weight: 500;
    letter-spacing: 3.5px; margin-top: 2px;
    direction: rtl; text-align: center;
}
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--text-dark); font-size: 0.9rem;
    font-weight: 500; position: relative; padding: 5px 0;
    transition: color var(--transition-fast);
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--accent-gold); transition: width var(--transition-fast);
}
body[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
.nav-links a:hover::after, .nav-links a.active-link::after { width: 100%; }
.nav-links a:hover, .nav-links a.active-link { color: var(--primary); }

/* Language Switcher */
.lang-switch { display: flex; gap: 8px; align-items: center; }
.lang-btn {
    padding: 5px 12px; border: 1px solid var(--border-light); background: transparent;
    color: var(--text-dark); border-radius: 20px; cursor: pointer;
    font-family: inherit; font-size: 0.8rem; transition: all var(--transition-fast);
}
.lang-btn.active, .lang-btn:hover {
    background: var(--primary); color: white; border-color: var(--primary);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border-light); background: transparent;
    color: var(--primary-dark); cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast); position: relative;
}
.dark-mode-toggle:hover {
    background: var(--primary); color: white; border-color: var(--primary);
    transform: rotate(30deg);
}
.dark-mode-toggle .fa-sun { color: #f39c12; }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none; background: none; border: none;
    font-size: 1.5rem; color: var(--primary-dark); cursor: pointer;
    padding: 5px;
}

/* Mobile Menu Open State — Staggered Animation */
.nav-links.mobile-open {
    display: flex !important; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(15px); padding: 25px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); gap: 5px;
    border-top: 2px solid var(--accent-gold);
}
.nav-links.mobile-open li {
    opacity: 0; animation: staggerSlideIn 0.4s ease forwards;
}
.nav-links.mobile-open li:nth-child(1) { animation-delay: 0.05s; }
.nav-links.mobile-open li:nth-child(2) { animation-delay: 0.1s; }
.nav-links.mobile-open li:nth-child(3) { animation-delay: 0.15s; }
.nav-links.mobile-open li:nth-child(4) { animation-delay: 0.2s; }
.nav-links.mobile-open li:nth-child(5) { animation-delay: 0.25s; }
.nav-links.mobile-open li:nth-child(6) { animation-delay: 0.3s; }
.nav-links.mobile-open li:nth-child(7) { animation-delay: 0.35s; }
@keyframes staggerSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
body[dir="rtl"] .nav-links.mobile-open li {
    animation-name: staggerSlideInRTL;
}
@keyframes staggerSlideInRTL {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
.nav-links.mobile-open a {
    padding: 12px 15px; border-radius: 8px;
    transition: background var(--transition-fast);
}
.nav-links.mobile-open a:hover { background: rgba(45,90,69,0.08); }

/* ===================================================
   HERO SECTION — Animated Gradient + Particles
   =================================================== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(-45deg, var(--cream), #f0ebe0, #e8e0d0, #f5f0e8);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
    position: relative; overflow: hidden; padding-top: 80px;
}
@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Floating Particles Container */
.hero-particles {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}
.particle {
    position: absolute; width: 6px; height: 6px;
    background: var(--accent-gold); border-radius: 50%;
    opacity: 0.3; animation: floatParticle linear infinite;
}
.particle:nth-child(1) { left: 10%; top: 20%; width: 4px; height: 4px; animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; top: 60%; width: 6px; height: 6px; animation-duration: 22s; animation-delay: 2s; }
.particle:nth-child(3) { left: 40%; top: 40%; width: 3px; height: 3px; animation-duration: 16s; animation-delay: 4s; }
.particle:nth-child(4) { left: 55%; top: 80%; width: 5px; height: 5px; animation-duration: 20s; animation-delay: 1s; }
.particle:nth-child(5) { left: 70%; top: 30%; width: 4px; height: 4px; animation-duration: 24s; animation-delay: 3s; }
.particle:nth-child(6) { left: 85%; top: 70%; width: 7px; height: 7px; animation-duration: 19s; animation-delay: 5s; }
.particle:nth-child(7) { left: 15%; top: 90%; width: 3px; height: 3px; animation-duration: 21s; animation-delay: 2s; opacity: 0.2; }
.particle:nth-child(8) { left: 60%; top: 10%; width: 5px; height: 5px; animation-duration: 17s; animation-delay: 0s; opacity: 0.25; }
@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 0.3; }
    50% { transform: translateY(-200px) translateX(30px) scale(1.5); opacity: 0.15; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-400px) translateX(-20px) scale(0.8); opacity: 0; }
}
.hero-container {
    max-width: 1400px; margin: 0 auto; padding: 0 40px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-content { z-index: 2; }
.hero-subtitle {
    font-family: 'Tajawal', 'Cairo', sans-serif; font-size: 1.05rem;
    color: var(--accent-gold); letter-spacing: 3px; font-weight: 300;
    margin-bottom: 20px; display: flex; align-items: center; gap: 15px;
}
.hero-subtitle::before {
    content: ''; width: 40px; height: 1px; background: var(--accent-gold);
}
body[dir="ltr"] .hero-subtitle::before { order: 2; }
.hero-title {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 3.5rem; font-weight: 700; color: var(--accent-gold); margin-bottom: 15px;
    position: relative; display: inline-block;
    overflow: hidden; white-space: nowrap; max-width: fit-content;
    border-inline-end: 3px solid var(--accent-gold);
    animation: typing 2.5s steps(30, end) both, blink-caret 0.75s step-end infinite;
}
@keyframes typing { from { max-width: 0 } to { max-width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: var(--accent-gold) } }
.hero-title-en {
    font-size: 2.2rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 25px;
    letter-spacing: 1px; display: none;
    overflow: hidden; white-space: nowrap; max-width: fit-content;
    border-inline-end: 3px solid var(--primary-dark);
    animation: typing 2.5s steps(30, end) both, blink-caret 0.75s step-end infinite;
}
.hero-specialty {
    font-size: 1.1rem; color: var(--text-gray); margin-bottom: 30px;
    display: flex; flex-wrap: wrap; gap: 15px;
}
.specialty-tag {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 18px; background: rgba(45,90,69,0.08);
    border-radius: 30px; color: var(--primary); font-size: 0.9rem;
    transition: all var(--transition-fast);
    opacity: 0; transform: translateY(20px) scale(0.9);
    animation: tagSlideIn 0.6s ease forwards;
    animation-delay: calc(1.5s + var(--delay, 0) * 0.25s);
}
@keyframes tagSlideIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.9); }
    60% { transform: translateY(-4px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.specialty-tag:hover {
    background: var(--primary); color: white;
    transform: translateY(-2px);
}
.specialty-tag:hover i { color: var(--accent-gold-light); }
.specialty-tag i { color: var(--accent-gold); transition: color var(--transition-fast); }
.hero-desc {
    font-size: 1.05rem; color: var(--text-gray);
    max-width: 500px; margin-bottom: 35px;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* Buttons with micro-interactions */
.btn-primary {
    padding: 14px 35px; background: var(--primary); color: white; border: none;
    border-radius: 30px; font-family: inherit; font-size: 1rem; cursor: pointer;
    transition: all var(--transition-fast); display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; background: rgba(255,255,255,0.15);
    border-radius: 50%; transform: translate(-50%,-50%);
    transition: width 0.6s, height 0.6s;
}
.btn-primary:hover::before { width: 300px; height: 300px; }
.btn-primary:hover {
    background: var(--primary-dark); transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45,90,69,0.3);
}
.btn-outline {
    padding: 14px 35px; background: transparent; color: var(--primary);
    border: 2px solid var(--primary); border-radius: 30px; font-family: inherit;
    font-size: 1rem; cursor: pointer; transition: all var(--transition-fast);
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
}
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* Booking Button — Gold accent CTA */
.btn-booking {
    padding: 14px 35px; background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    color: var(--primary-dark); border: none; border-radius: 30px; font-family: inherit;
    font-size: 1rem; cursor: pointer; transition: all var(--transition-fast);
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
    font-weight: 600; position: relative; overflow: hidden;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
}
.btn-booking::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; background: rgba(255,255,255,0.25);
    border-radius: 50%; transform: translate(-50%,-50%);
    transition: width 0.6s, height 0.6s;
}
.btn-booking:hover::before { width: 300px; height: 300px; }
.btn-booking:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.5);
}
.btn-booking i { font-size: 1.1rem; animation: pulse-icon 2s infinite; }
@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Hero Image with Blob Shape */
.hero-image { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-image-wrapper { position: relative; width: 450px; height: 550px; }
.hero-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 200px 200px 20px 20px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.6s ease;
}
.hero-image-wrapper:hover img { transform: scale(1.02); }
.hero-image-frame {
    position: absolute; top: -20px; right: -20px;
    width: 100%; height: 100%; border: 2px solid var(--accent-gold);
    border-radius: 200px 200px 20px 20px; z-index: -1;
    transition: transform 0.6s ease;
}
.hero-image-wrapper:hover .hero-image-frame { transform: translate(-5px, 5px); }
body[dir="ltr"] .hero-image-frame { right: auto; left: -20px; }
body[dir="ltr"] .hero-image-wrapper:hover .hero-image-frame { transform: translate(5px, 5px); }

/* Hero Blob (behind image) */
.hero-blob {
    position: absolute; width: 120%; height: 120%; top: -10%; left: -10%;
    z-index: -2; opacity: 0.08;
    background: var(--primary);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobMorph 8s ease-in-out infinite;
}
@keyframes blobMorph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.hero-badge {
    position: absolute; bottom: 40px; left: -30px;
    background: white; padding: 20px 25px; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex; align-items: center; gap: 15px;
    animation: badgeBounce 2s ease 1s both;
}
@keyframes badgeBounce {
    0% { opacity: 0; transform: translateY(20px) scale(0.9); }
    60% { opacity: 1; transform: translateY(-5px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
body[dir="ltr"] .hero-badge { left: auto; right: -30px; }
.hero-badge-icon {
    width: 50px; height: 50px; background: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem;
}
.hero-badge-text { font-size: 0.85rem; }
.hero-badge-text strong { display: block; font-size: 1.2rem; color: var(--primary-dark); }

/* Social Links */
.social-links { display: flex; gap: 12px; margin-top: 30px; }
.social-link {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(45,90,69,0.1); display: flex; align-items: center; justify-content: center;
    color: var(--primary); text-decoration: none; transition: all var(--transition-fast);
}
.social-link:hover { transform: translateY(-3px) scale(1.1); }
.social-link[aria-label*="LinkedIn"]:hover { background: #0077b5; color: white; }
.social-link[aria-label*="Instagram"]:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: white; }
.social-link[aria-label*="Twitter"]:hover, .social-link[aria-label*="X "]:hover { background: #000; color: white; }
.social-link[aria-label*="YouTube"]:hover { background: #ff0000; color: white; }

/* ===================================================
   WAVE DIVIDERS
   =================================================== */
.wave-divider {
    width: 100%; overflow: hidden; line-height: 0; position: relative;
    margin-top: -2px;
}
.wave-divider svg {
    display: block; width: 100%; height: 80px;
}
.wave-divider.flip { transform: rotate(180deg); margin-top: 0; margin-bottom: -2px; }

/* ===================================================
   SECTIONS (Common)
   =================================================== */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
    font-family: 'Cormorant Garamond', serif; font-size: 0.95rem;
    color: var(--accent-gold); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
    font-family: 'Noto Naskh Arabic', serif; font-size: 2.5rem;
    color: var(--primary-dark); margin-bottom: 15px;
}
.section-divider { width: 60px; height: 3px; background: var(--accent-gold); margin: 0 auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ===================================================
   ABOUT SECTION
   =================================================== */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-image { position: relative; width: fit-content; max-width: 450px; }
.about-image img {
    width: 100%; max-height: 500px; object-fit: cover; object-position: top center;
    border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transition: transform 0.6s ease;
}
.about-image:hover img { transform: scale(1.02) translateY(-3px); }
.about-image::before {
    content: ''; position: absolute; bottom: -15px; left: -15px;
    width: 100%; height: 100%; border: 2px solid var(--accent-gold);
    border-radius: 20px; z-index: -1;
    transition: transform 0.6s ease;
}
.about-image:hover::before { transform: translate(5px, -5px); }
body[dir="rtl"] .about-image::before { left: auto; right: -15px; }
body[dir="rtl"] .about-image:hover::before { transform: translate(-5px, -5px); }
.about-content h3 { font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 20px; }
.about-content p { color: var(--text-gray); margin-bottom: 20px; font-size: 1.05rem; }

/* Highlighted keywords */
.highlight-text {
    background: linear-gradient(120deg, rgba(201,169,98,0.15) 0%, rgba(201,169,98,0.15) 100%);
    background-repeat: no-repeat;
    background-size: 100% 30%;
    background-position: 0 88%;
    transition: background-size var(--transition-fast);
}
.highlight-text:hover { background-size: 100% 100%; }

/* Glassmorphism Stats Cards */
.about-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px;
}
.stat-item {
    text-align: center; padding: 25px 20px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201,169,98,0.2);
    border-radius: 15px; box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}
.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}
.stat-number {
    font-family: 'Playfair Display', serif; font-size: 2.2rem;
    color: var(--primary); font-weight: 700;
}
.stat-label { font-size: 0.85rem; color: var(--text-gray); margin-top: 5px; }

/* ===================================================
   EDUCATION / TIMELINE — Animated Line + Glow
   =================================================== */
.education-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white; padding: 100px 0; position: relative;
}
.education-section .section-label { color: var(--accent-gold-light); }
.education-section .section-title { color: white; }
.education-section .section-divider { background: var(--accent-gold); }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 2px; background: rgba(255,255,255,0.1); transform: translateX(-50%);
}
/* Animated timeline progress line */
.timeline::after {
    content: ''; position: absolute; left: 50%; top: 0;
    width: 2px; background: var(--accent-gold); transform: translateX(-50%);
    height: var(--timeline-progress, 0%);
    transition: height 0.3s ease;
}
body[dir="rtl"] .timeline::before { left: auto; right: 50%; transform: translateX(50%); }
body[dir="rtl"] .timeline::after { left: auto; right: 50%; transform: translateX(50%); }

.timeline-item {
    display: flex; justify-content: flex-start;
    padding-left: 50%; position: relative; margin-bottom: 40px;
}
body[dir="rtl"] .timeline-item {
    justify-content: flex-end; padding-left: 0; padding-right: 50%;
}
.timeline-item:nth-child(even) {
    justify-content: flex-end; padding-left: 0; padding-right: 50%;
}
body[dir="rtl"] .timeline-item:nth-child(even) {
    justify-content: flex-start; padding-right: 0; padding-left: 50%;
}
.timeline-content {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
    padding: 25px 30px; border-radius: 15px; max-width: 400px;
    margin: 0 30px; border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition-fast);
}
.timeline-content:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.timeline-year {
    font-family: 'Playfair Display', serif; font-size: 1.3rem;
    color: var(--accent-gold); margin-bottom: 8px;
}
.timeline-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 5px; }
.timeline-place { font-size: 0.9rem; opacity: 0.8; }
/* Country flags */
.timeline-flag { font-size: 1.2rem; margin-inline-start: 5px; }

/* Glowing Timeline Dots */
.timeline-dot {
    position: absolute; left: 50%; top: 30px;
    width: 16px; height: 16px; background: var(--accent-gold);
    border-radius: 50%; transform: translateX(-50%);
    border: 3px solid var(--primary-dark);
    box-shadow: 0 0 0 0 rgba(201,169,98,0.4);
    animation: dotGlow 2s ease-in-out infinite;
}
@keyframes dotGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,169,98,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(201,169,98,0); }
}
body[dir="rtl"] .timeline-dot { left: auto; right: 50%; transform: translateX(50%); }
body[dir="rtl"] .timeline-item:nth-child(even) .timeline-dot { right: 50%; left: auto; }

/* Timeline icon */
.timeline-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 35px; height: 35px; border-radius: 8px;
    background: rgba(201,169,98,0.2); color: var(--accent-gold);
    margin-bottom: 10px; font-size: 1rem;
}

/* ===================================================
   PUBLICATIONS — Masonry + Filters + Citations
   =================================================== */
/* Filter Buttons */
.pub-filters {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
    margin-bottom: 30px;
}
.pub-filter-btn {
    padding: 8px 22px; border: 2px solid rgba(45,90,69,0.2);
    background: transparent; color: var(--primary); border-radius: 25px;
    font-family: inherit; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: all var(--transition-fast);
}
.pub-filter-btn:hover {
    border-color: var(--primary); background: rgba(45,90,69,0.05);
}
.pub-filter-btn.active {
    background: var(--primary); color: white; border-color: var(--primary);
}
/* Masonry Grid */
.publications-grid.masonry-grid {
    columns: 2; column-gap: 25px;
}
.publications-grid.masonry-grid .publication-card {
    break-inside: avoid; margin-bottom: 25px;
    display: inline-block; width: 100%;
}
/* Hide filtered cards */
.publication-card.hidden-card {
    display: none !important;
}
/* Citation Badge */
.pub-citation-badge {
    position: absolute; top: 15px; left: 15px;
    background: rgba(201,169,98,0.12); color: var(--accent-gold);
    padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
    display: flex; align-items: center; gap: 5px;
}
.pub-citation-badge i { font-size: 0.65rem; }
.publication-card {
    background: white; border-radius: 15px; padding: 30px;
    box-shadow: var(--shadow-md); transition: all var(--transition-fast);
    border: 2px solid transparent; position: relative; overflow: hidden;
}
.publication-card::before {
    content: ''; position: absolute; top: -2px; left: -2px;
    right: -2px; bottom: -2px; border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-gold), var(--primary), var(--accent-gold-light));
    background-size: 300% 300%;
    z-index: -1; opacity: 0;
    transition: opacity var(--transition-fast);
    animation: gradientBorder 4s ease infinite;
}
@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.publication-card:hover::before { opacity: 1; }
.publication-card:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-lg);
}
.pub-year {
    display: inline-block; padding: 4px 12px; background: var(--primary);
    color: white; border-radius: 20px; font-size: 0.8rem; margin-bottom: 15px;
}
.pub-title {
    font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 10px;
    font-weight: 600; line-height: 1.5;
}
.pub-authors { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 10px; }
.pub-journal {
    font-size: 0.85rem; color: var(--accent-gold); font-style: italic;
    display: flex; align-items: center; gap: 6px;
}
.pub-journal i { font-size: 0.75rem; }

/* Publication Read Link */
.pub-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 15px; padding: 8px 18px;
    background: rgba(45,90,69,0.08); color: var(--primary);
    border-radius: 20px; font-size: 0.85rem; font-weight: 500;
    text-decoration: none; transition: all var(--transition-fast);
    border: 1px solid transparent;
}
.pub-link:hover {
    background: var(--primary); color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45,90,69,0.2);
}
.pub-link i { font-size: 0.7rem; transition: transform var(--transition-fast); }
.pub-link:hover i { transform: translateX(-3px); }
body[dir="ltr"] .pub-link:hover i { transform: translateX(3px); }

/* ===================================================
   MEMBERSHIPS — Tilt + Glassmorphism
   =================================================== */
.memberships-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.membership-card {
    background: rgba(255,255,255,0.8); backdrop-filter: blur(10px);
    padding: 35px 25px; border-radius: 15px;
    text-align: center; box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    border: 1px solid rgba(201,169,98,0.15);
    position: relative; overflow: hidden;
}
.membership-card::after {
    content: ''; position: absolute; top: 10px; right: 10px;
    padding: 3px 10px; background: var(--accent-gold);
    color: var(--primary-dark); font-size: 0.65rem; font-weight: 700;
    border-radius: 10px; letter-spacing: 0.5px;
}

/* --- World Map --- */
.memberships-map {
    margin-top: 40px; padding: 30px; background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px); border-radius: 15px;
    border: 1px solid rgba(201,169,98,0.15); text-align: center;
}
.map-title {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 20px;
}
.map-title i { color: var(--accent-gold); font-size: 1.4rem; }
.world-map-container { max-width: 700px; margin: 0 auto; }
.world-map-svg { width: 100%; height: auto; }
.map-dot { cursor: pointer; filter: drop-shadow(0 0 4px rgba(45,90,69,0.3)); }
.membership-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-color: var(--accent-gold);
}
.membership-icon {
    width: 70px; height: 70px; background: rgba(45,90,69,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 1.8rem; color: var(--primary);
    transition: all var(--transition-fast);
}
.membership-card:hover .membership-icon {
    background: var(--primary); color: white;
    transform: scale(1.1) rotate(5deg);
}
/* Academy SVG Logos */
.membership-logo {
    background: rgba(255,255,255,0.9); width: 90px; height: 90px;
}
.membership-logo:hover { background: rgba(255,255,255,1); }
.membership-card:hover .membership-logo {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
}
.academy-logo { width: 100%; height: 100%; }
.membership-title { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 8px; }
.membership-desc { font-size: 0.9rem; color: var(--text-gray); }

/* Active Member Ribbon */
.membership-ribbon {
    position: absolute; top: 15px; right: -30px;
    background: var(--accent-gold); color: var(--primary-dark);
    font-size: 0.65rem; font-weight: 700; padding: 4px 35px;
    transform: rotate(45deg); letter-spacing: 0.5px;
}
body[dir="rtl"] .membership-ribbon {
    right: auto; left: -30px; transform: rotate(-45deg);
}

/* ===================================================
   AWARDS — Shimmer + Staggered
   =================================================== */
.awards-list {
    display: flex; flex-direction: column; gap: 15px;
    max-width: 800px; margin: 0 auto;
}
.award-item {
    display: flex; align-items: center; gap: 20px;
    background: white; padding: 20px 30px; border-radius: 12px;
    box-shadow: var(--shadow-sm); transition: all var(--transition-fast);
}
.award-item:hover {
    transform: translateX(-5px); box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, white 0%, rgba(201,169,98,0.05) 100%);
}
body[dir="ltr"] .award-item:hover { transform: translateX(5px); }
.award-icon {
    width: 50px; height: 50px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem; flex-shrink: 0;
    position: relative; overflow: hidden;
}
/* Shimmer effect on award icons */
.award-icon::after {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}
/* Unique colors per award type */
.award-icon.trophy { background: linear-gradient(135deg, #c9a962, #e0c88a); }
.award-icon.certificate { background: linear-gradient(135deg, #2d5a45, #3d7a5e); }
.award-icon.star { background: linear-gradient(135deg, #4a90d9, #6fb3f2); }
.award-icon.language { background: linear-gradient(135deg, #9b59b6, #c39bd3); }

.award-text { flex: 1; }
.award-title { font-weight: 600; color: var(--primary-dark); margin-bottom: 3px; }
.award-year { font-size: 0.85rem; color: var(--accent-gold); }

/* --- Stats (About Section) --- */
.stat-item { text-align: center; }
.stat-ring-container {
    position: relative; width: 110px; height: 110px; margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
}
.progress-ring { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring__background { fill: transparent; stroke: rgba(201,169,98,0.15); stroke-width: 4; }
.progress-ring__circle { fill: transparent; stroke: var(--accent-gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--accent-gold); position: relative; z-index: 2; margin: 0; }
.stat-label { font-size: 1rem; color: var(--text-dark); font-weight: 600; }

/* ===================================================
   CONTACT SECTION — Glassmorphism Form
   =================================================== */
.contact-section {
    background: var(--primary-dark); color: white; padding: 100px 0;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { font-size: 2rem; margin-bottom: 20px; }
.contact-info p { opacity: 0.8; margin-bottom: 30px; }
.contact-item {
    display: flex; align-items: center; gap: 15px; margin-bottom: 20px;
    transition: all var(--transition-fast);
}
.contact-item:hover { transform: translateX(-5px); }
body[dir="ltr"] .contact-item:hover { transform: translateX(5px); }
.contact-icon {
    width: 50px; height: 50px; background: rgba(255,255,255,0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--accent-gold); font-size: 1.2rem;
    transition: all var(--transition-fast);
}
.contact-item:hover .contact-icon {
    background: var(--accent-gold); color: var(--primary-dark);
    transform: scale(1.1);
}
.contact-text strong { display: block; margin-bottom: 3px; }
.contact-text span { opacity: 0.7; font-size: 0.95rem; }

/* Google Maps */
.contact-map {
    margin-top: 30px; border-radius: 15px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.contact-map iframe {
    width: 100%; height: 200px; border: none; filter: grayscale(30%);
    transition: filter var(--transition-fast);
}
.contact-map:hover iframe { filter: grayscale(0%); }

/* Glassmorphism Form */
.contact-form {
    background: rgba(255,255,255,0.06); padding: 40px;
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
}
.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; }
.form-group label.lang-content { display: none; }
.form-group label.lang-content.active { display: block; }
.form-group.floating { position: relative; }
.form-group.floating label {
    position: absolute; top: 15px; right: 18px; /* RTL default */
    color: var(--text-light); font-size: 1rem;
    transition: 0.3s ease all; pointer-events: none;
}
body[dir="ltr"] .form-group.floating label { right: auto; left: 18px; }
.form-group.floating input, .form-group.floating textarea {
    width: 100%; padding: 22px 18px 8px; /* Extra top padding for the label */
    border: 1px solid rgba(26,60,46,0.1); border-radius: 8px;
    font-family: inherit; font-size: 1rem;
    background: rgba(255,255,255,0.8);
    transition: all var(--transition-fast);
}
.form-group.floating input:focus, .form-group.floating textarea:focus {
    outline: none; border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(201,169,98,0.1);
    background: var(--white);
}
.form-group.floating input:focus ~ label,
.form-group.floating input:not(:placeholder-shown) ~ label,
.form-group.floating textarea:focus ~ label,
.form-group.floating textarea:not(:placeholder-shown) ~ label {
    top: 6px; font-size: 0.75rem; color: var(--accent-gold);
}
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05);
    border-radius: 10px; color: white; font-family: inherit; font-size: 1rem;
    transition: all var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201,169,98,0.2);
    background: rgba(255,255,255,0.08);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* RTL/LTR Form & Contact Alignment */
body[dir="rtl"] .contact-info { text-align: right; }
body[dir="rtl"] .contact-text { text-align: right; }
body[dir="rtl"] .form-group label { text-align: right; }
body[dir="rtl"] .form-group input,
body[dir="rtl"] .form-group textarea { text-align: right; direction: rtl; }
body[dir="ltr"] .contact-info { text-align: left; }
body[dir="ltr"] .contact-text { text-align: left; }
body[dir="ltr"] .form-group label { text-align: left; }
body[dir="ltr"] .form-group input,
body[dir="ltr"] .form-group textarea { text-align: left; direction: ltr; }

.btn-submit {
    width: 100%; padding: 15px; background: var(--accent-gold);
    color: var(--primary-dark); border: none; border-radius: 10px;
    font-family: inherit; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all var(--transition-fast);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    position: relative; overflow: hidden;
}
.btn-submit::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; background: rgba(255,255,255,0.2);
    border-radius: 50%; transform: translate(-50%,-50%);
    transition: width 0.6s, height 0.6s;
}
.btn-submit:hover::before { width: 400px; height: 400px; }
.btn-submit:hover { background: var(--accent-gold-light); transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Form Success State */
.form-success { text-align: center; padding: 40px 20px; }
.form-success i { font-size: 3rem; color: var(--accent-gold); margin-bottom: 15px; }
.form-success h4 { font-size: 1.3rem; margin-bottom: 10px; }
.form-success p { opacity: 0.7; }

/* ===================================================
   FOOTER — Wave + Brand Colors
   =================================================== */
.footer {
    background: #0f2a1f radial-gradient(rgba(212, 185, 98, 0.08) 1.5px, transparent 1.5px);
    background-size: 25px 25px;
    color: white; padding: 50px 0 30px; text-align: center;
    position: relative;
}
.footer-logo {
    margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center; gap: 12px;
}
.footer-logo-img {
    height: 38px; width: auto; object-fit: contain;
    opacity: 0.9;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.footer-logo:hover .footer-logo-img { transform: scale(1.08); opacity: 1; }
.footer-logo span {
    font-family: 'Cormorant Garamond', serif; font-size: 1.5rem;
    color: white; letter-spacing: 3px;
}
.footer-text { opacity: 0.6; font-size: 0.9rem; margin-bottom: 20px; }
.footer-social {
    display: flex; justify-content: center; gap: 15px; margin-bottom: 25px;
}
.footer-social a {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; text-decoration: none; transition: all var(--transition-fast);
}
.footer-social a:hover { transform: translateY(-4px) scale(1.1); }
.footer-social a[aria-label*="LinkedIn"]:hover { background: #0077b5; }
.footer-social a[aria-label*="Instagram"]:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.footer-social a[aria-label*="Twitter"]:hover, .footer-social a[aria-label*="X "]:hover { background: #000; }
.footer-social a[aria-label*="YouTube"]:hover { background: #ff0000; }
.footer-copy {
    opacity: 0.4; font-size: 0.85rem; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-heart { color: #e74c3c; animation: heartBeat 1.5s ease infinite; }
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===================================================
   WHATSAPP FLOATING BUTTON
   =================================================== */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    width: 60px; height: 60px; border-radius: 50%;
    background: #25d366; color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-fast);
    animation: whatsappPulse 2s infinite;
}
body[dir="rtl"] .whatsapp-float { right: auto; left: 30px; }
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}
.whatsapp-float .whatsapp-tooltip {
    position: absolute; right: 70px;
    background: white; color: var(--text-dark);
    padding: 8px 16px; border-radius: 8px;
    font-size: 0.85rem; white-space: nowrap;
    box-shadow: var(--shadow-md); opacity: 0;
    pointer-events: none; transition: opacity var(--transition-fast);
}
body[dir="rtl"] .whatsapp-float .whatsapp-tooltip { right: auto; left: 70px; }
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }
@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===================================================
   BACK TO TOP BUTTON
   =================================================== */
.back-to-top {
    position: fixed; bottom: 100px; right: 30px; z-index: 9998;
    width: 45px; height: 45px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; text-decoration: none;
    box-shadow: var(--shadow-md); transition: all var(--transition-fast);
    opacity: 0; pointer-events: none; transform: translateY(20px);
    border: none; cursor: pointer;
}
body[dir="rtl"] .back-to-top { right: auto; left: 30px; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===================================================
   ANIMATIONS — Staggered Entrance
   =================================================== */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Staggered children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.4s; }

/* ===================================================
   LANGUAGE CONTENT VISIBILITY
   =================================================== */
.lang-content { display: none; }
.lang-content.active { display: block; }
.lang-inline { display: none; }
.lang-inline.active { display: inline; }
.lang-flex { display: none; }
.lang-flex.active { display: flex; }
.lang-grid { display: none; }
.lang-grid.active { display: grid; }

/* ===================================================
   RESPONSIVE — Tablet
   =================================================== */
@media (max-width: 992px) {
    .hero-container, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-image-wrapper { width: 350px; height: 430px; margin: 0 auto; }
    .hero-title { font-size: 2.2rem; }
    .hero-title-en { font-size: 2rem; }
    .memberships-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline::after { left: 20px; }
    body[dir="rtl"] .timeline::before { left: auto; right: 20px; }
    body[dir="rtl"] .timeline::after { left: auto; right: 20px; }
    .timeline-item, .timeline-item:nth-child(even) {
        padding-left: 50px; padding-right: 0; justify-content: flex-start;
    }
    body[dir="rtl"] .timeline-item, body[dir="rtl"] .timeline-item:nth-child(even) {
        padding-right: 50px; padding-left: 0; justify-content: flex-end;
    }
    .timeline-dot { left: 20px !important; right: auto !important; transform: none !important; }
    body[dir="rtl"] .timeline-dot { right: 20px !important; left: auto !important; transform: none !important; }
    .timeline-content { margin: 0; max-width: 100%; }
}

/* ===================================================
   RESPONSIVE — Mobile
   =================================================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { padding-top: 100px; text-align: center; }
    .hero-subtitle { justify-content: center; }
    .hero-subtitle::before { display: none; }
    .hero-buttons { justify-content: center; }
    .social-links { justify-content: center; }
    .hero-badge { display: none; }
    .hero-blob { display: none; }
    .about-stats { grid-template-columns: 1fr; }
    .publications-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.8rem; }
    .container { padding: 0 20px; }
    .nav-container { padding: 0 20px; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 55px; height: 55px; }
    body[dir="rtl"] .whatsapp-float { right: auto; left: 20px; }
    .back-to-top { bottom: 85px; right: 20px; width: 40px; height: 40px; }
    body[dir="rtl"] .back-to-top { right: auto; left: 20px; }
    .whatsapp-float .whatsapp-tooltip { display: none; }
    .wave-divider svg { height: 40px; }
    .contact-map iframe { height: 150px; }
}

/* ===================================================
   FOCUS STYLES (A11y)
   =================================================== */
:focus-visible {
    outline: 3px solid var(--accent-gold); outline-offset: 3px; border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }
.nav-links a:focus-visible { outline-offset: 6px; }
.lang-btn:focus-visible { outline-offset: 2px; }
.btn-primary:focus-visible, .btn-outline:focus-visible, .btn-booking:focus-visible {
    outline-offset: 4px; box-shadow: 0 0 0 4px rgba(201,169,98,0.4);
}
.btn-submit:focus-visible { outline-color: white; outline-offset: 4px; }
.form-group input:focus-visible, .form-group textarea:focus-visible {
    outline: none; border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201,169,98,0.3);
}

/* Screen-reader only utility */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Minimum tap target size */
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.lang-btn { min-width: 44px; min-height: 36px; }
.social-link, .footer-social a { min-width: 44px; min-height: 44px; }

/* Form validation states */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) { border-color: #e74c3c; }
.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) { border-color: rgba(45,90,69,0.5); }

.aria-live-region {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0);
}

/* ===================================================
   PREFERS REDUCED MOTION
   =================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in { opacity: 1; transform: none; }
    .whatsapp-float { animation: none; }
    .hero { animation: none; }
    .loading-screen { display: none; }
}

/* ===================================================
   HIGH CONTRAST MODE
   =================================================== */
@media (prefers-contrast: high) {
    :root { --primary-dark: #0a2a1a; --accent-gold: #b8942e; --text-gray: #444; }
    .publication-card, .membership-card, .stat-item { border: 2px solid var(--text-dark); }
    .timeline-content { border: 2px solid rgba(255,255,255,0.5); }
}

/* ===================================================
   PRINT STYLESHEET
   =================================================== */
@media print {
    .navbar, .mobile-menu-btn, .lang-switch,
    .whatsapp-float, .back-to-top, .social-links, .footer-social,
    .hero-image-frame, .btn-primary, .btn-outline, .btn-booking,
    .contact-form, .skip-link, .wave-divider, .scroll-progress,
    .loading-screen, .hero-particles, .hero-blob,
    .contact-map, .membership-ribbon { display: none !important; }
    body { background: white; color: black; font-size: 12pt; }
    .hero, .education-section, .contact-section, .footer { background: white; color: black; }
    .section { padding: 15px 0; page-break-inside: avoid; }
    .hero-container, .about-grid, .contact-grid { display: block; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
}

/* ===================================================
   DARK MODE
   =================================================== */
body.dark-mode {
    --primary-dark: #b8d4c8;
    --primary: #8fbaa8;
    --primary-light: #6fa088;
    --accent-gold: #d4b96e;
    --accent-gold-light: #e8d49a;
    --cream: #121212;
    --cream-dark: #1a1a1a;
    --white: #1e1e1e;
    --text-dark: #e8e8e8;
    --text-gray: #b0b0b0;
    --text-light: #888888;
    --border-light: rgba(212, 185, 110, 0.3);
    --shadow-sm: 0 3px 15px rgba(0,0,0,0.3);
    --shadow-md: 0 5px 25px rgba(0,0,0,0.3);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.4);
    --shadow-xl: 0 30px 60px rgba(0,0,0,0.5);
    --glass-bg: rgba(30,30,30,0.6);
    --glass-border: rgba(255,255,255,0.08);
}

body.dark-mode {
    background-color: #121212;
    color: #e8e8e8;
}

/* Navbar dark mode */
body.dark-mode .navbar.scrolled {
    background: rgba(18,18,18,0.85);
    border-bottom-color: rgba(212,185,110,0.15);
}
body.dark-mode .nav-logo-text { color: #e8e8e8; }
body.dark-mode .nav-logo-text-ar { color: var(--accent-gold-light); }
body.dark-mode .nav-links a { color: #d0d0d0; }
body.dark-mode .nav-links a:hover, body.dark-mode .nav-links a.active-link { color: var(--accent-gold); }
body.dark-mode .lang-btn { border-color: rgba(212,185,110,0.3); color: #d0d0d0; }
body.dark-mode .dark-mode-toggle { color: #e8e8e8; border-color: rgba(212,185,110,0.3); }

/* Logo dark mode */
body.dark-mode .nav-logo-img {
    content: url('logo-gold.png');
    filter: none;
    mix-blend-mode: screen;
}
body.dark-mode .footer-logo-img {
    content: url('logo-gold.png');
}

/* Hero dark mode */
body.dark-mode .hero {
    background: linear-gradient(-45deg, #121212, #1a2a1f, #152018, #121212);
    background-size: 400% 400%;
}
body.dark-mode .hero-title, body.dark-mode .hero-title-en { color: #e8e8e8; }
body.dark-mode .specialty-tag { background: rgba(143,186,168,0.15); color: var(--accent-gold); }
body.dark-mode .specialty-tag:hover { background: rgba(143,186,168,0.3); color: #fff; }
body.dark-mode .hero-badge { background: #1e1e1e; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
body.dark-mode .hero-badge-text strong { color: var(--accent-gold); }
body.dark-mode .btn-primary { background: rgba(143,186,168,0.9); color: #121212; }
body.dark-mode .btn-primary:hover { background: var(--accent-gold); }
body.dark-mode .btn-outline { border-color: var(--accent-gold); color: var(--accent-gold); }
body.dark-mode .btn-outline:hover { background: var(--accent-gold); color: #121212; }
body.dark-mode .btn-booking { background: linear-gradient(135deg, var(--accent-gold), #b8943f); color: #121212; }
body.dark-mode .btn-booking:hover { box-shadow: 0 8px 25px rgba(201, 169, 98, 0.6); }

/* Sections dark mode */
body.dark-mode .section { background: #121212; }
body.dark-mode .section-title { color: #e8e8e8; }
body.dark-mode .about-content h3 { color: #e8e8e8; }
body.dark-mode .about-image img { box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
body.dark-mode .highlight-text { background: linear-gradient(120deg, rgba(212,185,110,0.2) 0%, rgba(212,185,110,0.2) 100%); }

/* Stat cards dark */
body.dark-mode .stat-item {
    background: rgba(30,30,30,0.8); border-color: rgba(212,185,110,0.15);
    backdrop-filter: blur(10px);
}
body.dark-mode .stat-number { color: var(--accent-gold); }

/* Education dark */
body.dark-mode .education-section {
    background: linear-gradient(135deg, #0a1a12 0%, #152018 100%);
}

/* Publication cards dark */
body.dark-mode .publication-card {
    background: #1e1e1e; box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}
body.dark-mode .pub-title { color: #e8e8e8; }
body.dark-mode .pub-link { background: rgba(143,186,168,0.1); color: var(--accent-gold); }
body.dark-mode .pub-link:hover { background: var(--accent-gold); color: #121212; }
body.dark-mode .pub-filter-btn { border-color: rgba(212,185,110,0.3); color: #e8e8e8; }
body.dark-mode .pub-filter-btn:hover { border-color: var(--accent-gold); background: rgba(212,185,110,0.1); }
body.dark-mode .pub-filter-btn.active { background: var(--accent-gold); color: #121212; border-color: var(--accent-gold); }
body.dark-mode .pub-citation-badge { background: rgba(212,185,110,0.15); }

/* Memberships dark */
body.dark-mode #memberships { background: #1a1a1a !important; }
body.dark-mode .memberships-map { background: rgba(30,30,30,0.8); border-color: rgba(212,185,110,0.1); }
body.dark-mode .map-title { color: #e8e8e8; }
body.dark-mode .world-map-svg g[fill] path { fill: rgba(143,186,168,0.1); stroke: rgba(143,186,168,0.3); }
body.dark-mode .membership-card {
    background: rgba(30,30,30,0.9); border-color: rgba(212,185,110,0.1);
}
body.dark-mode .membership-logo { background: rgba(30,30,30,0.95); }
body.dark-mode .membership-card:hover .membership-logo { background: rgba(40,40,40,1); }
body.dark-mode .academy-logo text { fill: #e8e8e8; }
body.dark-mode .academy-logo circle { stroke: var(--accent-gold); }
body.dark-mode .membership-title { color: #e8e8e8; }

/* Awards dark */
body.dark-mode .award-item {
    background: #1e1e1e; box-shadow: 0 3px 15px rgba(0,0,0,0.3);
}
body.dark-mode .award-item:hover {
    background: linear-gradient(135deg, #1e1e1e 0%, rgba(212,185,110,0.05) 100%);
}
body.dark-mode .award-title { color: #e8e8e8; }

/* Contact dark */
body.dark-mode .contact-section { background: #0a1a12; }
body.dark-mode .contact-form {
    background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06);
}

/* Footer dark */
body.dark-mode .footer { background: #0a0f0c; }

/* Wave dividers dark */
body.dark-mode .wave-divider path { fill: #0a1a12; }

/* Scrollbar dark */
body.dark-mode::-webkit-scrollbar-track { background: #121212; }
body.dark-mode::-webkit-scrollbar-thumb { background: #333; }

/* Mobile menu dark */
body.dark-mode .nav-links.mobile-open {
    background: rgba(18,18,18,0.98);
}
body.dark-mode .nav-links.mobile-open a:hover { background: rgba(143,186,168,0.1); }

/* Custom cursor dark */
body.dark-mode .cursor-dot { background: var(--accent-gold); }
body.dark-mode .cursor-ring { border-color: rgba(212,185,110,0.4); }

/* ===================================================
   TREATMENT RESULTS GALLERY
   =================================================== */

/* Section */
.gallery-section { overflow: hidden; }

/* Filter Buttons */
.gallery-filters {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center; margin-bottom: 40px;
}
.gallery-filter {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border: 2px solid var(--border);
    border-radius: 50px; background: transparent;
    color: var(--primary); font-family: var(--font-heading);
    font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-filter:hover {
    border-color: var(--accent-gold); color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.2);
}
.gallery-filter.active {
    background: var(--accent-gold); color: #fff;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.35);
}
.gallery-filter i { font-size: 0.85em; }

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}

/* Gallery Card */
.gallery-card {
    border-radius: 16px; overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-card.gallery-hidden { display: none; }
.gallery-card.gallery-visible { display: block; }
.gallery-card-inner {
    position: relative; overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.gallery-card-inner:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}
.gallery-card-inner picture { display: block; }
.gallery-card-inner img {
    width: 100%; height: auto; display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-card-inner:hover img { transform: scale(1.05); }

/* Overlay */
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26, 60, 46, 0.85) 0%, transparent 50%);
    display: flex; flex-direction: column;
    justify-content: flex-end; padding: 20px;
    opacity: 0; transition: opacity 0.4s ease;
}
.gallery-card-inner:hover .gallery-overlay { opacity: 1; }
.gallery-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(201, 169, 98, 0.9); color: #fff;
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.82rem; font-weight: 600;
    width: fit-content; backdrop-filter: blur(4px);
}
.gallery-zoom {
    position: absolute; top: 16px; left: 16px;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.9); border: none;
    color: var(--primary-dark); font-size: 1rem;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center;
    transform: scale(0) rotate(-90deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.gallery-card-inner:hover .gallery-zoom {
    transform: scale(1) rotate(0deg);
}
.gallery-zoom:hover {
    background: var(--accent-gold); color: #fff;
    transform: scale(1.15) rotate(0deg);
}

/* Show More */
.gallery-show-more {
    text-align: center; margin-top: 35px;
}
.gallery-show-more .btn-booking {
    font-size: 1rem;
}

/* Filter Animation */
.gallery-card.gallery-fade-out {
    opacity: 0; transform: scale(0.85);
    pointer-events: none;
}
.gallery-card.gallery-fade-in {
    animation: galleryFadeIn 0.45s ease forwards;
}
@keyframes galleryFadeIn {
    from { opacity: 0; transform: scale(0.9) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===================================================
   LIGHTBOX
   =================================================== */
.gallery-lightbox {
    position: fixed; inset: 0; z-index: 10000;
    display: none; align-items: center; justify-content: center;
}
.gallery-lightbox.active { display: flex; }
.lightbox-backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    animation: lightboxFade 0.3s ease;
}
@keyframes lightboxFade {
    from { opacity: 0; } to { opacity: 1; }
}
.lightbox-content {
    position: relative; z-index: 1;
    max-width: 90vw; max-height: 90vh;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
    max-width: 90vw; max-height: 85vh;
    border-radius: 16px; object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxZoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes lightboxZoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
.lightbox-close {
    position: fixed; top: 20px; right: 20px;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff; font-size: 1.3rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; z-index: 2;
}
.lightbox-close:hover {
    background: var(--accent-gold); border-color: var(--accent-gold);
    transform: rotate(90deg);
}
.lightbox-prev, .lightbox-next {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff; font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.lightbox-prev { right: 20px; }
.lightbox-next { left: 20px; }
.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--accent-gold); border-color: var(--accent-gold);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-counter {
    position: fixed; bottom: 25px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem; font-family: var(--font-heading);
}

/* ===================================================
   GALLERY RESPONSIVE
   =================================================== */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
    .gallery-filters { gap: 8px; }
    .gallery-filter { padding: 8px 16px; font-size: 0.85rem; }
    .gallery-overlay { opacity: 1; } /* Always visible on mobile */
    .gallery-zoom { transform: scale(1) rotate(0deg); }
    .lightbox-prev { right: 10px; }
    .lightbox-next { left: 10px; }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 0.9rem; }
}

/* Gallery Dark Mode */
body.dark-mode .gallery-section { background: #1a1a1a; }
body.dark-mode .gallery-filter {
    border-color: rgba(255, 255, 255, 0.15); color: #ccc;
}
body.dark-mode .gallery-filter:hover { color: var(--accent-gold); }
body.dark-mode .gallery-filter.active {
    background: var(--accent-gold); color: #121212;
}
body.dark-mode .gallery-card-inner {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
body.dark-mode .gallery-zoom { background: rgba(30, 30, 30, 0.9); color: #ccc; }

/* Gallery Print */
@media print {
    .gallery-section, .gallery-lightbox { display: none !important; }
}
