/* ===== CSS RESET & GLOBAL STYLES ===== */
:root {
  --primary: #1a6b8c;
  --secondary: #00a8a8;
  --accent: #ff914d;
  --light: #f0f9ff;
  --dark: #0a3d5c;
  --gray: #6c757d;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--light);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 15px rgba(26, 107, 140, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 107, 140, 0.3);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.card-btn {
  padding: 10px 25px !important;
  font-size: 0.95rem !important;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(10, 61, 92, 0.85), rgba(10, 61, 92, 0.9)), url('https://images.pexels.com/photos/3845764/pexels-photo-3845764.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  color: white;
}

.navbar {
  display: flex;
  justify-content: space-between;
  /* ← CHANGE THIS */
  align-items: center;
  padding: 20px 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  background-color: rgba(10, 61, 92, 0.95);

}

.navbar.scrolled {
  padding: 15px 5%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  /* ← ADD THIS LINE */
}

.navbar .container {
  display: flex;
  align-items: center;
}



.nav-links a {
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background: var(--accent);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
  ;
}



/* ===== HERO SECTION ===== */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  color: white;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  opacity: 0.9;
}

.hero-btn {
  font-size: 1.1rem;
  padding: 16px 40px;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--accent), #ffaa6d);
}

/* ===== SERVICES SECTION ===== */
.services {
  background-color: white;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-img {
  height: 220px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .card-img img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.card-content p {
  color: var(--gray);
  margin-bottom: 20px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  margin-bottom: 20px;
  color: white;
  font-size: 1.5rem;
}

/* ===== APPOINTMENT SECTION ===== */
.appointment {
  background: linear-gradient(rgba(10, 61, 92, 0.9), rgba(10, 61, 92, 0.9)), url('https://images.pexels.com/photos/4173239/pexels-photo-4173239.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940') center/cover no-repeat;
  color: white;
  background-attachment: fixed;
}

.appointment .section-title h2,
.appointment .section-title p {
  color: white;
}

.appointment .section-title::after {
  background: var(--accent);
}

.appointment-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: white;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 107, 140, 0.1);
  outline: none;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent), #ffaa6d);
  margin-top: 10px;
}

#formMessage {
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  font-weight: 600;
  display: none;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: white;
}

.footer-about p {
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background: var(--accent);
  bottom: 0;
  left: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  opacity: 0.8;
  transition: var(--transition);
}

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

.contact-info {
  margin-bottom: 20px;
}

.contact-info div {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-info i {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

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

.social-icons a:hover {
  background: var(--accent);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

.footer-bottom .fa-heart {
  color: var(--accent);
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .section {
    padding: 70px 0;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    padding-left: 10px;
    /* reduce left space */
    padding-right: 10px;
    /* keep balance */
  }

  /* Mobile Navigation */
  .mobile-menu-btn {
    display: block;

  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 18px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Hero Section */
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  /* Services */
  .services-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Appointment Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .appointment-form {
    padding: 30px 25px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links h3::after,
  .footer-contact h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-info div {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  /* WhatsApp Button */
  .whatsapp-btn {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    bottom: 25px;
    right: 25px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section {
    padding: 60px 0;
  }

  .appointment-form {
    padding: 25px 20px;
  }

  .hero-btn {
    padding: 14px 30px;
    font-size: 1rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

@media (max-width: 768px) {
  .doctor-card {
    flex-direction: column;
    text-align: center;
  }

  .doctor-card img {
    margin: 0 auto;
  }

  .doctor-card div[style*="display:flex"] {
    justify-content: center;
  }
}

/* ===== DOCTOR SECTION ===== */
.doctor-section {
  background: linear-gradient(rgba(10, 61, 92, 0.9), rgba(10, 61, 92, 0.9)),
    url('https://images.pexels.com/photos/4173239/pexels-photo-4173239.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940') center/cover no-repeat;
  background-attachment: fixed;
}

.doctor-section .section-title h2 {
  color: white;
}

.doctor-section .section-title p {
  color: rgba(255, 255, 255, 0.8);
}

.doctor-section .section-title::after {
  background: #ff914d;
}

.doctor-card {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.doctor-photo {
  flex-shrink: 0;
}

.doctor-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #1a6b8c;
}

.doctor-info h3 {
  font-size: 1.8rem;
  color: #0a3d5c;
  margin-bottom: 5px;
}

.doctor-title {
  color: #1a6b8c;
  font-weight: 600;
  margin-bottom: 15px;
}

.doctor-desc {
  color: #6c757d;
  margin-bottom: 20px;
  line-height: 1.7;
}

.doctor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doctor-badges span {
  background: #1a6b8c;
  color: white;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .doctor-card {
    flex-direction: column;
    text-align: center;
  }

  .doctor-photo img {
    margin: 0 auto;
  }

  .doctor-badges {
    justify-content: center;
  }
}

