/* --- Root Variables: Upgraded Fiery Theme --- */
:root {
  --primary-bg: #0A0A0A;
  --secondary-bg: #141414;
  --accent-primary: #FF5F1F; /* A more vibrant orange */
  --accent-secondary: #FF8C00;
  --accent-tertiary: #FFD700;
  --text-primary: #EAEAEA;
  --text-secondary: #A0A0A0;
  --card-bg: rgba(20, 20, 20, 0.5); /* Semi-transparent for glass effect */
  --card-border: rgba(255, 95, 31, 0.2);
  --card-glow: rgba(255, 95, 31, 0.4);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --gradient-text: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
}

/* --- Base & Typography --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Antipasto', sans-serif; /* Using specified fonts */
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
h1, h2, h3 { line-height: 1.2; }

/* --- Hero Section --- */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  inset: 0;
  background: url('/images/snapfest-bg.jpeg') center/cover no-repeat;
  z-index: -2;
  transform: scale(1.1); /* Slightly larger for parallax */
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.95) 90%);
  z-index: -1;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
#snapfest-title {
  font-family: 'Astroz', sans-serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  text-transform: uppercase;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 50px var(--card-glow);
}
.event-date {
  font-family: 'Luxia', serif;
  font-size: 1.5rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
}
.hero-description {
  font-size: 1.25rem;
  max-width: 600px;
  color: var(--text-secondary);
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  font-family: 'Luxia', serif;
  color: var(--text-secondary);
  writing-mode: vertical-lr;
  letter-spacing: 4px;
}
.scroll-indicator::after {
  content: '';
  display: block;
  margin: 10px auto 0;
  width: 1px;
  height: 50px;
  background: var(--accent-primary);
  animation: scroll-flicker 2s infinite;
}
@keyframes scroll-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Timeline Section --- */
.timeline-section {
  padding: 8rem 0;
  position: relative;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-image: linear-gradient(to bottom, var(--accent-primary), transparent);
  transform-origin: top;
  z-index: -1;
  /* Will be animated by GSAP */
  transform: scaleY(0);
}
.timeline-item {
  margin-bottom: 8rem;
}
.timeline-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 4rem;
  background: var(--card-bg);
  padding: 2rem;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform 0.8s cubic-bezier(0.075, 0.82, 0.165, 1);
  will-change: transform; /* Performance hint for JS animation */
}
.timeline-item:nth-child(even) .timeline-card {
  direction: rtl; /* Reverses grid order */
}
.timeline-item:nth-child(even) .timeline-card > * {
  direction: ltr; /* Resets text direction for content */
}
.card-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.timeline-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}
.card-title {
  font-family: 'Luxia', serif;
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}
.card-subtitle {
  font-family: 'Astroz', sans-serif;
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.card-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
}
.winner-quote {
  font-style: italic;
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-secondary);
  color: var(--text-primary);
}

/* --- Gallery Section --- */
.gallery-section {
  padding: 8rem 0;
  text-align: center;
}
#gallery-title {
  font-family: 'Astroz', sans-serif;
  font-size: 3.5rem;
  margin-bottom: 4rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- CTA Section --- */
.cta-section {
  padding: 8rem 0;
  text-align: center;
}
.cta-section .container {
  background: var(--secondary-bg);
  padding: 4rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--card-border);
}
#cta-title {
  font-family: 'Astroz', sans-serif;
  font-size: 3rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.social-link {
  font-family: 'Luxia', serif;
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  background: transparent;
}
.social-link:hover {
  background: var(--accent-primary);
  color: var(--primary-bg);
  box-shadow: 0 0 20px var(--card-glow);
  transform: translateY(-5px);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .timeline-line { left: 2rem; }
  .timeline-card, .timeline-item:nth-child(even) .timeline-card {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .timeline-card > * { direction: ltr; }
}