/* ==========================================================================
   MECHATRONICS ENGINEERING ASSOCIATION (MCEA) - DESIGN SYSTEM & STYLES
   ========================================================================== */

:root {
  /* Color Palette derived from MCEA Logo */
  --bg-primary: #07080e;
  --bg-secondary: #0e101a;
  --bg-card: rgba(18, 21, 36, 0.7);
  --bg-glass: rgba(15, 18, 30, 0.65);
  
  --purple-main: #8b5cf6;
  --purple-bright: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.4);
  --purple-dark: #6d28d9;
  --purple-deep: #4c1d95;

  --cyber-blue: #00d2ff;
  --cyber-cyan: #38bdf8;
  --cyber-green: #10b981;
  --accent-gold: #f59e0b;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-glow: rgba(139, 92, 246, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Orbitron', 'Inter', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Cyber Grid Overlay */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  top: -150px;
  right: -150px;
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 10s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
  100% { transform: scale(1.2) translate(-50px, 50px); opacity: 0.9; }
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--purple-bright) 50%, var(--cyber-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--purple-bright);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px auto;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-main) 0%, var(--purple-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--purple-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
  background: linear-gradient(135deg, var(--purple-bright) 0%, var(--purple-main) 100%);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--purple-bright);
  color: #fff;
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  background: rgba(7, 8, 14, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  height: 70px;
  background: rgba(7, 8, 14, 0.92);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--purple-bright), var(--cyber-cyan));
  box-shadow: 0 0 15px var(--purple-glow);
  transition: transform 0.4s ease;
}

.nav-brand:hover .nav-logo {
  transform: rotate(360deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: #fff;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--purple-bright);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--purple-bright);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Form Dropdowns Legibility Fix */
select.form-input {
  background-color: #0e101a;
  color: #ffffff;
}

select.form-input option {
  background-color: #0e101a !important;
  color: #ffffff !important;
  padding: 10px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 5% 60px 5%;
  z-index: 1;
  overflow: hidden;
}

.hero-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-container {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--purple-glow);
  color: var(--purple-bright);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--purple-bright);
  font-weight: 800;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-frame {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  padding: 20px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(14, 16, 26, 0.8) 70%);
  border: 2px solid var(--border-glow);
  box-shadow: 0 0 50px var(--purple-glow), inset 0 0 30px rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.hero-logo-frame img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.5));
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

/* Common Section Layout */
.section {
  padding: 100px 5%;
  position: relative;
  z-index: 1;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.15);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.feature-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* OFFICE BEARERS SECTION (Key Feature) */
.office-bearers {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.bearer-tabs-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto 40px auto;
  background: rgba(15, 18, 30, 0.8);
  padding: 8px;
  border-radius: 40px;
  border: 1px solid var(--border-glow);
}

.bearer-tab {
  padding: 10px 24px;
  border-radius: 30px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.bearer-tab.active, .bearer-tab:hover {
  background: linear-gradient(135deg, var(--purple-main), var(--purple-dark));
  color: #fff;
  box-shadow: 0 4px 15px var(--purple-glow);
}

.bearer-subtabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.subtab-btn {
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.subtab-btn.active, .subtab-btn:hover {
  border-color: var(--cyber-cyan);
  color: var(--cyber-cyan);
  background: rgba(56, 189, 248, 0.1);
}

/* Stack category sections vertically */
.bearers-grid {
  display: block !important;
  max-width: 1200px;
  margin: 0 auto;
}

/* Horizontal scrolling for cards inside each category section */
.bearers-grid-row {
  display: flex !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 30px;
  padding: 20px 10px !important;
  scroll-behavior: smooth;
  width: 100%;
  
  /* Hide scrollbar on Firefox and IE/Edge */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Hide scrollbar on Chrome, Safari, and Opera */
.bearers-grid-row::-webkit-scrollbar {
  display: none;
}

.bearer-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
}

.bearer-card:hover {
  border-color: var(--purple-bright);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.3);
}

.bearer-card-header {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(14, 16, 26, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bearer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.bearer-card:hover .bearer-img {
  transform: scale(1.08);
}

.bearer-role-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(7, 8, 14, 0.85);
  border: 1px solid var(--purple-glow);
  color: var(--purple-bright);
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.bearer-card-body {
  padding: 24px;
  text-align: center;
}

.bearer-name {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: #fff;
}

.bearer-designation {
  color: var(--cyber-cyan);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.bearer-dept {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.bearer-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 1rem;
}

.social-icon.instagram {
  background: rgba(225, 48, 108, 0.15);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.4);
}

.social-icon.instagram:hover {
  background: #e1306c;
  color: #fff;
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.5);
}

.social-icon:hover {
  background: var(--purple-main);
  color: #fff;
  transform: translateY(-3px);
}

/* Events Section */
.events-section {
  position: relative;
}

.event-countdown-card {
  max-width: 900px;
  margin: 0 auto 60px auto;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.3) 0%, rgba(14, 16, 26, 0.9) 100%);
  border: 1px solid var(--purple-bright);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(7, 8, 14, 0.7);
  border: 1px solid var(--border-glow);
  padding: 16px 24px;
  border-radius: 12px;
  min-width: 90px;
}

.countdown-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyber-cyan);
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.events-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.event-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: var(--transition-normal);
  display: block;
  width: 100%;
  aspect-ratio: 4.4/1;
  max-height: 250px;
  position: relative;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(139, 92, 246, 0.15);
}

.event-banner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.event-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--purple-main);
  color: #fff;
}

.event-body {
  display: none;
}

.event-date {
  font-size: 0.85rem;
  color: var(--cyber-cyan);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.event-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Achievements Wall */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.achievement-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition-normal);
}

.achievement-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

.trophy-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* Gallery Section */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-heading);
  font-size: 0.8rem;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--purple-main);
  color: #fff;
  border-color: var(--purple-bright);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 220px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(7, 8, 14, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Contact & Footer */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--purple-bright);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
  background: rgba(139, 92, 246, 0.05);
}

.footer {
  background: #040508;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 5% 30px 5%;
  margin-top: 100px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Modal Lightbox */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--purple-bright);
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  padding: 32px;
  position: relative;
  box-shadow: 0 0 40px var(--purple-glow);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container, .about-grid, .contact-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions, .hero-stats {
    justify-content: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .hero-graphic {
    display: flex;
    justify-content: center;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .section {
    padding: 60px 4% !important;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-stats {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  .modal-content {
    padding: 20px !important;
    width: 95% !important;
  }
  #achievementSlideshow {
    aspect-ratio: 2.5/1 !important;
    max-height: 180px !important;
  }
  .event-card {
    aspect-ratio: 2.5/1 !important;
    max-height: 180px !important;
    height: auto !important;
  }
  .event-banner {
    width: 100% !important;
    height: 100% !important;
    padding: 16px !important;
    border-right: none !important;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-badge {
    font-size: 0.75rem;
  }
  .btn {
    width: 100%;
    padding: 10px 20px;
  }
  .nav-brand {
    gap: 8px;
  }
  .brand-title {
    font-size: 1.1rem;
  }
  #achievementSlideshow {
    aspect-ratio: 2/1 !important;
    max-height: 160px !important;
  }
  .event-card {
    aspect-ratio: 2/1 !important;
    max-height: 160px !important;
  }
}

/* Site-wide Premium Minimalistic Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title, 
.section-subtitle, 
.glass-card, 
.event-card, 
.bearer-card,
.event-countdown-card {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.glass-card:nth-child(1), .event-card:nth-child(1), .bearer-card:nth-child(1) { animation-delay: 0.05s; }
.glass-card:nth-child(2), .event-card:nth-child(2), .bearer-card:nth-child(2) { animation-delay: 0.1s; }
.glass-card:nth-child(3), .event-card:nth-child(3), .bearer-card:nth-child(3) { animation-delay: 0.15s; }
.glass-card:nth-child(4), .event-card:nth-child(4), .bearer-card:nth-child(4) { animation-delay: 0.2s; }
