/* Modern Theme - Annai Diagnostic Centre */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  /* Modern Palette */
  --primary-color: #0284c7; /* Sky 600 */
  --primary-dark: #075985; /* Sky 800 */
  --primary-light: #e0f2fe; /* Sky 100 */
  --accent-color: #0ea5e9; /* Sky 500 */
  --secondary-color: #64748b; /* Slate 500 */

  --background-color: #f8fafc; /* Slate 50 */
  --surface-color: #ffffff;

  --heading-color: #0f172a; /* Slate 900 */
  --text-color: #334155; /* Slate 700 */

  --default-font: "Inter", sans-serif;
  --heading-font: "Outfit", sans-serif;

  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-hover:
    0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

body {
  font-family: var(--default-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Header --- */
.header {
  background-color: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: none !important;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.header .logo span {
  font-family: var(--heading-font);
  color: var(--primary-dark) !important;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.navmenu a {
  font-family: var(--default-font);
  font-weight: 500;
  color: var(--text-color) !important;
  padding: 8px 16px !important;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--primary-color) !important;
  background-color: var(--primary-light);
}

/* --- Hero Section --- */
.hero {
  padding: 140px 0 80px 0 !important;
  background:
    radial-gradient(circle at top right, var(--primary-light), transparent 40%),
    radial-gradient(circle at bottom left, #f0fdf4, transparent 40%);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--heading-color) 0%,
    var(--primary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .highlight {
  color: var(--primary-color);
}

.hero p.hero-description {
  font-size: 1.125rem;
  color: var(--secondary-color);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-stats .stat-item h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0px;
}

.hero-stats .stat-item p {
  color: var(--secondary-color);
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- Cards & Services --- */
.service-item,
.doctor-profile {
  background: var(--surface-color);
  border-radius: var(--border-radius-md);
  padding: 2rem !important;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.service-item:hover,
.doctor-profile:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.service-item .icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-item:hover .icon {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Doctor/Test Cards Layout */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.doctor-profile {
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem;
  height: 100%;
  position: relative;
}

.doctor-avatar {
  order: 1;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.doctor-avatar img {
  border-radius: var(--border-radius-sm);
  transition: transform 0.5s ease;
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f8fafc; /* Back to light slate for light theme */
}

.doctor-profile:hover .doctor-avatar img {
  transform: scale(1.05);
}

.doctor-details {
  order: 2;
  flex-grow: 1;
}

.doctor-details h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.specialty-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #f1f5f9;
  color: var(--secondary-color);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-enquiry {
  order: 3;
  position: static !important;
  margin-top: 5px;
  align-self: flex-end;
  
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #25d366; /* WhatsApp Green */
  color: white !important;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.service-enquiry:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.4);
}

/* --- Section Titles --- */
.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

/* Decorative underline for titles */
.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--secondary-color);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Mobile Responsiveness Enhancements --- */
@media (max-width: 1199px) {
  .hero {
    padding-top: 120px !important;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .navmenu ul {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  .navmenu a {
    font-size: 1.1rem;
    padding: 12px 20px !important;
  }
}

/* --- Buttons --- */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 99px;
  padding: 12px 32px;
  font-weight: 600;
  font-family: var(--default-font);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

/* --- Footer --- */
.footer-16 {
  background: white;
  border-top: 1px solid #e2e8f0;
}

.element {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.3;
}

.element-1 {
  width: 400px;
  height: 400px;
  background: #e0f2fe;
  top: -100px;
  right: -100px;
}

.element-2 {
  width: 300px;
  height: 300px;
  background: #f0fdf4;
  bottom: -50px;
  left: -50px;
}

/* --- Contact Forms --- */
.contact-form-card {
  background: var(--surface-color);
  padding: 2.5rem !important;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
}

.contact-form-card input, 
.contact-form-card textarea, 
.contact-form-card select {
  border-radius: var(--border-radius-sm) !important;
  padding: 12px 16px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #f8fafc !important;
  margin-bottom: 1rem;
}

.contact-form-card input:focus, 
.contact-form-card textarea:focus,
.contact-form-card select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px var(--primary-light) !important;
  background-color: white !important;
  outline: none;
}

.contact-form-card .btn-submit {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  padding: 14px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.contact-form-card .btn-submit:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .contact-form-card {
    padding: 1.5rem !important;
  }
}
