/* =========================================================
   Lichtenburg 100 — v2 futuristic overlay
   Modern, interactive, 3D-accented design layer.
   Loads AFTER style.css to override selectively.
   ========================================================= */

:root {
  --neon-gold: #F5C842;
  --deep: #1A0A08;
  --deep-2: #2A0F0D;
  --plum: #4A1E1A;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shine: rgba(245, 200, 66, 0.35);
}

/* Smooth scroll globally */
html { scroll-behavior: smooth; }

/* Body background gets a subtle depth gradient */
body {
  background: linear-gradient(180deg, #FBF8F3 0%, #F5EFE6 100%);
  background-attachment: fixed;
}

/* ============ Header — glass morphism ============ */
.site-header {
  background: linear-gradient(135deg, rgba(122,46,29,0.95), rgba(92,33,21,0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,96,0.25);
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
  position: sticky; top: 0; z-index: 100;
}
.brand-mark {
  background: linear-gradient(135deg, var(--gold), var(--neon-gold));
  box-shadow: 0 0 20px rgba(245,200,66,0.4), inset 0 -2px 6px rgba(0,0,0,0.15);
  transform: perspective(400px) rotateY(-8deg);
  transition: transform 0.4s;
}
.brand-mark:hover { transform: perspective(400px) rotateY(0deg) scale(1.05); }
.nav a { position: relative; transition: color 0.25s; }
.nav a:not(.cta)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--neon-gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.nav a:not(.cta):hover::after, .nav a.active:not(.cta)::after { transform: scaleX(1); }
.nav a.cta {
  background: linear-gradient(135deg, var(--gold), var(--neon-gold));
  box-shadow: 0 4px 15px rgba(245,200,66,0.4), inset 0 -2px 6px rgba(122,46,29,0.15);
  transition: transform 0.25s, box-shadow 0.25s;
}
.nav a.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,200,66,0.55);
}

/* ============ HERO — full drama ============ */
.hero.with-bg, .hero {
  min-height: 92vh; padding: 90px 0 120px; text-align: center;
  background: radial-gradient(ellipse at top, var(--plum) 0%, var(--deep-2) 55%, var(--deep) 100%);
  position: relative; overflow: hidden;
  color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245,200,66,0.15), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(122,46,29,0.4), transparent 45%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08); }
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(201,168,96,0.04) 25%, rgba(201,168,96,0.04) 26%, transparent 27%, transparent 74%, rgba(201,168,96,0.04) 75%, rgba(201,168,96,0.04) 76%, transparent 77%),
    linear-gradient(90deg, transparent 24%, rgba(201,168,96,0.04) 25%, rgba(201,168,96,0.04) 26%, transparent 27%, transparent 74%, rgba(201,168,96,0.04) 75%, rgba(201,168,96,0.04) 76%, transparent 77%);
  background-size: 50px 50px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero .kicker {
  color: var(--neon-gold);
  background: linear-gradient(90deg, transparent, rgba(245,200,66,0.15), transparent);
  padding: 8px 24px; border-radius: 20px; display: inline-block;
  font-size: 0.8rem; letter-spacing: 4px; margin-bottom: 24px;
  border: 1px solid rgba(245,200,66,0.35);
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: 1;
  font-weight: 900; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 40%, rgba(255,255,255,0.65) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  text-shadow: 0 0 60px rgba(245,200,66,0.15);
}
.hero .lead {
  font-size: 1.2rem; max-width: 720px; margin: 0 auto 40px;
  color: rgba(255,255,255,0.85); line-height: 1.7;
}

/* ============ 3D rotating diamond centerpiece ============ */
.diamond-scene {
  width: 220px; height: 220px; margin: 20px auto 32px;
  perspective: 1000px;
}
.diamond-3d {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d;
  animation: diamondSpin 18s linear infinite;
}
@keyframes diamondSpin {
  0%   { transform: rotateY(0deg)   rotateX(-8deg); }
  100% { transform: rotateY(360deg) rotateX(-8deg); }
}
.diamond-face {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0;
  border-left: 55px solid transparent;
  border-right: 55px solid transparent;
  transform-origin: center top;
}
/* Top crown facets (8 triangles pointing up) */
.diamond-face.top {
  border-bottom: 80px solid;
  border-image: linear-gradient(180deg, #F5C842, #C9A860) 1;
  margin: -80px 0 0 -55px;
  filter: drop-shadow(0 0 20px rgba(245,200,66,0.6));
}
.diamond-face.top:nth-child(1) { transform: rotateY(0deg) translateZ(20px); }
.diamond-face.top:nth-child(2) { transform: rotateY(45deg) translateZ(20px); border-bottom-color: #E6B84D; }
.diamond-face.top:nth-child(3) { transform: rotateY(90deg) translateZ(20px); border-bottom-color: #D4A03C; }
.diamond-face.top:nth-child(4) { transform: rotateY(135deg) translateZ(20px); border-bottom-color: #E6B84D; }
.diamond-face.top:nth-child(5) { transform: rotateY(180deg) translateZ(20px); border-bottom-color: #F5C842; }
.diamond-face.top:nth-child(6) { transform: rotateY(225deg) translateZ(20px); border-bottom-color: #E6B84D; }
.diamond-face.top:nth-child(7) { transform: rotateY(270deg) translateZ(20px); border-bottom-color: #D4A03C; }
.diamond-face.top:nth-child(8) { transform: rotateY(315deg) translateZ(20px); border-bottom-color: #E6B84D; }
/* Bottom pavilion facets (8 triangles pointing down) */
.diamond-face.bot {
  border-top: 120px solid;
  border-image: linear-gradient(0deg, #7A2E1D, #C9A860) 1;
  margin: 0 0 0 -55px;
  filter: drop-shadow(0 0 30px rgba(122,46,29,0.5));
}
.diamond-face.bot:nth-child(9)  { transform: rotateY(0deg) translateZ(20px); }
.diamond-face.bot:nth-child(10) { transform: rotateY(45deg) translateZ(20px); border-top-color: #A85933; }
.diamond-face.bot:nth-child(11) { transform: rotateY(90deg) translateZ(20px); border-top-color: #8B3C22; }
.diamond-face.bot:nth-child(12) { transform: rotateY(135deg) translateZ(20px); border-top-color: #A85933; }
.diamond-face.bot:nth-child(13) { transform: rotateY(180deg) translateZ(20px); border-top-color: #7A2E1D; }
.diamond-face.bot:nth-child(14) { transform: rotateY(225deg) translateZ(20px); border-top-color: #A85933; }
.diamond-face.bot:nth-child(15) { transform: rotateY(270deg) translateZ(20px); border-top-color: #8B3C22; }
.diamond-face.bot:nth-child(16) { transform: rotateY(315deg) translateZ(20px); border-top-color: #A85933; }

/* Glow ring around diamond */
.diamond-scene::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 260px; height: 260px; margin: -130px 0 0 -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,200,66,0.2) 0%, transparent 65%);
  animation: pulseRing 3.5s ease-in-out infinite;
}
@keyframes pulseRing {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

/* ============ Countdown ============ */
.countdown {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin: 32px auto 0;
}
.countdown-unit {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 16px 22px; min-width: 90px;
  transition: transform 0.3s;
}
.countdown-unit:hover {
  transform: translateY(-4px) rotateX(6deg);
  border-color: rgba(245,200,66,0.4);
}
.countdown-num {
  font-size: 2.4rem; font-weight: 900; color: var(--neon-gold);
  font-variant-numeric: tabular-nums; line-height: 1;
  text-shadow: 0 0 20px rgba(245,200,66,0.5);
}
.countdown-lbl {
  font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-top: 6px;
}

/* ============ CTA row ============ */
.hero .cta-row { margin-top: 44px; }
.btn { position: relative; overflow: hidden; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--neon-gold));
  color: var(--deep); font-weight: 700; padding: 14px 32px;
  box-shadow: 0 6px 25px rgba(245,200,66,0.4), inset 0 -2px 6px rgba(122,46,29,0.15);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(245,200,66,0.55);
}
.btn-primary:hover::before { left: 100%; }
.btn-secondary {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 12px 30px;
}
.btn-secondary:hover {
  border-color: var(--neon-gold);
  background: rgba(245,200,66,0.1);
  transform: translateY(-3px);
}

/* ============ Content sections ============ */
main { padding-top: 60px; position: relative; z-index: 1; }
.page-header {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: #fff; padding: 60px 0 50px; position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 40px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.page-header h1 {
  color: #fff;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.75));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: clamp(2rem, 4vw, 3rem);
}
.page-header .sub { color: var(--neon-gold); font-size: 1rem; letter-spacing: 1px; }

/* ============ Info grid — glass cards ============ */
.info-grid { gap: 20px; }
.info-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(216,207,195,0.5);
  border-top: 3px solid var(--gold);
  padding: 24px 22px; border-radius: 8px;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
  transform-style: preserve-3d;
}
.info-card:hover {
  transform: translateY(-6px) perspective(600px) rotateX(3deg);
  box-shadow: 0 20px 40px rgba(122,46,29,0.15);
  border-top-color: var(--neon-gold);
}
.info-card h3 {
  color: var(--burgundy); font-size: 1.05rem; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.info-card h3::before {
  content: ''; width: 6px; height: 20px;
  background: linear-gradient(180deg, var(--gold), var(--neon-gold));
  border-radius: 3px;
}

/* ============ Speaker cards — 3D tilt ============ */
.speaker-grid { gap: 22px; perspective: 1500px; }
.speaker {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.45s;
  transform-style: preserve-3d;
  position: relative;
}
.speaker::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(245,200,66,0) 60%, rgba(245,200,66,0.15) 100%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none; z-index: 1;
}
.speaker:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(122,46,29,0.2), 0 0 0 1px rgba(245,200,66,0.3);
}
.speaker:hover::before { opacity: 1; }
.speaker-photo {
  aspect-ratio: 1/1; overflow: hidden;
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  border-bottom: 3px solid var(--gold);
  position: relative;
}
.speaker-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s;
  filter: saturate(0.92);
}
.speaker:hover .speaker-photo img {
  transform: scale(1.08);
  filter: saturate(1.1);
}
.speaker-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.15));
  pointer-events: none;
}
.speaker-body { position: relative; z-index: 2; }
.speaker-body .role {
  background: linear-gradient(135deg, var(--gold), var(--neon-gold));
  color: var(--deep);
  box-shadow: 0 2px 8px rgba(245,200,66,0.35);
}

/* ============ Programme table ============ */
.programme-day h3 {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  padding: 14px 20px; border-radius: 6px 6px 0 0;
  box-shadow: 0 4px 20px rgba(122,46,29,0.25);
  position: relative; overflow: hidden;
}
.programme-day h3::after {
  content: ''; position: absolute; top: 0; right: -50px; width: 100px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,200,66,0.2), transparent);
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-200%); }
  100% { transform: translateX(200%); }
}
.prog-table tr { transition: background 0.25s; }
.prog-table tbody tr:hover td { background: var(--cream); }
.prog-table .break td {
  background: linear-gradient(135deg, var(--gold), var(--neon-gold));
  color: var(--deep); font-weight: 700;
}
.prog-table .topic strong.keynote-flag {
  background: linear-gradient(135deg, var(--gold), var(--neon-gold));
  color: var(--deep); box-shadow: 0 2px 6px rgba(245,200,66,0.35);
}

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============ Form — modern ============ */
.form-wrap {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(122,46,29,0.12);
}
input[type=text], input[type=email], input[type=tel], select, textarea {
  border: 2px solid var(--rule); border-radius: 6px;
  padding: 12px 14px; transition: border 0.25s, box-shadow 0.25s, transform 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 4px rgba(122,46,29,0.12);
  transform: translateY(-1px);
}

/* ============ Footer ============ */
.site-footer {
  background: linear-gradient(180deg, var(--burgundy-dark) 0%, var(--deep) 100%);
  padding: 48px 0 32px;
  border-top: 2px solid rgba(245,200,66,0.3);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
}
.site-footer a { color: var(--neon-gold); transition: color 0.2s; }
.site-footer a:hover { color: #fff; text-shadow: 0 0 10px rgba(245,200,66,0.6); }

/* ============ Venue floor plan ============ */
.floor-plan-frame {
  background: linear-gradient(135deg, #fff, var(--cream));
  padding: 24px; border-radius: 10px;
  box-shadow: 0 15px 40px rgba(122,46,29,0.1);
  border: 1px solid rgba(201,168,96,0.3);
  transition: transform 0.4s;
}
.floor-plan-frame:hover { transform: scale(1.01); box-shadow: 0 25px 60px rgba(122,46,29,0.18); }
.floor-plan-frame img {
  border-radius: 6px;
  transition: filter 0.3s;
}

/* ============ Mobile ============ */
@media (max-width: 720px) {
  .hero { min-height: auto; padding: 60px 0 80px; }
  .diamond-scene { width: 160px; height: 160px; }
  .countdown-unit { min-width: 70px; padding: 12px 14px; }
  .countdown-num { font-size: 1.7rem; }
  .site-header { position: relative; }
}

/* Prefers-reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* CGS logo pill in header — replaces the L100 gold circle */
.brand-mark.cgs {
  background: #fff;
  border-radius: 8px;
  width: auto; height: 46px;
  padding: 6px 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15), inset 0 -2px 6px rgba(122,46,29,0.05);
  transform: perspective(400px) rotateY(-4deg);
  transition: transform 0.4s;
}
.brand-mark.cgs:hover { transform: perspective(400px) rotateY(0deg) scale(1.03); }
.brand-mark.cgs img { max-height: 32px; width: auto; display: block; }

/* Add a GSSA & CGS badge to the footer */
.site-footer .footer-logos {
  display: flex; gap: 20px; align-items: center; margin-top: 14px;
}
.site-footer .footer-logos img {
  background: #fff; padding: 6px 12px; border-radius: 6px;
  max-height: 44px; width: auto;
}

/* Real L100 logo replaces the CSS diamond in hero */
.diamond-scene {
  width: 320px; height: 260px;
  background-image: url('/assets/images/logos/lichtenburg-100.png');
  background-size: contain; background-position: center; background-repeat: no-repeat;
  animation: floatLogo 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 30px rgba(245,200,66,0.4));
  position: relative;
}
.diamond-scene .diamond-3d, .diamond-scene .diamond-face { display: none; }
@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotateY(-4deg); }
  50%      { transform: translateY(-14px) rotateY(4deg); }
}
.diamond-scene::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 380px; height: 380px; margin: -190px 0 0 -190px;
  border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(245,200,66,0.28) 0%, transparent 65%);
  animation: pulseRing 4s ease-in-out infinite;
}
@media (max-width: 720px) {
  .diamond-scene { width: 220px; height: 180px; }
}

/* Sponsors section */
.sponsors {
  text-align: center; padding: 40px 0 20px;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}
.sponsors .label {
  color: var(--muted); font-size: 0.75rem; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 20px;
}
.sponsors-row { display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap; }
.sponsors-row img {
  max-height: 76px; width: auto;
  transition: transform 0.35s, filter 0.35s;
  filter: grayscale(20%);
}
.sponsors-row img:hover { transform: scale(1.06); filter: grayscale(0%); }

/* Contact card */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0; }
.contact-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 22px 24px;
  transition: transform 0.35s, box-shadow 0.35s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(122,46,29,0.12); }
.contact-card h3 { color: var(--burgundy); margin-bottom: 10px; font-size: 1.05rem; }
.contact-card p { color: var(--ink); margin: 4px 0; }
.contact-card a { font-weight: 600; }
