/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

body {
  background: black;
  color: #0ff;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* Matrix Canvas */
#matrix {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  background: black;
}

/* Particle Background */
#particles-js {
  position: fixed;
  width: 100%; height: 100%;
  z-index: -1;
  top: 0; left: 0;
}

/* Navigation */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 30px;
  background: rgba(0,0,0,0.8);
  border-bottom: 2px solid #0ff;
  position: relative;
  z-index: 10;
}
nav .logo { display: flex; align-items: center; gap: 10px; }
nav .logo img { height: 40px; width: auto; border-radius: 6px; }
nav .logo h2 { font-size: 1.4em; color: #0ff; font-weight: 600; }
.nav-links a { margin: 0 12px; color: #0ff; text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-links .btn { margin-left: 15px; }

.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
}


/* Hero */
.hero { text-align: center; margin: 120px auto; position: relative; z-index: 5; }
.hero h1 { font-size: 2.8em; margin-bottom: 25px; font-weight: 700; }
.btn {
  background: #0ff; color: black;
  padding: 14px 28px; border: none;
  cursor: pointer; font-weight: 600;
  border-radius: 6px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn:hover { background: #fff; transform: scale(1.07); box-shadow: 0 0 20px #0ff; }

/* Section Titles */
section h2 {
  text-align: center;
  margin: 60px 0 30px;
  font-size: 2.2em;
  color: #0ff;
  font-weight: 600;
  text-shadow: 0 0 12px #0ff, 0 0 24px #0ff;
  animation: glowPulse 3s infinite alternate;
}

section h3 {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 1.8em;
    color: #0ff;
    font-weight: 500;
}

@keyframes glowPulse {
  from { text-shadow: 0 0 12px #0ff; }
  to { text-shadow: 0 0 24px #0ff, 0 0 36px #0ff; }
}

/* Sections */
section {
  padding: 40px 20px;
  background: rgba(0,0,0,0.7);
  border-radius: 10px;
  margin: 40px auto;
  max-width: 1200px;
  position: relative;
  z-index: 5;
}

/* Grid Layout */
.grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

/* Card Styling */
.card {
  flex: 1 1 300px;
  margin: 20px;
  padding: 20px;
  background: rgba(0,0,0,0.85);
  border-radius: 12px;
  color: #0ff;
  line-height: 1.6;
  border: 1px solid #0ff;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 0 25px #0ff; }

/* Center text in about and history sections */
#about .card,
#history .card {
  text-align: center;
}

/* Landscape Sections (About, History, Contact) */
.landscape {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 25px;
}
.landscape .card {
  flex: 1 1 30%;
  max-width: 350px;
  text-align: left;
}

/* Events Section */
.events {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}
.event {
  background: rgba(0,0,0,0.85);
  padding: 25px;
  border-radius: 12px;
  width: 280px;
  color: #0ff;
  border: 1px solid #0ff;
  transition: transform 0.3s, box-shadow 0.3s;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}
.event:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 0 25px #0ff;
}
.event h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 0;
}


/* Team Section */
.team {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}
.member {
  background: rgba(0,0,0,0.85);
  padding: 25px;
  border-radius: 12px;
  width: 280px;
  text-align: center;
  color: #0ff;
  border: 1px solid #0ff;
  transition: transform 0.3s, box-shadow 0.3s;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.member img {
  width: 100%;
  border-radius: 50%;
  margin-bottom: 12px;
  transition: transform 0.3s;
}
.member:hover { transform: translateY(-6px); box-shadow: 0 0 25px #0ff; }
.member:hover img { transform: scale(1.1); }
.member h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 0;
}

/* Gallery Images */
#gallery .card img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}
#gallery .card img:hover { transform: scale(1.05); box-shadow: 0 0 20px #0ff; }

/* Notice Board */
#notice .card {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: rgba(0,0,0,0.85);
  border: 1px solid #0ff;
  border-radius: 10px;
  color: #0ff;
  line-height: 1.6;
}

/* Registration Section */
#register {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#register h2 { margin-bottom: 20px; }
#register .card {
  max-width: 500px;
  text-align: center;
  border: 1px solid #0ff;
  box-shadow: 0 0 25px #0ff;
  background: rgba(0,0,0,0.9);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  z-index: 5;
}

/* Signup & Login Centering */
.signup-page .card,
.login-page .card {
  max-width: 450px;
  margin: 140px auto;
  text-align: center;
  border: 1px solid #0ff;
  box-shadow: 0 0 25px #0ff;
  background: rgba(0,0,0,0.9);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  z-index: 5;
}

/* Futuristic Input Fields */
input, select, textarea {
  width: 92%;
  padding: 14px;
  margin: 12px 0;
  border: 1px solid #0ff;
  border-radius: 6px;
  background: black;
  color: #0ff;
  font-size: 1em;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 18px #0ff;
  transform: scale(1.03);
}

/* Sort Controls */
.sort-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sort-controls label {
  font-weight: 500;
  color: #0ff;
}

.sort-controls select {
  width: auto; /* Override default width */
  padding: 8px 12px;
  margin: 0; /* Reset margin */
  font-size: 0.9em;
}


/* Footer */
footer {
  text-align: center;
  padding: 25px;
  background: rgba(0,0,0,0.8);
  border-top: 2px solid #0ff;
  margin-top: 60px;
  position: relative;
  z-index: 5;
}

/* Purple Neon Dark Mode Theme */
body.purple-theme { 
  color: #c0f; 
}
body.purple-theme nav,
body.purple-theme .card,
body.purple-theme .event,
body.purple-theme .member,
body.purple-theme footer { 
  border-color: #c0f; 
}
body.purple-theme section h2,
body.purple-theme section h3 {
  color: #c0f;
  text-shadow: 0 0 12px #c0f, 0 0 24px #c0f;
}
body.purple-theme .btn { 
  background: #c0f; 
  color: black; 
}
body.purple-theme .btn:hover { 
  background: #fff; 
  box-shadow: 0 0 20px #c0f; 
}
body.purple-theme input, 
body.purple-theme select, 
body.purple-theme textarea {
  border: 1px solid #c0f;
  color: #c0f;
}
body.purple-theme input:focus, 
body.purple-theme select:focus,
body.purple-theme textarea:focus {
  box-shadow: 0 0 18px #c0f;
}

/* Fade-in Effect */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky Footer */
.flex-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

#itc .team {
    justify-content: center;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  nav {
    flex-direction: row;
    align-items: center;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    position: absolute;
    top: 60px;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    width: 100%;
    padding: 10px 0;
    z-index: 11;
  }
  .nav-links.active {
    display: flex;
  }

  .menu-icon {
    display: block;
  }
  .hero h1 {
    font-size: 2em;
  }
  section h2 {
    font-size: 1.8em;
  }
  .card {
    flex: 1 1 100%;
    margin: 10px 0;
  }
  .member, .event {
    width: 220px;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 10px;
  }
  nav .logo h2 {
    font-size: 1.2em;
  }
  .hero h1 {
    font-size: 1.6em;
  }
  section h2 {
    font-size: 1.5em;
  }
  .btn {
    padding: 10px 20px;
  }
  input, select, textarea {
    padding: 10px;
  }
  .member, .event {
    padding: 20px;
    width: 100%;
  }
  .member h3, .event h3 {
    font-size: 1.2em;
  }
}
