
*{
  box-sizing: border-box;
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: whitesmoke;
    margin: 0px;
    padding: 0px;
}

.site-header,
.site-footer {
  /*padding: 1rem 2rem;*/
  border-bottom: 0px solid #ddd;
}

.site-footer {
  border-top: 1px solid #ddd;
  border-bottom: 0;
  margin-top: 3rem;
}

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

.site-header nav {
  display: flex;
  gap: 1rem;
}

.logo {
  font-weight: bold;
  text-decoration: none;
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #222;
  border-radius: 8px;
  text-decoration: none;
}

:root {
  --page-padding: 1rem;
  --content-width: 1200px;
  --primary-color: #11b1a3;
}

/* Base = mobile */
.container {
  width: 100%;
  max-width: 1600px;
  overflow-x: hidden;
  /*max-width: var(--content-width);*/
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;

  background: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

/* Tablet */
@media (min-width: 768px) {
  :root {
    --page-padding: 2rem;
  }

  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --page-padding: 3rem;
  }
}

.desktop-only {
  display: none;
}

.mobile-only {
  display: block;
}

@media (min-width: 768px) {
  .desktop-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  z-index: -1;
}

/* On pages that are NOT the home page, always show the white background */
body:not(.home) .site-header::before {
  transform: translateY(0);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.site-header.is-scrolled::before {
  transform: translateY(0);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.site-logo {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.35s ease;
}

.is-scrolled .site-logo,
body:not(.home) .site-logo {
  color: rgb(77, 77, 77);
}

.header-logo-img {
  height: 60px;
  width: auto;
}

.header-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.is-scrolled .menu-toggle span,
body:not(.home) .menu-toggle span {
  background: rgb(77, 77, 77);
}

/* Hamburger to X animation */
.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Logic (Under 800px) */
@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .menu-toggle.is-active span {
    background: rgba(77, 77, 77, 1);
  }

  .header-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 2rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1050;
  }

  .header-navigation.is-open {
    right: 0;
  }

  .site-nav {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  #header-navigation .site-nav a {
    color: rgba(77, 77, 77, 1);
    font-size: 1.2rem;
  }

  .header-right {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2rem;
    width: 100%;
  }

  #header-navigation .lang-btn {
    color: rgba(77, 77, 77, 1);
    border-color: #ddd;
    margin-bottom: 1rem;
  }

  .lang-dropdown {
    position: static;
    box-shadow: none;
    padding: 0;
    width: 100%;
    background: transparent;
  }

  #header-navigation .lang-dropdown button {
    color: rgba(77, 77, 77, 1);
  }

  .header-cta {
    width: 100%;
    text-align: center;
    background: var(--primary-color);
    color: white;
  }
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.35s ease;
}

.is-scrolled .site-nav a,
body:not(.home) .site-nav a {
  color: rgb(77, 77, 77);
}

.header-cta {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.header-cta:hover {
  opacity: 0.9;
}

/* Prevent content from hiding behind fixed header */
main {
  padding-top: 76px;
}

.home main {
  padding-top: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-selector {
  position: relative;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  background: transparent;
  color: white;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.35s ease;
}

.is-scrolled .lang-btn,
body:not(.home) .lang-btn {
  border-color: #ddd;
  color: rgb(77, 77, 77);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 0.5rem;
  min-width: 140px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
}

.lang-dropdown.show {
  display: flex;
}

.lang-dropdown button {
  background: none;
  border: none;
  padding: 0.6rem 1rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #111;
}

.lang-dropdown button:hover {
  background: #f5f5f5;
}

.lang-btn img, .lang-dropdown img {
  width: 20px;
  height: auto;
  border-radius: 2px;
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.25s ease;
}

.is-scrolled .site-nav a::after,
body:not(.home) .site-nav a::after {
  background: rgb(77, 77, 77);
}

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

/* Hero Section Styles */
.hero-section {
  position: relative;
  height: calc(100vh - 76px); /* Full viewport height minus header height */
  height: 60vh; /* Shorter viewport height */
  min-height: 600px; /* Ensure it's not too small on short screens */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-image: url('/assets/modern-banner2.jpeg'); /* Stock image placeholder */
  background-size: cover;
  background-position: center;
  overflow: hidden; /* Ensures content doesn't spill if image is too large */
}

/* Overlay for better text readability */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15); /* Dark overlay */
  z-index: 0;
}

.hero-content {
  position: relative; /* Bring content above the overlay */
  z-index: 1;
  max-width: 900px;
  padding: 0 var(--page-padding);
}

@media (min-width: 1024px) {
  .hero-section {
    justify-content: flex-start;
    text-align: left;
  }
  .hero-content {
    margin-left: 10%;
  }

  .hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
}

.hero-content h1 {
  white-space: pre-line;
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  line-height: 1.5;
  opacity: 0.9;
}

.hero-cta-button {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  padding: 0.9rem 1.8rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.hero-cta-button:hover {
  background: transparent;
  color: white;
  border-color: white;
}

/* Doctor Section Styles */
.doctor-section {
  padding: 0px;
  padding-top: 60px;
  background-color: transparent;
}

@media (max-width: 767px) {

  .doctor-text {
    padding: 20px;
  }

  .doctor-text h2 {
    font-size: 2.5rem;
  }
}

.doctor-content {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .doctor-section {
    display: flex;
    justify-content: space-evenly;
  }

  .doctor-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .doctor-text {
    flex: 1;
    padding: 20px !important;
    max-width: 740px;
    padding: 20px 20px 5rem 20px !important;
    text-align: right;
  }
  
  .doctor-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-start;
  }

  .doctor-text p {
    white-space: pre-line;
  }

}

.doctor-text h2 {
  font-size: 2.5rem;
  color: rgba(77,77,77,1);
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.doctor-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 2.5rem;
}

.doctor-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-bottom:20px;
}

.stat-badge {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #777;
  font-weight: 500;
}

.doctor-portrait {
  display: block;
  width: auto;
  max-width: 520px;
  height: 720px;
  border-radius: 1.5rem 1.5rem 0 0;
  /*box-shadow: 0 20px 40px rgba(0,0,0,0.1);*/
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 3.5rem;
  font-weight: 800;
}

@media (max-width: 767px) {
  .section-title {
    font-size: 2rem;
  }
}

/* Technology Section */
.tech-section {
  padding: 5rem 0;
  background-color: #96b6b7
}

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

@media (max-width: 1600px) {
  .tech-grid {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
  }
}

.tech-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
  /*padding: 2.5rem 2rem; */
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tech-card-thumb {
  max-height: 240px;
  min-height: 240px;
  overflow: hidden;
}

.tech-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-card-body {
  padding: 0 1.5rem 2rem 1.5rem;
}

.tech-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.tech-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(77, 77, 77, 1);
  padding: 0 1rem;
  text-align: center;
}

.tech-card p {
  white-space:pre-line;
  padding: 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tech-icon-inline {
  display: inline-block;
  vertical-align: -0.125em; /* Adjusts alignment with text */
  margin-right: 0.3em; /* Space between icon and text */
}

.tech-card-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 1.5rem 2rem 2rem;
}

.tech-card-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #f1f5f9;
  border: 2px solid whitesmoke;
}

/* Categories Section */
.categories-section {
  padding: 2rem 0;
  position: relative;
  background: linear-gradient(-45deg, #f8fafc, #f1f5f9, #eff6ff, #f8fafc);
  background-size: 400% 400%;
  animation: meshGradient 15s ease infinite;
  overflow: hidden;
}

@keyframes meshGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.section-title.dark {
  color: #333;
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.category-card {
  --card-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  text-decoration: none;
  flex: 1 1 240px;
  max-width: 280px;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: calc(var(--index) * 0.1s);
  opacity: 0;
}

@media (max-width: 600px) {
  .categories-grid {
    gap: 1rem;
  }
  .category-card {
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-template-areas: 
      "icon title"
      "icon desc"
      "icon link";
    text-align: left;
    align-items: center;
    flex: 1 1 100%;
    max-width: 100%;
    padding: 1rem 1.25rem;
    gap: 0 1.25rem;
  }
  .category-icon {
    grid-area: icon;
    width: 70px;
    height: 70px;
  }
  .category-card h3 {
    grid-area: title;
    font-size: 1.1rem;
    margin: 0;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px -12px color-mix(in srgb, var(--card-color), transparent 80%);
  border-color: var(--card-color);
}

.category-icon {
  width: 60px;
  height: 60px;
  background: color-mix(in srgb, var(--card-color), transparent 93%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-color);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.category-card:hover .category-icon {
  background: var(--card-color);
  color: white;
  transform: rotate(10deg);
}

.category-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #444;
  transition: color 0.3s ease;
  z-index: 2;
}

.category-card:hover h3 {
  color: #111;
}

.category-icon svg {
  width: 28px;
  height: 28px;
}

.fade-in {
  opacity: 0;
  animation: fadeInMove 0.6s ease-out forwards;

  /* customizable variables */
  --fade-x: 0px;
  --fade-y: -20px;
}

/* Animation keyframes */
@keyframes fadeInMove {
  from {
    opacity: 0;
    transform: translate(var(--fade-x), var(--fade-y));
  }

  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}
