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

:root {
  --primary-color: #004b87;
  --secondary-color: #00a2b1;
  --accent-color: #00c6d7;
  --dark-color: #1a1a1a;
  --light-text: #666666;
  --bg-color: #f8fbff;
  --white: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 25px rgba(0, 75, 135, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.section-title.left::after {
  left: 0;
  transform: none;
}

.section-subtitle {
  color: var(--light-text);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

section {
  padding: 5rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 75, 135, 0.2);
}

.btn-primary:hover {
  background-color: #003666;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 75, 135, 0.3);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #008b98;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Header & Nav */
.top-bar {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 1.5rem;
}

.top-bar-contact span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-contact i {
  color: var(--secondary-color);
}

header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  padding: 0.5rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  font-weight: 500;
  color: var(--dark-color);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Emergency Banner */
.emergency-banner {
  background-color: #e53935;
  color: white;
  text-align: center;
  padding: 0.8rem;
  font-weight: 600;
}

/* Animations */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 0;
  background: linear-gradient(135deg, rgba(248,251,255,1) 0%, rgba(220,238,255,1) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--secondary-color);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--light-text);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -5%;
  right: -5%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 0;
  opacity: 0.1;
  animation: blob 8s infinite alternate;
}

@keyframes blob {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

.hero-img {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  box-shadow: var(--shadow);
  object-fit: cover;
  height: 500px;
  width: 100%;
}

.stats-card {
  position: absolute;
  bottom: 20px;
  left: -30px;
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-hover);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stats-icon {
  width: 50px;
  height: 50px;
  background-color: #e6f7f8;
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stats-info h4 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.stats-info span {
  font-size: 0.9rem;
  color: var(--light-text);
}

/* Quick Features */
.features {
  padding: 0;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--light-text);
  font-size: 0.95rem;
}

/* About Preview */
.about-preview {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
}

.about-img {
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.experience-badge {
  position: absolute;
  top: 30px;
  right: -20px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-hover);
  border: 5px solid var(--white);
}

.experience-badge h3 {
  font-size: 2rem;
  line-height: 1;
}

.experience-badge span {
  font-size: 0.8rem;
  font-weight: 500;
}

.about-list {
  margin: 2rem 0;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-weight: 500;
}

.about-list i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* Services / Specialities Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
  border-radius: 15px;
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-icon {
  color: var(--white);
}

.service-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.service-card p {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.read-more {
  color: var(--secondary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card:hover .read-more {
  color: var(--white);
}

/* Doctors Grid */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.doctor-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.doctor-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
}

.doctor-info {
  padding: 1.5rem;
  text-align: center;
}

.doctor-info h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.doctor-spec {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.doctor-exp {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Why Choose Us */
.why-choose {
  background-color: var(--primary-color);
  color: var(--white);
}

.why-choose .section-title {
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.why-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.why-text h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.why-text p {
  color: rgba(255,255,255,0.8);
}

/* Page Banner (for internal pages) */
.page-banner {
  background: linear-gradient(rgba(0, 75, 135, 0.8), rgba(0, 75, 135, 0.8)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=80&w=2000') center/cover;
  color: var(--white);
  padding: 6rem 0 4rem;
  text-align: center;
}

.page-banner h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.breadcrumb a {
  color: var(--secondary-color);
}

.breadcrumb span {
  color: rgba(255,255,255,0.7);
}

/* Forms */
.form-container {
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-color);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 162, 177, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.error-msg {
  color: #e53935;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.success-msg {
  color: #2e7d32;
  background-color: #e8f5e9;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: none;
  font-weight: 500;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: rgba(255,255,255,0.7);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-info .logo {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-info p {
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  .features-grid, .about-grid, .why-grid {
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-contact {
    display: none;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    z-index: 999;
  }
  
  .nav-links .btn {
    margin-top: 1rem;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero-grid, .about-grid, .why-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 6rem 0;
    text-align: center;
  }
  
  .hero-content p {
    margin: 0 auto 2.5rem;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .stats-card {
    left: 20px;
    right: 20px;
    bottom: -30px;
    justify-content: center;
  }
  
  .features {
    margin-top: 3rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .experience-badge {
    width: 90px;
    height: 90px;
    top: 15px;
    right: 0;
  }
  .experience-badge h3 {
    font-size: 1.4rem;
  }
}
