:root{
  --bg:#ffffff;
  --bg-soft:#f8fafc;
  --bg-tint:#f1f5f9;
  --card:#ffffff;
  --border:#e2e8f0;
  --brand:#0c4a6e;
  --brand-light:#0ea5e9;
  --energy:#f97316;
  --energy-dark:#ea580c;
  --teal:#0d9488;
  --text:#0f172a;
  --muted:#64748b;
}

*{ -webkit-font-smoothing:antialiased; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',sans-serif;
  overflow-x:hidden;
}

/* ===== Background ambience (light) ===== */
.bg-mesh{
  background:
    radial-gradient(60% 60% at 15% 10%, rgba(249, 115, 22, 0.06), transparent 60%),
    radial-gradient(50% 50% at 90% 15%, rgba(14, 165, 233, 0.07), transparent 60%),
    radial-gradient(60% 60% at 70% 90%, rgba(13, 148, 136, 0.05), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.bg-mesh-dark{
  background:
    radial-gradient(60% 60% at 10% 10%, rgba(14, 165, 233, 0.15), transparent 60%),
    radial-gradient(50% 50% at 90% 20%, rgba(249, 115, 22, 0.12), transparent 60%),
    linear-gradient(180deg, #0c4a6e 0%, #082f49 100%);
}

.grid-overlay{
  background-image:
    linear-gradient(rgba(12,74,110,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,74,110,0.04) 1px, transparent 1px);
  background-size:60px 60px;
  mask-image:radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image:radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ===== Glass (light frosted) ===== */
.glass{
  background:rgba(255,255,255,0.7);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(226,232,240,0.8);
}
.glass-strong{
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(226,232,240,0.9);
  box-shadow:0 10px 40px -10px rgba(12,74,110,0.10);
}
.glass-dark{
  background:rgba(12,74,110,0.85);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,0.10);
}

/* ===== Gradient text ===== */
.text-gradient-brand{
  background:linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.text-gradient-energy{
  background:linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.text-gradient-light{
  background:linear-gradient(135deg, #ffffff 0%, #bae6fd 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* ===== Buttons ===== */
.btn-primary{
  background:linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color:#ffffff;
  box-shadow:0 10px 30px -10px rgba(249, 115, 22, 0.5);
  transition:transform .25s ease, box-shadow .25s ease;
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px -12px rgba(249, 115, 22, 0.65);
}
.btn-secondary{
  background:linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
  color:#ffffff;
  box-shadow:0 10px 30px -10px rgba(12, 74, 110, 0.4);
  transition:transform .25s ease, box-shadow .25s ease;
}
.btn-secondary:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px -12px rgba(12, 74, 110, 0.55);
}
.btn-outline{
  border:1.5px solid rgba(12,74,110,0.25);
  background:rgba(255,255,255,0.6);
  color:#0c4a6e;
  transition:all .25s ease;
}
.btn-outline:hover{
  border-color:#f97316;
  background:rgba(249,115,22,0.06);
  color:#ea580c;
  transform:translateY(-2px);
}

/* ===== Ken burns ===== */
@keyframes kenburns{
  0%{ transform:scale(1.05) translate(0,0); }
  50%{ transform:scale(1.15) translate(-1.5%, -1%); }
  100%{ transform:scale(1.05) translate(0,0); }
}
.kenburns{ animation:kenburns 22s ease-in-out infinite; }

/* ===== Pulse line ===== */
@keyframes pulsedash{
  0%{ stroke-dashoffset:0; }
  100%{ stroke-dashoffset:-1000; }
}
.pulse-line{
  stroke-dasharray:8 6;
  animation:pulsedash 18s linear infinite;
}

/* ===== Marquee ===== */
@keyframes marquee{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}
.marquee-track{
  display:flex;
  width:max-content;
  animation:marquee 28s linear infinite;
}
.marquee-wrap:hover .marquee-track{ animation-play-state:paused; }

/* ===== Float ===== */
@keyframes float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-12px); }
}
.float{ animation:float 6s ease-in-out infinite; }

/* ===== Speaker card ===== */
.speaker-card{
  transition:transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
  box-shadow:0 4px 20px -8px rgba(12,74,110,0.10);
}
.speaker-card:hover{
  transform:translateY(-10px);
  border-color:rgba(249,115,22,0.45);
  box-shadow:0 24px 50px -20px rgba(249,115,22,0.30);
}
.speaker-card:hover .speaker-img{
  transform:scale(1.06);
  filter:saturate(1.1) contrast(1.05);
}
.speaker-card:hover .speaker-overlay{ opacity:1; }
.speaker-img{ transition:transform .6s ease, filter .6s ease; }
.speaker-overlay{ transition:opacity .4s ease; }

/* ===== Stat card ===== */
.stat-card{
  position:relative; overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  box-shadow:0 4px 20px -8px rgba(12,74,110,0.08);
}
.stat-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 40px -16px rgba(12,74,110,0.20);
  border-color:rgba(249,115,22,0.35);
}
.stat-card::before{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(135deg, transparent 0%, rgba(249,115,22,0.06) 100%);
  opacity:0;
  transition:opacity .4s ease;
}
.stat-card:hover::before{ opacity:1; }
.stat-card > *{ position:relative; z-index:1; }

/* ===== Divider ===== */
.divider-line{
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(249,115,22,0.5), transparent);
}



/* ===== DNA helix ===== */
@keyframes helix{
  0%{ transform:translateY(0); }
  100%{ transform:translateY(-50%); }
}
.dna-strand{ animation:helix 18s linear infinite; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background:#f1f5f9; }
::-webkit-scrollbar-thumb{
  background:linear-gradient(#0c4a6e,#0369a1);
  border-radius:8px;
  border:2px solid #f1f5f9;
}

/* ===== Nav scrolled ===== */
.nav-scrolled{
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(226,232,240,0.8);
  box-shadow:0 4px 20px -8px rgba(12,74,110,0.10);
}

/* ===== Mobile menu ===== */
.mobile-menu{
  max-height:0;
  overflow:hidden;
  transition:max-height .4s ease;
}
.mobile-menu.open{ max-height:500px; }

/* ===== Countdown ===== */
.countdown-box{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15);
  backdrop-filter:blur(10px);
}

/* ===== Hide scrollbar ===== */
.no-scrollbar::-webkit-scrollbar{ display:none; }
.no-scrollbar{ -ms-overflow-style:none; scrollbar-width:none; }

::selection{ background:rgba(249,115,22,0.25); color:#0f172a; }

/* ===== Section label pill ===== */
.section-pill{
  background:rgba(14,165,233,0.08);
  border:1px solid rgba(14,165,233,0.20);
  color:#0369a1;
}

/* ===== Card shadow soft ===== */
.shadow-soft{ box-shadow:0 10px 40px -10px rgba(12,74,110,0.12); }
.shadow-card{ box-shadow:0 4px 24px -8px rgba(12,74,110,0.10); }

/* ===== Navbar: white text at top, dark text when scrolled ===== */
.nav-logo-text { color: #ffffff; transition: color .3s ease; }
.nav-sub-text  { color: #fb923c; transition: color .3s ease; }
.nav-link-text { color: rgba(255,255,255,0.92); transition: color .3s ease;    margin-right: 34px; }
.nav-link-text a:hover { color: #fb923c; }
.nav-menu-btn {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all .3s ease;
}

#navbar.nav-scrolled .nav-logo-text { color: #0f172a; }
#navbar.nav-scrolled .nav-sub-text  { color: #ea580c; }
#navbar.nav-scrolled .nav-link-text { color: #334155; }
#navbar.nav-scrolled .nav-link-text a:hover { color: #ea580c; }
#navbar.nav-scrolled .nav-menu-btn {
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(226,232,240,0.8);
  color: #1e293b;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ===== Hero Logo Animation ===== */
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)) drop-shadow(0 0 5px rgba(249, 115, 22, 0.2)); }
  50% { filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6)) drop-shadow(0 0 15px rgba(249, 115, 22, 0.5)); }
}
.hero-logo-animate {
  animation: logoFloat 4s ease-in-out infinite, logoGlow 4s ease-in-out infinite;
}

/* ===== Mirror Shine Effect ===== */
.shine-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}
.shine-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 40%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.2) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  z-index: 10;
  pointer-events: none;
  animation: shineSweep 4s infinite ease-in-out;
  animation-delay: 1s;
}

@keyframes shineSweep {
  0% { left: -150%; }
  40% { left: 200%; }
  100% { left: 200%; }
}


/* ===== Form Styles ===== */
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  transition: border-color .2s ease;
  background: #fff;
  font-family: 'Inter', sans-serif;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: #b10000;
  box-shadow: 0 0 0 3px rgba(177, 0, 0, 0.1);
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}
.form-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px -8px rgba(12,74,110,0.08);
}
.form-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #0c4a6e;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #fee2e2;
}
.form-radio-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.form-radio-group input {
  width: 16px;
  height: 16px;
  accent-color: #b10000;
}
.conditional-field {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
}

/* ==========================================
   OFF-CANVAS MOBILE MENU & DROPDOWNS
========================================== */

/* ==========================================
   FORCE STYLE WORDPRESS DYNAMIC MENUS
========================================== */

/* ==========================================
   MOBILE MENU EXACT MATCH (Glass Card Style)
========================================== */

/* 1. Remove default WordPress bullets and spacing */
#mobileMenu ul,
#mobileMenu li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#mobileMenu ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
}

/* 2. Make the links look like beautiful clickable buttons */
#mobileMenu li a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 12px !important; /* py-3 px-3 */
    border-radius: 8px; /* rounded-lg */
    color: #d6d6d6 !important; /* text-ink-700 */
    font-weight: 500 !important;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none !important;
}

#mobileMenu li a:hover {
    background: #f1f5f9 !important; /* hover:bg-base-100 */
    color:#000000;
}

/* 3. Add the Chevron Right icon for top-level links only
      (scoped to the real wrapper div so it actually matches) */
#mobileMenu .p-5 > ul > li > a::after {
    content: '\f054'; /* fa-chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: #64748b; /* text-ink-500 */
    margin-left: 12px;
}

/* 4. Hide the chevron for sub-menu links */
#mobileMenu .sub-menu li a::after {
    content: '';
}

/* 5. Dropdown sub-menu styling (indented nicely) — hidden by default.
      display:none is now !important so it can't be beaten by the
      generic "#mobileMenu ul { display:flex !important }" rule above. */
#mobileMenu .sub-menu {
    margin-top: 4px !important;
    margin-left: 16px !important;
    padding-left: 16px !important;
    border-left: 2px solid #e2e8f0;
    display: none !important;
}

#mobileMenu .menu-item-has-children.open > .sub-menu {
    display: flex !important; /* matches the #mobileMenu ul flex/column rule */
}

#mobileMenu .sub-menu li a {
    padding: 10px 12px !important;
    font-size: 14px !important;
    background: transparent !important;
}

/* Desktop Dropdown (unchanged — this part was already working) */
#navbar .nav-link-text li.menu-item-has-children {
    position: relative;
}
#navbar .nav-link-text li.menu-item-has-children > a::after {
    content: '\f078'; /* Chevron Down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}
#navbar .nav-link-text li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}
#navbar .nav-link-text ul.sub-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(12,74,110,0.15);
    padding: 8px;
    flex-direction: column;
    min-width: 240px;
    z-index: 100;
    list-style: none;
}
#navbar .nav-link-text li.menu-item-has-children:hover > ul.sub-menu {
    display: flex !important;
}
#navbar .nav-link-text ul.sub-menu a {
    padding: 10px 16px;
    border-radius: 8px;
    color: #334155;
    display: block;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}
#navbar .nav-link-text ul.sub-menu a:hover {
    background: #f8fafc;
    color: #b10000;
}

/* ===== Reveal ===== */
.js-enabled .reveal{
  opacity:0;
  transform:translateY(30px);
  transition:opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.js-enabled .reveal.in{
  opacity:1;
  transform:translateY(0);
}
.reveal-delay-1{ transition-delay:.12s; }
.reveal-delay-2{ transition-delay:.24s; }
.reveal-delay-3{ transition-delay:.36s; }
.reveal-delay-4{ transition-delay:.48s; }
/* ==========================================
   MOBILE INNER PAGE PADDING FIX
========================================== */
@media (max-width: 768px) {
  /* Target the first section of any page that isn't the homepage */
  body:not(.home) > section:first-of-type,
  body:not(.home) > main > section:first-of-type {
    padding-top: 8rem !important; /* 128px - ensures it clears the mobile navbar */
  }
}
