/* ================================================================
   Dr. Pratiksha Khatua — Custom CSS
   (Supplements Tailwind CDN v3 for project-specific styles)
   ================================================================ */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
}

/* ===== CONTAINER ===== */
.container-main {
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  max-width: 1500px;
}

/* ===== SCROLLBAR HIDE ===== */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ===== HERO HEADER BACKGROUND ===== */
.hero-header-bg {
  background-color: #1267d1;
  background-image: url("../images/bg.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100svh;
  background: #1267d1;
}

.hero-header {
  position: relative;
  z-index: 20;
  width: 100%;
}

.hero-topbar {
  display: none;
  height: 36px;
  color: rgba(255, 255, 255, 0.95);
}

.hero-topbar-links {
  display: flex;
  align-items: center;
  height: 36px;
  gap: 20px;
}

.hero-topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}

.hero-topbar-links i {
  color: #c7e0ff;
  font-size: 14px;
}

.hero-topbar-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.25);
}

.hero-navbar-wrap {
  padding-top: 10px;
}

.hero-navbar {
  padding: 0 28px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 28, 57, 0.14);
}

.hero-navbar-row {
  position: relative;
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
}

.hero-brand {
  position: absolute;
  left: 0;
  color: #07152e;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.hero-nav-links {
  display: flex;
  align-items: center;
  gap: 39px;
  transform: translateX(118px);
}

.mobile-menu-btn {
  position: absolute;
  right: 0;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
  color: #0b1c39;
  font-size: 20px;
}

.hero-mobile-menu {
  padding: 10px 0 18px;
  border-top: 1px solid #e5e7eb;
}

.hero-mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-mobile-menu a {
  padding: 9px 10px;
  border-radius: 6px;
  color: #23314e;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hero-mobile-menu a:hover {
  background: #f4f6f9;
}

.hero-section {
  position: relative;
  z-index: 10;
  color: #fff;
}

.hero-grid {
  display: grid;
  height: calc(100vh - 106px);
  height: calc(100svh - 106px);
  grid-template-columns: minmax(0, 55%) minmax(0, 45%);
}

.hero-copy-column {
  display: flex;
  align-items: flex-start;
}

.hero-copy {
  width: 100%;
  padding-top: clamp(32px, 6vh, 58px);
}

.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(50px, 3.65vw, 70px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  white-space: nowrap;
}

.hero-title-line {
  position: relative;
  width: 145px;
  height: 3px;
  margin: 22px 0 25px 55px;
  overflow: hidden;
  border-radius: 99px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
}

.hero-title-line .shine-animate {
  position: absolute;
  inset-block: 0;
  width: 65px;
  border-radius: inherit;
  background: linear-gradient(
    to right,
    transparent,
    rgba(165, 234, 243, 0.95),
    transparent
  );
  filter: blur(2px);
}

.hero-credentials {
  margin: 0 0 26px;
  color: #c6defb;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(8, 38, 91, 0.14);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.hero-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(8, 38, 91, 0.22);
}

.hero-action i {
  font-size: 17px;
}

.hero-action-email {
  min-width: 220px;
  background: rgba(255, 255, 255, 0.97);
  color: #1037b9;
}

.hero-action-whatsapp {
  min-width: 268px;
  border-color: rgba(196, 239, 132, 0.7);
  background: linear-gradient(135deg, #a9dd62, #98ce50);
  color: #07152e;
}

.clinic-schedule-card {
  width: min(100%, 500px);
  margin-top: 64px;
  padding: 19px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.09),
    rgba(14, 83, 173, 0.18)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 34px rgba(8, 52, 119, 0.1);
  backdrop-filter: blur(10px);
}

.clinic-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clinic-schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.clinic-schedule-item + .clinic-schedule-item {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.clinic-schedule-icon {
  display: flex;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.clinic-schedule-icon i {
  color: #fff;
  font-size: 15px;
}

.clinic-schedule-content {
  min-width: 0;
  padding-top: 1px;
}

.clinic-schedule-place,
.clinic-schedule-days {
  margin: 0;
}

.clinic-schedule-place {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.clinic-schedule-days {
  margin-top: 3px;
  color: rgba(225, 239, 255, 0.86);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-line;
}

.hero-image-column {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 0;
}

.hero-image-wrap {
  position: absolute;
  right: 1.5%;
  bottom: 0;
  display: flex;
  height: min(650px, calc(100svh - 128px));
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-doctor-image {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.hero-social-rail {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 50;
  display: none;
  transform: translateY(-50%);
}

.hero-social-rail-inner {
  display: flex;
  width: 52px;
  min-height: 158px;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  border-radius: 14px 0 0 14px;
  background: #a3d65c;
  box-shadow: 0 8px 20px rgba(11, 28, 57, 0.12);
}

/* ===== NAV LINK HOVER UNDERLINE ===== */
.nav-link {
  position: relative;
  display: inline-block;
  color: #23314e;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: #0b1c39;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #0b1c39;
}

.nav-link:hover::after {
  width: 100%;
}
@media (min-width: 768px) {
  .hero-topbar,
  .hero-social-rail {
    display: block;
  }
}

@media (max-width: 1500px) {
  .hero-nav-links {
    gap: 28px;
    transform: translateX(75px);
  }

  .nav-link {
    font-size: 17px;
  }

  .hero-copy h1 {
    font-size: 54px;
  }

  .hero-credentials {
    font-size: 20px;
  }

  .hero-action {
    min-height: 48px;
    padding-inline: 21px;
    font-size: 15px;
  }

  .hero-action-email {
    min-width: 205px;
  }

  .hero-action-whatsapp {
    min-width: 250px;
  }

  .clinic-schedule-card {
    width: min(100%, 467px);
  }
}

@media (max-width: 1100px) {
  .hero-brand {
    font-size: 20px;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-action {
    min-width: 250px;
  }

  .hero-image-wrap {
    right: -8%;
    height: 570px;
  }
}

@media (min-width: 1024px) and (max-height: 800px) {
  .hero-copy {
    padding-top: 24px;
  }

  .hero-copy h1 {
    font-size: 50px;
  }

  .hero-title-line {
    margin-top: 16px;
    margin-bottom: 18px;
  }

  .hero-credentials {
    margin-bottom: 20px;
    font-size: 22px;
    line-height: 1.4;
  }

  .hero-action {
    min-height: 46px;
  }

  .clinic-schedule-card {
    margin-top: 48px;
    padding-top: 16px;
    padding-bottom: 17px;
  }

  .clinic-schedule-list {
    gap: 0;
  }

  .clinic-schedule-place {
    font-size: 16px;
  }

  .clinic-schedule-days {
    font-size: 14px;
    line-height: 1.45;
  }
}

@media (max-width: 1023px) {
  .hero-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-navbar-wrap {
    padding-top: 10px;
  }

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

  .hero-navbar-row {
    min-height: 62px;
    justify-content: flex-start;
  }

  .hero-brand {
    position: static;
  }

  .hero-grid {
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
    margin-inline: auto;
    padding-top: 48px;
    text-align: center;
  }

  .hero-copy h1 {
    white-space: normal;
  }

  .hero-title-line {
    margin-inline: auto;
  }

  .hero-actions {
    align-items: center;
    justify-content: center;
    flex-direction: row;
  }

  .clinic-schedule-card {
    margin-inline: auto;
    text-align: left;
  }

  .hero-image-column {
    min-height: 560px;
    justify-content: center;
  }

  .hero-image-wrap {
    right: auto;
    height: 540px;
  }
}

@media (max-width: 640px) {
  .container-main {
    width: calc(100% - 30px);
  }

  .hero-navbar {
    padding-inline: 15px;
    border-radius: 13px;
  }

  .hero-brand {
    font-size: 18px;
  }

  .hero-copy {
    padding-top: 38px;
  }

  .hero-copy h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
  }

  .hero-title-line {
    margin-block: 20px 24px;
  }

  .hero-credentials {
    margin-bottom: 24px;
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-action {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    font-size: 15px;
  }

  .clinic-schedule-card {
    width: 100%;
    margin-top: 48px;
    padding: 17px 15px 18px;
    border-radius: 15px;
  }

  .clinic-schedule-list {
    gap: 0;
  }

  .clinic-schedule-item {
    gap: 11px;
  }

  .clinic-schedule-item + .clinic-schedule-item {
    margin-top: 14px;
    padding-top: 14px;
  }

  .clinic-schedule-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .clinic-schedule-place {
    font-size: 15px;
  }

  .clinic-schedule-days {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-image-column {
    min-height: 430px;
  }

  .hero-image-wrap {
    height: 420px;
  }
}

/* ===== FOOTER QUICK LINKS ===== */
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #5f7696;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-link::before {
  content: "";
  display: inline-block;
  height: 2px;
  width: 0;
  background-color: #5f8fc4;
  transition: width 0.3s;
  flex-shrink: 0;
}
.footer-link:hover {
  color: #25588f;
}
.footer-link:hover::before {
  width: 20px;
}

/* ===== SHINE ANIMATION (Hero underline shimmer) ===== */
@keyframes shine {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(500%);
  }
}
.shine-animate {
  animation: shine 2.5s linear infinite;
}

/* ===== FADE IN UP (Intersection Observer driven) ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}
.fade-in-up.delay-100 {
  transition-delay: 0.1s;
}
.fade-in-up.delay-200 {
  transition-delay: 0.2s;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PROGRESS BARS ===== */
.progress-bar-fill {
  width: 0%;
  transition: width 0.9s ease-out;
}

/* ===== MARQUEE ANIMATIONS ===== */
@keyframes marqueeLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.video-card-marquee {
  animation: marqueeLeft 34s linear infinite;
}
.google-review-marquee {
  animation: marqueeLeft 42s linear infinite;
}

.video-card-marquee:hover,
.video-card-marquee:focus-within,
.google-review-marquee:hover,
.google-review-marquee:focus-within {
  animation-play-state: paused;
}

/* ===== GOOGLE REVIEW TEXT CLAMP ===== */
.google-review-card {
  display: flex;
  flex: 0 0 380px;
  width: 380px;
  height: 450px;
  padding: 32px;
  flex-direction: column;
  border: 1px solid #dfe4ea;
  border-radius: 16px;
  background: #eef1f4;
  box-shadow: 0 16px 45px rgba(31, 41, 55, 0.07);
}

.google-review-copy {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}
@media (max-width: 639px) {
  .google-review-card {
    flex-basis: min(380px, 82vw);
    width: min(380px, 82vw);
    padding: 32px;
  }

  .google-review-copy {
    -webkit-line-clamp: 10;
  }
}

/* ===== VIDEO CARD HOVER ===== */
.video-card {
  display: block;
}
.video-card-thumbnail {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}
.video-card:hover .video-card-thumbnail {
  transform: scale(1.03);
  opacity: 0;
}
.video-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.video-card:hover .video-card-video {
  opacity: 1;
}

/* ===== EXPERTISE ICON COLORS ===== */
.exp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: white;
  font-size: 0.8rem;
}
.exp-red {
  background-color: #d9534f;
}
.exp-purple {
  background-color: #6c63ff;
}
.exp-teal {
  background-color: #1aa6a6;
}
.exp-orange {
  background-color: #f0ad4e;
}
.exp-amber {
  background-color: #f39c12;
}
.exp-violet {
  background-color: #8e44ad;
}
.exp-crimson {
  background-color: #c0392b;
}
.pb-red {
  background-color: #d9534f;
}
.pb-purple {
  background-color: #6c63ff;
}
.pb-teal {
  background-color: #1aa6a6;
}
.pb-orange {
  background-color: #f0ad4e;
}
.pb-amber {
  background-color: #f39c12;
}
.pb-violet {
  background-color: #8e44ad;
}
.pb-crimson {
  background-color: #c0392b;
}

/* ===== SOCIAL ICON BUTTONS ===== */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #7ea9d8;
  background: rgba(255, 255, 255, 0.85);
  color: #5f8fc4;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.2rem;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55);
}
.social-btn:hover {
  background: #5f8fc4;
  color: white;
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 15px 35px rgba(95, 143, 196, 0.28);
}
@media (min-width: 640px) {
  .social-btn {
    width: 3rem;
    height: 3rem;
  }
}

/* ===== APPOINTMENT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 35, 61, 0.55);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 1rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 48rem;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.25s ease-out,
    opacity 0.25s;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ===== FORM INPUTS ===== */
.form-input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #d7e3ef;
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem 1rem 1rem 3rem;
  font-size: 15px;
  color: #29496f;
  outline: none;
  transition:
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}
.form-input::placeholder {
  color: #7c8fa7;
}
.form-input:focus {
  border-color: #4c82c0;
  background: white;
  box-shadow: 0 0 0 4px rgba(76, 130, 192, 0.12);
}
.form-input.error {
  border-color: #fca5a5;
  background: rgba(254, 242, 242, 0.7);
}
.form-input.error:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}
.form-input-icon-wrap {
  position: relative;
  display: block;
}
.form-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7b90a6;
  pointer-events: none;
  transition: color 0.3s;
  z-index: 1;
  font-size: 14px;
}
.form-input-icon-wrap:focus-within .form-input-icon {
  color: #28598e;
}
.form-textarea-icon {
  top: 1.25rem;
  transform: none;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #cad9ea;
  background: linear-gradient(to right, #dfe8f2, #d5e1ee, #dde8f2);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #245f9e;
  box-shadow: 0 18px 30px rgba(77, 121, 170, 0.14);
  transition: all 0.3s;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.submit-btn:hover {
  border-color: #b9cfe6;
  box-shadow: 0 22px 40px rgba(77, 121, 170, 0.18);
  transform: translateY(-2px);
}
.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.submit-btn .shine-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5rem;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(1rem);
  transition: transform 0.5s;
}
.submit-btn:hover .shine-layer {
  transform: translateX(520%);
}

/* ===== FORM MESSAGES ===== */
.form-error-msg {
  display: none;
  margin-top: 0.5rem;
  align-items: center;
  gap: 0.375rem;
  font-size: 13px;
  color: #ef4444;
}
.form-error-msg.show {
  display: flex;
}

.form-success,
.form-api-error {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.form-success {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}
.form-api-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
}
.form-success.show,
.form-api-error.show {
  display: flex;
}

/* ===== ABOUT SECTION BG OVERLAYS ===== */
.about-left-gradient {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 28%;
  display: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.35), transparent);
}
@media (min-width: 768px) {
  .about-left-gradient {
    display: block;
  }
}

/* ===== SIDEBAR SOCIALS ===== */
.sidebar-socials-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.3rem;
  color: #0b1c39;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 13px;
}
@media (min-width: 640px) {
  .sidebar-socials-btn {
    padding: 0.4rem;
    font-size: 14px;
  }
}
.sidebar-socials-btn:hover {
  transform: scale(1.25);
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 1023px) {
  .desktop-nav {
    display: none !important;
  }
}
@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none !important;
  }
}
