/* 
  ============================================================
  1. GLOBAL SETTINGS & VARIABLES
  ============================================================
*/
:root {
  --primary:    #ff4d00;
  --accent:     #00f2ff;
  --gold:       #ffd700;
  --dark:       #0a0a0f;
  --panel:      rgba(18, 18, 25, 0.94);
  --border:     rgba(255, 77, 0, 0.38);
  --glow:       rgba(255, 77, 0, 0.7);
  --text:       #f8f9fa;
  --muted:      #c0c8d8;
  --radius:     20px;
  --trans:      0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: 'Exo 2', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* 
  ============================================================
  2. ANIMATED BACKGROUND GRID
  ============================================================
*/
.bg-grid {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,77,0,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,242,255,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridMove 32s linear infinite;
  z-index: -2;
  pointer-events: none;
}

@keyframes gridMove { 
  to { background-position: 80px 80px; } 
}

.container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 5vw;
  position: relative;
  z-index: 2;
}

/* 
  ============================================================
  3. HERO SECTION (Main Landing)
  ============================================================
*/
.hero { text-align: center; padding: 6rem 1rem 5rem; }

.accred-bar {
  margin: 0 auto 4rem;
  max-width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.7);
  overflow: hidden;
}

.accred-banner { width: 100%; height: auto; display: block; object-fit: contain; }

.main-logo-wrapper { margin: 3rem 0 4rem; }

.main-logo {
  width: clamp(320px, 85vw, 750px);
  filter: drop-shadow(0 20px 60px rgba(255, 77, 0, 0.6));
  transition: transform 0.5s ease;
  margin: 0 auto 1.5rem;
  display: block;
}
.main-logo:hover { transform: scale(1.03); }

.subtitle {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 0 25px rgba(255,215,0,0.7);
}

.dept {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.6rem;
}

.fee {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.5rem 4.5rem;
  background: linear-gradient(145deg, rgba(255,77,0,0.28), rgba(0,242,255,0.18));
  border: 2.5px solid var(--primary);
  border-radius: 70px;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(255,77,0,0.5);
  transition: var(--trans);
  margin-top: 3rem;
  cursor: default;
}

.fire { font-size: 2.3rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* 
  ============================================================
  4. EVENTS GRID (Split Layout)
  ============================================================
*/
.events-section { padding: 5rem 0 8rem; perspective: 1000px; }

.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
}

@media (min-width: 1025px) {
  .events-grid::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
  }
}

.events-column {
  background: var(--panel);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3.5rem 2.5rem;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  transition: var(--trans);
}

.events-column:hover {
  border-color: var(--primary);
  box-shadow: 0 0 50px rgba(255, 77, 0, 0.15);
}

.events-column h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  text-align: center;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
  margin-bottom: 3.5rem;
  position: relative;
}

/* 
  ============================================================
  5. EVENT CARDS
  ============================================================
*/
.event-card {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  background: rgba(255,77,0,0.11);
  border: 1px solid rgba(255,77,0,0.42);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: var(--trans);
}

.event-card:hover {
  background: rgba(255,77,0,0.28);
  transform: translateX(14px) scale(1.02);
  box-shadow: 0 20px 60px rgba(255,77,0,0.5);
}

.event-icon {
  font-size: 2.5rem;
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,77,0,0.45), rgba(0,242,255,0.35));
  border-radius: 15px;
  flex-shrink: 0;
}

.event-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.2rem; }
.event-type { font-size: 1rem; color: var(--accent); font-weight: 500; }

/* 
  ============================================================
  6. RULES & REGULATIONS PAGE (Detail Page)
  ============================================================
*/
.event-detail {
  padding: 5rem 1rem 8rem;
  max-width: 1100px;
  margin: 0 auto;
}

.event-detail h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  text-align: center;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(255,77,0,0.6);
  margin-bottom: 1rem;
}

.rules-box {
  background: var(--panel);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 28px 90px rgba(0,0,0,0.82);
  margin-top: 2rem;
}

.rules-box h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2.5rem;
  letter-spacing: 4px;
}

.rules-box li {
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
  position: relative;
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.8;
  list-style: none;
}

.rules-box li::before {
  content: "»";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-size: 1.6rem;
  top: -2px;
}

.fee-info {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.3rem;
  color: var(--muted);
}
.fee-info strong { color: var(--gold); }

/* 
  ============================================================
  7. PERFECTLY SYMMETRIC CYAN BUTTON SYSTEM
  ============================================================
*/
.btn-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
  margin: 5rem auto;
}

/* Register Now and Back to Events - Identical Twins */
.btn-primary, 
.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  /* Precision Sizing for Symmetry */
  width: 300px;            
  height: 70px;            
  
  /* Typography */
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;     
  
  /* Visuals */
  border-radius: 100px;
  transition: var(--trans);
  backdrop-filter: blur(12px);
  cursor: pointer;
  
  /* Glowing Cyan Aesthetics */
  background: rgba(0, 242, 255, 0.1) !important; 
  border: 2px solid var(--accent) !important;
  color: var(--accent) !important;
  box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2);
}

/* Hover States - Unified */
.btn-primary:hover,
.btn-back:hover {
  background: var(--accent) !important;
  color: #000 !important; 
  box-shadow: 0 0 50px var(--accent);
  transform: translateY(-5px) scale(1.02);
}

/* 
  ============================================================
  8. FOOTER & RESPONSIVE FIXES
  ============================================================
*/
footer { text-align: center; padding: 6rem 1rem 4rem; color: #777; }
footer a { color: var(--accent); text-decoration: none; margin: 0 1.5rem; transition: 0.3s; }
footer a:hover { color: white; text-shadow: 0 0 10px var(--accent); }

@media (max-width: 1024px) {
  .events-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .btn-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .btn-primary, .btn-back {
    width: 100%;           
    max-width: 320px;      
  }
  
  .hero { padding: 4rem 1rem; }
}
/* Pricing Section Styles */
.pricing-section {
  padding: 4rem 0 6rem;
  text-align: center;
}

.pricing-header {
  margin-bottom: 4rem;
}

.pricing-header p {
  color: var(--muted);
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.pricing-container {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  perspective: 1000px;
}

.price-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0, 242, 255, 0.15);
}

.card-tag {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--border);
  color: white;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-tag.highlight {
  background: linear-gradient(90deg, var(--primary), #ff0000);
  box-shadow: 0 0 15px var(--primary);
}

.price-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.amount {
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.per {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-top: 1rem;
}

.price-features li {
  margin-bottom: 1rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
}

/* Combo Tiers Styling */
.combo-tiers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: 0.3s;
}

.tier.featured {
  border-color: var(--primary);
  background: rgba(255, 77, 0, 0.1);
  transform: scale(1.05);
}

.tier-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.tier-price {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 800;
}

.save-tag {
  font-size: 0.7rem;
  background: var(--primary);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
  animation: pulse 2s infinite;
}

.pass-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: auto;
  font-style: italic;
}

@media (max-width: 768px) {
  .pricing-container { gap: 1.5rem; }
  .tier.featured { transform: scale(1); }
}
/* Container to center the button below the grid */
.btn-container-center {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
  width: 100%;
}

/* Enhanced Back Button specifically for the Home/Events flow */
.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  
  width: 280px;
  height: 65px;
  
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  
  /* Cyan Cyberpunk Style */
  background: rgba(0, 242, 255, 0.05);
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.btn-back:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 40px var(--accent), 0 0 80px rgba(0, 242, 255, 0.3);
}

.btn-icon {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.btn-back:hover .btn-icon {
  transform: translateX(-8px);
}

/* Mobile adjust for the button */
@media (max-width: 768px) {
  .btn-container-center {
    margin-top: 3rem;
    padding: 0 2rem;
  }
  .btn-back {
    width: 100%;
  }
}