/* ===== SPE INDHAN 2K23 - Global Styles ===== */
:root {
  --primary: #f97316;
  --dark: #0d1b2a;
  --darker: #060d14;
  --light: #f0f4ff;
  --accent: #fb923c;
  --text: #b8c5d6;
  --purple: #6c3fc5;
  --blue: #1e3a5f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: linear-gradient(160deg, #060d14 0%, #0d1b2a 40%, #0f1729 70%, #0a0f1e 100%);
  background-attachment: fixed;
  color: var(--light);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(108, 63, 197, 0.2);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(6, 13, 20, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 1px 0 rgba(108,63,197,0.2);
}

.nav-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 2px;
  position: relative;
}
.nav-brand::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav-brand:hover::after { width: 100%; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s;
  letter-spacing: 0.5px;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--primary);
  transition: all 0.3s;
  transform: translateX(-50%);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 70%; }
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(230, 126, 34, 0.08);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 25px; height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(108,63,197,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(249,115,22,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(30,58,95,0.3) 0%, transparent 60%),
    linear-gradient(135deg, #060d14 0%, #0d1b2a 50%, #0f1729 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 2rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Animated glow orbs */
.hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(108,63,197,0.15) 0%, rgba(249,115,22,0.08) 40%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulseOrb 4s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 70%);
  top: 20%; right: 10%;
  pointer-events: none;
  animation: floatOrb 6s ease-in-out infinite;
}

@keyframes pulseOrb {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.7; }
}
@keyframes floatOrb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* Hero entrance animations */
.hero-badge {
  display: inline-block;
  background: rgba(230,126,34,0.15);
  border: 1px solid rgba(230,126,34,0.4);
  color: var(--primary);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease both;
  animation-delay: 0.2s;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.4s;
}
.hero h1 span {
  color: var(--primary);
  text-shadow: 0 0 40px rgba(230,126,34,0.5);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.55s;
}
.hero-org {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 2.5rem;
  font-weight: 600;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.65s;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== COUNTDOWN ===== */
.countdown {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.75s;
}
.countdown-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(230,126,34,0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  min-width: 80px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.countdown-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230,126,34,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.countdown-item:hover { transform: translateY(-4px); border-color: rgba(230,126,34,0.6); }
.countdown-item:hover::before { opacity: 1; }
.countdown-item .num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  transition: transform 0.2s;
}
.countdown-item .label {
  font-size: 0.7rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  margin: 0.5rem;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.9s;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}
.btn-primary:hover::before { width: 300px; height: 300px; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(230,126,34,0.5);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  border: 2px solid var(--primary);
  margin: 0.5rem;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease both;
  animation-delay: 1s;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}
.btn-outline:hover::before { transform: scaleX(1); }
.btn-outline:hover { color: white; transform: translateY(-3px); }

/* ===== SOCIAL LINKS ===== */
.social-links {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeIn 1s ease both;
  animation-delay: 1.1s;
}
.social-links a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s;
}
.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-4px) rotate(8deg);
  box-shadow: 0 6px 20px rgba(230,126,34,0.4);
}

/* ===== SECTIONS ===== */
section { padding: 5rem 2rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--text); font-size: 1rem; }
.section-divider {
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 0.8rem auto 0;
  transition: width 1s ease;
}
.section-divider.visible { width: 60px; }

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  background: linear-gradient(135deg, rgba(13,27,42,0.9), rgba(15,23,41,0.8));
  border: 1px solid rgba(108,63,197,0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,63,197,0.08), rgba(249,115,22,0.05));
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(249,115,22,0.5);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,63,197,0.2), 0 0 30px rgba(108,63,197,0.1);
}
.card:hover::before { opacity: 1; }

.card-icon {
  background: linear-gradient(135deg, rgba(108,63,197,0.2), rgba(249,115,22,0.1));
  padding: 2rem;
  text-align: center;
  font-size: 3rem;
  transition: transform 0.3s;
}
.card:hover .card-icon { transform: scale(1.1); }

.card-body { padding: 1.5rem; }
.card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--light);
  transition: color 0.3s;
}
.card:hover .card-body h3 { color: var(--primary); }
.card-body p { color: var(--text); font-size: 0.9rem; line-height: 1.6; }
.card-tag {
  display: inline-block;
  background: rgba(230,126,34,0.12);
  color: var(--primary);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.8rem;
  transition: background 0.3s;
}
.card:hover .card-tag { background: rgba(230,126,34,0.25); }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 120px 2rem 60px;
  text-align: center;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(108,63,197,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(249,115,22,0.08) 0%, transparent 60%),
    linear-gradient(135deg, #060d14, #0d1b2a);
  border-bottom: 1px solid rgba(249,115,22,0.15);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(108,63,197,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulseOrb 5s ease-in-out infinite;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  animation: fadeInDown 0.7s ease both;
}
.page-header h1 span { color: var(--primary); }
.page-header p {
  color: var(--text);
  margin-top: 0.5rem;
  font-size: 1rem;
  animation: fadeInUp 0.7s ease both;
  animation-delay: 0.2s;
}

/* ===== EVENT DETAIL ===== */
.event-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.event-detail h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin: 2rem 0 0.8rem;
  position: relative;
  padding-left: 1rem;
}
.event-detail h2::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 70%;
  background: linear-gradient(var(--primary), var(--accent));
  border-radius: 2px;
}
.event-detail h2:first-child { margin-top: 0; }
.event-detail p, .event-detail li {
  color: var(--text);
  line-height: 1.8;
  font-size: 0.95rem;
}
.event-detail ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.event-detail ul li {
  margin-bottom: 0.4rem;
  position: relative;
}
.deadline {
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231,76,60,0.3);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  color: #e74c3c;
  font-weight: 700;
  margin: 1rem 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(231,76,60,0); }
}
.contact-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  transition: border-color 0.3s, transform 0.3s;
}
.contact-box:hover {
  border-color: rgba(230,126,34,0.3);
  transform: translateX(4px);
}
.contact-box h3 { color: var(--accent); margin-bottom: 0.5rem; font-size: 1rem; }
.contact-box p { color: var(--text); font-size: 0.9rem; }

/* ===== TEAM ===== */
.team-section { max-width: 1200px; margin: 0 auto; }
.team-category { margin-bottom: 4rem; }
.team-category h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(230,126,34,0.2);
  position: relative;
}
.team-category h2::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 2px;
  background: var(--primary);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: linear-gradient(135deg, rgba(13,27,42,0.9), rgba(15,23,41,0.8));
  border: 1px solid rgba(108,63,197,0.12);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.team-card:hover {
  border-color: rgba(249,115,22,0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 20px rgba(108,63,197,0.1);
}
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover .team-avatar {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(230,126,34,0.4);
}
.team-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.team-card p { font-size: 0.8rem; color: var(--text); }
.team-card .contact-btn {
  display: inline-block;
  margin-top: 0.8rem;
  background: rgba(230,126,34,0.12);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.team-card .contact-btn:hover {
  background: var(--primary);
  color: white;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.4s;
}
.gallery-item:hover {
  border-color: rgba(230,126,34,0.5);
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, rgba(6,13,20,0.95), rgba(13,27,42,0.95));
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--primary), transparent);
}
footer .footer-brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}
footer p { color: var(--text); font-size: 0.85rem; margin-bottom: 1rem; }
footer .footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
footer .footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
footer .footer-links a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== GLOWING LINE DIVIDER ===== */
.glow-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230,126,34,0.4), transparent);
  margin: 0;
}

/* ===== FLOATING SHAPES (decorative) ===== */
.shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.04;
  animation: floatShape linear infinite;
}
@keyframes floatShape {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-100vh) rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(6,13,20,0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(108,63,197,0.2);
    animation: slideDown 0.3s ease;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .countdown { gap: 0.8rem; }
  .countdown-item { padding: 0.8rem 1rem; min-width: 65px; }
  .countdown-item .num { font-size: 1.8rem; }
}
