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

:root {
  --bg-color: #050505;
  --surface-color: #121212;
  --surface-light: rgba(255, 255, 255, 0.04);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --accent-gradient: linear-gradient(135deg, #38BDF8 0%, #3B82F6 100%);
  --accent-solid: #38BDF8;
  --max-width: 1200px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .outfit {
  font-family: 'Outfit', sans-serif;
}

a {
  text-decoration: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism utilities */
.glass {
  background: var(--surface-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
}

/* Animations Core */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3B82F6 0%, #38BDF8 100%);
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.3);
}

.btn:hover::before {
  opacity: 1;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 60%);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(to right, #FFFFFF, #A1A1AA);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 48px;
  max-width: 800px;
  margin-inline: auto;
  font-weight: 400;
}

/* Section Common */
.section {
  padding: 100px 0;
  position: relative;
}

/* Three Columns Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  padding: 16px;
  border-radius: 24px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid var(--accent-solid);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
}

.card:hover::after {
  opacity: 0.3;
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 16px;
}

/* Tags Section */
.tags-section {
  text-align: center;
}

.tags-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--text-primary);
  transition: var(--transition);
}

.tag:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.tag svg {
  width: 20px;
  height: 20px;
}

.center-copy {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(to right, #ffffff, #a1a1aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Two Columns Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.program-card {
  padding: 32px;
  border-radius: 32px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.program-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 48px;
  border-radius: 32px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.program-card::after, .program-card-wide::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  border: 1px solid var(--accent-solid);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.program-card:hover, .program-card-wide:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
}

.program-card:hover::after, .program-card-wide:hover::after {
  opacity: 0.3;
}

.program-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 32px;
}

.program-card-wide .program-img-wrap {
  margin-bottom: 0;
  aspect-ratio: 4/3;
}

.program-img-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card:hover .program-img-wrap img, .program-card-wide:hover .program-img-wrap img {
  transform: scale(1.05);
}

.program-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.program-copy {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 16px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
  align-items: center;
}

.doctor-img-wrap {
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.doctor-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  border-radius: 32px;
}

.doctor-img-wrap img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-content h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 24px;
  font-weight: 700;
}

.about-lead {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.steps-container {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: var(--transition);
}

.step-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-solid);
  transform: translateX(8px);
}

.step-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--text-primary);
}

.step-badge {
  font-size: 14px;
  color: var(--accent-solid);
  background: var(--accent-glow);
  padding: 6px 12px;
  border-radius: 99px;
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.cta-box {
  padding: 80px 40px;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 60%);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-section h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 24px;
  font-weight: 700;
}

.cta-section p {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-inline: auto;
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 15px;
}

.footer-info {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}

.footer-col p {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
}

.trust-badge svg {
  width: 18px;
  height: 18px;
  color: var(--accent-solid);
}

/* FAQ Section */
.faq-section {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-section h2 {
  text-align: center;
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 48px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-summary {
  padding: 24px;
  font-size: 18px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--accent-solid);
}

details[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 24px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Logo Styles */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.brand-logo {
  height: 48px; /* Restrict logo height for the nav */
  width: auto;
  object-fit: contain;
}

.footer-brand .brand-logo {
  height: 64px; /* Slightly larger in the footer */
  margin-bottom: 16px;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 1024px) {
  .program-card-wide {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .doctor-img-wrap {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-info {
    flex-direction: column;
    gap: 32px;
  }
  .cta-box {
    padding: 40px 20px;
  }
}

/* Navigation */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 32px 0;
  z-index: 100;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--text-primary);
  transform: translateX(-4px);
}

/* Universal Doctor Bio Hover Link */
.lucci-hover-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
  z-index: 10;
}
.lucci-hover-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.lucci-hover-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.lucci-hover-link:hover img {
  transform: scale(1.08);
}
