/* style.css */

/* Reset + Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom right, #0f172a, #1e293b);
  color: #eee;
  line-height: 1.6;
}

/* Container Utility */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Navbar ========== */
.navbar {
  background-color: rgba(10, 61, 98, 0.9); /* #0a3d62, slightly transparent */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
}

.logo-text {
  color: #60a5fa; /* blue-400 */
  font-size: 1.5rem;
  font-weight: 700;
  user-select: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: #eee;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #60a5fa;
}

/* Hamburger Menu (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: #eee;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Navbar: Hide links on small screens */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgba(10, 61, 98, 0.95);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    border-radius: 0 0 0 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
  }
  .nav-links.show {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}

/* ========== Hero ========== */
.hero {
  padding: 80px 0 100px;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  color: #94a3b8; /* slate-400 */
}

/* ========== Sections ========== */
.section {
  padding: 60px 0;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #60a5fa;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 2rem;
}

/* ========== Students Grid ========== */
.student-grid {
  display: grid;
  place-items: center;
}

.student-card {
  background-color: #1e293b; /* slate-800 */
  border-radius: 8px;
  padding: 1.5rem;
  width: 260px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.student-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.student-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 0.3rem;
}

.student-role {
  font-size: 0.95rem;
  color: #ccc;
}

/* ========== Modal ========== */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background-color: #1e293b; /* slate-800 */
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  color: #eee;
}

.modal-content h3 {
  margin-bottom: 1rem;
  color: #60a5fa;
}

.modal-list {
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
  padding-left: 0.5rem;
}

.modal-list li {
  margin-bottom: 0.5rem;
  color: #ccc;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.6rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #60a5fa;
}

/* ========== Projects Grid ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background-color: #1e293b;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.project-card h3 {
  color: #60a5fa;
  margin-bottom: 0.5rem;
}

.project-card p {
  color: #ccc;
  margin-bottom: 1rem;
}

.view-more-btn {
  background-color: transparent;
  border: 2px solid #60a5fa;
  color: #60a5fa;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.view-more-btn:hover {
  background-color: #60a5fa;
  color: #1e293b;
}

/* ========== Activities List ========== */
.activities-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 2rem;
}

.activity-card {
  background-color: #1e293b;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.activity-card h4 {
  color: #60a5fa;
  margin-bottom: 0.3rem;
}

.activity-card p {
  color: #ccc;
}

/* ========== Resources Grid ========== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  justify-items: center;
}

.resource-item {
  background-color: #1e293b;
  border-radius: 8px;
  padding: 1rem;
  width: 100%;
  max-width: 140px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.resource-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.resource-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #60a5fa;
}

.resource-item p {
  color: #ccc;
  font-size: 0.9rem;
}

/* ========== Contact Form ========== */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
  margin-top: 2rem;
}

.contact-section h2 {
  color: #60a5fa;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-form label {
  color: #ccc;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  background-color: #334155; /* slate-700 */
  color: #eee;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #60a5fa;
}

.submit-btn {
  background-color: #60a5fa;
  border: none;
  color: #1e293b;
  font-weight: 700;
  padding: 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #3b82f6; /* blue-500 */
}

/* ========== Footer ========== */
footer {
  background-color: #0a3d62;
  color: #bbb;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer-content p {
  margin-bottom: 0.5rem;
}

.social-icons a {
  margin: 0 0.5rem;
  display: inline-block;
  color: #60a5fa;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #3b82f6;
}

.icon-instagram {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }
  .hero .subtitle {
    font-size: 1rem;
  }
}
