/* =========================
   OneAlphaMed — styles.css
   Debugged / Mobile-ready (hamburger stays inline)
   Restored header/subheader/hero + glassmorphism
   Replace your existing styles.css with this file
   ========================= */

/* View transitions */
@view-transition { navigation: auto; }

/* ---------- ROOT + GLOBAL ---------- */
:root {
  --nav-height: 60px;          /* unified navbar height */
  --nav-bg-desktop: #1f476d;
  --nav-bg-scrolled: #ffffff;
  --nav-text-desktop: #ffffff;
  --nav-text-contrast: #0f172a;
  --nav-drop-bg: rgba(255,255,255,0.98);
  --nav-z: 9999;
  --max-width: 1200px;
  --accent-gradient: linear-gradient(90deg, #3b82f6, #06b6d4);
  --card-border: 1px solid #e2e8f0;
}

/* Basic resets */
html, body { height: 100%; }
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  color: #0f172a;
  min-height: 100%;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Visually hidden helper */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- NAVIGATION (Unified) ---------- */
.nav-section {
  position: sticky;
  top: 0;
  z-index: var(--nav-z);
  height: var(--nav-height);
  background: var(--nav-bg-desktop);
  border-bottom: 2px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 6px rgba(0,0,0,0.18);
  transition: background-color 220ms ease, box-shadow 200ms ease;
  display: block;
  padding-top: env(safe-area-inset-top); /* iOS notch safe area */
}

/* Unified container */
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 30px;
  flex-wrap: nowrap; /* prevent wrapping that drops hamburger */
}

/* Logo wrapper */
.nav-with-logo { display: flex; align-items: center; gap: 20px; }
.nav-logo {
  position: relative;
  display: block;
  height: 100%;
  width: auto;
  min-width: 110px;
  padding: 6px 8px;
}
.nav-logo img {
  height: calc(var(--nav-height) - 12px);
  max-width: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Default state: at top – show white, hide black */
.nav-logo .logo-white {
  display: block;
}

.nav-logo .logo-black {
  display: none;
}

/* When nav is scrolled – swap logos */
.nav-section.scrolled .logo-white {
  display: none;
}

.nav-section.scrolled .logo-black {
  display: block;
}


/* Tabs (desktop / default) */
/* keep original uppercase, spacing and hover/active styles */
.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
flex-wrap: nowrap;
white-space: nowrap;
overflow: hidden;
}
.nav-links a.nav-tab {
  color: rgba(148,163,184,1); /* default subtle grey like original */
  text-decoration: none;
  padding: 20px 32px;          /* original roomy tab padding */
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  height: calc(var(--nav-height) - 0px);
  box-sizing: border-box;
  background: transparent;
}

/* preserve original hover/active color behaviors */
.nav-links a.nav-tab:hover { color: #ffffff; background: rgba(59,130,246,0.1); }
.nav-links a.nav-tab.active { color: #ffffff; background: rgba(59,130,246,0.15); }

/* underline effect for nav-tab (keeps original gradient) */
.nav-tab { position: relative; max-width: 350px; flex: 1; text-decoration: none; }
.nav-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background: var(--accent-gradient);
  transition: transform 0.3s ease;
}
.nav-tab:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-tab.active::after { transform: translateX(-50%) scaleX(1.25); }

/* ---------- HAMBURGER (hidden by default) ---------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  height: var(--nav-height);
  width: 48px;
  box-sizing: border-box;
}
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 20px;
  gap: 4px;
  align-items: center;
}
.hamburger .bar {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--nav-text-desktop);
  transition: transform 200ms ease, opacity 200ms ease, background 200ms ease;
  margin: 0;
}

/* ---------- SCROLLED STATE ---------- */
.nav-section.scrolled {
  background: var(--nav-bg-scrolled);
  box-shadow: 0 6px 18px rgba(18,24,40,0.06);
}
.nav-section.scrolled .nav-links a.nav-tab { color: var(--nav-text-contrast); }
.nav-section.scrolled .hamburger .bar { background: var(--nav-text-contrast); }
.nav-section.scrolled .nav-logo { background: #ffffff; }

/* ---------- MOBILE: keep hamburger inline & dropdown ---------- */
@media (max-width: 880px) {
  /* logo and toggle sizing */
  .nav-logo { width: 38%; min-width: 0; padding: 4px 6px; }
  .nav-toggle { display: flex; order: 2; margin-left: 8px; }
  .nav-links { order: 3; }

  /* ensure items don't wrap and remain vertically centered */
  .nav-container { flex-wrap: nowrap; align-items: center; }

  /* nav-links become a dropdown */
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    right: 0;
    left: 0;
    background: var(--nav-drop-bg);
    flex-direction: column;
    gap: 0;
    padding: 12px 8px;
    box-shadow: 0 8px 20px rgba(2,6,23,0.08);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  /* mobile links: block with big tap area and dark contrast */
  .nav-links a.nav-tab,
  .nav-links a.nav-tab span,
  .nav-links a.nav-tab strong {
    display: block;
    color: var(--nav-text-contrast) !important;
    padding: 14px 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }

  .nav-links a.nav-tab + a.nav-tab { border-top: 1px solid rgba(15,23,42,0.06); }

  /* open state toggled by JS (.open class) */
  .nav-links.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }

  /* animate hamburger to X when open */
  .nav-toggle.open .hamburger .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open .hamburger .bar:nth-child(2) { opacity: 0; }
  .nav-toggle.open .hamburger .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* ensure nav-tab height adapts */
  .nav-links a.nav-tab { height: auto; min-height: 44px; line-height: 1.2; }
}

/* ---------- HERO — glassmorphism, overlay, headings (restored) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  /* ensures hero starts comfortably below the sticky nav */
  padding: calc(var(--nav-height) + 40px) 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Video background container if used */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay so text is readable */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Text wrapper sits above overlay */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Glassmorphism panel behind hero text (restored) */
.hero-overlay-text {
  background: rgba(255, 255, 255, 0.15);
  padding: 32px 40px;
  border-radius: 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  max-width: 750px;
}

/* Hero text (restored original look) */
.hero-heading {
  color: #ffffff;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 14px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
  line-height: 1.05;
}

.hero-subheading {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.6;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
  margin: 0;
}

/* ---------- CONTENT WRAPPER & SECTIONS (restored styles) ---------- */
.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
  min-height: calc(100% - 400px);
}

.content-section { margin-bottom: 80px; }

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}

.section-icon { font-size: 36px; }

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subheading {
  font-size: 18px;
  color: #64748b;
  margin: 0 0 40px 0;
  font-weight: 400;
  line-height: 1.6;
}

/* Subsection blocks */
.subsection { margin-bottom: 60px; }

.subsection-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #0f172a;
  border-left: 4px solid #3b82f6;
  padding-left: 12px;
}

.subsection-description {
  font-size: 16px;
  color: #64748b;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

/* ---------- GENERIC IMAGE GRID & CARDS (kept original look) ---------- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

/* Engagement grid */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* desktop: 3 columns */
  gap: 24px;
  margin-bottom: 80px;
}


.image-item {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(59, 130, 246, 0.3);
  position: relative;
  background: #000000;
}

.image-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.8);
}

.image-item img,
.image-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Card layout */
.image-item.card {
  aspect-ratio: auto;
  overflow: visible;
  height: auto;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: var(--card-border);
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}

.card-media img,
.card-media video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
}

/* Engagement page: enforce 5:4 video/image ratio */
.engagement-grid .card-media img,
.engagement-grid .card-media video {
  height: auto;              /* override fixed 220px */
  aspect-ratio: 5 / 4;       /* 5:4 format */
  object-fit: cover;         /* keep a nice crop */
}


.card-info {
  padding: 16px;
  text-align: left;
  color: #0f172a;
}

.card-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
  color: #0f172a;
}

.card-desc {
  font-size: 15px;
  line-height: 1.5;
  color: #475569;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #0a0a1a;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #2d2d44;
  margin-top: 80px;
}

.footer-text {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

/* ---------- RESPONSIVE tweaks (restored) ---------- */
@media (max-width: 1024px) {
  .ioc-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { min-height: 360px; padding: calc(var(--nav-height) + 20px) 20px 40px; }
  .hero-heading { font-size: 32px; }
  .hero-subheading { font-size: 16px; }

  .company-tagline { font-size: 16px; }

  /* keep nav inline on small screens (do not force column) */
  /* removed flex-direction: column on .nav-container to keep hamburger inline */

  .nav-tab { max-width: 100%; padding: 16px 20px; }
  .nav-tab::after { width: 90%; }
  .content-wrapper { padding: 40px 20px; }
  .section-title { font-size: 28px; }
  .section-icon { font-size: 28px; }
  .subsection-title { font-size: 22px; }
  .ioc-grid { grid-template-columns: 1fr; }
  .ioc-grid .card-media img, .ioc-grid .card-media video { height: 220px; }
  .card-grid, .grid-3-2 { grid-template-columns: 1fr; }
  .engagement-grid{
  grid-template-columns: 1fr; 
 }
}

/* small helper adjustments */
.nav-links a.nav-tab:focus { outline: 3px solid rgba(59,130,246,0.18); outline-offset: 2px; }

/* ---------- ZOOM ICON ON CARDS ---------- */
.card-media {
  position: relative;      /* so zoom button can sit on top */
  overflow: hidden;
}

.zoom-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.8);
  color: #f9fafb;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  padding: 0;
  font-size: 16px;
}

.card-media:hover .zoom-btn {
  opacity: 1;
  transform: translateY(0);
}

.zoom-btn:hover {
  background: rgba(37, 99, 235, 0.95);
}

/* For touch devices: always show icon (no hover) */
@media (hover: none) {
  .zoom-btn {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- LIGHTBOX / FULLSCREEN VIEW ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.82);
  display: none;                 /* hidden by default */
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 80vw;               /* 70–80% of screen width */
  max-height: 80vh;              /* 70–80% of screen height */
  background: #020617;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.lightbox-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(80vh - 40px);
}

.lightbox-inner img,
.lightbox-inner video {
  height: 80vh;         /* all images use ~80% of screen height */
  max-height: 80vh;     /* safety */
  width: auto;          /* width adjusts automatically */
  max-width: 100%;      /* don’t overflow horizontally */
  object-fit: contain;
  border-radius: 12px;
}

/* Close button in lightbox */
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(220, 38, 38, 0.95);
}


/* End of file */





