/* Color Variables - Dark Cinematic Blues */
:root {
  --bg-deep: #050b14;       /* Almost black blue */
  --bg-surface: #0a1120;    /* Dark blue surface */
  --bg-card: #111c33;       /* Slightly lighter card background */
  --accent-primary: #3b82f6; /* Clean digital blue */
  --accent-glow: rgba(59, 130, 246, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Audiowide', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-deep);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-content {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 4px;
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.5; text-shadow: 0 0 10px transparent; }
  100% { opacity: 1; text-shadow: 0 0 20px var(--accent-primary); }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

#close-menu {
  display: none; /* Hides the mobile close button on desktop */
}

.logo {
  height: 45px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.nav-controls i {
  font-size: 1.5rem;
  display: none; /* For mobile */
}

/* Sliding Banner */
.sliding-banner {
  margin-top: 80px;
  background-color: var(--accent-primary);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}

.sliding-text {
  display: inline-block;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  animation: slideBanner 20s linear infinite;
  padding-left: 100%;
}

@keyframes slideBanner {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Typography & Utilities */
.section-padding {
  padding: 100px 5%;
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.line {
  width: 60px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* --- Particle Canvas --- */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2; /* Keeps it behind the logo (-1) and the text */
  pointer-events: auto; /* Allows it to track the mouse */
}

.hero-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.03;
  z-index: -1;
  width: 60vw;
  max-width: 600px;
}

.hero-bg-logo img {
  width: 100%;
  filter: grayscale(100%);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 8rem); /* Made it even bigger */
  font-weight: 900;
  letter-spacing: -2px;
  /* Glowing gradient text */
  background: linear-gradient(135deg, #ffffff 20%, #60a5fa 60%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.2));
  min-height: 1.2em; 
  border-right: 4px solid var(--accent-primary);
  margin-bottom: 5px;
}

.hero-details {
  max-width: 700px;
  margin: 0 auto;
  margin-top: 30px;
}

.subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #60a5fa; /* Brighter accent blue */
  font-weight: 700;
  margin-bottom: 30px;
  display: inline-block;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  padding-bottom: 10px;
}

.description {
  font-size: 1.15rem;
  color: #cbd5e1; /* Slightly brighter text for readability */
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  /* The sleek highlight box */
  background: rgba(255, 255, 255, 0.03);
  padding: 25px 35px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-primary);
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.hero-image {
  margin-top: 80px;
  width: 100%;
  max-width: 1000px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Events Section - Cards with Hover Animation */
.events-section {
  background-color: var(--bg-surface);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.event-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-primary);
}

.card-img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4; /* Forces the box into a standard poster shape */
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* Prioritizes showing the top of the poster */
  transition: transform 0.5s ease;
}

.event-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.event-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 6px 12px;
  border-radius: 4px;
}

/* About Section */
.about-content {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 300px;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.2));
}

.about-text {
  flex: 2;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about-text strong {
  color: var(--accent-primary);
}

/* Contact Section */
.contact-section {
  background-color: var(--bg-surface);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.contact-info {
  padding: 50px;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-info p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
}

.social-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.social-btn i {
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-btn:hover .fa-linkedin {
  color: #0a66c2; /* Official LinkedIn Blue */
}

.social-btn:hover .fa-instagram {
  color: #e1306c; /* Official Instagram Pink */
}

.contact-map {
  min-height: 400px;
  position: relative;
}

/* The Dark Mode Map Hack */
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  /* Inverts the light map, flips the colors so water stays blue, and softens it */
  filter: invert(90%) hue-rotate(180deg) contrast(85%) opacity(80%);
  transition: all 0.4s ease;
}

/* Bring it to full focus when the user hovers over it */
.contact-map iframe:hover {
  filter: invert(90%) hue-rotate(180deg) contrast(100%) opacity(100%);
}

/* Footer */
.site-footer {
  background: #03060b;
  padding: 60px 5% 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--accent-primary);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.footer-col p, .footer-col ul {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul a:hover {
  color: var(--text-main);
}

.footer-col i {
  margin-right: 10px;
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Scroll Animations */
.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Lightbox Modal Styles --- */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 10000; /* Sit on top of everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 11, 20, 0.85); /* Deep dark blue shadowy background */
  backdrop-filter: blur(8px); /* Smooth background blur */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  justify-content: center;
  align-items: center;
}

.modal.show-modal {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Slight bounce effect */
}

.modal.show-modal .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--text-muted);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10001;
}

.close-modal:hover {
  color: #fff;
}

/* Make sure the small posters are clickable */
.card-img-wrapper img {
  cursor: pointer;
}

/* Responsive Updates */
@media (max-width: 900px) {
  /* 1. Mobile Menu Drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; 
    height: auto;
    width: fit-content;
    min-width: 220px; 
    padding: 70px 40px 40px 40px; 
    gap: 1.25rem; 
    background: rgba(5, 11, 20, 0.98); 
    backdrop-filter: blur(15px);
    
    /* Styling the exposed edges */
    border-left: 1px solid rgba(255,255,255,0.05); 
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-bottom-left-radius: 16px;
    
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; 
    z-index: 1001; 
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.6); /* Drops shadow down and to the left */
  }

  .nav-links.active {
    right: 0; /* Snaps flush to the right edge */
  }

  /* Positions the X cleanly inside the smaller box */
  #close-menu {
    display: block;
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
  }
  
  #close-menu:hover {
    color: var(--text-main);
  }

  .nav-controls i {
    display: block;
    cursor: pointer;
  }

  /* 2. Global Section Padding Adjustment */
  /* Reduces the 100px padding which takes up too much mobile screen space */
  .section-padding {
    padding: 60px 5%; 
  }

  /* 3. Grid Adjustments */
  .about-content, .contact-container {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  /* Shrinks the extreme padding inside the contact box */
  .contact-info {
    padding: 30px 20px; 
  }
}

@media (max-width: 480px) {
  /* Prevent title overflow on narrow screens */
  .hero-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem); 
  }

  /* Slim down the description highlight box */
  .description {
    padding: 15px 20px; 
    font-size: 1rem;
  }

  /* Prevent grid blowout on screens smaller than 350px */
  .events-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  /* Ensure the sliding banner text is easily readable */
  .sliding-text {
    font-size: 0.75rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}