/* ========================================
   DESIGN SYSTEM — Aysun Hüseynova Fizioterapiya
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Primary Palette — Medical Teal */
  --primary-50: #e6f7f7;
  --primary-100: #b3e8e8;
  --primary-200: #80d9d9;
  --primary-300: #4dcaca;
  --primary-400: #26bfbf;
  --primary-500: #0d9e9e;
  --primary-600: #0b8585;
  --primary-700: #096c6c;
  --primary-800: #075353;
  --primary-900: #043a3a;

  /* Accent — Warm Gold */
  --accent-400: #f5c542;
  --accent-500: #d4a833;
  --accent-600: #b08c28;

  /* Neutrals */
  --neutral-50: #f8f9fa;
  --neutral-100: #f1f3f5;
  --neutral-200: #e9ecef;
  --neutral-300: #dee2e6;
  --neutral-400: #ced4da;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;

  /* Semantic */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafa;
  --bg-dark: #0a1f2f;
  --text-primary: #1a2332;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --text-white: #ffffff;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0a1f2f 0%, #0d3d3d 40%, #0d9e9e 100%);
  --gradient-card: linear-gradient(135deg, rgba(13, 158, 158, 0.05), rgba(13, 158, 158, 0.02));
  --gradient-btn: linear-gradient(135deg, #0d9e9e, #0b8585);
  --gradient-btn-hover: linear-gradient(135deg, #0b8585, #096c6c);
  --gradient-accent: linear-gradient(135deg, #f5c542, #d4a833);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
  --shadow-glow: 0 0 40px rgba(13, 158, 158, 0.15);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', 'Georgia', serif;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section-padding {
  padding: var(--space-4xl) 0;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-500);
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--gradient-btn);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

.btn:hover::after {
  transform: translateX(0);
}

.btn-primary {
  background: var(--gradient-btn);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(13, 158, 158, 0.35);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 158, 158, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--primary-400);
  background: rgba(13, 158, 158, 0.1);
  transform: translateY(-2px);
}

.btn-white {
  background: rgba(255,255,255,0.95);
  color: var(--primary-700);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   HEADER / NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: all var(--transition-normal);
  background: rgba(10, 31, 47, 0.88) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(6, 21, 32, 0.96) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-btn);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(13, 158, 158, 0.3);
  animation: heartbeat 2.2s infinite ease-in-out;
  transform-origin: center;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white) !important;
  transition: color var(--transition-fast);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85) !important;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-btn);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-links a:hover { color: var(--primary-300) !important; }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px !important;
  background: var(--gradient-btn) !important;
  color: white !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(13, 158, 158, 0.3);
  transition: all var(--transition-normal) !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13, 158, 158, 0.45) !important;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--text-white) !important;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 140px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/hero_background.png') center/cover no-repeat;
  opacity: 0.15;
  mix-blend-mode: luminosity;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(13, 158, 158, 0.3);
  border-radius: 50%;
  animation: float-particle 15s infinite linear;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: -3s; animation-duration: 22s; width: 4px; height: 4px; }
.particle:nth-child(3) { top: 40%; left: 30%; animation-delay: -6s; animation-duration: 16s; width: 8px; height: 8px; background: rgba(245, 197, 66, 0.2); }
.particle:nth-child(4) { top: 80%; left: 60%; animation-delay: -9s; animation-duration: 20s; }
.particle:nth-child(5) { top: 10%; left: 70%; animation-delay: -12s; animation-duration: 25s; width: 5px; height: 5px; }
.particle:nth-child(6) { top: 50%; left: 50%; animation-delay: -4s; animation-duration: 19s; width: 3px; height: 3px; background: rgba(245, 197, 66, 0.15); }

@keyframes float-particle {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(200px, -400px) scale(0.5); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(13, 158, 158, 0.15);
  border: 1px solid rgba(13, 158, 158, 0.3);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-300);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-avatar {
  display: none;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-300), var(--accent-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stat h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
}

.hero-stat h3 span {
  color: var(--primary-300);
}

.hero-stat p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  font-weight: 500;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  background: var(--bg-secondary);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

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

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

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

.about-image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.6;
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: white;
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  z-index: 2;
}

.about-experience-badge h4 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary-600);
  font-weight: 700;
  line-height: 1;
}

.about-experience-badge p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content .section-subtitle {
  margin-bottom: var(--space-2xl);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.about-feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about-feature-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: linear-gradient(135deg, rgba(13, 158, 158, 0.1), rgba(13, 158, 158, 0.05));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  font-size: 1.1rem;
}

.about-feature h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.about-feature p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.service-card {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--neutral-200);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: var(--primary-200);
}

.service-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 31, 47, 0.6) 100%);
}

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

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-number {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-700);
  z-index: 2;
}

.service-card-body {
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
}

.service-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.service-card-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.service-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--neutral-50);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-fast);
}

.service-tag:hover {
  background: rgba(13, 158, 158, 0.08);
  border-color: var(--primary-200);
  color: var(--primary-700);
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-us {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 158, 158, 0.08), transparent 70%);
  pointer-events: none;
}

.why-us .section-title {
  color: var(--text-white);
}

.why-us .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-btn);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.why-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(13, 158, 158, 0.2);
  transform: translateY(-4px);
}

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

.why-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(13, 158, 158, 0.15), rgba(13, 158, 158, 0.05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-xl);
  color: var(--primary-400);
}

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--space-md);
}

.why-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
  background: var(--bg-secondary);
}

.testimonials-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
  transition: all var(--transition-normal);
  position: relative;
}

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

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--primary-200);
  font-family: var(--font-serif);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: var(--space-xl);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-lg);
  color: var(--accent-400);
  font-size: 0.9rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-author h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========================================
   CONTACT / CTA SECTION
   ======================================== */
.contact {
  position: relative;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
}

.contact-info {
  padding-right: var(--space-2xl);
}

.contact-info .section-subtitle {
  margin-bottom: var(--space-2xl);
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-normal);
}

.contact-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--gradient-btn);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(13, 158, 158, 0.25);
}

.contact-card h4 {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-100);
}

.contact-form-wrapper h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(13, 158, 158, 0.08);
  background: white;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-form-wrapper .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-dark);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text {
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary-600);
  border-color: var(--primary-500);
  color: white;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  padding: 6px 0;
  transition: all var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary-300);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.animate-left {
  transform: translateX(-30px);
}

.animate-on-scroll.animate-left.animated {
  transform: translateX(0);
}

.animate-on-scroll.animate-right {
  transform: translateX(30px);
}

.animate-on-scroll.animate-right.animated {
  transform: translateX(0);
}

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.12s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.24s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.36s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.48s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.60s; }

/* ========================================
   SCROLL-TO-TOP BUTTON
   ======================================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-btn);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(13, 158, 158, 0.35);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(13, 158, 158, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .about-image img {
    height: 380px;
  }

  .why-us-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 1200px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px;
    gap: var(--space-lg);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-normal);
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    color: var(--text-primary) !important;
    font-size: 1.05rem;
  }

  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .hero h1 {
    font-size: 2.1rem;
  }

  .container { padding: 0 var(--space-lg); }

  .section-padding { padding: var(--space-3xl) 0; }

  .hero-stats {
    gap: var(--space-xl);
    flex-wrap: wrap;
  }

  .hero-stat h3 { font-size: 1.6rem; }

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

  .why-us-grid {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn { width: 100%; justify-content: center; }
}

/* ========================================
   MOBILE NAV OVERLAY
   ======================================== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ========================================
   EXPERIENCE TIMELINE SECTION
   ======================================== */
.experience {
  background: var(--bg-secondary);
  position: relative;
}

.experience-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.experience-header .section-subtitle {
  margin: 0 auto;
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-400), var(--primary-100));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: var(--space-2xl);
  transition: all var(--transition-normal);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 14px;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary-500);
  z-index: 2;
  transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  background: var(--primary-500);
  box-shadow: 0 0 0 6px rgba(13, 158, 158, 0.15);
}

.timeline-item.current .timeline-dot {
  background: var(--primary-500);
  box-shadow: 0 0 0 6px rgba(13, 158, 158, 0.15);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 6px rgba(13, 158, 158, 0.15); }
  50% { box-shadow: 0 0 0 12px rgba(13, 158, 158, 0.08); }
}

.timeline-content {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
  transform: translateX(4px);
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-600);
  background: rgba(13, 158, 158, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.timeline-location {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-left: 8px;
  font-weight: 500;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.timeline-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-700);
  margin-bottom: var(--space-sm);
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-content ul {
  margin-top: var(--space-sm);
}

.timeline-content ul li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.timeline-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-400);
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.15), rgba(245, 197, 66, 0.05));
  border: 1px solid rgba(245, 197, 66, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-600);
  margin-top: 4px;
}

/* ========================================
   EDUCATION & RESEARCH SECTION
   ======================================== */
.education {
  position: relative;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.edu-column-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.edu-column-title svg {
  color: var(--primary-500);
}

.edu-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-btn);
  border-radius: 0 2px 2px 0;
}

.edu-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
  transform: translateY(-2px);
}

.edu-card-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-600);
  margin-bottom: 4px;
}

.edu-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-card h4 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.edu-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

.edu-card .edu-honor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-600);
  background: rgba(245, 197, 66, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 197, 66, 0.25);
}

/* Research/Innovation card */
.research-card {
  background: linear-gradient(135deg, var(--bg-dark), #0d3d3d);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  color: white;
  border: 1px solid rgba(13, 158, 158, 0.2);
  position: relative;
  overflow: hidden;
}

.research-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(13, 158, 158, 0.15), transparent 70%);
  pointer-events: none;
}

.research-card .patent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 197, 66, 0.15);
  border: 1px solid rgba(245, 197, 66, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-400);
  margin-bottom: var(--space-lg);
}

.research-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: white;
}

.research-card .research-date {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-md);
}

.research-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

/* ========================================
   SKILLS & CERTIFICATES SECTION
   ======================================== */
.skills-section {
  background: var(--bg-secondary);
}

.skills-certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.skills-column-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.skills-column-title svg {
  color: var(--primary-500);
}

/* Skills tags */
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: white;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--primary-400);
  background: rgba(13, 158, 158, 0.06);
  color: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 158, 158, 0.1);
}

.skill-tag svg {
  width: 16px;
  height: 16px;
  color: var(--primary-500);
}

/* Certificates */
.certs-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-normal);
}

.cert-item:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.cert-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, rgba(13, 158, 158, 0.12), rgba(13, 158, 158, 0.04));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-500);
}

.cert-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.cert-info span {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ========================================
   LANGUAGES SECTION
   ======================================== */
.languages-section {
  margin-top: var(--space-3xl);
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.lang-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid var(--neutral-200);
  text-align: center;
  transition: all var(--transition-normal);
}

.lang-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.lang-flag {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.lang-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.lang-level {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-600);
  background: rgba(13, 158, 158, 0.08);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.lang-bar {
  width: 100%;
  height: 4px;
  background: var(--neutral-200);
  border-radius: 4px;
  margin-top: var(--space-md);
  overflow: hidden;
}

.lang-bar-fill {
  height: 100%;
  background: var(--gradient-btn);
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

.lang-bar-fill.animated {
  /* widths set inline */
}

/* ========================================
   RESPONSIVE — NEW SECTIONS
   ======================================== */
@media (max-width: 1024px) {
  .education-grid {
    grid-template-columns: 1fr;
  }

  .skills-certs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    padding-left: 48px;
  }

  .timeline-dot {
    left: 6px;
    width: 18px;
    height: 18px;
  }

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

/* ========================================
   MAP SECTION
   ======================================== */
.map-section {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
}

.map-header {
  padding: var(--space-xl) var(--space-2xl);
  border-bottom: 1px solid var(--neutral-200);
}

.map-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.map-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.map-title svg {
  color: var(--primary-500);
}

.btn-directions {
  padding: 10px 24px;
  font-size: 0.88rem;
}

.map-address {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.map-distance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-sm);
  padding: 6px 16px;
  background: rgba(13, 158, 158, 0.08);
  border: 1px solid rgba(13, 158, 158, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-700);
  animation: fadeInUp 0.5s ease-out;
}

.map-distance svg {
  color: var(--primary-500);
}

.map-container {
  position: relative;
  width: 100%;
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Contact card clickable styles */
a.contact-card {
  cursor: pointer;
}

a.contact-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .map-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-container {
    height: 300px;
  }

  .map-header {
    padding: var(--space-lg);
  }
}

/* ========================================
   MAP SECTION
   ======================================== */
.map-section {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
}

.map-header {
  padding: var(--space-xl) var(--space-2xl);
  border-bottom: 1px solid var(--neutral-200);
}

.map-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.map-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.map-title svg {
  color: var(--primary-500);
}

.btn-directions {
  padding: 10px 24px;
  font-size: 0.88rem;
}

.map-address {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.map-distance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-sm);
  padding: 6px 16px;
  background: rgba(13, 158, 158, 0.08);
  border: 1px solid rgba(13, 158, 158, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-700);
  animation: fadeInUp 0.5s ease-out;
}

.map-distance svg {
  color: var(--primary-500);
}

.map-container {
  position: relative;
  width: 100%;
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Contact card clickable styles */
a.contact-card {
  cursor: pointer;
}

a.contact-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md);
}

/* ========================================
   ADMIN / DOCTOR PANEL MODAL
   ======================================== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 47, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  padding: var(--space-md);
}

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

.admin-modal {
  background: white;
  width: 100%;
  max-width: 950px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow-y: auto;
  padding: var(--space-2xl);
  transform: translateY(30px) scale(0.95);
  transition: all var(--transition-normal);
  border: 1px solid var(--neutral-200);
}

.admin-modal-overlay.active .admin-modal {
  transform: translateY(0) scale(1);
}

.admin-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--neutral-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.admin-modal-close:hover {
  background: var(--neutral-200);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.admin-view {
  animation: fadeIn 0.4s ease-out;
}

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

/* Login Form Styles */
#adminLoginView {
  max-width: 400px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

.admin-login-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.admin-lock-icon {
  width: 60px;
  height: 60px;
  background: rgba(245, 197, 66, 0.1);
  border: 1px solid rgba(245, 197, 66, 0.3);
  color: var(--accent-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.admin-login-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.admin-login-header p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Dashboard view styles */
.admin-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--neutral-200);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.admin-dash-header h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.admin-dash-header p {
  font-size: 0.88rem;
  color: var(--text-light);
}

.btn-logout {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-color: var(--neutral-300);
  color: var(--text-secondary);
}

.btn-logout:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
}

/* Stats dashboard */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.admin-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-200);
  box-shadow: var(--shadow-sm);
}

.admin-stat-card h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: var(--space-xs);
}

.admin-stat-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-600);
}

/* Filter bar */
.admin-filter-bar {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.admin-filter-bar input[type="date"] {
  padding: 10px 14px;
  font-size: 0.9rem;
}

/* Table styling */
.admin-table-container {
  overflow-x: auto;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  background: white;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--neutral-50);
  color: var(--text-primary);
  font-weight: 600;
  padding: 14px 18px;
  border-bottom: 1.5px solid var(--neutral-200);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--neutral-200);
  color: var(--text-secondary);
  line-height: 1.5;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(13, 158, 158, 0.02);
}

.admin-table .td-notes {
  max-width: 250px;
  word-wrap: break-word;
}

.admin-action-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-action-btn.delete:hover {
  background: #fef2f2;
  color: #ef4444;
}

.admin-action-btn.call:hover {
  background: rgba(13, 158, 158, 0.08);
  color: var(--primary-600);
}

/* Mobile responsive admin */
@media (max-width: 768px) {
  .admin-modal {
    padding: var(--space-lg);
    max-height: 95vh;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .admin-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-table th, .admin-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

/* ========================================
   DYNAMIC TESTIMONIALS & FORM
   ======================================== */
.testimonials-list-wrapper {
  max-height: 520px;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: var(--space-3xl);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-300) transparent;
}

.testimonials-list-wrapper::-webkit-scrollbar {
  width: 6px;
}

.testimonials-list-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.testimonials-list-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--primary-200);
  border-radius: var(--radius-full);
}

.testimonials-list-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-400);
}

.testimonial-form-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-form-wrapper h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.testimonial-form-wrapper p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.star-rating {
  display: inline-flex;
  gap: 6px;
  font-size: 1.8rem;
  color: var(--neutral-300);
  cursor: pointer;
  user-select: none;
}

.star-rating-item {
  transition: all var(--transition-fast);
}

.star-rating-item.hover,
.star-rating-item.active {
  color: var(--accent-400);
  transform: scale(1.12);
}

@media (max-width: 768px) {
  .testimonials-list-wrapper {
    max-height: 600px;
  }
  
  .testimonial-form-wrapper {
    padding: var(--space-lg);
  }
}

/* ========================================
   VIDEO GALLERY SECTION
   ======================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.video-card {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-200);
  background: black;
  transition: all var(--transition-normal);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: var(--primary-300);
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
  display: block;
}

@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
}

/* ========================================
   BLOG / FAQ SECTION
   ======================================== */
.blog-section {
  position: relative;
}

.blog-filter-wrapper {
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
}

.blog-search-box {
  width: 100%;
  position: relative;
}

.blog-search-box input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--neutral-200);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.blog-search-box input:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(13, 158, 158, 0.1);
  outline: none;
}

.blog-search-box svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.blog-tab {
  background: white;
  border: 1px solid var(--neutral-200);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blog-tab:hover {
  border-color: var(--primary-300);
  color: var(--primary-600);
  background: rgba(13, 158, 158, 0.04);
}

.blog-tab.active {
  background: var(--gradient-btn);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.blog-accordion-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.blog-item {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: none; /* Controlled by JS filters */
}

.blog-item.active-category {
  display: block;
}

.blog-item:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
}

.blog-question {
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
}

.blog-question svg {
  color: var(--primary-500);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.blog-item.open .blog-question svg {
  transform: rotate(180deg);
}

.blog-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--neutral-50);
}

.blog-answer p {
  padding: var(--space-lg);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--neutral-200);
}

@media (max-width: 768px) {
  .blog-question {
    padding: var(--space-md);
    font-size: 0.92rem;
  }
  
  .blog-answer p {
    padding: var(--space-md);
    font-size: 0.88rem;
  }
}

/* ========================================
   TOP SOCIAL BAR
   ======================================== */
.top-social-bar {
  background: rgba(10, 31, 47, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
}

.top-social-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-md);
}

.top-social-content a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-300);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.top-social-content a:hover {
  color: var(--accent-400);
  text-decoration: underline;
}

.top-social-content svg {
  color: var(--accent-300);
}

/* Adjust navbar offset for top bar */
.navbar {
  top: 38px;
}

.navbar.scrolled {
  top: 0;
}

/* Sub-page top padding to prevent fixed navbar overlap */
body.sub-page section:first-of-type {
  padding-top: 170px !important;
}

/* Ensure mobile menu links are dark on white background */
@media (max-width: 1200px) {
  .nav-links a {
    color: var(--text-primary) !important;
  }
  .nav-links a:hover {
    color: var(--primary-600) !important;
  }
  .nav-cta {
    color: white !important;
  }
  .navbar {
    top: 38px;
  }
  .navbar.scrolled {
    top: 0;
  }
}

@media (max-width: 768px) {
  .top-social-bar {
    display: none !important;
  }
  .navbar {
    top: 0 !important;
  }
  body.sub-page section:first-of-type {
    padding-top: 120px !important;
  }
  .hero {
    align-items: flex-end !important;
    padding-bottom: 25px !important;
    padding-top: 140px !important;
  }
  .hero::before {
    background: linear-gradient(to bottom, rgba(10, 31, 47, 0.2) 0%, rgba(10, 31, 47, 0.92) 80%), url('images/aysun_huseynova.jpg') center 10%/cover no-repeat !important;
    opacity: 0.95 !important;
    mix-blend-mode: normal !important;
  }
}

/* Scale down native Webkit video play button */
video::-webkit-media-controls-start-playback-button {
  transform: scale(0.65) !important;
}

/* Custom Video Modal */
.custom-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.custom-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 21, 32, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: videoFadeIn 0.3s ease forwards;
}

.custom-video-modal-content {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 9 / 16;
  background: black;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transform: scale(0.9);
  opacity: 0;
  animation: videoZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  z-index: 1;
}

.custom-video-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.custom-video-modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.custom-video-modal-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-video-modal.closing .custom-video-modal-backdrop {
  animation: videoFadeOut 0.3s ease forwards;
}

.custom-video-modal.closing .custom-video-modal-content {
  animation: videoZoomOut 0.3s ease forwards;
}

@keyframes videoFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes videoFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes videoZoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes videoZoomOut { from { transform: scale(1); opacity: 1; } to { transform: scale(0.9); opacity: 0; } }

/* Custom Play Overlay */
.video-card {
  position: relative;
  cursor: pointer;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 21, 32, 0.15);
  transition: background var(--transition-fast);
}

.video-card:hover .video-play-overlay {
  background: rgba(6, 21, 32, 0.35);
}

.video-play-overlay svg {
  width: 48px;
  height: 48px;
  padding: 13px 12px 13px 15px; /* Offset to center the triangle icon perfectly */
  background: rgba(13, 158, 158, 0.95);
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(13, 158, 158, 0.4);
  transition: all var(--transition-fast);
}

.video-card:hover .video-play-overlay svg {
  transform: scale(1.1);
  background: var(--primary-500);
}

/* Mobile Navigation Drawer Close Button */
.nav-close-btn {
  display: none;
}

@media (max-width: 1200px) {
  .nav-close-btn {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 36px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    z-index: 1010;
    transition: all var(--transition-fast);
  }
  .nav-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    color: var(--primary-600);
  }
}
/* Heartbeat Animation */
@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.1); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  70% { transform: scale(1); }
}

/* Hero Instagram Link Badge */
.hero-insta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--primary-300) !important;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  transition: all var(--transition-fast);
  width: fit-content;
}

.hero-insta-badge:hover {
  background: rgba(13, 158, 158, 0.15);
  border-color: var(--primary-400);
  color: white !important;
  transform: translateY(-2px);
}

.hero-insta-badge svg {
  color: var(--primary-300);
  transition: color var(--transition-fast);
}

.hero-insta-badge:hover svg {
  color: white;
}

/* SVG Heartbeat Left-to-Right Draw Animation */
.logo-icon svg path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: ecg-draw 2.5s infinite linear;
}

@keyframes ecg-draw {
  0% {
    stroke-dashoffset: 80;
  }
  45% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -80;
  }
}

/* Sound Toggle Button */
.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-right: 12px;
  padding: 0;
  z-index: 1005;
}

.sound-toggle-btn:hover {
  background: rgba(13, 158, 158, 0.2);
  border-color: var(--primary-400);
  transform: scale(1.05);
}

.sound-toggle-btn.playing {
  background: rgba(13, 158, 158, 0.3);
  border-color: var(--primary-300);
  box-shadow: 0 0 12px rgba(13, 158, 158, 0.4);
  animation: heartbeat 1.25s infinite ease-in-out; /* Pulsate button when playing sound! */
}

.sound-toggle-btn svg {
  color: white;
}
