/* ===== Base Styles ===== */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f8;
  color: #222;
  transition: background 0.3s, color 0.3s;
}

header {
  background: #1a237e;
  color: #fff;
  padding: 0.5rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  vertical-align: middle;
  display: inline-block;
}
.ias-logo {
  height: 48px;
  margin-right: 10px;
}
.ieee-logo {
  height: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover,
nav a.active {
  color: #ffb300;
}

/* Dark mode toggle button */
.dark-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
  color: #fff;
  transition: transform 0.2s;
}
.dark-toggle:hover {
  transform: scale(1.2);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(120deg, #3949ab 60%, #ffb300 100%);
  color: #fff;
  padding: 4rem 1rem 3rem 1rem;
  text-align: center;
  border-radius: 8px;
  max-width: 1100px;
  margin: 2rem auto;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1.2rem;
}
.cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: #ffb300;
  color: #222;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(60, 60, 60, 0.07);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.cta-btn:hover {
  background: #1a237e;
  color: #fff;
  transform: scale(1.05);
}

/* ===== Section Styling ===== */
section {
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(60, 60, 60, 0.07);
  padding: 2rem;
  transition: background 0.3s, color 0.3s;
}

.mission-section {
  background: #e3eafc;
  border-left: 6px solid #1a237e;
}
.events-section ul {
  padding-left: 1.2rem;
}
.events-list li {
  margin-bottom: 1.2rem;
  background: #f9fbe7;
  border-left: 4px solid #ffb300;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(60, 60, 60, 0.05);
}

/* ===== Counters ===== */
.counters {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 2.5rem 0 1.5rem 0;
}
.counter-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(60, 60, 60, 0.1);
  padding: 1.2rem 2.2rem;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}
.counter {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1a237e;
  display: block;
  margin-bottom: 0.3rem;
  transition: color 0.3s;
}
.counter-box p {
  margin: 0;
  color: #555;
  font-size: 1.1rem;
}

/* ===== Team Section ===== */
.team-section {
  background: #f3e5f5;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.team-member {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(60, 60, 60, 0.08);
  padding: 1.2rem 1rem 1.5rem 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}
.team-member:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 6px 18px rgba(60, 60, 60, 0.13);
}
.team-member img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 0.7rem;
  border: 3px solid #ffb300;
}

/* ===== Gallery ===== */
.gallery-section {
  background: #e1f5fe;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(60, 60, 60, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(60, 60, 60, 0.13);
}

/* Lightbox */
.gallery-img {
  cursor: pointer;
}
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.lightbox.active {
  display: flex;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.lightbox-close {
  color: #fff;
  font-size: 2.5rem;
  position: absolute;
  top: 30px;
  right: 50px;
  cursor: pointer;
}
.lightbox-caption {
  color: #fff;
  margin-top: 1.2rem;
  font-size: 1.1rem;
  text-align: center;
}

/* ===== Forms ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input,
textarea {
  padding: 0.7rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 1rem;
}
button {
  background: #1a237e;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-weight: 600;
  letter-spacing: 1px;
}
button:hover {
  background: #ffb300;
  color: #222;
  transform: translateY(-2px) scale(1.04);
}

/* Newsletter */
.newsletter-section {
  background: #fffde7;
  border-left: 6px solid #ffb300;
  text-align: center;
}
.newsletter-section form {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
}
.newsletter-section input[type="email"] {
  width: 260px;
}

/* Signup */
.signup-section {
  background: #e8f5e9;
  border-left: 6px solid #43a047;
  text-align: center;
}
.signup-section form {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
}
.signup-section input[type="text"],
.signup-section input[type="email"] {
  width: 180px;
}
.signup-section button {
  background: #43a047;
  color: #fff;
}
.signup-section button:hover {
  background: #388e3c;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
  background: #222;
  color: #fff;
  margin-top: 2rem;
}

/* ===== Dark Mode ===== */
body.dark-mode {
  background: #121212;
  color: #eee;
}
body.dark-mode header {
  background: #0d47a1;
}
body.dark-mode nav a {
  color: #eee;
}
body.dark-mode nav a:hover,
body.dark-mode nav a.active {
  color: #ffb300;
}
body.dark-mode section {
  background: #1e1e1e;
  color: #eee;
}
body.dark-mode footer {
  background: #0d0d0d;
}
body.dark-mode .counter {
  color: #ffb300;
}
body.dark-mode .counter-box {
  background: #2a2a2a;
}
body.dark-mode .team-member {
  background: #2a2a2a;
}
body.dark-mode .gallery-grid img {
  border: 2px solid #444;
}
body.dark-mode button {
  background: #ffb300;
  color: #222;
}
body.dark-mode button:hover {
  background: #1976d2;
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  nav ul {
    gap: 0.7rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  section {
    padding: 1rem;
  }
}
