/* BBA Website - Optimized Styles
   Removed unused styles, optimized performance, added cross-browser support
*/

/* Base */
:root {
  --bg: #0a0a0a;
  --text: #f5f7fb;
  --muted: #c9d3e7;
  --brand: #78c7ff;
  --brand-2: #b3e5ff;
  --card: rgba(255,255,255,0.06);
  --glass: rgba(10,10,10,0.35);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fullscreen video */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  filter: saturate(1.05) contrast(1.05) brightness(0.85);
  background: #000;
}

.overlay-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 20%, rgba(10,10,10,0) 0%, rgba(10,10,10,0.1) 60%, rgba(10,10,10,0.3) 100%),
              linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.3) 100%);
  pointer-events: none;
  z-index: -1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(6px);
  background: linear-gradient(to bottom, rgba(10,10,10,0.45), rgba(10,10,10,0));
  -webkit-backdrop-filter: saturate(140%) blur(6px);
}

.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 140px; height: auto; display: block; object-fit: contain; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark path, .brand-mark line, .brand-mark polyline, .brand-mark circle, .brand-mark rect { stroke-linecap: round; stroke-linejoin: round; }

.intro { position: relative; height: 300dvh; }
.logo-intro {
  position: sticky;
  top: 0;
  height: 100dvh; /* ensure exact viewport height so centering is always the visual middle */
  display: grid;
  place-items: center;
  z-index: 5;
  pointer-events: none;
}
.logo-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 40%, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.25) 60%, rgba(10,10,10,0.15) 100%);
  z-index: -1;
}
.logo-intro .brand-mark { width: min(88vw, 88vh); height: auto; display: block; filter: drop-shadow(0 0 16px rgba(255,255,255,0.35)) brightness(0) invert(1); }
.logo-intro .brand-mark svg { max-width: 100%; height: auto; }
@media (max-width: 800px) {
  .logo-intro .brand-mark { width: min(100vw, 100vh); }
}
.logo-intro svg { width: 100%; height: auto; display: block; overflow: visible; }

.nav { display: inline-flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); opacity: 0.9; text-decoration: none; font-weight: 500; }
.nav a:hover { opacity: 1; }

/* Hero */
.hero {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18dvh 24px 14dvh;
  text-align: center;
}

.hero-inner { max-width: 980px; margin: 0 auto; }
.hero-title { 
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  background: rgba(10,10,10,0.28);
  backdrop-filter: saturate(120%) blur(2px);
  -webkit-backdrop-filter: saturate(120%) blur(2px);
  -webkit-text-stroke: 4px rgba(255,255,255,0.8);
  text-stroke: 4px rgba(255,255,255,0.8);
  text-shadow: 
    0 0 15px rgba(255,255,255,0.6),
    0 0 30px rgba(255,255,255,0.4),
    0 0 45px rgba(255,255,255,0.2),
    0 4px 25px rgba(0,0,0,0.9);
}
.hero-title .word { display: block; line-height: 1; will-change: transform; white-space: nowrap; }
.hero-title .letter { display: inline-block; will-change: transform; }
.hero-title .box-emphasis { 
  font-weight: 800; 
  color: #ff0000;
  text-shadow: 0 0 30px rgba(255,0,0,0.8);
}

.hero-title .big-x {
  font-size: 1.05em !important;
  font-weight: 900 !important;
  display: inline-block !important;
  transform: scale(1.05) !important;
  transform-origin: center !important;
  color: #ff0000 !important;
  text-shadow: 0 0 30px rgba(255,0,0,0.8) !important;
  animation: rotateX 3s ease-in-out infinite;
}

@keyframes rotateX {
  0% { transform: scale(1.05) rotateZ(0deg); }
  25% { transform: scale(1.05) rotateZ(90deg); }
  50% { transform: scale(1.05) rotateZ(180deg); }
  75% { transform: scale(1.05) rotateZ(270deg); }
  100% { transform: scale(1.05) rotateZ(360deg); }
}
.hero-tagline-container {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  background: rgba(10,10,10,0.28);
  backdrop-filter: saturate(120%) blur(2px);
  -webkit-backdrop-filter: saturate(120%) blur(2px);
  margin: 4px 0 10px;
}

.hero-tagline {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(20px, 3.8vw, 40px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  -webkit-text-stroke: 2px rgba(255,255,255,0.6);
  text-stroke: 2px rgba(255,255,255,0.6);
}

.hero-tagline .tag-word { 
  display: inline-block; 
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(30px);
}
.hero-subtitle { font-size: clamp(16px, 2.2vw, 22px); color: var(--muted); margin: 0 0 28px; }

.hero-ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #0a0a0a; font-weight: 700; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,0.25); color: var(--text); background: rgba(255,255,255,0.06); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); }

.hero-scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); opacity: 0.8; display: grid; place-items: center; gap: 6px; }
.hero-scroll-hint .mouse { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.6); border-radius: 14px; position: relative; }
.hero-scroll-hint .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 2px; background: rgba(255,255,255,0.8); animation: wheel 2s infinite; }
@keyframes wheel { 0% { transform: translate(-50%, 0); opacity: 1; } 60% { transform: translate(-50%, 8px); opacity: 0; } 100% { opacity: 0; } }
.hero-scroll-hint .arrow { font-size: 20px; color: rgba(255,255,255,0.8); }

/* Panels */
.panel { position: relative; padding: 20dvh 24px; backdrop-filter: saturate(120%) blur(2px); }
.panel .panel-inner { max-width: 1100px; margin: 0 auto; }
.panel h2 { font-size: clamp(28px, 4.6vw, 52px); margin: 0 0 12px; }
.panel p { color: var(--muted); margin: 0 0 24px; }
.panel.dark { background: linear-gradient(180deg, rgba(10,10,10,0.65), rgba(10,10,10,0.85)); }

/* About Section Styling */
.about-content h3 {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--brand);
  margin: 0 0 20px;
  font-weight: 600;
  line-height: 1.3;
}

.about-content p {
  margin: 0 0 20px;
  line-height: 1.7;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18px);
}

.about-content p:last-child { margin-bottom: 0; }

.about-features {
  margin: 20px 0;
  padding-left: 20px;
}

.about-features li {
  margin: 0 0 12px;
  line-height: 1.6;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
}

.about-features li:last-child { margin-bottom: 0; }

.about-cta {
  font-size: clamp(16px, 2.2vw, 18px) !important;
  color: var(--text) !important;
  font-weight: 600;
  background: rgba(120,199,255,0.1);
  border: 1px solid rgba(120,199,255,0.2);
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0 0 !important;
  text-align: center;
}

/* Events Section Styling */
.events-content {
  text-align: center;
  padding: 40px 0;
}

.events-tba {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--muted);
  font-style: italic;
  margin: 0;
  opacity: 0.8;
}

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { grid-column: span 6; background: var(--card); border: 1px solid rgba(255,255,255,0.08); padding: 18px; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.25); min-height: 120px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .card { grid-column: span 12; } }

/* Contact */
.contact-form { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.contact-form label { grid-column: span 6; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.contact-form label.full { grid-column: span 12; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: var(--text); outline: none; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.55); }
.contact-form button { margin-top: 6px; }

/* Footer */
.site-footer { padding: 24px; text-align: center; color: rgba(255,255,255,0.6); }
.footer-content { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: rgba(255,255,255,0.8); }
@media (max-width: 600px) {
  .footer-content { flex-direction: column; gap: 12px; }
}

/* Impressum Page */
.impressum-hero {
  min-height: 60dvh;
  display: grid;
  place-items: center;
  padding: 18dvh 24px 8dvh;
  text-align: center;
}

.impressum-inner { max-width: 800px; margin: 0 auto; }
.impressum-inner h1 { 
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.impressum-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--muted);
  margin: 0;
  opacity: 0.9;
}

.impressum-content { padding: 8dvh 24px; }
.impressum-section {
  margin-bottom: 48px;
  padding: 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  backdrop-filter: saturate(120%) blur(2px);
}
.impressum-section:last-child { margin-bottom: 0; }
.impressum-section h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  margin: 0 0 16px;
  color: var(--brand);
}
.impressum-section h3 {
  font-size: clamp(18px, 2.5vw, 22px);
  margin: 24px 0 12px;
  color: var(--text);
}
.impressum-section p {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.6;
}
.impressum-section p:last-child { margin-bottom: 0; }

.contact-info {
  background: rgba(120,199,255,0.05);
  border: 1px solid rgba(120,199,255,0.15);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.contact-info a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: var(--brand-2);
  text-decoration: underline;
}

/* Reveal utility for GSAP */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: translate3d(0, 0, 0); }

