:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --logo-color: #ffffff;
  --logo-shadow: 0 0 10px rgba(255, 200, 100, 0.3);
  --link-color: #aaaaaa;
  --link-hover: #ffffff;
  --link-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  --title-start: #ffffff;
  --title-end: #888888;
  --title-shadow: drop-shadow(0px 0px 30px rgba(255, 220, 150, 0.15));
  --subtitle-color: #888888;
  /* Slider Variables */
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --arrow-bg: transparent;
  --arrow-hover-bg: #ffffff;
  --arrow-hover-text: #050505;
  --glass-bg: rgba(30, 30, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-gradient: linear-gradient(180deg, #ffffff 30%, #666666 100%);
  --quote-color: #ffd54a;
}

[data-theme="light"] {
  --bg-color: #e8e8ea;
  --text-color: #1a1a1a;
  --logo-color: #1a1a1a;
  --logo-shadow: none;
  --link-color: #555555;
  --link-hover: #000000;
  --link-shadow: none;
  --title-start: #1a1a1a;
  --title-end: #666666;
  --title-shadow: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.1));
  --subtitle-color: #444444;
  /* Slider Variables */
  --card-bg: rgba(0, 0, 0, 0.05);
  --card-border: rgba(0, 0, 0, 0.1);
  --arrow-bg: transparent;
  --arrow-hover-bg: #1a1a1a;
  --arrow-hover-text: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.1);
  --text-gradient: linear-gradient(180deg, #1a1a1a 30%, #666666 100%);
  --quote-color: #d4a017;
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

button,
input,
select,
a {
  touch-action: manipulation;
}

body {
  touch-action: pan-x pan-y;

  margin: 0;
  padding: 0;
  width: 100%;
  background-color: var(--bg-color);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-color);
  overflow-x: hidden;

  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}
* {
  touch-action: manipulation;
}

.snap-section {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  pointer-events: none;
}

#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  transform: translateZ(0);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 20;
  pointer-events: auto;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 5px;
  color: var(--logo-color);
  text-shadow: var(--logo-shadow);
  transition:
    color 0.5s ease,
    text-shadow 0.5s ease;
}
.nav-links {
  display: flex;
  gap: 40px;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--link-color);
  transition: color 0.5s ease;
}
.nav-links span {
  cursor: pointer;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}
.nav-links span:hover {
  color: var(--link-hover);
  text-shadow: var(--link-shadow);
}
.theme-toggle {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bulb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #888;
  position: relative;
  transition: all 0.3s ease;
}
.bulb::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 2px;
}
.theme-toggle.active .bulb {
  background: #ffd54a;
  box-shadow:
    0 0 6px #ffd54a,
    0 0 12px #ffd54a,
    0 0 18px rgba(255, 213, 74, 0.6);
}

.ui-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

.step-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(50px);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.title {
  font-size: 5rem;
  font-weight: 200;
  letter-spacing: 1.5rem;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    var(--title-start) 0%,
    var(--title-end) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  opacity: 0.9;
  filter: var(--title-shadow);
}
.subtitle {
  font-size: 1rem;
  letter-spacing: 0.6rem;
  color: var(--subtitle-color);
  margin-top: 1.5rem;
  text-transform: uppercase;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  justify-content: center;
  padding: 0 40px;
  box-sizing: border-box;
}
.slider-track-wrapper {
  overflow: hidden;
  width: 90%;
  max-width: 1400px;
}
.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.card {
  min-width: calc((100% - 60px) / 4);
  height: 60vh;
  min-height: 400px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.card h3 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 15px;
}
.slider-arrow {
  background: var(--arrow-bg);
  border: 1px solid var(--text-color);
  color: var(--text-color);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  flex-shrink: 0;
  pointer-events: auto;
}
.slider-arrow:hover {
  background: var(--arrow-hover-bg);
  color: var(--arrow-hover-text);
}

.scroll-action-btn {
  padding: 6px;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 30;
  pointer-events: auto;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.scroll-action-btn:hover {
  transform: translateX(-50%) translateY(-10px);
}
.line-btn {
  width: 2px;
  height: 40px;
  background: var(--text-color);
  opacity: 0.4;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.scroll-action-btn:hover .line-btn {
  opacity: 1;
  height: 70px;
  box-shadow: 0 0 15px var(--text-color);
}

#scroll-indicator {
  position: fixed;
  bottom: 60px;
  left: 60px;
  font-size: 1.2rem;
  font-family: monospace;
  letter-spacing: 2px;
  color: var(--text-color);
  z-index: 30;
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .card {
    min-width: calc((100% - 40px) / 3);
  }
}
@media (max-width: 768px) {
  .title {
    font-size: 3rem;
    letter-spacing: 0.8rem;
    text-align: center;
  }
  @media (max-width: 768px) {
    .ui-layer {
      padding-top: 0 !important;
      height: 100vh !important;
    }

    .step-layer {
      position: absolute !important;
      top: 50% !important;
      left: 50% !important;
      transform: translate(-50%, -50%) !important;
      width: 100% !important;
    }

    .slider-track-wrapper {
      width: calc(100vw - 40px) !important;
      margin: 0 auto !important;
    }

    .navbar {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }

    .hamburger {
      display: flex;
      order: 3;
      z-index: 102;
    }

    .theme-toggle {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      z-index: 102;
    }
  }
  .nav-links {
    display: none;
  }

  #scroll-indicator {
    bottom: 30px;
    left: 30px;
  }
  .slider-container {
    padding: 0 10px;
  }
  .slider-track-wrapper {
    width: 80%;
  }
  .card {
    min-width: 100%;
    height: 50vh;
    min-height: 300px;
  }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;

  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    background 0.3s ease,
    border 0.3s ease;
}

[data-theme="light"] .navbar {
  background: rgba(250, 250, 250, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--text-color);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--link-hover);
  box-shadow: 0 0 10px 1px var(--link-hover);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--link-hover);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

[data-theme="light"] .nav-links a::after {
  box-shadow: none;
}

.events-container {
  margin-top: 110px;
}

/* --- Footer Styles --- */
/* .main-footer {
  max-width: 1200px;
  margin: 60px auto 20px;
  padding: 0 5%;
} */
.main-footer {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 60px auto 20px;
  padding: 0 5%;
}
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 0; /* Override glass-panel margin */
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.footer-brand h3 {
  color: var(--primary-glow);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-glow);
  opacity: 1;
  text-shadow: 0 0 8px var(--primary-glow);
}

.footer-contact p {
  display: flex;
  align-items: center;
  opacity: 0.8;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-contact p {
    justify-content: center;
  }
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  color: var(--text-color);
}

.glass-panel h2,
.glass-panel h3 {
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
}
.mobile-filter {
  display: none;
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color, #fff);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
  font-size: 1rem;
}

.mobile-filter option {
  background: #222;
  color: #fff;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 102;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color, #fff);
  transition: 0.3s;
  border-radius: 2px;
}
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    order: 3;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .theme-toggle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 102;
  }

  .desktop-filters {
    display: none;
  }
  .mobile-filter {
    display: block;
  }

  [data-theme="light"] .nav-links {
    background: rgba(250, 250, 250, 0.952);
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
    display: flex;
  }

  .nav-links.show {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}
.ui-layer-about {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  padding: 45vh 40px 60px 40px;
  box-sizing: border-box;
  pointer-events: none;
}

.container {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  pointer-events: auto;
}
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 40px;
  box-sizing: border-box;
  transition:
    background 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.4s ease;
}
.glass-card:hover {
  border-color: rgba(255, 170, 30, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.image-card {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 10px;
  overflow: hidden;
}
.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.photo-placeholder:hover img {
  opacity: 1;
  transform: scale(1.03);
}
.image-card h2 {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.info-text h1 {
  font-size: 2.6rem;
  font-weight: 300;
  margin-top: 0;
  margin-bottom: 25px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background 0.5s ease;
}
.info-text p {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
  opacity: 0.8;
}
.brand-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--quote-color);
  border-left: 3px solid var(--quote-color);
  padding-left: 20px;
  margin: 10px 0 20px 0;
  opacity: 0.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}
.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 25px 15px;
  text-align: center;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.stat-box:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 170, 30, 0.4);
}
.stat-number {
  font-size: 2rem;
  font-weight: 200;
  color: var(--quote-color);
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
}
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .ui-layer {
    padding-top: 40vh;
  }
}
