html, body {
  width: 100%;
  overflow-x: hidden;
}

:root {
  --bg-dark: #0A0A0F;
  --indigo: #1E1B3A;
  --violet: #3B1C5A;
  --orange: #FF8A00;
  --red: #E63B2E;
  --gold: #FFC76A;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    linear-gradient(
      rgba(10,10,15,0.75),
      rgba(10,10,15,0.75)
    ),
    url("bg1.jpg") center/cover fixed;
  color: white;
  overflow-x: hidden;
}

/* NAVBAR */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* MOBILE */
.menu-btn {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(10,10,15,0.95);
}

.mobile-menu a {
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* RESPONSIVE NAV */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-menu.show {
    display: flex;
  }
}


/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--orange), transparent 70%);
  filter: blur(120px);
  opacity: 0.35;
}

.hero-content {
  text-align: center;
}

.logo {
  width: 300px;
  filter: drop-shadow(0 0 40px rgba(255,138,0,0.6));
  animation: float 5s ease-in-out infinite;
}

.college {
  margin-top: 20px;
  letter-spacing: 2px;
  opacity: 0.8;
}

.tagline {
  color: var(--gold);
  margin-top: 8px;
}

/* CLUB SECTIONS */
.club-section {
  padding: 90px 8%;
}

.club-title {
  font-size: 2.8rem;
  margin-bottom: 50px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#about {
  padding: 120px 10% 80px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.about-text {
  max-width: 800px;
  margin: 30px auto 0;
  font-size: 1.05rem;
  opacity: 0.8;
  line-height: 1.7;
}

#contact {
  padding: 100px 10% 120px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact-box {
  margin-top: 30px;
  line-height: 2;
  opacity: 0.85;
}
section {
  scroll-margin-top: 90px;
}


/* EVENTS */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  justify-content: center;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}


.event-card {
  width: 100%;
  max-width: 420px;
  flex: 0 0 auto;
}

.event-card {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.basic-reg-btn {
  display: inline-block;
  margin-top: 35px;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  background: linear-gradient(90deg, #ff3b3b, #ff8c00);
  color: white;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(255, 59, 59, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.basic-reg-btn {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.basic-reg-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 59, 59, 0.9);
}
@media (max-width: 768px) {
  .basic-reg-btn {
    width: 90%;
    max-width: 320px;
    padding: 16px 0;
    font-size: 1rem;
  }
}

.important-banner {
  width: 100%;
  background: rgba(220, 38, 38, 0.95); /* strong red */
  color: white;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 12px;
  letter-spacing: 0.3px;
  z-index: 999;
}

@media (max-width: 768px) {
  .important-banner {
    font-size: 0.8rem;
    padding: 7px 10px;
  }
}

.sports-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}


@media (max-width: 768px) {
  .event-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    max-width: 100%;
  }
}


@media (max-width: 768px) {
  .event-grid {
    gap: 25px;
  }

  .event-card {
    max-width: 100%;
  }
}

.rules-section:last-child ul {
  margin-top: 6px;
}

.rules-section:last-child li {
  font-weight: 500;
}

.rules-modal {
  display: none;
}

.rules-modal.show {
  display: flex;
}


.event-badge {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

/* SOLO */
.event-badge.solo {
  background: rgba(255,255,255,0.08);
  color: #ddd;
  border: 1px solid rgba(255,255,255,0.25);
}

/* TEAM */
.event-badge.team {
  background: rgba(255,138,0,0.15);
  color: var(--orange);
  border: 1px solid rgba(255,138,0,0.4);
}


.rules-section {
  margin-top: 18px;
}

.rules-section h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.rules-section ul {
  padding-left: 18px;
  line-height: 1.6;
  opacity: 0.85;
}

.rules-section p {
  opacity: 0.85;
}


.event-card {
  background: #111;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 1px rgba(255,138,0,0.15);
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(255,138,0,0.25);
}

.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-content {
  padding: 25px;
}

.event-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.event-content p {
  opacity: 0.7;
  margin-bottom: 18px;
}

.event-content a {
  text-decoration: none;
  color: white;
  padding: 10px 24px;
  border-radius: 25px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  font-weight: 600;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px;
  opacity: 0.5;
}

/* FLOAT */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ============================= */
/* 📱 RESPONSIVE DESIGN LAYER   */
/* ============================= */

@media (max-width: 768px) {

  body {
    background-attachment: scroll;
  }

  .events-title,
  .gallery-title {
    font-size: 2.1rem;
  }
  .events-title,
  .gallery-title {
    max-width: 100%;
  }
  .club-tabs {
    display: none;
  }

  .club-select {
    display: block;
  }
  /* HERO */
  #hero {
    padding: 40px 20px;
    min-height: 90vh;
  }

  .logo {
    width: 220px;
  }

  .college {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .tagline {
    font-size: 0.9rem;
  }

  /* CLUB TABS */
  .club-tabs {
    justify-content: center;
    gap: 10px;
  }

  .tab-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
    border-radius: 20px;
  }

  /* EVENTS */
  .event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, max-content));
    gap: 40px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
  }
  .event-card img {
    height: 180px;
  }

  .event-content {
    padding: 20px;
  }

  .event-content h3 {
    font-size: 1.3rem;
  }

  /* GALLERY */
  .gallery-title {
    font-size: 2.2rem;
  }

  .gallery-track {
    gap: 20px;
    animation-duration: 50s;
  }

  .gallery-track img {
    width: 240px;
    height: 160px;
  }

  /* FOOTER */
  footer {
    font-size: 0.8rem;
    padding: 25px 15px;
  }
}


.about-image-wrapper {
  flex-shrink: 0;
  width: 100%;
  max-width: 480px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  position: relative;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

/* subtle dark overlay */
.about-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.35)
  );
}


#about {
  padding: 120px 20px 100px;
  position: relative;
  z-index: 2;
}

#about .section-title {
  text-align: center;
  margin-bottom: 50px;
}

.about-card {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.85;
  max-width: 520px;
}


.about-image-wrapper {
  max-width: 520px; /* slightly larger than before */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  position: relative;
}


@media (min-width: 769px) {
  .about-image-wrapper {
    transform: translateY(-5px);
  }
}


@media (max-width: 768px) {
  .about-card {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .about-text {
    max-width: 100%;
  }
}

/* SPORTS SUB TABS */
/* SPORTS SUB TABS – CLEAN HORIZONTAL */
.sports-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.sports-tab {
  padding: 10px 26px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,138,0,0.45);
  color: white;
  font-weight: 600;
  cursor: pointer;
  height: auto;
  min-height: unset;
  align-self: center;
}

.sports-tab.active {
  background: linear-gradient(90deg, var(--orange), var(--red));
  border: none;
}

#events .club-tabs {
  width: 100%;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}



/* PANELS */
.sports-panel {
  display: none;
}

.sports-panel.active {
  display: block;
}

/* RULES SECTION */
.sports-rules-title {
  text-align: center;
  margin-bottom: 20px;
}

.sports-rules-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

/* PDF VIEWER */
.pdf-wrapper {
  width: 100%;
  max-width: 1200px;
  height: calc(100vh - 260px);
  min-height: 600px;
  margin: 40px auto 0;
  border-radius: 20px;
  overflow: hidden;
  background: #eaeaea;
  box-shadow: 0 25px 60px rgba(0,0,0,0.55);
}

.pdf-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* RESET SPORTS RULES LAYOUT */
#sports-rules {
  width: 100%;
  max-width: 100%;
}


/* MOBILE */
@media (max-width: 768px) {
  .pdf-wrapper {
    height: calc(100vh - 220px);
    min-height: 450px;
  }
}




@media (max-width: 768px) {
  .about-image-wrapper {
    max-width: 100%;
  }

  .about-image-wrapper img {
    max-height: 200px;
  }
}


.event-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.register-btn {
  text-decoration: none;
  color: white;
  padding: 10px 22px;
  border-radius: 25px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  font-weight: 600;
}

.rules-btn {
  padding: 8px 14px;
  border-radius: 18px;
  background: #e0e0e0;
  color: #222;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.85;
}

.rules-btn:hover {
  opacity: 1;
}

.rules-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  padding: 12px;              /* KEY for mobile */
  overflow-y: auto;           /* KEY */
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.rules-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.rules-content {
  background: #111;
  padding: 30px 35px;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 85vh;           /* MOST IMPORTANT */
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: scaleIn 0.3s ease;
}

.rules-content h3 {
  margin-bottom: 15px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rules-content ul {
  line-height: 1.7;
  opacity: 0.85;
}
@media (max-width: 480px) {
  .rules-content {
    font-size: 14px;
  }
}


.close-btn {
  position: sticky;
  top: 0;
  float: right;
  padding: 4px 8px;
  z-index: 10;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.7;
}

.close-btn:hover {
  opacity: 1;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}



/* EVENTS SECTION */
#events {
  padding: 100px 8%;
  position: relative;
}

/* TITLE */
.events-title {
  font-size: 3rem;
  margin-bottom: 40px;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.laura-title {
  font-size: 3rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* TABS */
.club-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 26px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,138,0,0.25);
}

.tab-btn:hover {
  background: rgba(255,138,0,0.15);
}

.tab-btn.active {
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 0 25px rgba(255,138,0,0.6);
}

/* CLUB SELECT (mobile dropdown) */
.club-select {
  display: none;
  margin-bottom: 30px;
}

.club-select select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  background: #111;
  color: white;
  border: 1px solid rgba(255,138,0,0.4);
  font-size: 0.95rem;
}

/* CLUB CONTENT */
.club-content {
  display: none;
  animation: fadeUp 0.6s ease;
}

.club-content.active {
  display: block;
}

/* ANIMATION */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#embers,
.hero-bg,
.hero-overlay {
  pointer-events: none;
}
.nav-warning {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff3b3b; /* red text only */
  text-align: center;
  padding: 4px 8px 6px;
  letter-spacing: 0.3px;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  gap: 12px;
}
.nav-ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 12px;
}
.ticker-track {
  display: inline-block;
  color: #ff3b3b;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  animation: ticker-scroll 18s linear infinite;
}
@keyframes ticker-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
.logo,
.hamburger {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .nav-warning {
    font-size: 0.7rem;
    line-height: 1.2;
  }
}

#embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
 .ember {
  position: absolute;
  bottom: -20px;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #FFC76A, #FF8A00, transparent);
  border-radius: 50%;
  opacity: 0.8;
  filter: blur(0.5px);
  animation: rise linear infinite;
}

@keyframes rise {
  from {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }
  to {
    transform: translateY(-120vh) scale(0.3);
    opacity: 0;
  }
}
#hero,
#events,
footer {
  position: relative;
  z-index: 2;
}
/* GALLERY */
#gallery {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

#events,
#gallery {
  overflow: visible;
}


.gallery-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.events-title,
.gallery-title {
  text-align: center;
  line-height: 1.3;
  padding: 0 15px;
}
.events-title,
.gallery-title {
  padding-top: 0.2em;
  padding-bottom: 0.25em;
}
.events-title,
.gallery-title {
  font-size: clamp(2rem, 6vw, 3rem);
}

.events-title,
.gallery-title {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.gallery-wrapper {
  overflow: hidden;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollGallery 40s linear infinite;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-track img {
  width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.gallery-track img:hover {
  transform: scale(1.05);
}

/* ANIMATION */
@keyframes scrollGallery {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


@media (max-width: 768px) {
  .club-select {
    display: block !important;
    position: relative;
    z-index: 5;
  }
}

.event-fees {
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 14px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 900px) {
  .club-tabs { display: none !important; }
  .club-select { display: block !important; }
}
