/* 
  Onda-H Modern Medical Theme Premium Vanilla CSS 
  Typography: Inter (Clean, modern, highly legible)
*/

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

:root {
  /* Colors */
  --primary-color: #0077b6;
  /* Vivid Medical Blue */
  --primary-light: #00b4d8;
  --primary-dark: #005f73;
  --accent-color: #48cae4;

  --bg-color: #f8f9fa;
  /* Very light cool gray for overall page background */
  --surface-color: #ffffff;
  /* pure white for cards and sections */

  --text-main: #2b2d42;
  --text-muted: #6c757d;

  --border-color: #e9ecef;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Border Radius */
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--primary-dark);
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* -------------------------------
   Header & Navigation
------------------------------- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

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

.logo-container img {
  max-height: 50px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo-container:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding-bottom: 5px;
}

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

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

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-main);
}

/* -------------------------------
   Hero Section
------------------------------- */
.hero {
  margin-top: 80px;
  /* offset for fixed header */
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: white;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  mix-blend-mode: overlay;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  color: white;
  font-size: 4rem;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease forwards;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: fadeUp 1s ease 0.2s forwards;
  opacity: 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: var(--primary-dark);
}

/* -------------------------------
   Section Layouts
------------------------------- */
.section {
  padding: 6rem 0;
}

.section-bg-light {
  background-color: var(--surface-color);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* -------------------------------
   Grid Systems
------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* -------------------------------
   Cards / Info Boxes
------------------------------- */
.card {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* -------------------------------
   Image & Image Blocks
------------------------------- */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.image-feature {
  position: relative;
}

.image-feature::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--primary-light);
  z-index: 0;
}

.image-feature img {
  position: relative;
  z-index: 1;
}

/* -------------------------------
   Lists 
------------------------------- */
.check-list {
  list-style-type: none;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* -------------------------------
   Footer
------------------------------- */
.footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.footer h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

/* -------------------------------
   Animations Component
------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* -------------------------------
   Responsive
------------------------------- */
@media (max-width: 992px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {

  /* Fix Mobile Nav Menu */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .nav-links li a {
    display: block;
    padding: 0.5rem;
  }

  .menu-toggle {
    display: block;
  }

  /* Typography formatting on mobile */
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .section {
    padding: 4rem 0;
    /* Less padding on small screens */
  }

  .section-header h2 {
    font-size: 2rem;
  }

  /* Force images in side-by-side grids to stack properly with margins */
  .image-feature {
    margin-bottom: 2rem;
  }

  .footer {
    text-align: center;
    /* Center footer texts */
  }

  .footer-links li {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* Lightbox Modal & Zoom Overlay Styles */
.zoom-wrapper {
  width: 100%;
  height: 350px;
  background: var(--bg-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  border: 1px solid var(--border-color);
}

.zoom-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

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

.zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 95, 115, 0.4); /* primary-dark with opacity */
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  border-radius: var(--radius-md);
}

.card:hover .zoom-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 40px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: zoomIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#modal-caption {
  margin: 1rem auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  font-weight: 500;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 40px;
  font-weight: 300;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: white;
  text-decoration: none;
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hero Split Layout */
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center !important;
  max-width: 900px;
  width: 100%;
  padding: 2rem 0;
  margin: 0 auto;
}

.hero-content {
  animation: fadeUp 1s ease forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-align: center;
  color: white;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Slider Card Styles */
.hero-visual {
  animation: fadeUp 1.2s ease forwards;
  display: flex;
  justify-content: center;
  width: 100%;
}

.slider-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  color: white;
}

.slider-header {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.slider-header h4 {
  color: white;
  margin-bottom: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.slider-header .badge {
  display: inline-block;
  background: var(--accent-color);
  color: var(--primary-dark);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  align-self: flex-start;
}

.slider-viewport {
  position: relative;
  width: 100%;
  height: 380px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slide {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.slider-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 3;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-color);
  transition: width 0.1s linear;
}

.slider-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  z-index: 3;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding-top: 30px;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background: white;
  color: var(--primary-dark);
  transform: scale(1.1);
}

/* Media query for mobile hero */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center !important;
    gap: 2rem;
  }
  
  .hero-content h1 {
    text-align: center;
    font-size: 2.5rem;
  }
  
  .hero-content p {
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .slider-card {
    max-width: 360px;
  }
  
  .slider-viewport {
    height: 320px;
  }
}