/* ===== Variables & Base ===== */
:root, [data-theme="dark"] {
    --bg-color: #202124;
    --text-main: #ffffff;
    --text-muted: #9aa0a6;
    --neon-blue: #8ab4f8; 
    --neon-purple: #f28b82; 
    --google-green: #81c995;
    --google-yellow: #fde293;
    --glass-bg: rgba(32, 33, 36, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --pill-bg: rgba(32, 33, 36, 0.85);
    --font-heading: 'Product Sans', 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --text-main: #202124;
    --text-muted: #5f6368;
    --neon-blue: #4285F4;
    --neon-purple: #EA4335;
    --google-green: #34A853;
    --google-yellow: #FBBC05;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --pill-bg: rgba(255, 255, 255, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-body);
    background-color: transparent;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
}

.neon-text {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5),
                 0 0 20px rgba(0, 240, 255, 0.3);
}

.dither-container {
    width: 100%;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none; /* Let clicks pass through to background unless strictly targeted */
    opacity: 0.4; /* Soft mix allowing background theme colors to blend with WebGL base */
}

/* ===== Navigation ==== */
/* ===== Staggered Menu / Navigation ==== */
:root {
  --sm-accent: var(--neon-blue);
  --sm-toggle-width: 50px;
  --sm-num-opacity: 0;
}

.staggered-menu-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  pointer-events: none;
  transition: height 0s linear 0.5s;
}

.staggered-menu-wrapper.fixed-wrapper {
  height: 100vh;
  pointer-events: auto;
  transition: none;
}

.staggered-menu-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: transparent;
  pointer-events: none;
  z-index: 2000;
}

.staggered-menu-header > * {
  pointer-events: auto;
}

.sm-logo {
  display: flex;
  align-items: center;
  user-select: none;
}

.sm-logo-img {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-main);
}

.sm-logo-img span {
    color: var(--neon-purple);
}

.sm-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sm-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  color: var(--text-main);
  font-weight: 600;
  line-height: 1;
  overflow: visible;
  transition: all 0.3s ease;
}

.sm-toggle:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(138, 180, 248, 0.3);
}

.sm-toggle-textWrap {
  position: relative;
  display: inline-block;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
  min-width: 45px;
  text-align: left;
}

.sm-toggle-textInner {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.sm-toggle-line {
  display: block;
  height: 1em;
  line-height: 1;
}

.sm-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.sm-icon-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.sm-icon-line-v {
    transform: translate(-50%, -50%) rotate(90deg);
}

.staggered-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(300px, 40vw, 500px);
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 10rem 4rem 4rem 4rem;
  overflow-y: auto;
  z-index: 1500;
  pointer-events: auto;
  transform: translateX(100%);
}

.sm-prelayers {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(300px, 40vw, 500px);
  pointer-events: none;
  z-index: 1400;
}

.sm-prelayer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  transform: translateX(100%);
}

.sm-panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sm-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sm-panel-itemWrap {
  position: relative;
  overflow: hidden;
  line-height: 1.1;
}

.sm-panel-item {
  position: relative;
  color: var(--text-main);
  font-weight: 700;
  font-size: 3.5rem;
  cursor: pointer;
  line-height: 1;
  letter-spacing: -2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  display: inline-block;
  text-decoration: none;
  padding-right: 1em;
}

.sm-panel-itemLabel {
  display: inline-block;
  will-change: transform;
  transform: translateY(140%) rotate(10deg);
}

.sm-panel-item:hover {
  color: var(--neon-blue);
}

.sm-panel-list[data-numbering] {
  counter-reset: smItem;
}

.sm-panel-list[data-numbering] .sm-panel-item::after {
  counter-increment: smItem;
  content: counter(smItem, decimal-leading-zero);
  position: absolute;
  top: 0.2em;
  right: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--neon-purple);
  letter-spacing: 1px;
  pointer-events: none;
  user-select: none;
  opacity: var(--sm-num-opacity);
  transition: opacity 0.5s ease;
}

.sm-qr-section {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sm-qr-container {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
}

.sm-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.2);
}

@media (max-width: 768px) {
  .staggered-menu-panel, .sm-prelayers {
    width: 100%;
  }
  .sm-panel-item {
    font-size: 2.5rem;
  }
  .staggered-menu-header {
      padding: 1rem;
  }
  .sm-qr-container {
      width: 150px;
      height: 150px;
  }
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero h1 {
    font-size: 5vw;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-dates {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neon-purple);
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bg-color);
    background: var(--neon-blue);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.cta-button:hover {
    background: var(--neon-purple);
    color: var(--bg-color);
    box-shadow: 0 0 30px rgba(234, 67, 53, 0.4);
    transform: translateY(-3px);
}

/* ===== Glass Panel Utilities ===== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* ===== About Section ===== */
.about-content {
    padding: 40px;
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* ===== Events Section ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.event-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-purple);
    box-shadow: 0 10px 30px rgba(177,0,255,0.2);
}

.event-image-placeholder {
    aspect-ratio: 3 / 4;
    width: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.event-image-placeholder::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0; left: 0;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.event-image-placeholder::after {
    pointer-events: none;
}

.event-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.event-meta {
    font-size: 0.9rem;
    color: var(--neon-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.event-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.card-btn:hover {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 15px rgba(177, 0, 255, 0.4);
}

summary.card-btn {
    list-style: none;
    display: block;
    text-align: center;
}
summary.card-btn::-webkit-details-marker {
    display: none;
}
details[open] summary.card-btn {
    margin-bottom: 15px;
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 15px rgba(177, 0, 255, 0.4);
}

/* ===== Footer ===== */
.footer {
    margin-top: 50px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 60px 20px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-info p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.footer-links p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Animations (JS Triggers) ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(13, 14, 21, 0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
    animation: fadeInModal 0.3s ease-out forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    transform: scale(0.9);
    animation: scaleUp 0.3s ease-out forwards;
}

@keyframes scaleUp {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--neon-purple);
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-body p {
    margin-bottom: 15px;
    color: var(--text-main);
}

.qr-container {
    margin: 20px auto;
    width: 200px;
    height: 200px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-content .cta-button {
    margin-top: 10px;
}

/* ===== Image Modal Styles ===== */
#image-modal {
    z-index: 3000;
}

.full-screen-img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    animation: scaleUp 0.3s ease-out forwards;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.close-image-btn {
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
}

/* ===== Schedule Section ===== */
.schedule-section {
    padding-bottom: 60px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.schedule-day {
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
}

.schedule-day-header {
    padding: 24px 28px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.15), rgba(138, 180, 248, 0.05));
    border-bottom: 1px solid var(--glass-border);
}

.schedule-day-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.april9-header {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(255, 165, 0, 0.05));
}

.schedule-day-badge {
    background: var(--neon-blue);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.april9-badge {
    background: #FFA500;
    color: #000;
}

.neon-text-orange {
    color: #FFA500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5), 0 0 20px rgba(255, 165, 0, 0.3);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.schedule-table thead tr {
    background: rgba(255, 255, 255, 0.04);
}

.schedule-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
}

.schedule-table td {
    padding: 13px 16px;
    color: var(--text-main);
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr {
    transition: background 0.2s ease;
}

.schedule-table tbody tr:hover {
    background: rgba(138, 180, 248, 0.06);
}

.schedule-day:last-child .schedule-table tbody tr:hover {
    background: rgba(255, 165, 0, 0.06);
}

.schedule-table td:first-child {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-table td:nth-child(2) {
    color: var(--neon-blue);
    font-weight: 500;
    white-space: nowrap;
}

.schedule-day:last-child .schedule-table td:nth-child(2) {
    color: #FFA500;
}

.schedule-table td:nth-child(3) {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.event-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-blue);
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(138, 180, 248, 0.8);
}

.april9-dot {
    background: #FFA500;
    box-shadow: 0 0 6px rgba(255, 165, 0, 0.8);
}

/* ===== April 9 Events Color ===== */
.april9 .event-meta {
    color: #FFA500;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .footer-content {
        flex-direction: column;
    }
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    .schedule-table th,
    .schedule-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }
    .schedule-day-header {
        padding: 18px 16px;
    }
    .schedule-day-header h3 {
        font-size: 1.2rem;
    }
}

/* ===== Parallax Scroller ===== */
.parallax {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.02);
}

.scroller {
  display: flex;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-main);
  opacity: 0.15;
}

.scroller span {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .scroller {
    font-size: 5rem;
    line-height: 5rem;
  }
}
