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

:root {
  --brand-dark: #071739;
  --brand-blue: #1c4ed8;
  --brand-blue-hover: #1e40af;
  --brand-light-blue: #f1f5f9;
  --brand-lighter-blue: #f8fafc;
  --text-main: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Font Stacks */
  --font-heading: 'Lora', serif;
  --font-ui: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

.bg-glow {
  position: relative;
  overflow: hidden;
}
.bg-glow::before {
  content: '';
  position: absolute;
  top: -10%; left: -10%;
  width: 40%; height: 40%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

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

img, video, iframe, svg {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }
h4 { font-family: var(--font-ui); font-weight: 600; }

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

/* --- Top Bar --- */
.top-bar {
  background-color: var(--brand-dark);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-bar-btn {
  background: var(--brand-blue);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}
.top-bar-btn:hover { 
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary {
  background: var(--brand-blue);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.glow-text {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Navigation --- */
.site-header {
  background-color: var(--white);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.nav-brand img { height: 48px; flex-shrink: 0; }
.nav-brand-text {
  display: flex;
  flex-direction: column;
}
.nav-brand-text span:first-child {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-dark);
  line-height: 1.1;
}
.nav-brand-text span:last-child {
  color: var(--brand-blue);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all 0.3s ease;
  padding: 8px 0;
  position: relative;
}

.nav-links a.active::after, .nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background-color: var(--brand-blue);
}

.nav-cta {
  background-color: var(--brand-dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background-color: var(--brand-blue);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--brand-dark);
  cursor: pointer;
  z-index: 1001;
}

/* --- Utilities --- */
.bg-grid {
  background-color: #f4f8fc;
  background-image: 
    linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bg-grid-dark {
  background-color: var(--brand-dark);
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-dark);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background-color: var(--brand-blue); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--brand-dark);
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(7, 23, 57, 0.2);
  transition: all 0.2s;
}
.btn-outline:hover {
  background-color: rgba(7, 23, 57, 0.05);
}

/* --- Floating Actions --- */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.float-btn:hover { transform: scale(1.05); }
.float-whatsapp { background-color: #25D366; }
.float-call { background-color: var(--brand-blue); }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* --- Advanced Scroll Reveal Animations --- */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(40px); }
.reveal-right { transform: translateX(-40px); }
.reveal-scale { transform: scale(0.92) translateY(20px); }

.reveal-up.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* --- Footer --- */
.site-footer {
  background-color: #071739;
  color: #94a3b8;
  padding: 80px 0 40px;
  width: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand img { height: 50px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand h2 { color: #ffffff; margin-bottom: 16px; font-size: 1.5rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-socials a {
  width: 36px; height: 36px; background: rgba(255,255,255,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background 0.3s;
}
.footer-socials a:hover { background: #1c4ed8; }

.footer-col h4 { 
  color: #ffffff; 
  font-family: var(--font-ui);
  font-size: 1.1rem; 
  margin-bottom: 24px; 
  text-transform: uppercase; 
  letter-spacing: 0.05em;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #94a3b8; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: #ffffff; }

.footer-contact { list-style: none; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 0.9rem; }
.footer-contact i { color: #1c4ed8; font-size: 1rem; margin-top: 4px; }

.footer-bottom {
  text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem; color: #64748b;
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: white;
    flex-direction: column;
    padding: 100px 40px;
    gap: 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    align-items: flex-start;
  }
  .nav-links.active { right: 0; }
  .mobile-menu-toggle { display: block; }
  .nav-cta { display: none; }
  .top-bar { 
    display: block; 
    padding: 10px 20px;
    text-align: center;
  }
  .top-bar-right, .top-bar-item:nth-child(2) { display: none; }
  .top-bar-left { justify-content: center; width: 100%; }
  .container { padding: 0 20px; }
  
  .hero-container, .about-grid, .services-grid-wrapper, .why-grid, .contact-wrapper { 
    grid-template-columns: 1fr !important; 
    gap: 40px !important;
  }
  .hero-image-wrap img { height: 400px !important; }
  .hero-doctor-card { position: relative !important; left: 0 !important; bottom: 0 !important; margin-top: -30px; }
  .experience-badge, .exp-badge { right: 20px !important; bottom: -20px !important; width: 120px !important; height: 120px !important; }
  .experience-badge h3, .exp-badge h3 { font-size: 1.5rem !important; }
  .map-wrap { height: 300px !important; border-radius: 16px !important; }
  .service-img-wrap { width: 100% !important; margin: 0 0 20px 0 !important; }
}

@media (max-width: 768px) {
  .hero-stats { flex-wrap: wrap; gap: 20px; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .why-features { grid-template-columns: 1fr !important; }
  .why-images { grid-template-columns: 1fr !important; grid-template-rows: auto !important; }
  .img-large { grid-column: span 1 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  h1 { font-size: 2.5rem !important; }
  h2 { font-size: 2rem !important; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-brand img { height: 32px; }
  .nav-brand-text span:first-child { font-size: 0.85rem; }
  .nav-brand-text span:last-child { font-size: 0.45rem; }
  .hero-image-wrap img { height: 250px !important; }
  section { padding: 40px 0 !important; }
  
  .floating-actions { bottom: 16px; right: 16px; gap: 8px; }
  .float-btn { width: 48px; height: 48px; font-size: 1.2rem; }
  
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.6rem !important; }
  
  .service-card { padding: 20px !important; overflow: hidden; }
  .service-img-wrap { width: calc(100% + 40px) !important; margin: -20px -20px 20px !important; border-radius: 12px 12px 0 0 !important; }
  .contact-form-card { padding: 20px !important; }

  /* Refine animations for mobile to prevent overflow while keeping them active */
  .reveal-up { transform: translateY(20px); }
  .reveal-left { transform: translateX(20px); }
  .reveal-right { transform: translateX(-20px); }
}
