:root {
    --primary: #004690;
    --primary-dark: #003070;
    --primary-light: #005dbb;
    --primary-fixed: #d7e3ff;
    --secondary: #455f88;
    --tertiary: #735c00;
    --tertiary-fixed: #ffe088;
    --tertiary-container: #cca72f;
    --surface: #f7f9fb;
    --surface-container: #eceef0;
    --surface-container-low: #f2f4f6;
    --surface-container-lowest: #ffffff;
    --on-surface: #191c1e;
    --on-surface-variant: #424752;
    --outline: #727783;
    --outline-variant: #c2c6d4;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: var(--surface); color: var(--on-surface); overflow-x: hidden; }
  h1, h2, h3, h4, h5, .font-headline { font-family: 'Manrope', sans-serif; }
  .material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; font-family: 'Material Symbols Outlined'; vertical-align: middle; }

/* ══════════════════════════════════
   NAVBAR — Gandhi Eye Centre
   ══════════════════════════════════ */

.navbar-gec {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,70,144,0.09);
  box-shadow: 0 4px 24px rgba(0,70,144,0.08);
  padding: 4px 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  height: 68px; /* navbar height fixed */
}

/* ── Logo — bada dikhega, navbar same size ── */
.navbar-logo-img {
  height: 70px;        /* logo bada */
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  margin-top: 10px;     /* thoda neeche nikle — overflow se bada effect */
  margin-bottom: -10px;
  position: relative;
  z-index: 2;
}

.fallback-logo-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f0ff, #c5d8ff);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(0,70,144,0.15);
}

/* ── Top-Rated Badge ── */
.top-rated-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #fffbf0, #fff4d1);
  border: 1px solid rgba(204,167,47,0.35);
  border-radius: 10px;
  padding: 5px 10px 5px 8px;
  margin-left: 4px;
}
.top-rated-stars { display: flex; gap: 1px; }
.star-icon { font-size: 12px !important; color: #cca72f; }
.top-rated-text {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.65rem;
  color: #7a5c00;
  line-height: 1.25;
}
.top-rated-text span {
  font-weight: 500;
  font-size: 0.6rem;
  color: #a07d20;
}

/* ── Nav Links ── */
.nav-link-gec {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: #4a5568;
  padding: 0.44rem 0.8rem !important;
  border-radius: 10px;
  transition: all 0.22s ease;
  position: relative;
  white-space: nowrap;
}
.nav-link-gec:hover,
.nav-link-gec.active {
  color: #004690;
  background: rgba(0,70,144,0.07);
}

/* ══ SERVICES DROPDOWN ══ */
.dropdown-gec { position: relative; }
.dropdown-gec > .nav-link-gec {
  display: flex; align-items: center; gap: 5px; cursor: pointer;
}
.dropdown-gec > .nav-link-gec::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.dropdown-gec:hover > .nav-link-gec::after { transform: rotate(180deg); }

.dropdown-menu-gec {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1.5px solid rgba(0,70,144,0.12);
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(0,70,144,0.14), 0 4px 16px rgba(0,0,0,0.06);
  padding: 12px;
  min-width: 600px;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  z-index: 9999;
}
.dropdown-menu-gec::before {
  content: '';
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 12px;
  background: transparent;
}
.dropdown-gec:hover .dropdown-menu-gec {
  display: grid;
  animation: dropIn 0.2s ease forwards;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown-item-gec {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.18s ease;
  cursor: pointer;
}
.dropdown-item-gec:hover { background: rgba(0,70,144,0.06); }

.dropdown-item-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f0ff, #c5d8ff);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.dropdown-item-icon .material-symbols-outlined {
  font-size: 20px; color: #004690; transition: color 0.18s;
}
.dropdown-item-gec:hover .dropdown-item-icon {
  background: linear-gradient(135deg, #004690, #0060c7);
}
.dropdown-item-gec:hover .dropdown-item-icon .material-symbols-outlined { color: #ffffff; }

.dropdown-item-text { display: flex; flex-direction: column; gap: 2px; }
.dropdown-item-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 0.82rem; color: #002255; line-height: 1.2;
}
.dropdown-item-sub { font-size: 0.72rem; color: #5f7080; line-height: 1.3; }

/* ── Social Buttons ── */
.nav-social-btn {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,70,144,0.07);
  color: #004690;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(0,70,144,0.13);
  cursor: pointer;
}
.nav-social-btn:hover {
  background: #004690; color: #ffffff;
  transform: translateY(-1px); border-color: transparent;
}
.nav-social-btn svg { width: 13px; height: 13px; fill: currentColor; }

/* ── Toggler ── */
.navbar-toggler {
  border: 1.5px solid rgba(0,70,144,0.18);
  border-radius: 10px; padding: 5px 8px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0,70,144,0.15); }

/* ══ BUTTONS ══ */
.btn-3d-primary {
  background: linear-gradient(135deg, #005dbb 0%, #004690 60%, #003070 100%);
  color: #ffffff; border: none; border-radius: 12px;
  font-family: 'Manrope', sans-serif; font-weight: 800;
  padding: 9px 20px; font-size: 0.82rem;
  box-shadow: 0 4px 0 #002255, 0 8px 16px rgba(0,70,144,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.18s ease; position: relative; top: 0;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; white-space: nowrap;
}
.btn-3d-primary:hover {
  top: 2px;
  box-shadow: 0 2px 0 #002255, 0 5px 10px rgba(0,70,144,0.25);
  color: #ffffff;
}
.btn-3d-primary:active { top: 4px; box-shadow: 0 0 0 #002255; }

.btn-3d-primary-lg {
  background: linear-gradient(135deg, #005dbb 0%, #004690 60%, #003070 100%);
  color: #ffffff; border: none; border-radius: 14px;
  font-family: 'Manrope', sans-serif; font-weight: 800;
  padding: 14px 32px; font-size: 1rem;
  box-shadow: 0 6px 0 #002255, 0 10px 20px rgba(0,70,144,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.18s ease; position: relative; top: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-3d-primary-lg:hover {
  top: 3px;
  box-shadow: 0 3px 0 #002255, 0 6px 12px rgba(0,70,144,0.3);
  color: #ffffff;
}

.btn-3d-gold {
  background: linear-gradient(135deg, #ffe088 0%, #cca72f 100%);
  color: #241a00; border: none; border-radius: 16px;
  font-family: 'Manrope', sans-serif; font-weight: 800;
  padding: 16px 36px; font-size: 1.05rem;
  box-shadow: 0 6px 0 #9a7800, 0 12px 24px rgba(204,167,47,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: all 0.18s ease; position: relative; top: 0; cursor: pointer;
}
.btn-3d-gold:hover {
  top: 3px;
  box-shadow: 0 3px 0 #9a7800, 0 8px 16px rgba(204,167,47,0.3);
  color: #241a00;
}

.btn-3d-ghost {
  background: rgba(255,255,255,0.92); color: #4a5568;
  border: none; border-radius: 14px;
  font-family: 'Manrope', sans-serif; font-weight: 700;
  padding: 14px 28px; font-size: 1rem;
  box-shadow: 0 5px 0 rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.08), inset 0 1px 0 #ffffff;
  transition: all 0.18s ease; position: relative; top: 0; cursor: pointer;
}
.btn-3d-ghost:hover {
  top: 2px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.08), 0 5px 10px rgba(0,0,0,0.06);
  color: #004690;
}

  /* ── HERO ── */
  .hero-section {
    min-height: 92vh;
    background: radial-gradient(ellipse at 85% 0%, rgba(0,93,187,0.13) 0%, transparent 58%), radial-gradient(ellipse at 0% 85%, rgba(255,224,136,0.11) 0%, transparent 52%), var(--surface);
    display: flex; align-items: center;
    padding: 100px 0 80px; overflow: hidden; position: relative;
  }
  .hero-badge {
    background: linear-gradient(135deg, var(--primary-fixed), #c0d4ff); color: var(--primary);
    font-weight: 700; font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 6px 16px; border-radius: 99px; display: inline-block; margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,70,144,0.18);
  }
  .hero-h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 900; line-height: 1.06; letter-spacing: -1.5px; color: var(--on-surface); }
  .hero-h1 span { color: var(--primary-light); }
  .hero-carousel-wrap {
    border-radius: 28px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,70,144,0.22), 0 8px 24px rgba(0,0,0,0.12);
    position: relative;
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.5s ease;
  }
  .hero-carousel-wrap:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
  .hero-carousel-wrap .carousel-item img { width: 100%; height: 500px; object-fit: cover; display: block; }
  .hero-carousel-wrap .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.6); border: none; margin: 0 3px; }
  .hero-carousel-wrap .carousel-indicators .active { background: white; width: 24px; border-radius: 4px; }
  .hero-carousel-wrap .carousel-control-prev,
  .hero-carousel-wrap .carousel-control-next { width: 44px; height: 44px; background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); border-radius: 50%; top: 50%; transform: translateY(-50%); bottom: auto; opacity: 1; }
  .hero-carousel-wrap .carousel-control-prev { left: 16px; }
  .hero-carousel-wrap .carousel-control-next { right: 16px; }
  .hero-card-float {
    position: absolute; bottom: 28px; left: 28px; right: 28px;
    background: rgba(255,255,255,0.93); backdrop-filter: blur(14px); border-radius: 18px;
    padding: 16px 20px; border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 14px; z-index: 10;
  }
  .hero-card-icon { background: rgba(0,70,144,0.1); width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .avatar-stack { display: flex; }
  .avatar-stack img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--surface); margin-left: -12px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
  .avatar-stack img:first-child { margin-left: 0; }

  /* ── SECTIONS ── */
  .section-badge { display: inline-block; background: var(--primary-fixed); color: var(--primary); font-weight: 700; font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 14px; border-radius: 99px; margin-bottom: 14px; }
  .bg-alt { background: linear-gradient(180deg, var(--surface-container-low) 0%, #edf0f5 100%); }

  /* ── SERVICES ── */
  .service-card { background: white; border-radius: 22px; padding: 28px; border: 1.5px solid transparent; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.3s cubic-bezier(.22,.68,0,1.2); position: relative; overflow: hidden; cursor: pointer; height: 100%; }
  .service-card:hover { transform: translateY(-7px) scale(1.015); box-shadow: 0 20px 50px rgba(0,70,144,0.14), 0 0 0 2px var(--primary-fixed); border-color: rgba(0,70,144,0.15); }
  .service-icon-wrap { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--primary-fixed), #c5d8ff); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: 0 4px 12px rgba(0,70,144,0.18); transition: transform 0.3s; }
  .service-card:hover .service-icon-wrap { transform: scale(1.12) rotate(-4deg); }
  .service-cta-card { background: linear-gradient(145deg, #005dbb 0%, #004690 50%, #003070 100%); border-radius: 22px; padding: 28px; color: white; box-shadow: 0 20px 50px rgba(0,70,144,0.35); position: relative; overflow: hidden; height: 100%; }

  /* ── EXPERIENCE / TIMELINE ── */
  .exp-timeline { position: relative; }
  .exp-timeline::before { content: ''; position: absolute; left: 28px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--primary-fixed), var(--primary), var(--primary-fixed)); }
  .exp-item { display: flex; gap: 24px; margin-bottom: 32px; position: relative; }
  .exp-dot { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-fixed), #c5d8ff); border: 3px solid white; box-shadow: 0 4px 16px rgba(0,70,144,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; }
  .exp-content { background: white; border-radius: 18px; padding: 20px 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid var(--outline-variant); flex: 1; transition: all 0.3s; }
  .exp-content:hover { transform: translateX(6px); box-shadow: 0 8px 30px rgba(0,70,144,0.12); }

  /* ── GALLERY ── */
  .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 16px; }
  .gallery-item { border-radius: 18px; overflow: hidden; position: relative; cursor: pointer; }
  .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
  .gallery-item:hover img { transform: scale(1.06); }
  .gallery-item-large { grid-column: span 2; }
  .gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,48,112,0.8) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; padding: 16px; }
  .gallery-item:hover .gallery-overlay { opacity: 1; }

  /* ── ACHIEVEMENTS ── */
  .achievement-card { background: white; border-radius: 22px; padding: 28px 24px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid var(--outline-variant); transition: all 0.3s; position: relative; overflow: hidden; }
  .achievement-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
  .achievement-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,70,144,0.14); }
  .achievement-num { font-family: 'Manrope', sans-serif; font-weight: 900; font-size: 2.8rem; color: var(--primary); line-height: 1; }
  .achievement-icon { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--primary-fixed), #c5d8ff); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 4px 12px rgba(0,70,144,0.18); }

  /* ── ABOUT ── */
  .about-img-wrap { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.18); transform: perspective(1000px) rotateY(3deg); transition: transform 0.4s ease; }
  .about-img-wrap:hover { transform: perspective(1000px) rotateY(0deg); }
  .about-img-wrap img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
  .experience-badge { position: absolute; bottom: -20px; right: -20px; background: linear-gradient(135deg, #ffe088, #cca72f); padding: 22px 24px; border-radius: 20px; z-index: 20; box-shadow: 0 8px 0 #9a7800, 0 16px 30px rgba(204,167,47,0.3); text-align: center; }
  .stat-box { background: white; border-radius: 18px; padding: 20px 22px; box-shadow: 0 4px 20px rgba(0,0,0,0.07); border: 1px solid var(--outline-variant); transition: all 0.25s; }
  .stat-box:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,70,144,0.12); }

  /* ── TESTIMONIALS ── */
  .testimonials-section { overflow: hidden; }
  .testimonial-carousel-3d { position: relative; height: 360px; perspective: 1200px; display: flex; align-items: center; justify-content: center; margin: 0 auto; max-width: 1100px; }
  .tc-card { position: absolute; width: 360px; background: white; border-radius: 24px; padding: 30px; box-shadow: 0 8px 30px rgba(0,0,0,0.07); border: 1px solid var(--outline-variant); transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; overflow: hidden; user-select: none; }
  .tc-card .quote-icon { position: absolute; top: -20px; right: -10px; font-size: 8rem; color: rgba(0,70,144,0.06); font-family: 'Manrope', sans-serif; font-weight: 900; line-height: 1; pointer-events: none; }
  .tc-card .star-row .material-symbols-outlined { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; color: var(--tertiary-container); font-size: 1rem; }
  .tc-card[data-pos="0"] { transform: translateX(0) scale(1) translateZ(0px); z-index: 10; opacity: 1; box-shadow: 0 20px 60px rgba(0,70,144,0.18), 0 0 0 2px var(--primary-fixed); }
  .tc-card[data-pos="1"] { transform: translateX(310px) scale(0.88) translateZ(-80px); z-index: 7; opacity: 0.65; filter: brightness(0.92); }
  .tc-card[data-pos="-1"] { transform: translateX(-310px) scale(0.88) translateZ(-80px); z-index: 7; opacity: 0.65; filter: brightness(0.92); }
  .tc-card[data-pos="2"] { transform: translateX(560px) scale(0.76) translateZ(-150px); z-index: 4; opacity: 0.3; filter: brightness(0.85); }
  .tc-card[data-pos="-2"] { transform: translateX(-560px) scale(0.76) translateZ(-150px); z-index: 4; opacity: 0.3; filter: brightness(0.85); }
  .tc-card[data-pos="3"], .tc-card[data-pos="-3"], .tc-card[data-pos="4"], .tc-card[data-pos="-4"], .tc-card[data-pos="5"], .tc-card[data-pos="-5"] { transform: translateX(0) scale(0.6) translateZ(-200px); opacity: 0; pointer-events: none; }
  .tc-nav-btn { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--outline-variant); background: white; display: flex; align-items: center; justify-content: center; color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,0.08); cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
  .tc-nav-btn:hover { background: var(--primary); color: white; border-color: var(--primary); transform: scale(1.05); }

  /* ══════════════════════════════════
   SOCIAL EMBED — Instagram + YouTube 3D Coverflow
   (scoped classes, koi global class redefine nahi ki)
   ══════════════════════════════════ */

.embed-block-label{display:flex;align-items:center;gap:10px;justify-content:center;margin:56px 0 28px;}
.embed-block-label .ico{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0;}
.embed-block-label.ig .ico{background:linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);}
.embed-block-label.yt .ico{background:#ff0000;}
.embed-block-label h3{font-size:1.15rem;font-weight:800;color:var(--on-surface);}

/* ══ GENERIC 3D COVERFLOW ══ */
.coverflow-wrap{position:relative;perspective:1400px;height:560px;display:flex;align-items:center;justify-content:center;margin:0 auto;max-width:1100px;}
.cf-card{position:absolute;width:326px;height:460px;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.1);border:1px solid var(--outline-variant);transition:transform .55s cubic-bezier(.4,0,.2,1),opacity .55s ease,filter .55s ease;cursor:pointer;}
.cf-card[data-pos="0"]{transform:translateX(0) scale(1) translateZ(0);z-index:10;opacity:1;box-shadow:0 24px 60px rgba(0,70,144,.22),0 0 0 2px var(--primary-fixed);cursor:default;}
.cf-card[data-pos="1"]{transform:translateX(230px) scale(.82) translateZ(-90px);z-index:7;opacity:.6;filter:brightness(.9);}
.cf-card[data-pos="-1"]{transform:translateX(-230px) scale(.82) translateZ(-90px);z-index:7;opacity:.6;filter:brightness(.9);}
.cf-card[data-pos="2"]{transform:translateX(410px) scale(.68) translateZ(-160px);z-index:4;opacity:.28;filter:brightness(.85);}
.cf-card[data-pos="-2"]{transform:translateX(-410px) scale(.68) translateZ(-160px);z-index:4;opacity:.28;filter:brightness(.85);}
.cf-card[data-pos="far"]{transform:translateX(0) scale(.6) translateZ(-220px);opacity:0;pointer-events:none;}

.cf-nav{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:26px;}
.cf-nav-btn{width:46px;height:46px;border-radius:50%;border:1.5px solid var(--outline-variant);background:#fff;display:flex;align-items:center;justify-content:center;color:var(--primary);box-shadow:0 4px 14px rgba(0,0,0,.08);cursor:pointer;transition:all .2s;flex-shrink:0;}
.cf-nav-btn:hover{background:var(--primary);color:#fff;border-color:var(--primary);transform:scale(1.06);}
.cf-dots{display:flex;gap:6px;align-items:center;}
.cf-dot{width:8px;height:8px;border-radius:50%;background:rgba(0,70,144,.2);transition:all .3s;cursor:pointer;}
.cf-dot.active{background:var(--primary);width:20px;border-radius:4px;}

/* ══ INSTAGRAM CARD INNER ══ */
.ig-card-inner{width:100%;height:100%;overflow:hidden;position:relative;background:#fff;}
.ig-card-inner iframe{border:none !important;}
.ig-scroll-mask{position:absolute;inset:0;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;}
.ig-scroll-mask::-webkit-scrollbar{display:none;}
.ig-view-link{position:absolute;bottom:10px;left:10px;right:10px;background:rgba(0,0,0,.75);backdrop-filter:blur(6px);color:#fff;font-size:.72rem;font-weight:700;text-align:center;padding:8px;border-radius:10px;text-decoration:none;opacity:0;transition:opacity .25s;z-index:5;}
.cf-card:hover .ig-view-link{opacity:1;}
.ig-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:var(--on-surface-variant);font-size:.8rem;}
.ig-spinner{width:26px;height:26px;border:3px solid var(--outline-variant);border-top-color:var(--primary);border-radius:50%;animation:embedSpin .8s linear infinite;}
@keyframes embedSpin{to{transform:rotate(360deg);}}

/* ══ YOUTUBE CARD INNER ══ */
.yt-card-inner{width:100%;height:100%;position:relative;background:#000;}
.yt-thumb{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s;}
.cf-card[data-pos="0"]:hover .yt-thumb{transform:scale(1.05);}
.yt-play-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(to top,rgba(0,0,0,.55) 0%,rgba(0,0,0,.05) 45%,rgba(0,0,0,.35) 100%);}
.yt-play-btn{width:64px;height:64px;border-radius:50%;background:#ff0000;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(255,0,0,.45),0 4px 0 #a00000;transition:transform .2s;}
.cf-card[data-pos="0"]:hover .yt-play-btn{transform:scale(1.08);}
.yt-title-tag{position:absolute;bottom:0;left:0;right:0;padding:16px 14px 12px;color:#fff;font-size:.82rem;font-weight:700;line-height:1.35;background:linear-gradient(to top,rgba(0,0,0,.75),transparent);}
.yt-card-inner iframe{width:100%;height:100%;border:none;display:block;}

/* ── Purani insta/yt classes (.insta-carousel, .insta-slide, .embed-card,
   .embed-header, .yt-embed-wrap, .yt-embed-placeholder, .yt-play-btn ka
   OLD wala) — ab HTML mein use nahi ho rahi, chaho to file se delete kar
   sakte ho, warna yahin pade rehne se koi nuksan nahi. ── */

  /* ── CTA SECTION ── */
  .cta-section { background: linear-gradient(145deg, #004690 0%, #005dbb 40%, #003da0 100%); border-radius: 32px; position: relative; overflow: hidden; box-shadow: 0 30px 80px rgba(0,70,144,0.35); }
  .cta-section::before { content: ''; position: absolute; top: -100px; right: -80px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%); border-radius: 50%; }

  /* ── FOOTER ── */
  .footer-gec { background: #f0f3f7; border-top: 1px solid var(--outline-variant); }
  .footer-link { color: var(--on-surface-variant); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
  .footer-link:hover { color: var(--primary); }
  .footer-social { width: 38px; height: 38px; border-radius: 10px; background: white; border: 1px solid var(--outline-variant); display: flex; align-items: center; justify-content: center; color: var(--primary); transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-decoration: none; }
  .footer-social:hover { background: var(--primary); color: white; transform: translateY(-2px); }
  .emergency-tag { background: linear-gradient(135deg, var(--primary-fixed), #c5d4ff); border-radius: 14px; padding: 14px 16px; border-left: 3px solid var(--primary); box-shadow: 0 2px 10px rgba(0,70,144,0.1); }

  /* ── SCROLL REVEAL ── */
  .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal-left.visible { opacity: 1; transform: translateX(0); }
  .reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal-right.visible { opacity: 1; transform: translateX(0); }
/* INDEX .HTML CSS END */

/* ══════════════════════════════════════════════════════════
   GANDHI EYE CENTRE — RESPONSIVE SYSTEM (single source of truth)
   Loaded after the base styles above. Covers every breakpoint
   from small phones to large desktop / TV screens, and fixes:
   - navbar overlap/clipping on laptop widths (992–1199px)
   - horizontal overflow on all screens
   - dropdown menu spilling off-screen
   - carousels (testimonials / instagram / youtube) at every size
   ══════════════════════════════════════════════════════════ */

/* ---------- Base fluid safety (applies everywhere) ---------- */
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
img, iframe, video, svg { max-width: 100%; }
.container-xl { padding-left: 16px; padding-right: 16px; width: 100%; }
.testimonial-carousel-3d,
.coverflow-wrap { overflow: hidden; } /* clip off-screen carousel cards on every screen size */
.navbar-nav,
.ms-auto.d-flex.align-items-center,
.nav-link-gec { min-width: 0; } /* let flex nav items shrink instead of forcing overflow */

/* ══════════════════════════════════
   LARGE DESKTOP / TV — min-width: 1600px
   Keep content comfortably centered, nothing stretches oddly
   ══════════════════════════════════ */
@media (min-width: 1600px) {
  .container-xl { max-width: 1360px; }
  .hero-carousel-wrap .carousel-item img { height: 560px; }
}

/* ══════════════════════════════════
   LAPTOP SQUEEZE FIX — 992px to 1199px
   (Navbar has logo + nav links + socials + phone + button all in
   one row here; this is the range that used to overlap/clip.)
   ══════════════════════════════════ */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-gec { height: 62px; }
  .navbar-logo-img { height: 54px; margin-top: 4px; margin-bottom: -2px; }
  .nav-link-gec { padding: 0.4rem 0.55rem !important; font-size: 0.78rem; }
  .nav-social-btn { width: 28px; height: 28px; }
  .nav-social-btn svg { width: 12px; height: 12px; }
  .btn-3d-primary { padding: 8px 14px; font-size: 0.76rem; }
  .dropdown-menu-gec { min-width: 0; width: min(560px, 92vw); }
}

/* Dropdown must never exceed the viewport width, at any desktop size */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .dropdown-menu-gec { width: min(600px, 92vw); }
}

/* ══════════════════════════════════
   TABLET — max-width: 991px
   ══════════════════════════════════ */
@media (max-width: 991px) {

  /* Navbar */
  .navbar-gec { height: auto; padding: 8px 0; }
  .navbar-logo-img { height: 84px; margin-top: 4px; margin-bottom: -4px; }
  .top-rated-badge { display: none !important; }
  .navbar-collapse {
    background: #ffffff;
    border-radius: 16px;
    margin-top: 10px;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(0,70,144,0.12);
    max-height: 75vh;
    overflow-y: auto;
    max-width: 100%;
  }
  .navbar-nav { width: 100%; }
  .nav-link-gec { padding: 12px 10px !important; white-space: normal; }

  /* Services dropdown becomes an accordion-style block on tap */
  .dropdown-menu-gec {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--outline-variant);
    margin-top: 6px;
  }
  .dropdown-gec.open .dropdown-menu-gec,
  .dropdown-gec:hover .dropdown-menu-gec { display: grid; animation: none; }
  .dropdown-gec > .nav-link-gec::after { margin-left: auto; }

  .ms-auto.d-flex.align-items-center { flex-wrap: wrap; justify-content: flex-start; row-gap: 8px; }

  /* Hero */
  .hero-section { min-height: auto; padding: 130px 0 50px; text-align: center; overflow: hidden; }
  .hero-h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .hero-badge { font-size: 0.62rem; }
  .d-flex.align-items-center.gap-4 { justify-content: center; }
  .hero-carousel-wrap { transform: none; margin-top: 32px; }
  .hero-carousel-wrap .carousel-item img { height: 320px; }
  .hero-card-float { left: 14px; right: 14px; bottom: 16px; padding: 12px 14px; }

  /* About */
  .experience-badge { bottom: -14px; right: -10px; padding: 14px 16px; }
  .about-img-wrap { transform: none; margin-bottom: 16px; }

  /* Gallery */
  .gallery-item-large { grid-column: span 3; height: 240px !important; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials 3D carousel → single centered card */
  .testimonial-carousel-3d { height: auto; min-height: 360px; }
  .tc-card {
    position: relative !important;
    width: 90vw;
    max-width: 420px;
    margin: 0 auto;
    transform: none !important;
  }
  .tc-card:not([data-pos="0"]) { display: none !important; }

  /* Instagram / YouTube coverflow — single full-width card (avoids Instagram's
     embed breaking when squeezed into a narrow 3D-coverflow card) */
  .coverflow-wrap { height: auto; min-height: 480px; padding: 10px 0; }
  .cf-card {
    position: relative !important;
    width: min(92vw, 380px);
    height: 500px;
    margin: 0 auto;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
  }
  .cf-card:not([data-pos="0"]) { display: none !important; }

  /* Map section */
  section iframe[title="Gandhi Eye Centre Location Faridabad"] { height: 380px; }
  section[style*="var(--surface)"] div[style*="position:absolute;top:24px;left:24px"] {
    position: static !important;
    margin: 12px;
    min-width: 0 !important;
    width: calc(100% - 24px);
  }
  section[style*="var(--surface)"] div[style*="position:absolute;top:24px;right:24px"] {
    position: static !important;
    margin: 0 12px 12px;
  }
}

/* ══════════════════════════════════
   MOBILE — max-width: 575px
   ══════════════════════════════════ */
@media (max-width: 575px) {

  .navbar-logo-img { height: 64px; }
  .btn-3d-primary { padding: 8px 14px; font-size: 0.75rem; }
  .nav-social-btn { width: 30px; height: 30px; }

  .hero-section { padding: 118px 0 40px; }
  .hero-h1 { letter-spacing: -0.5px; }
  .avatar-stack img { width: 34px; height: 34px; }
  .hero-carousel-wrap .carousel-item img { height: 240px; }

  .service-card, .service-cta-card { padding: 20px; }
  .achievement-num { font-size: 2.1rem; }
  .achievement-card { padding: 20px 14px; }

  .gallery-item-large,
  .gallery-item { grid-column: span 3 !important; height: 200px !important; }
  .gallery-grid { grid-template-columns: 1fr; }

  .tc-card { padding: 22px; width: 92vw; }
  .tc-card p { font-size: 0.85rem; }

  .coverflow-wrap { min-height: 440px; }
  .cf-card { width: min(94vw, 340px); height: 460px; }

  /* Booking form */
  #book-consultation .row.g-3 [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #f_name, #f_phone, #f_email, #f_age, #f_date, #f_time, #f_msg {
    font-size: 0.85rem !important;
  }
  div[style*="background:white;border-radius:28px;padding:40px"] { padding: 22px !important; }

  /* Map */
  section iframe[title="Gandhi Eye Centre Location Faridabad"] { height: 300px; }
  div[style*="min-width:280px"] { min-width: 0 !important; }

  /* Footer */
  .footer-gec .col-md-4 { text-align: left; }
}

/* ══════════════════════════════════
   EXTRA SMALL — max-width: 380px
   ══════════════════════════════════ */
@media (max-width: 380px) {
  .hero-h1 { font-size: 1.9rem; }
  .achievement-num { font-size: 1.8rem; }
  .tc-card { padding: 18px; }
  .navbar-logo-img { height: 52px; }
}