/* ============================================================
   ICPIES 2026 — Ocean theme (shared component & decorative CSS)
   Tailwind handles utilities; this file holds the reusable
   component classes + ocean ambience used across all pages.
   ============================================================ */

:root {
  --ocean-950: #0b2433;
  --ocean-900: #103349;
  --ocean-800: #154863;
  --ocean-700: #185f80;
  --ocean-600: #197a9b;
  --ocean-500: #1c95b3;
  --ocean-400: #36b3cd;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --foam: #eafaff;
}

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { font-family: "Plus Jakarta Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .font-display { font-family: "Sora", system-ui, sans-serif; }

/* ---------- Header nav (transparent at top → solid on scroll) ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
/* Blur via a pseudo-element so the header element itself has no backdrop-filter.
   A parent backdrop-filter creates a compositing layer in Safari that clips
   absolutely-positioned children (the dropdown) outside the element's bounds. */
#site-header::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0);
  opacity: 0;
  transition: opacity .3s ease, background .3s ease;
  pointer-events: none;
}
#site-header.is-scrolled {
  box-shadow: 0 4px 24px -8px rgba(8, 47, 73, 0.18);
  border-bottom-color: rgba(209, 231, 240, 0.7);
}
#site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

/* Logo: white when transparent, colour when solid */
.logo-color { opacity: 0; transition: opacity .3s ease; }
.logo-white { opacity: 1; transition: opacity .3s ease; }
#site-header.is-scrolled .logo-white { opacity: 0; }
#site-header.is-scrolled .logo-color  { opacity: 1; }

/* Nav links */
.nav-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 0.6rem;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.14); }
svg#nav-authors-chevron { width: 20px; }
#nav-authors-menu { z-index: 200; }
#nav-authors-menu a { white-space: nowrap; }
#site-header.is-scrolled .nav-link { color: #1f4d63; }

/* Conference Tracks cards */
.track-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 180px; }
.track-card-img { min-height: 180px; }
@media (max-width: 767px) {
  .track-card { grid-template-columns: 1fr; }
  .track-card-img { min-height: 200px; }
}
#site-header.is-scrolled .nav-link:hover { color: var(--ocean-600); background: rgba(6,182,212,0.08); }

.nav-link[data-active="true"] { color: #fff; }
#site-header.is-scrolled .nav-link[data-active="true"] { color: var(--ocean-700); }
.nav-link[data-active="true"]::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.18rem; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, #22d3ee, #a9dded);
}
#site-header.is-scrolled .nav-link[data-active="true"]::after {
  background: linear-gradient(90deg, var(--ocean-600), var(--cyan-400));
}

.burger { color: #fff; }
.burger:hover { background: rgba(255,255,255,0.14); }
#site-header.is-scrolled .burger { color: var(--ocean-800); }
#site-header.is-scrolled .burger:hover { background: rgba(6,182,212,0.08); }

.mnav-link {
  padding: 0.85rem 0.75rem; font-size: 1rem; font-weight: 600; color: #1f4d63;
  border-radius: 0.65rem; transition: background .2s ease;
}

/* ===== Off-canvas drawer ===== */
#oc-backdrop {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(5, 20, 38, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
#oc-backdrop.is-open { opacity: 1; pointer-events: auto; }

#oc-drawer {
  position: fixed; top: 0; right: 0; z-index: 120;
  width: min(320px, 85vw); height: 100%;
  background: #fff;
  box-shadow: -8px 0 40px rgba(5, 20, 38, 0.18);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
}
#oc-drawer.is-open { transform: translateX(0); }

/* Off-canvas nav links */
.oc-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  font-size: 0.95rem; font-weight: 600; color: #1f4d63;
  border-radius: 0.75rem;
  transition: background .18s ease, color .18s ease;
}
.oc-link:hover { background: rgba(6,182,212,0.08); color: var(--ocean-600); }
.oc-link-active { background: rgba(6,182,212,0.1); color: var(--ocean-700); }
.oc-link svg { opacity: 0.55; }
.oc-link:hover svg, .oc-link-active svg { opacity: 1; }
.mnav-link:hover, .mnav-link[data-active="true"] { background: rgba(6,182,212,0.09); color: var(--ocean-700); }

/* ---------- Footer ---------- */
.footer-link { color: #9fc4d6; transition: color .2s ease, padding-left .2s ease; }
.footer-link:hover { color: #fff; }

/* ---------- Ocean ambience ---------- */

/* Semi-transparent overlay used on top of a background photo.
   Keeps the ocean colour theme while letting the image show through. */
.page-banner-overlay {
  background:
    radial-gradient(55% 75% at 22% 16%, rgba(34,211,238,0.18), transparent 60%),
    radial-gradient(55% 70% at 90% 20%, rgba(25,122,155,0.28), transparent 60%),
    radial-gradient(70% 90% at 70% 100%, rgba(11,36,51,0.35), transparent 65%),
    linear-gradient(160deg, rgba(11,36,51,0.87) 0%, rgba(16,58,82,0.81) 55%, rgba(14,107,128,0.74) 100%);
}

.ocean-mesh {
  background:
    radial-gradient(55% 75% at 22% 16%, rgba(34,211,238,0.12), transparent 60%),
    radial-gradient(55% 70% at 90% 20%, rgba(25,122,155,0.22), transparent 60%),
    radial-gradient(70% 90% at 70% 100%, rgba(11,36,51,0.30), transparent 65%),
    linear-gradient(160deg, #0b2433 0%, #103a52 55%, #0e6b80 100%);
}
.glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(14px);
}
.glass-light {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
}

/* caustic light rays for hero */
.caustics::before, .caustics::after {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 140%;
  background: linear-gradient(105deg, transparent 40%, rgba(180,240,255,0.10) 48%, transparent 56%);
  transform: skewX(-12deg); pointer-events: none; mix-blend-mode: screen;
  animation: drift 14s ease-in-out infinite;
}
.caustics::after { animation-delay: -7s; opacity: .6; }
@keyframes drift { 0%,100%{ transform: translateX(-6%) skewX(-12deg);} 50%{ transform: translateX(8%) skewX(-12deg);} }

/* gentle float */
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }
.floaty { animation: floaty 6s ease-in-out infinite; }

/* bubbles */
@keyframes rise { 0%{ transform: translateY(0) scale(1); opacity:0;} 10%{opacity:.6;} 90%{opacity:.5;} 100%{ transform: translateY(-120px) scale(1.3); opacity:0;} }
.bubble { position:absolute; bottom:-20px; border-radius:9999px; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), rgba(255,255,255,.05)); animation: rise linear infinite; }

/* reveal-on-scroll: intentionally a no-op for layout safety.
   (Entrance motion is disabled so content always renders in its true position;
   the ocean ambience below provides the motion.) */
[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .caustics::before, .caustics::after, .floaty, .bubble { animation: none !important; }
}

/* gradient text */
.text-ocean-grad {
  background: linear-gradient(120deg, #0e7a96 0%, #18a5c4 45%, #22d3ee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* card hover */
.lift { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(11,36,51,0.45); }

/* section divider wave */
.wave-fill { display:block; width:100%; height:auto; }

/* prose-ish helpers */
.lead { font-size: 1.075rem; line-height: 1.85; color: #355a6c; }

/* form fields */
.field {
  width: 100%; border-radius: 0.85rem; border: 1px solid #cfe6ef; background: #f7fbfd;
  padding: 0.75rem 1rem; font-size: 0.95rem; color: #103349; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field::placeholder { color: #8fb3c2; }
.field:focus { outline: none; border-color: #1c95b3; background: #fff; box-shadow: 0 0 0 4px rgba(28,149,179,0.12); }

.b-top{
    padding-top: 10px;
    border-top: 1px solid #3f3b3b;
}
