/* ===== General Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f9faff;
  color: #222;
  scroll-behavior: smooth;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* ===== Header / Navbar ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  width: 70px;
}

header .logo h1 {
  font-size: 1.5rem;
  color: #0056b3;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

header nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: #0078ff;
}

/* ===== Hero Section ===== */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0,87,179,0.6), rgba(0,87,179,0.6)), url('images/hero-bg.jpg') center/cover no-repeat;
  text-align: center;
  color: #fff;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.btn-primary {
  padding: 10px 25px;
  background: #fff;
  color: #0056b3;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #0056b3;
  color: #fff;
}

/* ===== Section Styling ===== */
.section-light {
  background: #f4f8ff;
  padding: 60px 0;
}

.section-blue {
  background: #e6f0ff;
  padding: 60px 0;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  color: #0056b3;
  margin-bottom: 20px;
}

section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
}

/* ===== Contact Form ===== */
form {
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input, form textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

form button {
  padding: 12px;
  border: none;
  background: #0056b3;
  color: #fff;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: #0078ff;
}

/* ===== Contact Info ===== */
.contact-info {
  list-style: none;
  text-align: center;
  margin-bottom: 20px;
}

.contact-info li {
  margin: 5px 0;
}

/* ===== Footer ===== */
footer {
  background: #0056b3;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 350px; /* fixed height for all product cards */
}

.product-card h3 {
  margin: 10px 0 5px 0;
  font-size: 1.1rem;
  color: #0056b3;
}

.product-card p {
  font-size: 0.9rem;
  color: #555;
}

/* Image fixed inside the card */
.product-card img {
  max-width: 100%;
  max-height: 180px; /* limits image height */
  object-fit: contain; /* ensures full image is visible without cropping */
  margin-bottom: 10px;
}
/* ===== Existing styles above ===== */

/* ===== Aesthetic Enhancements ===== */

/* Hero section gradient */
.hero {
  background: linear-gradient(to right, #0056b3, #0099ff);
  color: #fff;
  text-align: center;
}

/* Section backgrounds */
.section-light {
  background: #f0f8ff;
}

.section-blue {
  background: #e6f0ff;
}

/* Footer */
footer {
  background: #004080;
  color: #fff;
  text-align: center;
  padding: 25px 0;
}

/* Product card hover */
.product-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Buttons */
.btn-primary, form button {
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.btn-primary:hover, form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Section titles */
section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 20px;
  font-size: 2rem;
  color: #0056b3;
}

section h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: #0099ff;
  bottom: 0;
  left: 25%;
  border-radius: 2px;
}

/* Navbar hover & active */
header nav ul li a {
  padding: 8px 15px;
  border-radius: 20px;
  transition: 0.3s;
}

header nav ul li a:hover,
header nav ul li a.active {
  background: #0099ff;
  color: #fff;
}
/* ===== Aesthetic Enhancements ===== */

/* Sticky navbar */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Active page link */
header nav ul li a.active {
  background: #0099ff;
  color: #fff;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Product card hover animation */
.product-card {
  transition: transform 0.4s, box-shadow 0.4s;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

/* Hero button hover */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Section fade-in */
.section-light, .section-blue {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-in-out;
}

.section-light.visible, .section-blue.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Vision & Mission Section */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.vm-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.vm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.vm-card h3 {
  color: #0056b3;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.vm-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}
/* Hero section with medical background */
.hero {
  position: relative;
  height: 100vh; /* full screen */
  width: 100%;
  background: url('C:\Users\PREMAL\OneDrive\Pictures\Desktop\medigap\images\medical-bg.png') no-repeat center center;
  background-size: cover;
  overflow: hidden;
  filter: brightness(0.9); /* lighter but still visible */
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.15); /* soft overlay for clarity */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #0d1b2a; /* darker text for readability */
  top: 50%;
  transform: translateY(-50%);
}

.hero-logo img {
  width: 250px;       /* 🔥 Increased size */
  height: auto;
  margin-bottom: 25px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3)); /* slight shadow */
}

.hero-logo img:hover {
  transform: scale(1.08); /* smooth zoom effect */
}



.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 25px;
}

/* Floating Icons Vertical Lines */
.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  width: 150px;
  opacity: 0.8;
  filter: brightness(0.5); /* darker icons */
  animation: floatY 6s infinite ease-in-out;
}

.float1 { top: 10%; left: 10%; animation-delay: 0s; }
.float2 { top: 40%; left: 10%; animation-delay: 2s; }
.float3 { top: 70%; left: 10%; animation-delay: 4s; }
.float4 { top: 30%; left: 80%; animation-delay: 1s; }
.float5 { top: 60%; left: 80%; animation-delay: 3s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-50px); }
}

.certification-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap; /* responsive */
}

.cert-text {
  flex: 2; /* text takes more space */
  min-width: 250px;
}

.cert-image {
  flex: 1; /* smaller image section */
  text-align: right; /* align image to the side */
  min-width: 150px;
}

.cert-image img {
  max-width: 120px; /* small and neat */
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
@media screen and (max-width: 768px) {

  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 products per row */
    gap: 8px;                               /* small spacing */
    width: 100%;
    padding: 0 5px;
    margin: 0 auto;
  }

  .product-card {
    width: 100%;
    padding: 0;                              /* remove extra padding */
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    overflow: hidden;                         /* clip image to box */
    background: #fff;
  }

  .product-card img {
    width: 100%;                              /* fit full card width */
    height: 120px;                             /* fixed height */
    object-fit: cover;                         /* maintain aspect ratio, cover the box */
    display: block;
  }

  .product-card h3 {
    font-size: 0.9rem;
    margin: 5px 0 2px 0;
  }

  .product-card p {
    font-size: 0.75rem;
    margin: 0 5px 5px 5px;
  }
}
/* Director images */
.director-card img {
  width: 120px;       /* smaller image */
  height: 120px;      /* fixed height for uniformity */
  object-fit: cover;  /* maintain aspect ratio, crop if needed */
  border-radius: 50%; /* circular images */
  margin-bottom: 10px;
}
.hero-logo img {
  animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
  0% { filter: drop-shadow(0 0 8px rgba(0, 180, 255, 0.4)); }
  100% { filter: drop-shadow(0 0 18px rgba(0, 180, 255, 0.8)); }
}
/* Mobile optimization */
@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden; /* Prevents horizontal scroll */
    }

    .product-section {
        padding: 20px;
        text-align: center;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* auto fit */
        gap: 15px;
        justify-items: center;
        align-items: start;
        width: 100%;
    }

    .product-card {
        width: 100%;
        max-width: 180px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        overflow: hidden;
        padding: 10px;
    }

    .product-card img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }

    header, nav {
        width: 100%;
        text-align: center;
    }

    .hero-section {
        padding: 40px 20px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
}
/* ===== Fix mobile product alignment and spacing ===== */
@media (max-width: 768px) {
  body, html {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 10px;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 products per row for better fit */
    gap: 15px;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
  }

  .product-card {
    max-width: 100%;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  }

  .product-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
  }

  .product-card h3 {
    font-size: 1rem;
  }

  .product-card p {
    font-size: 0.8rem;
  }
}
footer {
  background-color: #f3f3f3;
  color: #333;
  text-align: center;
  padding: 20px;
  font-family: Arial, sans-serif;
  border-top: 2px solid #ccc;
}

footer .footer-content p {
  margin: 5px 0;
}
#mission-vision {
  text-align: center;
}

.vm-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.vm-card {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex: 1 1 300px;
  max-width: 400px;
  transition: transform 0.3s ease;
}

.vm-card:hover {
  transform: translateY(-5px);
}

.innovation-card {
  max-width: 850px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f0faff, #ffffff);
  border-left: 4px solid #00aaff;
}
