/* --- Root Variables (JCI Light Theme) --- */
:root {
  /* -- JCI THEME COLORS -- */
  --primary: #004a99;   /* JCI Blue */
  --secondary: #ffc400; /* JCI Yellow */
  --accent: #004a99;     /* JCI Blue for accents */

  /* -- Gradient/Animation Colors -- */
  --g1: #004a99; /* JCI Blue */
  --g2: #00e0ff; /* Aqua */
  --g3: #00e0ff; /* Pop color */
  --g4: #ff6bcb; /* Pop color */
  
  /* -- Light Theme Base -- */
  --bg: #ffffff;
  --bg-2: #f8f9fa;
  --surface: rgba(0,0,0,0.03);
  --surface-strong: rgba(0,0,0,0.06);
  --text: #212529;   /* Dark text */
  --muted: #6c757d;  /* Gray text */

  /* -- KEPT STYLES -- */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow-1: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-2: 0 16px 40px rgba(0,0,0,0.15);
  --glow: 0 0 24px rgba(0, 74, 153, 0.55); /* Glow is JCI Blue */
  --blur: 14px;
  --container: 1200px;
  --ring: 2px;
  --ring-color: color-mix(in oklab, var(--primary), transparent 60%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji, Noto Color Emoji;
  color: var(--text);
  
  /* -- UPDATED BACKGROUND -- */
  background-color: var(--bg);
  
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Background gradient animation is removed */

a {
  color: var(--primary); /* Links are now JCI Blue */
  text-decoration: none;
  transition: color .2s ease, text-shadow .2s ease;
}
a:hover {
  color: var(--secondary); /* Links hover to JCI Yellow */
  text-shadow: 0 0 12px color-mix(in oklab, var(--accent), transparent 65%);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  line-height: 1.2;
  letter-spacing: 0.2px;
  color: var(--text);
}
h1, .display-1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  /* Heading animation now uses JCI colors */
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px color-mix(in oklab, var(--g2), transparent 70%);
  animation: hueRoll 24s linear infinite;
}
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 1em; color: var(--muted); }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 20px;
}
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(calc(var(--blur) * .6));
  -webkit-backdrop-filter: blur(calc(var(--blur) * .6));
  /* Light "glass" background */
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.3));
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav .brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--text);
}
.nav .brand .logo {
  display: inline-flex;
  align-items: center;
  /* Remove decorative box behind logo */
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.nav .links {
  display: flex;
  gap: 18px;
}
.nav .links a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 12px;
}
.nav .links a:hover {
  color: var(--text);
  background: rgba(0,0,0,0.04);
  box-shadow: inset 0 0 0 var(--ring) var(--ring-color);
}

/* -- THE NEW GRADIENT HERO SECTION -- */
.hero {
  position: relative;
  min-height: 400px;
  padding: 4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* The new animated gradient */
  background: linear-gradient(-45deg, var(--g1), var(--g2), var(--g1), var(--g2));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  z-index: 1; /* Keep content on top */
}

/* Make sure content is on top of the overlay */
.hero .container {
  position: relative;
  z-index: 2;
}

/* Hero text needs to be white to read on the dark overlay */
.hero .display-1 {
    color: #ffffff; /* Override the gradient text */
    -webkit-background-clip: unset;
    background-clip: unset;
    background: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero .lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: #e9ecf1; /* Light text for readability */
  max-width: 70ch;
}
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

section {
  padding: 56px 0;
}

.card {
  /* Light "glass" card */
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
  border: 1px solid rgba(0,0,0,0.08);
  
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-1);
  overflow: clip;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: rgba(0,0,0,0.12);
}
.card .card-header {
  padding: 18px 20px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.card .card-body { padding: 18px 20px; }
.card .card-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.btn {
  /* Light theme button */
  --btn-bg: rgba(255,255,255,0.3);
  --btn-fg: var(--text);
  --btn-border: rgba(0,0,0,0.16);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--btn-border);
  color: var(--btn-fg);
  background: var(--btn-bg);
  backdrop-filter: blur(calc(var(--blur) * .6));
  -webkit-backdrop-filter: blur(calc(var(--blur) * .6));
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 10px 24px rgba(0,0,0,0.1);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.08), 0 16px 34px rgba(0,0,0,0.16);
  border-color: rgba(0,0,0,0.22);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 8px 18px rgba(0,0,0,0.15) inset;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--ring) var(--ring-color), var(--glow);
}

.btn-primary {
  /* Button now uses JCI colors */
  --btn-bg: linear-gradient(135deg, var(--g1), var(--g1)); /* Solid JCI Blue */
  --btn-border: transparent;
  color: #ffffff; /* White text */
  font-weight: 700;
}
.btn-primary:hover {
    --btn-bg: linear-gradient(135deg, var(--g2), var(--g2)); /* JCI Yellow on hover */
    color: #0a0b10; /* Dark text on yellow */
}

.btn-outline {
  --btn-bg: transparent;
  --btn-border: rgba(0,0,0,0.22); /* Dark border */
  color: var(--text);
}
.btn-outline:hover {
    background: rgba(0,0,0,0.05);
}

/* Hero buttons need to be special */
.hero .btn-primary {
    --btn-bg: linear-gradient(135deg, var(--g2), var(--g2)); /* Start with JCI Yellow */
    --btn-border: transparent;
    color: #0a0b10; /* Dark text */
}
.hero .btn-primary:hover {
    --btn-bg: linear-gradient(135deg, var(--g1), var(--g1)); /* JCI Blue on hover */
    color: #ffffff; /* White text */
}
.hero .btn-outline {
    --btn-bg: transparent;
    --btn-border: #ffffff; /* White border */
    color: #ffffff; /* White text */
}
.hero .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* ADD THIS AT THE VERY BOTTOM OF YOUR CSS FILE */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* -- STYLES FOR THE FORM -- */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--muted);
}
/* ----------------------------- */

.input, input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  
  /* Light theme inputs */
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(0,0,0,0.16);
  
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input::placeholder, input::placeholder, textarea::placeholder { color: color-mix(in oklab, var(--muted), transparent 20%); }
.input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--primary); /* Focus with JCI Blue */
  box-shadow: 0 0 0 var(--ring) var(--ring-color), inset 0 0 40px rgba(124,92,255,0.06);
  background: rgba(255,255,255,0.3);
}

.footer {
  padding: 36px 0 56px;
  color: var(--muted);
  border-top: 1px solid rgba(0,0,0,0.08);
  background: var(--bg-2); /* Light gray footer background */
}

.floaty {
  position: relative;
  isolation: isolate;
}
/* Floaty animation (kept, but weaker) */
.floaty::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(500px 300px at 30% 20%, rgba(124,92,255,0.1), transparent 60%),
            radial-gradient(600px 380px at 80% 80%, rgba(0,224,255,0.08), transparent 60%);
  filter: blur(40px);
  opacity: .6;
  z-index: -1;
  animation: floaty 18s ease-in-out infinite alternate;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.18), transparent);
  margin: 24px 0;
}

/* Kept the animations */
@keyframes hueRoll {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
@keyframes floaty {
  0% { transform: translateY(0) scale(1); opacity: .5; }
  100% { transform: translateY(-10px) scale(1.02); opacity: .7; }
}

@media (max-width: 720px) {
  .nav .links { gap: 10px; }
  .hero { padding: 72px 0; }
  .grid { gap: 16px; }
  .btn { padding: 11px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  body::before { display: none; }
}

/* --- Navigation Refinements --- */
.nav, header.site nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 0;
}

.nav .links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav .links a {
  position: relative;
  color: var(--muted);
  padding: 10px 6px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: color .2s ease, text-shadow .2s ease;
}
.nav .links a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--g1), var(--g2));
  opacity: 0;
  transform: scaleX(.6) translateY(2px);
  transform-origin: center;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.nav .links a:hover,
.nav .links a:focus-visible {
  color: var(--text);
  text-shadow: 0 0 12px color-mix(in oklab, var(--g2), transparent 75%);
}
.nav .links a:hover::after,
.nav .links a:focus-visible::after { opacity: 1; transform: scaleX(1) translateY(0); }
.nav .links a:focus-visible { outline: none; box-shadow: 0 0 0 var(--ring) var(--ring-color); border-radius: 6px; }

/* Active page styles */
.nav .links a.active,
.nav .links a[aria-current="page"] {
  color: var(--text);
  text-shadow: 0 0 10px color-mix(in oklab, var(--g1), transparent 80%);
}
.nav .links a.active::after,
.nav .links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1) translateY(0);
  height: 3px;
  background: linear-gradient(90deg, var(--g2), var(--g4));
}

/* Optional CTA area in nav */
.nav .actions { display: inline-flex; align-items: center; gap: 10px; }
.nav .actions .btn { padding: 10px 14px; }

/* Brand logo ring (disabled per request) */
.nav .brand .logo {
  padding: 0;
  background: transparent;
}
.nav .brand .logo::after { content: none; }

/* Header backdrop tuning */
header.site {
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.35));
}

/* Mobile behavior: comfy, scrollable links row */
@media (max-width: 900px) {
  .nav { gap: 12px; }
  .nav .links {
    gap: 12px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(0,0,0,0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  }
  .nav .links::-webkit-scrollbar { display: none; }
}

/* -- LOGO FIX --
  This gives your logo a white background to cover
  its black PNG background, making it look clean.
*/
.logo img {
    max-height: 56px; /* slightly larger */
    height: auto;
    width: auto;
}
