/* 
   Dr. Mounika Pydipally Website - Premium Design System 
   Focus: Clean, Professional, Trustworthy, Child-Friendly
*/

:root {
  /* Color Palette */
  --primary-color: #0056b3;
  /* Deep Medical Blue - Trust & Professionalism */
  --primary-dark: #003d80;
  /* Darker Blue for hover states */
  --secondary-color: #00a896;
  /* Calming Teal - Growth & Healing */
  --accent-color: #ff6b6b;
  /* Soft Coral - Warmth, for CTA buttons */
  --accent-hover: #ff4747;

  --bg-color: #ffffff;
  /* Pure White */
  --bg-light: #f4f9f9;
  /* Very light bluish gray for sections */
  --bg-card: #ffffff;

  --text-main: #333333;
  /* Dark Gray for primary text */
  --text-light: #555555;
  /* Medium Gray for secondary text */
  --text-white: #ffffff;

  /* Typography */
  --font-heading: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Shadows & Radius */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--bg-color);
  scroll-behavior: smooth;
}

/* Fix for sticky navbar covering section headers */
section[id] {
  scroll-margin-top: 120px;
  /* Navbar height + buffer */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.section-padding {
  padding: var(--spacing-lg) 0;
}

.bg-light {
  background-color: var(--bg-light);
}

/* Components */

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Navigation */
.navbar {
  background-color: rgb(255 255 255 / 95%);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  /* Links left, CTA right */
  align-items: center;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid #eee;
  height: 100%;
  /* Ensure equal height in grid */
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-top: auto;
  /* Push content up if needed or just styling */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--text-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.footer h3 {
  color: var(--text-white);
  border-bottom: 2px solid var(--secondary-color);
  display: inline-block;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding-bottom: 0.5rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 1rem;
  }

  .nav-link {
    font-size: 0.95rem;
  }

  .section-padding {
    padding: var(--spacing-md) 0;
  }

  h1 {
    font-size: 2rem !important;
  }

  /* Allow wrapping for hero title on mobile to prevent overflow */
  h2[style*="white-space: nowrap"] {
    white-space: normal !important;
  }
}