/* Professional Medical Website - Dr. David Ben David */

:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --primary-dark: #0f2744;
  --accent: #38b2ac;
  --accent-light: #4fd1c5;
  --accent-dark: #2c9a94;
  --gold: #d69e2e;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 25%, #f0fdfa 50%, #ecfdf5 75%, #f7fafc 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: center;
  /* Centering the navbar content */
  align-items: center;
  padding: 10px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  order: 1;
  /* Ensure logo is part of the flow */
}

.logo-icon {
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(56, 178, 172, 0.3));
}

.nav-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  list-style: none;
  gap: 15px;
  background: rgba(247, 250, 252, 0.95);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 12px 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-menu a:hover::after {
  width: 100%;
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(26, 54, 93, 0.25);
  transition: all 0.3s ease;
  order: 3;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 54, 93, 0.35);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.nav-toggle {
  display: none !important;
}

.nav-toggle span {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent-dark) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  max-width: 800px;
  color: #fff;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero h1 .highlight {
  color: var(--accent-light);
}

/* Subtitle & Inline Eye */
.subtitle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-eye-inline {
  width: 140px;
  height: 70px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 15px rgba(56, 178, 172, 0.4));
  transform: scale(0.9);
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0;
  /* Container handles spacing */
  opacity: 0.95;
  text-align: center;
  color: var(--text-light);
}

.hero-description {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 24px;
  line-height: 1.8;
}

/* Elegant Surgery Counter */
.surgery-counter-big {
  display: none;
}

.surgery-elegant {
  display: none;
}

/* Experience Badge - Large Static Box with Original Eye */
/* Centered Surgery Badge */
.surgery-badge-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 60px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  width: fit-content;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.surgery-badge-center:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.3);
}

.success-icon-animated {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-svg-large {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.success-circle-large {
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: circleDrawLarge 4s ease-in-out infinite;
}

.success-check-large {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: checkDrawLarge 4s ease-in-out infinite;
  animation-delay: 0.2s;
  /* Slight delay relative to circle */
}

@keyframes circleDrawLarge {

  0%,
  10% {
    stroke-dashoffset: 283;
    opacity: 0;
  }

  15%,
  80% {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  90%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes checkDrawLarge {

  0%,
  15% {
    stroke-dashoffset: 60;
    opacity: 0;
  }

  25%,
  80% {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  90%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.surgery-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.surgery-count-glimmer {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #ffd700 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGold 3s linear infinite;
  line-height: 1.2;
}

.surgery-subtext {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  letter-spacing: 0.5px;
}

@keyframes shimmerGold {
  to {
    background-position: 200% center;
  }
}

/* Original Eye Styling for Hero (Adjusted) */
.hero-eye-icon {
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 15px rgba(56, 178, 172, 0.4));
}

/* Experience Badge - Large Static Box with Original Eye */
.experience-badge-large {
  display: none !important;
  /* Hide old one */
}


/* Success Icon Animation */
.success-icon-container {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-svg {
  width: 100%;
  height: 100%;
}

.success-circle {
  stroke-dasharray: 283;
  /* 2 * PI * 45 */
  stroke-dashoffset: 283;
  animation: circleDraw 1.5s ease-out forwards;
}

.success-check {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: checkDraw 1s cubic-bezier(0.65, 0, 0.45, 1) forwards 0.8s;
  /* Delay after circle starts */
}

@keyframes circleDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes checkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.experience-badge-large::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 82px;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  z-index: -1;
  animation: borderRotate 4s linear infinite;
  background-size: 200% 200%;
}

/* Original Eye Styling for Hero */
.hero-eye-icon {
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 15px rgba(56, 178, 172, 0.4));
}

.eye-svg-hero {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Eye Animations */
/* Eye Animations - Smooth Blink */
.eyelid-anim {
  animation: smoothBlink 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes smoothBlink {

  0%,
  45%,
  55%,
  100% {
    ry: 45px;
    /* Open */
  }

  48%,
  52% {
    ry: 1px;
    /* Closed */
  }
}

/* Also animate pupil/iris slightly for life */
.eye-iris-svg,
.eye-pupil-svg {
  animation: subtleGaze 8s ease-in-out infinite;
  transform-origin: 100px 50px;
}

@keyframes subtleGaze {

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

  25% {
    transform: translate(-2px, 1px);
  }

  50% {
    transform: translate(0, 0);
  }

  75% {
    transform: translate(2px, -1px);
  }
}

.surgery-text-container {
  position: relative;
  overflow: hidden;
}

.surgery-counter-static {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #fff, #b2f5ea, #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shineText 5s linear infinite;
  display: inline-block;
  /* Ensure width is calculated correctly */
}

@keyframes shineText {
  to {
    background-position: 200% center;
  }
}


/* Experience Badge Glow */
.experience-badge-large {
  /* existing styles... */
  position: relative;
}

.experience-badge-large::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 82px;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  z-index: -1;
  animation: borderRotate 4s linear infinite;
  background-size: 200% 200%;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-100 {
  transition-delay: 0.1s;
}

.reveal.delay-200 {
  transition-delay: 0.2s;
}

.surgery-counter-static {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(56, 178, 172, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(56, 178, 172, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-full {
  width: 100%;
}

/* Section Styles */
section {
  padding: 60px 0;
}

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

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  background: var(--bg-alt);
}

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

.about-image-wrapper {
  position: relative;
  max-width: 220px;
  margin: 0 auto;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Clip flash effect inside the image */
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.about-image-wrapper:hover::before {
  opacity: 0.5;
}

.about-image-wrapper img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background-color: #fff;
  /* Blend any remaining edges cleanly */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block;
}

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

/* Flash effect that goes from bottom to top */
.about-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(to top,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 100%);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

.about-image-wrapper:hover::after {
  animation: flashSweep 0.7s ease-out forwards;
}

@keyframes flashSweep {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.about-stats {
  display: none;
}

.stat {
  background: #fff;
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

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

.about-content {
  padding-top: 20px;
}

.about-content h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-content .lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 16px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 24px;
}

/* About Layout with Sidebar */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  align-items: start;
}

.about-main {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.education-sidebar {
  background: var(--bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-right: 3px solid var(--accent);
}

.education-sidebar h4 {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.edu-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.85rem;
}

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

.edu-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.edu-item strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

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

.education-box {
  display: none;
}

.education-section {
  display: none;
}

/* Services Section */
.services {
  background: #fff;
}

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

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(56, 178, 172, 0.1), transparent);
  border-radius: 0 0 0 100%;
}

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

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Expertise Section */
.expertise {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.expertise-content h2 {
  color: #fff;
  margin-bottom: 32px;
}

.expertise-content h3,
.conditions-content h3 {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-right: 32px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--accent-light);
  font-weight: 700;
}

.conditions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.condition-tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.condition-tag:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Contact Section */
.contact {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateX(-5px);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-card strong {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-card p {
  color: var(--text-light);
  margin: 0;
}

.contact-form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form-wrapper h3 {
  color: var(--primary);
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  direction: rtl;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

/* Footer */
.footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-content {
  text-align: center;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-content>p {
  opacity: 0.7;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Education Pyramid Section */
.education-pyramid {
  padding: 80px 0;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
}

.pyramid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.pyramid-row {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.pyramid-card {
  background: linear-gradient(135deg, #fff 0%, #f0fdfa 100%);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 220px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.pyramid-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pyramid-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 60px rgba(56, 178, 172, 0.25);
  border-color: var(--accent);
}

.pyramid-card:hover::before {
  opacity: 0.05;
}

.pyramid-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.pyramid-card strong {
  display: block;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.pyramid-card span {
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.education-section {
  display: none;
}

.timeline-item {
  display: none;
}

.timeline-content p {
  color: var(--text-light);
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {

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

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

  .education-sidebar {
    order: -1;
  }

  .about-grid,
  .expertise-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-stats {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

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

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

  .contact-form-wrapper {
    padding: 30px 24px;
  }

  section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

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

  .about-stats {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

/* ============================================
   📱 FULL MOBILE / SMARTPHONE RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {

  /* --- Navbar --- */
  .navbar {
    padding: 12px 0;
  }

  .nav-container {
    padding: 0 16px;
    gap: 0;
    justify-content: space-between;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .logo-icon {
    font-size: 1.3rem;
  }

  /* Nav menu dropdown already handled above */
  .nav-menu {
    padding: 16px;
    gap: 12px;
  }

  .nav-menu a {
    font-size: 1.05rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    display: block;
    border: none;
  }

  /* --- Hero Section --- */
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .hero-eye-inline {
    width: 100px;
    height: 50px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .surgery-badge-center {
    flex-direction: column;
    padding: 14px 20px;
    gap: 10px;
    border-radius: 24px;
    margin: 24px auto;
  }

  .surgery-count-glimmer {
    font-size: 1.2rem;
  }

  .surgery-badge-text {
    align-items: center;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 14px 20px;
  }

  /* --- About Section --- */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .about-image-wrapper {
    max-width: 200px;
    margin: 0 auto;
  }

  .about-content h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .about-text {
    font-size: 0.95rem;
    line-height: 1.8;
  }

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

  .feature-item {
    font-size: 0.85rem;
    padding: 8px;
  }

  /* --- Services / Cards --- */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .service-card {
    padding: 24px;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  /* --- Expertise / Conditions --- */
  .expertise-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .conditions-grid {
    gap: 8px;
  }

  .condition-tag {
    font-size: 0.85rem;
    padding: 6px 14px;
  }

  .expertise-list li {
    font-size: 0.9rem;
  }

  /* --- Contact Section --- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-form-wrapper {
    padding: 20px 16px;
    border-radius: var(--radius);
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 1rem;
    padding: 14px;
  }

  .contact-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contact-card {
    padding: 16px 12px;
  }

  /* --- Sections general --- */
  section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 0.95rem;
    padding: 0 12px;
  }

  .container {
    padding: 0 16px;
  }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* --- A11y Widget --- */
  .a11y-widget {
    bottom: 12px;
    left: 12px;
  }

  .a11y-toggle {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  .a11y-menu {
    width: 260px;
    bottom: 60px;
  }

  /* --- Modals --- */
  .modal {
    padding: 24px 20px;
    width: calc(100% - 32px);
    max-height: 85vh;
    overflow-y: auto;
  }

  .modal h2 {
    font-size: 1.3rem;
  }

  .modal p,
  .modal li {
    font-size: 0.9rem;
  }

  /* --- Intro animation --- */
  .eye-svg {
    width: 140px;
    height: 70px;
  }

  .intro-text {
    font-size: 1.4rem;
  }
}

/* Surgery Graph */
.surgery-graph {
  display: none;
}

/* Elegant Eye Opening Animation */
.eye-intro {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0f2744 0%, #1a365d 50%, #0f2744 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOutIntro 0.8s ease 3s forwards;
}

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

.eye-elegant {
  margin-bottom: 30px;
}

.eye-svg {
  width: 200px;
  height: 100px;
}

.eye-outline-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawEye 1s ease 0.3s forwards;
}

.eyelid-top {
  animation: openEyelidTop 1.2s ease 0.8s forwards;
  transform-origin: center bottom;
}

.eyelid-bottom {
  animation: openEyelidBottom 1.2s ease 0.8s forwards;
  transform-origin: center top;
}

.eye-iris-svg {
  transform-origin: center;
  animation: irisAppear 0.6s ease 1.5s forwards;
  opacity: 0;
  transform: scale(0);
}

.eye-pupil-svg {
  transform-origin: center;
  animation: pupilAppear 0.4s ease 1.7s forwards, pupilLook 2s ease 2.2s infinite;
  opacity: 0;
}

.eye-reflection,
.eye-reflection-small {
  opacity: 0;
  animation: reflectionAppear 0.3s ease 2s forwards;
}

.eye-white {
  opacity: 0;
  animation: whiteAppear 0.3s ease 1s forwards;
}

.intro-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  animation: textAppear 0.8s ease 2s forwards;
  margin-bottom: 8px;
}

.intro-subtitle {
  font-size: 1.2rem;
  color: var(--accent-light);
  opacity: 0;
  animation: textAppear 0.8s ease 2.2s forwards;
}

@keyframes drawEye {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes openEyelidTop {
  to {
    transform: translateY(-60px);
  }
}

@keyframes openEyelidBottom {
  to {
    transform: translateY(60px);
  }
}

@keyframes whiteAppear {
  to {
    opacity: 1;
  }
}

@keyframes irisAppear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pupilAppear {
  to {
    opacity: 1;
  }
}

@keyframes pupilLook {

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

  25% {
    transform: translateX(-3px);
  }

  75% {
    transform: translateX(3px);
  }
}

@keyframes reflectionAppear {
  to {
    opacity: 1;
  }
}

@keyframes textAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutIntro {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.eye-animation {
  position: relative;
  width: 200px;
  height: 120px;
}

.eye-ball {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #fff 0%, #e8e8e8 100%);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(79, 209, 197, 0.5);
}

.eye-iris {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #38b2ac 0%, #1a365d 60%, #0f2744 100%);
  border-radius: 50%;
  animation: irisLook 2s ease-in-out;
}

.eye-pupil {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #000;
  border-radius: 50%;
  animation: pupilDilate 2s ease-in-out;
}

.eye-shine {
  position: absolute;
  top: 20px;
  left: 25px;
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

.eye-lid {
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  z-index: 10;
}

.eye-lid-top {
  top: 0;
  animation: openEyeTop 1.5s ease 0.5s forwards;
  transform-origin: top;
}

.eye-lid-bottom {
  bottom: 0;
  animation: openEyeBottom 1.5s ease 0.5s forwards;
  transform-origin: bottom;
}

@keyframes openEyeTop {
  0% {
    transform: scaleY(1);
  }

  100% {
    transform: scaleY(0);
  }
}

@keyframes openEyeBottom {
  0% {
    transform: scaleY(1);
  }

  100% {
    transform: scaleY(0);
  }
}

@keyframes irisLook {

  0%,
  60% {
    transform: translate(-50%, -50%);
  }

  70% {
    transform: translate(-40%, -50%);
  }

  80% {
    transform: translate(-60%, -50%);
  }

  100% {
    transform: translate(-50%, -50%);
  }
}

@keyframes pupilDilate {

  0%,
  50% {
    width: 12px;
    height: 12px;
  }

  70% {
    width: 25px;
    height: 25px;
  }

  100% {
    width: 20px;
    height: 20px;
  }
}

@keyframes fadeOutIntro {
  0% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Premium Surgery Counter */
.surgery-counter {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.08);
  padding: 20px 30px;
  border-radius: 16px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.counter-visual {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-icon-animated {
  width: 60px;
  height: 40px;
  position: relative;
  z-index: 2;
}

.eye-outline {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawEye 2s ease forwards 3s;
}

.eye-iris-anim {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards 4s;
}

.eye-pupil-anim {
  opacity: 0;
  transform-origin: center;
  animation: fadeIn 0.5s ease forwards 4.2s, pulse 2s ease-in-out infinite 4.5s;
}

@keyframes drawEye {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.counter-rings {
  position: absolute;
  inset: 0;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--accent-light);
  opacity: 0;
  animation: ringPulse 3s ease-in-out infinite;
}

.ring-1 {
  inset: 0;
  animation-delay: 3s;
}

.ring-2 {
  inset: -10px;
  animation-delay: 3.5s;
}

.ring-3 {
  inset: -20px;
  animation-delay: 4s;
}

@keyframes ringPulse {
  0% {
    opacity: 0.6;
    transform: scale(0.8);
  }

  50% {
    opacity: 0.2;
    transform: scale(1.1);
  }

  100% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

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

.counter-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(79, 209, 197, 0.5);
}

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

/* Clickable condition tags */
.condition-tag {
  cursor: pointer;
}

.conditions-subtitle {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 16px;
}

.section-tag.light {
  color: var(--accent-light);
  -webkit-text-fill-color: var(--accent-light);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg-alt);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--accent);
  color: #fff;
}

.modal h2 {
  color: var(--primary);
  margin-bottom: 24px;
  font-size: 1.6rem;
  padding-left: 50px;
}

.modal h3 {
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.modal p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.modal ul {
  list-style: disc;
  padding-right: 24px;
  margin-bottom: 16px;
}

.modal li {
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.7;
}

.modal li strong {
  color: var(--text);
}

.modal .alert {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 20px;
  color: #92400e;
}

.modal .alert-danger {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

/* Phone link style */
.contact-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}


/* Accessibility Widget Styles */
.a11y-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  /* Aligned to right for RTL/Hebrew context */
  z-index: 9999;
  font-family: inherit;
  direction: rtl;
}

.a11y-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0044cc;
  /* WCAG Accessible Blue */
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.a11y-toggle:hover,
.a11y-toggle:focus {
  transform: scale(1.1);
  outline: 3px solid #ffdd00;
}

.a11y-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(0);
}

.a11y-menu.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

.a11y-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.a11y-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.a11y-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.a11y-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.a11y-btn {
  background: #f0f2f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 5px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  color: #333;
}

.a11y-btn span {
  font-size: 1.2rem;
}

.a11y-btn:hover,
.a11y-btn:focus {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.a11y-btn.active {
  background: #0044cc;
  color: #fff;
  border-color: #003399;
}

.a11y-reset {
  grid-column: 1 / -1;
  background: #e53e3e;
  color: #fff;
  border: none;
}

.a11y-reset:hover {
  background: #c53030;
}

/* Accessibility Feature Classes */
html.a11y-large-text {
  font-size: 125%;
}

body.a11y-high-contrast {
  background-color: #000 !important;
  color: #ffdd00 !important;
}

body.a11y-high-contrast * {
  background-color: #000 !important;
  color: #ffdd00 !important;
  border-color: #ffdd00 !important;
  fill: #ffdd00 !important;
  stroke: #ffdd00 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

body.a11y-high-contrast img,
body.a11y-high-contrast svg:not(.a11y-widget svg) {
  filter: grayscale(100%) contrast(150%);
}

body.a11y-high-contrast .a11y-widget,
body.a11y-high-contrast .a11y-widget * {
  background-color: #fff !important;
  color: #000 !important;
  border-color: #ccc !important;
}

body.a11y-high-contrast .a11y-toggle {
  background-color: #000 !important;
  color: #ffdd00 !important;
  border: 2px solid #ffdd00 !important;
}

body.a11y-readable-font {
  font-family: Arial, Helvetica, sans-serif !important;
}

body.a11y-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.5px;
}

body.a11y-highlight-links a {
  text-decoration: underline !important;
  background-color: #ffdd00 !important;
  color: #000 !important;
  outline: 2px solid #000;
}

body.a11y-stop-animations *,
body.a11y-stop-animations *::before,
body.a11y-stop-animations *::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}