:root {
  --bg-dark: #120c0a;
  --bg-panel: #201511;
  --mud-brown: #3a261c;
  --terracotta: #8e4a23;
  --golden-sand: #d4a373;
  --text-primary: #f0e6d2;
  --text-secondary: #a39585;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
}

.text-accent {
  color: var(--golden-sand);
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--golden-sand);
}
.text-center {
  text-align: center;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(18, 12, 10, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 50px;
  margin-right: 15px;
  object-fit: contain;
}

.logo span {
  color: var(--terracotta);
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  margin: 0 1.5rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--golden-sand);
}

.lang-toggle {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--golden-sand);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.lang-toggle:hover {
  background: var(--golden-sand);
  color: var(--bg-dark);
}

.btn-primary {
  background: linear-gradient(135deg, var(--terracotta), #6d3618);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(142, 74, 35, 0.4);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 0 5%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/hero_kambala.jpg') no-repeat;
  background-size: cover;
  background-position: 70% center;
  z-index: -2;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(18,12,10,0.9) 0%, rgba(18,12,10,0.4) 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-right: auto;
  margin-left: 0;
  text-align: left;
  padding-top: 120px;
}

.hero-big-logo {
  width: 100%;
  max-width: 500px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
  margin-right: auto;
  margin-left: 0;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-title-main {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.1;
  color: #ffffff;
}

.hero-subtitle-accent {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--golden-sand);
  font-size: clamp(2rem, 5vw, 4rem) !important;
  margin-top: 5px;
  margin-bottom: 2rem;
  padding-bottom: 10px; /* Fixes cropping of italic descenders */
  opacity: 1 !important;
  line-height: 1.2;
}

/* Scroll Animation Section */
.scroll-anim-section {
  position: relative;
  height: 120vh;
  background: linear-gradient(to bottom, #d4a373, #a67c52);
}

.bull-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16vw;
  font-weight: 900;
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  z-index: 0;
}

.running-bull {
  position: absolute;
  opacity: 0.95;
}

.bull-1 {
  height: 70vh;
  max-height: 700px;
  z-index: 3;
  filter: contrast(1.1);
}

.bull-2 {
  height: 55vh;
  max-height: 550px;
  z-index: 2;
  filter: contrast(1.1) brightness(0.85);
  margin-top: -10vh;
}

.bull-3 {
  height: 40vh;
  max-height: 400px;
  z-index: 1;
  filter: contrast(1.1) brightness(0.7);
  margin-top: -20vh;
}

.anim-content {
  position: absolute;
  bottom: 15%;
  left: 5%;
  max-width: 500px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.8s ease-out;
}

.anim-content .section-title {
  color: #3a261c;
}

.anim-content p {
  color: #201511;
  font-weight: 600;
}

.anim-content.active {
  transform: translateY(0);
  opacity: 1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section {
  padding: 6rem 5%;
  position: relative;
  overflow: hidden;
}

/* About */
.about {
  background: var(--bg-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  filter: sepia(0.2) contrast(1.1);
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.02);
}

/* Event Details */
.event-details {
  background: url('/hero_kambala_1788507302202.jpg') center/cover fixed;
  position: relative;
}

.event-details::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 10, 0.85);
}

.event-details .container {
  position: relative;
  z-index: 1;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
  transform: translateY(-10px);
  background: rgba(212, 163, 115, 0.05);
  border-color: rgba(212, 163, 115, 0.2);
}

.glass-card h3 {
  font-size: 1.8rem;
  color: var(--golden-sand);
  margin-bottom: 1rem;
}

/* Bull Clock */
.bull-clock-container {
  display: flex;
  justify-content: center;
  margin: 4rem 0 5rem;
}

.bull-clock {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 3px dashed var(--golden-sand);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.clock-display {
  display: flex;
  gap: 15px;
  font-family: 'Outfit', sans-serif;
  color: var(--terracotta);
  text-shadow: 0 2px 10px rgba(212, 163, 115, 0.3);
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-block span {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.time-block small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--golden-sand);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.orbiting-bull {
  position: absolute;
  top: 50%;
  left: 50%;
}

.orbiting-bull img {
  position: absolute;
  width: 60px;
  height: auto;
  /* Centers the image anchor */
  margin-top: -30px;
  margin-left: -30px;
  animation: orbitBull 6s linear infinite;
}

@keyframes orbitBull {
  0% { transform: rotate(0deg) translateX(140px) rotate(-90deg); }
  100% { transform: rotate(360deg) translateX(140px) rotate(-90deg); }
}

/* Timeline Schedule */
.schedule-section {
  max-width: 800px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 50px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: rgba(212, 163, 115, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-time {
  position: absolute;
  left: -50px;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--bg-dark);
  border: 2px solid var(--golden-sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--terracotta);
  font-size: 0.9rem;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.timeline-content {
  padding-left: 2rem;
  padding-top: 5px;
}

.timeline-content h4 {
  color: var(--golden-sand);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Registration Form Section */
.registration-section {
  background: var(--bg-dark);
}

.glass-form {
  background: rgba(32, 21, 17, 0.6);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 163, 115, 0.2);
  margin-top: 3rem;
}

.form-section-title {
  color: var(--golden-sand);
  margin: 2rem 0 1rem;
  border-bottom: 1px solid rgba(212, 163, 115, 0.2);
  padding-bottom: 0.5rem;
  font-size: 1.4rem;
}

.glass-form .form-section-title:first-child {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 4px;
  font-family: var(--font-body);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: rgba(0, 0, 0, 0.6);
}

.checkbox-group {
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
}
.checkbox-group input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.checkbox-group label {
  margin-bottom: 0 !important;
  cursor: pointer;
}

.inline-rules-container {
  margin-top: 2rem;
}

.rules-heading {
  color: var(--golden-sand);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.rules-box {
  max-height: 200px;
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 163, 115, 0.3);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  white-space: pre-line;
  line-height: 1.6;
}

/* Custom scrollbar for rules box */
.rules-box::-webkit-scrollbar {
  width: 6px;
}
.rules-box::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2); 
}
.rules-box::-webkit-scrollbar-thumb {
  background: var(--golden-sand); 
  border-radius: 10px;
}

.form-submit-container {
  margin-top: 3rem;
  text-align: center;
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #ef4444;
}

/* Footer */
footer {
  background: var(--bg-panel);
  padding: 4rem 5%;
  text-align: center;
  border-top: 1px solid rgba(212, 163, 115, 0.1);
}

footer h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--golden-sand);
}

.copyright {
  margin-top: 2rem;
  color: #666;
  font-size: 0.9rem;
}

.pitchfact-credits {
  margin-top: 0.5rem;
  color: var(--golden-sand);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Line Art Animations */
.line-art {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 300px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12; /* Subtle background */
  display: flex;
  align-items: center;
}

.line-art-left {
  left: 0;
  justify-content: flex-start;
}

.line-art-right {
  right: 0;
  justify-content: flex-end;
}

.side-buffalo {
  width: 100%;
  max-width: 500px;
  object-fit: contain;
  animation: floatBuffalo 8s ease-in-out infinite;
}

.line-art-left .side-buffalo {
  transform: scaleX(-1);
  margin-left: -150px;
  animation: floatBuffaloLeft 8s ease-in-out infinite;
}

.line-art-right .side-buffalo {
  margin-right: -150px;
  animation-delay: -4s;
}

@keyframes floatBuffalo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatBuffaloLeft {
  0%, 100% {
    transform: scaleX(-1) translateY(0);
  }
  50% {
    transform: scaleX(-1) translateY(-20px);
  }
}

/* Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  animation: revealUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .about-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Cropper Modal */
.cropper-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.cropper-modal.active {
  display: flex;
}
.cropper-modal-content {
  background: var(--bg-dark);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cropper-modal-content h3 {
  margin-top: 0;
  color: var(--golden-sand);
}
.cropper-modal-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.cropper-modal-content .img-container {
  max-height: 400px;
  margin: 1rem 0;
  overflow: hidden;
  background: #000;
}
.cropper-modal-content img {
  max-width: 100%;
  display: block;
}
.cropper-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}
