/* ===================================================================
   ISTANBULI (إسطنبولي) - Visual Identity & Stylesheet
   Educational & Consulting Services in Turkey
   Colors:
     Primary Purple: #45266F
     Gold:           #D99136
     Deep Night:     #2A1850
     Lilac:          #E9E3F3
     Pearl:          #F6F4FA
   =================================================================== */

/* --- LOCAL FONTS (CAIRO) --- */
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --- THEME TOKENS --- */
:root {
  /* Brand Constants */
  --c-purple: #45266F;
  --c-purple-dark: #371E59;
  --c-purple-light: #5A3391;
  --c-gold: #D99136;
  --c-gold-hover: #BF7B28;
  --c-gold-light: #F7E7D2;
  --c-night: #2A1850;
  --c-night-deep: #1A0E36;
  --c-lilac: #E9E3F3;
  --c-lilac-subtle: #F3EFF9;
  --c-pearl: #F6F4FA;
  --c-white: #FFFFFF;
  
  /* Semantic Tokens - Light Mode (Default) — Warm, layered, eye-comfortable */
  --bg-body: #EEE9F5;                /* warm lavender-grey base — not blinding white */
  --bg-surface: #FDFBFF;             /* very soft white with a barely-there violet tint */
  --bg-surface-elevated: #FFFFFF;
  --bg-surface-glass: rgba(253, 251, 255, 0.90);
  --bg-header: rgba(248, 245, 253, 0.94);
  --bg-hero: radial-gradient(120% 85% at 50% 0%, #F7F3FD 0%, #EDE7F6 55%, #E4DDF0 100%);
  --bg-footer: var(--c-night);
  --bg-section-alt: #F3EEF9;         /* soft lilac tint for alternating sections */
  --bg-section-warm: #F7F4EF;        /* warm cream for another alternating layer */
  --bg-card-subtle: rgba(233, 227, 243, 0.65);
  --bg-card-featured: linear-gradient(135deg, rgba(69, 38, 111, 0.06) 0%, rgba(217, 145, 54, 0.08) 100%);
  --bg-badge: rgba(217, 145, 54, 0.14);

  --text-main: #1E1340;              /* slightly warmer than pure night for comfort */
  --text-muted: #5A4E72;
  --text-light: #7A6E92;
  --text-heading: var(--c-purple);
  --text-accent: var(--c-gold);
  --text-on-purple: var(--c-pearl);

  --border-light: rgba(69, 38, 111, 0.10);
  --border-hover: rgba(217, 145, 54, 0.45);
  --border-card: rgba(200, 188, 228, 0.75);
  
  --shadow-sm: 0 2px 10px rgba(42, 24, 80, 0.06);
  --shadow-md: 0 6px 22px rgba(42, 24, 80, 0.09);
  --shadow-lg: 0 14px 36px rgba(42, 24, 80, 0.12);
  --shadow-xl: 0 22px 56px rgba(42, 24, 80, 0.15);
  --shadow-gold: 0 8px 25px rgba(219, 145, 54, 0.30);
  --shadow-purple: 0 8px 25px rgba(69, 38, 111, 0.22);

  --watermark-opacity: 0.045;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-theme: 0.3s ease;
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --bg-body: var(--c-night-deep);
  --bg-surface: #2E1B56;
  --bg-surface-elevated: #39226B;
  --bg-surface-glass: rgba(42, 24, 80, 0.88);
  --bg-header: rgba(26, 14, 54, 0.94);
  --bg-hero: radial-gradient(110% 80% at 50% 0%, #351C66 0%, var(--c-night) 50%, var(--c-night-deep) 100%);
  --bg-footer: #140A28;
  --bg-card-subtle: rgba(69, 38, 111, 0.35);
  --bg-card-featured: linear-gradient(135deg, rgba(69, 38, 111, 0.6) 0%, rgba(217, 145, 54, 0.15) 100%);
  --bg-badge: rgba(217, 145, 54, 0.2);

  --text-main: var(--c-pearl);
  --text-muted: #D1C7DF;
  --text-light: #A89CBF;
  --text-heading: #FFFFFF;
  --text-accent: var(--c-gold);
  --text-on-purple: var(--c-pearl);

  --border-light: rgba(233, 227, 243, 0.12);
  --border-hover: rgba(217, 145, 54, 0.55);
  --border-card: rgba(233, 227, 243, 0.15);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 8px 30px rgba(219, 145, 54, 0.35);
  --shadow-purple: 0 8px 30px rgba(69, 38, 111, 0.4);

  --watermark-opacity: 0.055;
}

/* --- RESET & GLOBAL SETTINGS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-body);
  transition: background-color var(--transition-theme), color var(--transition-theme);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Direction defaults */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
html[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

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

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

img, video {
  max-width: 100%;
  display: block;
}

/* --- ACCESSIBLE CONTAINER --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- GALATA TOWER WATERMARK (SCROLL-LINKED) --- */
.galata-watermark {
  position: fixed;
  top: 15%;
  right: -5%;
  width: 650px;
  height: 1200px;
  background-image: url('../images/tower_mark_color.png');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: var(--watermark-opacity);
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--transition-theme), transform 0.1s linear, background-image var(--transition-theme);
  will-change: transform;
}
[data-theme="dark"] .galata-watermark {
  background-image: url('../images/tower_mark_white.png');
  opacity: 0.055;
}
html[dir="ltr"] .galata-watermark {
  right: auto;
  left: -5%;
}

/* --- PRELOADER (TOWER BUILDS FLOOR BY FLOOR) --- */
.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}
.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-tower-wrap {
  width: 120px;
  height: 250px;
  position: relative;
  margin-bottom: 1.5rem;
}

/* Stepped floor buildup container */
.tower-build-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.tower-build-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: inset(100% 0 0 0);
  animation: buildTowerSteps 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  filter: drop-shadow(0 4px 20px rgba(217, 145, 54, 0.35));
}

@keyframes buildTowerSteps {
  0% {
    clip-path: inset(100% 0 0 0);
    transform: translateY(20px) scale(0.96);
  }
  25% {
    /* Floor 1 & arches */
    clip-path: inset(72% 0 0 0);
  }
  50% {
    /* Mid floors & windows */
    clip-path: inset(48% 0 0 0);
  }
  75% {
    /* Balcony & upper gallery */
    clip-path: inset(22% 0 0 0);
  }
  90% {
    /* Conical spire & pinnacle */
    clip-path: inset(0 0 0 0);
    transform: translateY(0) scale(1);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateY(0) scale(1);
  }
}

.preloader-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 145, 54, 0.45) 0%, rgba(69, 38, 111, 0) 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: preloaderPulse 2.4s ease forwards;
}

@keyframes preloaderPulse {
  0%, 60% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  85% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.3); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.preloader-brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preloader-slogan {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-gold);
  margin-top: 0.35rem;
  opacity: 0;
  animation: sloganFadeIn 1s 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sloganFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- STICKY HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  height: 86px;
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-sm);
  background: var(--bg-header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Brand Logo Container with Video & PNG Fallback */
.header-logo-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 0;
}

.logo-player-wrap {
  position: relative;
  width: 175px;
  height: 58px;
  display: flex;
  align-items: center;
  transition: width var(--transition-normal), height var(--transition-normal);
}

.site-header.scrolled .logo-player-wrap {
  width: 140px;
  height: 46px;
}

.logo-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.logo-fallback-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.logo-player-wrap.show-fallback .logo-fallback-img {
  opacity: 1;
  pointer-events: auto;
}
.logo-player-wrap.show-fallback .logo-video {
  opacity: 0;
}

/* Top Navigation Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.6rem;
}

.nav-link {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--c-purple);
}
[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
  color: var(--c-gold);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

/* Header Utilities (Theme + Language + Action Button) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button with Morphing Animation */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  background: var(--border-light);
  transform: scale(1.06);
  border-color: var(--c-gold);
}

.theme-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.theme-icon-sun {
  display: none;
}
.theme-icon-moon {
  display: block;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
  color: var(--c-gold);
  transform: rotate(360deg);
}
[data-theme="dark"] .theme-icon-moon {
  display: none;
}

/* Language Switcher (AR | EN | TR) */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 5px 11px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--c-purple);
  color: var(--c-white);
  box-shadow: 0 2px 8px rgba(69, 38, 111, 0.3);
}

[data-theme="dark"] .lang-btn.active {
  background: var(--c-gold);
  color: var(--c-night);
  box-shadow: 0 2px 8px rgba(217, 145, 54, 0.4);
}

/* Top Call To Action Button (Gold) */
.btn-cta-gold {
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-hover) 100%);
  color: var(--c-white) !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-cta-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(217, 145, 54, 0.45);
}

.btn-cta-gold:active {
  transform: translateY(0);
}

.btn-cta-gold .btn-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

html[dir="rtl"] .btn-cta-gold:hover .btn-icon {
  transform: translateX(-4px);
}
html[dir="ltr"] .btn-cta-gold:hover .btn-icon {
  transform: translateX(4px);
}

/* Secondary Buttons */
.btn-secondary {
  background: var(--bg-card-subtle);
  color: var(--c-purple);
  border: 1.5px solid var(--c-purple);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.62rem 1.4rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

[data-theme="dark"] .btn-secondary {
  color: var(--c-pearl);
  border-color: rgba(233, 227, 243, 0.4);
}

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

[data-theme="dark"] .btn-secondary:hover {
  background: var(--c-purple-light);
  border-color: var(--c-purple-light);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(26, 14, 54, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 320px;
  max-width: 85%;
  background: var(--bg-surface-elevated);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-normal);
}

html[dir="rtl"] .mobile-drawer-content {
  right: 0;
  transform: translateX(100%);
}
html[dir="rtl"] .mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

html[dir="ltr"] .mobile-drawer-content {
  left: 0;
  transform: translateX(-100%);
}
html[dir="ltr"] .mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.drawer-nav-link {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  padding: 0.4rem 0;
}

.drawer-nav-link.active, .drawer-nav-link:hover {
  color: var(--c-gold);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 88vh;
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--bg-hero);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-badge);
  border: 1px solid rgba(217, 145, 54, 0.3);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  color: var(--c-gold);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(217, 145, 54, 0.12);
}

.hero-badge-pill .sparkle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.22;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-title .highlight-gold {
  color: var(--c-gold);
  position: relative;
  display: inline-block;
}

.hero-title .highlight-gold::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  height: 10px;
  background: rgba(217, 145, 54, 0.18);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.22rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.hero-actions-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.8rem;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-badge);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gold);
}

.trust-item-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

/* Hero Visual / Animated Floating Tower Mark */
.hero-visual-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

.hero-aura-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 145, 54, 0.22) 0%, rgba(69, 38, 111, 0.15) 50%, rgba(0, 0, 0, 0) 70%);
  filter: blur(40px);
  z-index: 0;
  animation: heroAuraPulse 6s ease-in-out infinite alternate;
}

@keyframes heroAuraPulse {
  0% { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0.95; }
}

.hero-floating-tower {
  position: relative;
  z-index: 2;
  width: 300px;
  max-width: 90%;
  animation: towerFloatBreath 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(42, 24, 80, 0.25));
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.hero-floating-tower:hover {
  transform: scale(1.04) translateY(-8px);
}

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

/* Floating Micro Cards in Hero */
.hero-floating-badge {
  position: absolute;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 3;
  animation: floatMiniBadge 4s ease-in-out infinite alternate;
}

.hero-badge-top {
  top: 10%;
  right: -5%;
}
html[dir="ltr"] .hero-badge-top {
  right: auto;
  left: -5%;
}

.hero-badge-bottom {
  bottom: 8%;
  left: -5%;
  animation-delay: 2s;
}
html[dir="ltr"] .hero-badge-bottom {
  left: auto;
  right: -5%;
}

@keyframes floatMiniBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.badge-avatar-group {
  display: flex;
  margin-inline-start: -8px;
}
.badge-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--c-white);
  object-fit: cover;
  background: var(--c-purple);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-badge-text-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-heading);
}
.hero-badge-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- SECTION GENERAL STYLING --- */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
  scroll-margin-top: 96px;
}

.section-bg-alt {
  background-color: var(--bg-section-alt);
}

.section-bg-warm {
  background-color: var(--bg-section-warm);
}

/* Light mode: give specific sections their own comfortable, alternating tone */
/* This creates a layered feel: body > surface > warm > alt > surface > warm ... */
#servicesSection { background-color: var(--bg-body); }
#whyUsSection    { background-color: var(--bg-section-warm); }
#roadmapSection  { background-color: var(--bg-section-alt); }
#admissions      { background-color: var(--bg-surface); }
#guide           { background-color: var(--bg-section-alt); }
#residence       { background-color: var(--bg-section-warm); }
#flights         { background-color: var(--bg-section-alt); }
#visa            { background-color: var(--bg-surface); }

/* Subtle section top divider line for visual rhythm */
.section-bg-alt::before,
.section-bg-warm::before,
#whyUsSection::before,
#roadmapSection::before,
#guide::before,
#residence::before,
#flights::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(69, 38, 111, 0.12) 30%, rgba(217, 145, 54, 0.15) 50%, rgba(69, 38, 111, 0.12) 70%, transparent 100%);
  pointer-events: none;
}

/* Dark mode: override the section-specific backgrounds — dark mode uses its own uniform tokens */
[data-theme="dark"] #servicesSection,
[data-theme="dark"] #whyUsSection,
[data-theme="dark"] #roadmapSection,
[data-theme="dark"] #admissions,
[data-theme="dark"] #guide,
[data-theme="dark"] #residence,
[data-theme="dark"] #flights,
[data-theme="dark"] #visa      { background-color: transparent; }

[data-theme="dark"] .section-bg-alt::before,
[data-theme="dark"] .section-bg-warm::before,
[data-theme="dark"] #whyUsSection::before,
[data-theme="dark"] #roadmapSection::before,
[data-theme="dark"] #guide::before,
[data-theme="dark"] #residence::before,
[data-theme="dark"] #flights::before { display: none; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-gold);
  background: var(--bg-badge);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.28;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- SERVICES SHOWCASE (PRIORITY #1 UNIVERSITY ADMISSION) --- */
.services-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Priority Card #1 - University Admissions (Prominent & Featured) */
.featured-service-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 2px solid var(--c-gold);
  padding: 3rem;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(217, 145, 54, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.featured-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(217, 145, 54, 0.22);
}

.featured-ribbon {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-hover) 100%);
  color: var(--c-white);
  padding: 0.35rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(217, 145, 54, 0.3);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
html[dir="rtl"] .featured-ribbon {
  left: auto;
  right: 2rem;
}

.featured-card-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.featured-card-info h3 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-heading);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.featured-card-info p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

.featured-perks-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.featured-perk-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.perk-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-badge);
  color: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Secondary Services Grid (Cards 2, 3, 4, 5) */
.sub-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

.service-icon-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.service-card:hover .service-icon-box {
  background: var(--bg-badge);
  transform: scale(1.08);
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.8rem;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-card-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.service-card:hover .service-card-link {
  gap: 0.7rem;
}

/* --- INTERACTIVE SVG ICONS (ANIMATED ON HOVER) --- */
.interactive-icon-svg {
  width: 48px;
  height: 48px;
  overflow: visible;
}

/* 1. Graduation Cap (University Admissions) */
.icon-admissions .cap-top {
  transform-origin: 24px 20px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.icon-admissions .tassel-thread {
  transform-origin: 24px 20px;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.featured-service-card:hover .icon-admissions .cap-top {
  transform: rotate(-10deg) translateY(-2px);
}
.featured-service-card:hover .icon-admissions .tassel-thread {
  animation: tasselSwing 1.2s ease-in-out infinite alternate;
}
@keyframes tasselSwing {
  0% { transform: rotate(-12deg); }
  100% { transform: rotate(18deg); }
}

/* 2. Universities Guide (Campus/Book) */
.icon-guide .book-page-right {
  transform-origin: 24px 34px;
  transition: transform 0.45s ease;
}
.service-card:hover .icon-guide .book-page-right {
  transform: rotateY(-35deg) skewY(-5deg);
}

/* 3. Residence Permit (Passport / Stamp) */
.icon-residence .stamp-handle {
  transform-origin: 24px 10px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.icon-residence .stamp-base {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .icon-residence .stamp-handle {
  transform: translateY(-8px);
}
.service-card:hover .icon-residence .stamp-base {
  animation: stampDown 0.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes stampDown {
  0% { transform: translateY(0); }
  50% { transform: translateY(6px) scale(0.96); }
  100% { transform: translateY(0) scale(1); }
}

/* 4. Flight Tickets (Airplane) */
.icon-flight .plane-body {
  transform-origin: 24px 24px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .icon-flight .plane-body {
  transform: translate(6px, -8px) rotate(-15deg);
}

/* 5. Visa Issuance (Visa Card / Stamp) */
.icon-visa .visa-card-inner {
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .icon-visa .visa-card-inner {
  transform: rotateY(180deg) scale(1.05);
}

/* --- STATS / MILESTONES COUNTERS --- */
.stats-banner {
  background: var(--c-purple);
  color: var(--c-white);
  padding: 60px 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  margin: 40px auto;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .stats-banner {
  background: linear-gradient(135deg, #371E59 0%, #201040 100%);
  border: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
  padding: 1rem;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%;
  bottom: 20%;
  right: 0;
  width: 1px;
  background: rgba(233, 227, 243, 0.2);
}
html[dir="rtl"] .stat-item:not(:last-child)::after {
  right: auto;
  left: 0;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--c-pearl);
}

.stat-suffix {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--c-gold);
}

.stat-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-lilac);
}

/* --- WHY CHOOSE US & STROKE ANIMATIONS --- */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

/* SVG Stroke Drawing Animation When Scrolled into View */
.stroke-draw-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-in-view .stroke-draw-path {
  stroke-dashoffset: 0;
}

.why-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-badge);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gold);
  margin-bottom: 1.5rem;
}

.why-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.8rem;
}

.why-card-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- HOW WE WORK (ROADMAP STEPS) --- */
.roadmap-container {
  position: relative;
  margin-top: 3rem;
}

.roadmap-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* Connecting Roadmap Line */
.roadmap-track-line {
  position: absolute;
  top: 48px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: var(--border-card);
  z-index: 0;
}

.roadmap-track-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-purple) 0%, var(--c-gold) 100%);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.is-in-view .roadmap-track-progress {
  width: 100%;
}

.roadmap-step-card {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.roadmap-step-num-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--c-purple);
  color: var(--c-white);
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem auto;
  border: 4px solid var(--bg-surface);
  box-shadow: 0 4px 15px rgba(69, 38, 111, 0.3);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.roadmap-step-card:hover .roadmap-step-num-badge {
  background: var(--c-gold);
  color: var(--c-night);
  transform: scale(1.1);
}

.step-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
}

.step-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- UNIVERSITIES DIRECTORY & EXPLORER --- */
.universities-filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}
html[dir="rtl"] .search-input-icon {
  right: 1.2rem;
}
html[dir="ltr"] .search-input-icon {
  left: 1.2rem;
}

.university-search-field {
  width: 100%;
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
  font-family: inherit;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-card);
  background: var(--bg-body);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
html[dir="rtl"] .university-search-field {
  padding-right: 3.2rem;
}
html[dir="ltr"] .university-search-field {
  padding-left: 3.2rem;
}

.university-search-field:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 4px rgba(217, 145, 54, 0.15);
}

.filter-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-pill {
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  color: var(--text-main);
  border-color: var(--c-gold);
}

.filter-pill.active {
  background: var(--c-purple);
  color: var(--c-white);
  border-color: var(--c-purple);
  box-shadow: 0 2px 8px rgba(69, 38, 111, 0.25);
}

[data-theme="dark"] .filter-pill.active {
  background: var(--c-gold);
  color: var(--c-night);
  border-color: var(--c-gold);
}

/* University Cards Grid */
.universities-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.university-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.university-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-hover);
}

.university-card-banner {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-night) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.university-card-banner-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.35;
  transition: transform 0.6s ease;
}

.university-card:hover .university-card-banner-bg {
  transform: scale(1.08);
}

.university-badge-tag {
  position: absolute;
  top: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--c-night);
}
html[dir="rtl"] .university-badge-tag {
  right: 1rem;
}
html[dir="ltr"] .university-badge-tag {
  left: 1rem;
}

.university-card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.university-name-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.university-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.university-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.meta-chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: var(--bg-card-subtle);
  color: var(--text-main);
}

.university-pricing-box {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tuition-old-price {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--text-light);
}

.tuition-discount-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--c-gold);
}

/* --- STUDENT TESTIMONIALS --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.testimonial-quote-icon {
  font-size: 2.5rem;
  color: var(--c-gold);
  line-height: 1;
  margin-bottom: 0.8rem;
  opacity: 0.7;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

.testimonial-student-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.student-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-gold);
}

.student-name-bold {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
}

.student-program-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- FAQ ACCORDION --- */
.faq-accordion-wrap {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-item.active {
  border-color: var(--c-gold);
  box-shadow: var(--shadow-md);
}

.faq-trigger {
  width: 100%;
  padding: 1.4rem 1.8rem;
  text-align: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: none;
}

.faq-arrow-icon {
  width: 22px;
  height: 22px;
  color: var(--c-gold);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-arrow-icon {
  transform: rotate(180deg);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
}

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

.faq-answer-inner {
  padding: 0 1.8rem 1.5rem 1.8rem;
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* --- MODAL DIALOGS --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 14, 54, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card-box {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-card-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
html[dir="rtl"] .modal-close-btn {
  left: 1.5rem;
}
html[dir="ltr"] .modal-close-btn {
  right: 1.5rem;
}

.modal-close-btn:hover {
  background: var(--border-light);
}

/* --- FORMS & INPUT CONTROLS --- */
.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-size: 0.98rem;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-card);
  background: var(--bg-body);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--c-purple);
  box-shadow: 0 0 0 4px rgba(69, 38, 111, 0.15);
}

[data-theme="dark"] .form-control:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 4px rgba(217, 145, 54, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Form Submit States */
.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 1rem;
  display: none;
}
.form-feedback.success {
  display: block;
  background: #E8F8F0;
  color: #127546;
  border: 1px solid #B8E8D0;
}
.form-feedback.error {
  display: block;
  background: #FEECEB;
  color: #B52825;
  border: 1px solid #F8C7C5;
}

/* --- CTA BANNER --- */
.cta-banner-section {
  background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-night) 100%);
  color: var(--c-white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-banner-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--c-pearl);
  margin-bottom: 1.2rem;
}

.cta-banner-desc {
  font-size: 1.15rem;
  color: var(--c-lilac);
  line-height: 1.8;
  margin-bottom: 2.4rem;
}

/* --- SITE FOOTER --- */
.site-footer {
  background: var(--bg-footer);
  color: var(--c-pearl);
  padding-top: 80px;
  padding-bottom: 30px;
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 50px;
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-tower-icon {
  width: 42px;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(217, 145, 54, 0.4));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.footer-tower-icon:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 4px 18px rgba(217, 145, 54, 0.8));
}

.footer-logo-img {
  height: 48px;
  width: auto;
}

.footer-slogan {
  color: var(--c-gold);
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-about-text {
  font-size: 0.95rem;
  color: var(--c-lilac);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: 1.4rem;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-gold);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link-item a {
  color: var(--c-lilac);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link-item a:hover {
  color: var(--c-gold);
}

.footer-bottom-bar {
  padding-top: 30px;
  border-top: 1px solid rgba(233, 227, 243, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- FLOATING WHATSAPP BUTTON --- */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  cursor: pointer;
  transition: transform var(--transition-fast);
  animation: waPulse 2.8s infinite;
}

html[dir="rtl"] .floating-whatsapp-btn {
  left: 28px;
}
html[dir="ltr"] .floating-whatsapp-btn {
  right: 28px;
}

.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  animation: waWiggle 4.5s ease-in-out infinite;
}

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes waWiggle {
  0%, 80%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(-14deg); }
  90% { transform: rotate(14deg); }
  95% { transform: rotate(-8deg); }
}

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

/* --- BUTTON RIPPLE EFFECT --- */
.has-ripple {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: rippleAnimation 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --- REDUCED MOTION ACCESSIBILITY --- */
@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;
  }
  .galata-watermark {
    transform: none !important;
  }
  .logo-video {
    display: none !important;
  }
  .logo-player-wrap.show-fallback .logo-fallback-img,
  .logo-fallback-img {
    opacity: 1 !important;
    display: block !important;
  }
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1080px) {
  .sub-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .roadmap-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .universities-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    height: 74px;
  }
  .main-nav, .header-actions .btn-cta-gold {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions-group {
    justify-content: center;
  }
  .hero-trust-badges {
    justify-content: center;
    flex-wrap: wrap;
  }
  .featured-card-content {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:not(:last-child)::after {
    display: none;
  }
  .why-us-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-steps-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-track-line {
    display: none;
  }
  .universities-cards-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo-player-wrap {
    width: 120px;
    height: 40px;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .lang-btn {
    padding: 4px 7px;
    font-size: 0.78rem;
  }
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .featured-service-card {
    padding: 1.8rem 1.2rem;
  }
  .featured-perks-list {
    grid-template-columns: 1fr;
  }
  .sub-services-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .galata-watermark {
    width: 380px;
    opacity: 0.025;
  }
}
