/* 
  1. Base Design System 
*/
:root {
  /* HSL Color Palette - Vibrant yet Professional Medical */
  --primary-color: hsl(207, 73%, 41%);
  /* Deep medical blue */
  --primary-light: hsl(207, 85%, 55%);
  --secondary-color: hsl(174, 100%, 35%);
  /* Calming teal/sea green */
  --accent-color: hsl(351, 88%, 62%);
  /* Warm coral for attention */

  --dark: hsl(222, 47%, 11%);
  --dark-light: hsl(215, 28%, 17%);
  --gray: hsl(215, 14%, 40%);
  --gray-light: hsl(210, 31%, 95%);
  --white: hsl(0, 0%, 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Layout */
  --container-width: 1200px;
  --section-pad: 5rem 0;

  /* Utilities */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Offset for sticky nav */
}

body {
  font-family: var(--font-body);
  color: var(--gray);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-pad);
}

.bg-light {
  background-color: var(--gray-light);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-white {
  color: var(--white);
}

.text-white h2,
.text-white p {
  color: var(--white);
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.mt-4 {
  margin-top: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(28, 107, 186, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(28, 107, 186, 0.4);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-color);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Section Titles */
.section-title {
  margin-bottom: 3rem;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.title-line {
  height: 4px;
  width: 60px;
  background: var(--secondary-color);
  border-radius: 2px;
  margin-top: 10px;
}

.title-line.center {
  margin: 10px auto 20px auto;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  color: var(--accent-color);
  font-size: 1.8rem;
}

.logo span {
  font-weight: 400;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-weight: 500;
  color: var(--dark);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(14, 30, 48, 0.9) 0%, rgba(14, 30, 48, 0.7) 50%, rgba(14, 30, 48, 0.3) 100%);
}

.hero-content {
  width: 100%;
}

.hero-text {
  max-width: 650px;
  color: var(--white);
  animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--secondary-color);
}

.hero h1 {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inset 0 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--secondary-color), hsl(174, 100%, 25%));
  color: var(--white);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 10px solid var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  box-shadow: var(--shadow-md);
  transform: translateY(-40px) translateX(-40px);
}

.experience-badge .years {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}

.experience-badge .text {
  font-size: 1rem;
  text-align: center;
  font-weight: 500;
  margin-top: 5px;
  line-height: 1.2;
}

.qualifications {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.quali-tag {
  background: var(--gray-light);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(28, 107, 186, 0.2);
}

.lead-text {
  font-size: 1.2rem;
  color: var(--dark);
  font-weight: 500;
  margin-bottom: 1rem;
}

.about-features {
  margin: 1.5rem 0;
}

.about-features li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--dark-light);
  font-weight: 500;
}

.about-features i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.registration-info {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary-color);
  font-size: 0.9rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(135deg, rgba(28, 107, 186, 0.05), rgba(28, 107, 186, 0.01));
  z-index: -1;
  transition: height 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(28, 107, 186, 0.2);
}

.service-card:hover::before {
  height: 100%;
}

.service-card .icon-wrapper {
  width: 70px;
  height: 70px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .icon-wrapper {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray);
}

/* Visual Divider */
.visual-divider {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.divider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.divider-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
}

.divider-bg .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 107, 186, 0.85);
  /* Deep primary over image */
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-card {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contact-card .icon-circle {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--primary-light);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
  color: var(--gray);
  line-height: 1.5;
}

.contact-card a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.working-hours {
  background: var(--gray-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

.timing-details p {
  color: var(--dark);
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.home-visit-alert {
  background: rgba(28, 107, 186, 0.1);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary-color);
}

.home-visit-alert h4 {
  color: var(--primary-color);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.home-visit-alert p {
  color: var(--dark-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.working-hours h4 {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
}

.contact-form-container {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #f8fafc;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
  background: var(--white);
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo i {
  color: var(--accent-color);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .experience-badge {
    bottom: 10px;
    right: 10px;
    transform: none;
    width: 140px;
    height: 140px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-form-container {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Hide on mobile initially */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
  }

  .section {
    padding: 4rem 0;
  }
}