/* 1. ROOT VARIABLES ... (no changes) */
:root {
  /* Fonts */
  --font-display-impact: 'Monument Extended', sans-serif;
  --font-sans-clean: 'Satoshi', sans-serif;
  --font-sans-quirky: 'Bricolage Grotesque', sans-serif;
  --font-serif-elegant: 'Medio', serif;
  --font-serif-display: 'Avigea', serif;

  /* Starry Night Palette */
  --color-bg-deep-space: #0A0B1A;
  --color-bg-night-sky: #11132a;
  --color-bg-void: #02020C;
  --color-primary-glow: #8B5CF6;
  --color-secondary-glow: #38BDF8;
  --color-accent-star: #FDE047;
  --color-text-primary: #E2E8F0;
  --color-text-secondary: #94A3B8;
  --color-border: rgba(148, 163, 184, 0.2);
  --color-border-hover: rgba(139, 92, 246, 0.5);

  /* Effects & Transitions */
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* 2. GENERAL STYLES & RESETS ... (no changes) */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans-clean);
  color: var(--color-text-primary);
  background-color: var(--color-bg-deep-space);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 80px;
  cursor: url('/cursors/uca-default.png'), pointer;
}
a, button, [role="button"] {
  cursor: url('/cursors/uca-hover.png'), pointer;
}
a:hover, button:hover, [role="button"]:hover {
  cursor: url('/cursors/uca-hover.png'), pointer;
}
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 {
  font-family: var(--font-serif-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-text-primary), var(--color-text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-header .section-subtitle {
  font-family: var(--font-sans-quirky);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* 3. HERO SECTION ... (no changes) */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.constellation-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg-void) 0%, var(--color-bg-deep-space) 100%);
  z-index: 0;
}
/* Styles for stars generated by anime.js */
.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    will-change: transform, opacity;
}
.hero-content { position: relative; z-index: 1; max-width: 900px; padding: 0 2rem; }
.hero-content h1 {
  font-family: var(--font-display-impact);
  font-size: clamp(3rem, 8vw, 6rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}
.hero-subtitle {
  font-family: var(--font-sans-quirky);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--color-text-secondary);
  opacity: 0.9;
  margin-top: 1.5rem;
}
.hero-cta { margin-top: 2.5rem; }
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-secondary);
  animation: bounce 2s infinite;
  z-index: 2;
  transition: color 0.3s ease;
}
.scroll-indicator:hover { color: var(--color-text-primary); }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}
.button-primary {
  font-family: var(--font-sans-clean);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
  text-decoration: none;
  padding: 1rem 2.5rem;
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  overflow: hidden;
  transition: color 0.4s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-position 0.4s ease;
}
.button-primary span { z-index: 2; position: relative; }
.button-primary i { z-index: 2; position: relative; }
.button-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary-glow);
  transform: translateX(-100%);
  transition: transform 0.4s var(--transition-smooth);
  z-index: 1;
}
.button-primary:hover {
  border-color: var(--color-primary-glow);
  color: var(--color-bg-deep-space);
  box-shadow: 0 0 15px 0px var(--color-primary-glow);
}
.button-primary:hover::before {
  transform: translateX(0);
}
.button-primary:active {
  transform: scale(0.98);
  box-shadow: 0 0 8px 0px var(--color-primary-glow);
}


/* 4. ABOUT SECTION ... (no changes) */
.about {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--color-bg-deep-space), var(--color-bg-night-sky));
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.stat-item {
  background-color: rgba(17, 19, 42, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.stat-item:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-hover);
  box-shadow: 0 0 20px -5px var(--color-secondary-glow);
}
.stat-icon {
  width: 36px;
  height: 36px;
  color: var(--color-secondary-glow);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}
.stat-number {
  font-family: var(--font-serif-display);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  color: var(--color-text-primary);
  line-height: 1.1;
}
.stat-label {
  font-family: var(--font-sans-quirky);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* === 5. CLUBS SECTION (REDESIGNED FOR MOBILE) === */
.clubs {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--color-bg-night-sky), var(--color-bg-void));
  position: relative;
}
.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}
.club-card {
  aspect-ratio: 4 / 5;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  background-color: var(--color-bg-night-sky);
  border: 1px solid var(--color-border);
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.club-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth), filter 0.4s ease;
  z-index: 1;
}
.club-info {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  color: var(--color-text-primary);
  background: linear-gradient(to top, rgba(10, 11, 26, 0.95) 20%, rgba(10, 11, 26, 0.5) 70%, transparent 100%);
  /* MOBILE FIX: Info is visible by default */
  transform: translateY(0);
  transition: transform 0.4s var(--transition-smooth);
}
.club-info h3 {
  font-family: var(--font-serif-elegant);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.club-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans-clean);
  font-weight: 600;
  font-size: 1rem;
  /* MOBILE FIX: CTA is visible by default */
  opacity: 1;
  transition: opacity 0.4s ease 0.1s;
}
.club-cta i {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

/* === 6. EVENTS SECTION ... (no major changes) === */
.events {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--color-bg-void), var(--color-bg-deep-space));
  position: relative;
}
.events::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 25%);
}
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.event-card {
  display: flex;
  flex-direction: row;
  background-color: var(--color-bg-night-sky);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth), border-color 0.4s var(--transition-smooth);
  min-height: 320px;
}
.event-image {
  flex-basis: 40%;
  overflow: hidden;
  position: relative;
}
.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth);
}
.event-content {
  flex-basis: 60%;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
}
.event-date {
  color: var(--color-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-sans-clean);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}
.event-content h3 {
  font-family: var(--font-serif-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}
.event-content p {
  color: var(--color-text-secondary);
  flex-grow: 1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary-glow);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}
.read-more:hover {
  gap: 0.75rem;
  color: var(--color-text-primary);
}

/* Event Card Specifics (no changes) */
.event-card--frbd { background-color: #1C2526; }
.event-card--frbd:hover { border-color: #a0a0a0; box-shadow: 0 0 25px -8px #a0a0a0; }
.event-card--frbd .read-more { color: #a0a0a0; }
.event-card--frbd .read-more:hover { color: #ffffff; }
.event-card--frbd .event-date { color: #8f8f8f; }
.event-card--uca:hover { border-color: var(--color-secondary-glow); box-shadow: 0 0 25px -8px var(--color-secondary-glow); }
.event-card--uca .read-more { color: var(--color-secondary-glow); }
.event-card--uca .read-more:hover { color: var(--color-text-primary); }
.event-card--triquest { background: linear-gradient(var(--color-bg-night-sky), var(--color-bg-night-sky)) padding-box, linear-gradient(135deg, #8B0000, #000080) border-box; border: 1px solid transparent; }
.event-card--triquest:hover { box-shadow: 0 0 25px -8px #8B0000; }
.event-card--triquest .read-more { color: #B22222; }
.event-card--triquest .read-more:hover { color: #6495ED; }

/* ======================================================= */
/* 7. DESKTOP-ONLY STYLES (HOVER EFFECTS)                  */
/* Media query to apply these styles only on screens      */
/* wide enough to be desktops, with hover capability.     */
/* ======================================================= */
@media (min-width: 769px) {
  .event-card:hover {
    transform: scale(1.02);
    box-shadow: var(--hover-shadow);
  }
  .event-card:hover .event-image img {
    transform: scale(1.1);
  }
  .club-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--hover-shadow);
    border-color: var(--color-border-hover);
  }
  .club-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
  }
  .club-info {
    /* DESKTOP ONLY: Hide info initially */
    transform: translateY(30%);
  }
  .club-card:hover .club-info {
    /* DESKTOP ONLY: Reveal info on hover */
    transform: translateY(0);
  }
  .club-cta {
    /* DESKTOP ONLY: Hide cta initially */
    opacity: 0;
  }
  .club-card:hover .club-cta {
    /* DESKTOP ONLY: Reveal cta on hover */
    opacity: 1;
  }
  .club-card:hover .club-cta i {
    transform: translateX(5px);
  }
  /* Club Specific Hovers */
  .club-card--sports:hover { border-color: rgba(255, 255, 255, 0.8); box-shadow: 0 0 25px -5px rgba(255, 255, 255, 0.7); }
  .club-card--sports:hover img { filter: brightness(0.5) grayscale(0.8); }
  .club-card--sports .club-cta { color: #E2E8F0; }
  .club-card--ict:hover { border-color: #ffbd59; box-shadow: 0 0 25px -5px #4b0082; }
  .club-card--ict .club-cta { color: #ffbd59; }
  .club-card--photography:hover { border-color: #8B4513; box-shadow: 0 0 25px -5px #8B4513; }
  .club-card--photography .club-cta { color: #D2B48C; }
}


/* ======================================================= */
/* 8. MOBILE & TABLET RESPONSIVE STYLES                    */
/* ======================================================= */
@media (max-width: 768px) {
  body { 
    padding-top: 70px; 
    cursor: default; /* Remove custom cursor on mobile */
  }
  a, button, [role="button"], a:hover, button:hover, [role="button"]:hover {
    cursor: pointer; /* Use default pointer on mobile */
  }
  .section-container { 
    padding: 0 1rem; 
  }
  .about, .clubs, .events { 
    padding: 4rem 0; 
  }

  /* Hero */
  .hero { 
    height: 90vh; /* A bit taller for mobile */
  }
  .hero-content {
    padding: 0 1rem;
  }
  .hero-content h1 { 
    font-size: clamp(2.5rem, 10vw, 3.5rem); 
  }
  .hero-subtitle { 
    font-size: clamp(1rem, 4vw, 1.2rem); 
  }
  .button-primary {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }
  
  /* Sections */
  .section-header { 
    margin-bottom: 2.5rem; 
  }
  .section-header h2 {
    font-size: clamp(2.2rem, 9vw, 2.8rem);
  }

  /* Club & Event Grids */
  .club-grid, .event-grid { 
    grid-template-columns: 1fr; 
    gap: 2rem; 
  }
  .club-card, .event-card {
    box-shadow: var(--card-shadow); /* Add shadow by default on mobile */
  }

  /* Event Card Mobile Layout */
  .event-card { 
    flex-direction: column; 
  }
  .event-image { 
    flex-basis: 220px; /* Fixed height for image area */
  }
  .event-content {
    padding: 1.5rem;
  }
  .event-content h3 {
    font-size: 1.5rem;
  }
  .event-content p {
    font-size: 0.95rem;
  }
}