/* Reset + Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #00e0ff;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0f1117;
  color: #f1f1f1;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #1a1d24;
  border-bottom: 1px solid #2a2e36;
}


.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.nav-links a {
  margin-left: 1.5rem;
  color: #b0b3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hero */
main {
  flex: 1;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(to bottom right, #12151c, #1c2029);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #cfcfcf;
}

.cta-button {
  background-color: var(--accent);
  color: #0f1117;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #00c6e0;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  background-color: #1a1d24;
  color: #777;
  border-top: 1px solid #2a2e36;
}

.footer a {
  color: var(--accent);
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Optional: replace with hamburger nav later */
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

.pastpapers {
  padding: 8rem;
  flex: 1;
  text-align: center;
}

.pastpapers h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pastpapers p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 2.5rem;
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.paper-card {
  background-color: #1a1d24;
  border: 1px solid #2a2e36;
  padding: 1.2rem;
  border-radius: 10px;
  color: #f1f1f1;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.paper-card:hover {
  background-color: var(--accent);
  color: #0f1117;
  transform: translateY(-4px);
}

.faculty {
  padding: 8rem;
  text-align: center;
}

.faculty h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.faculty p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 2.5rem;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.faculty-card {
  background-color: #1a1d24;
  border: 1px solid #2a2e36;
  padding: 1.5rem;
  border-radius: 10px;
  color: #f1f1f1;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.faculty-card:hover {
  background-color: var(--accent);
  color: #0f1117;
  transform: translateY(-4px);
}

/* Resources Page */
.resources {
  padding: 4rem;
  height: 90vh;
  width: 90vw;
  max-width: 2000px;
  margin: 2rem auto;
}

.resources h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.resource-section {
  border: 1px solid #2a2e36;
  border-radius: 8px;
  background-color: #181b22;
  margin-bottom: 2rem;
  overflow: hidden;
  transition: 0.3s;
  width: 100%;
}

.semester-header {
  padding: 1rem 1.5rem;
  background-color: #1f232b;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.5rem;
  border-bottom: 1px solid #2a2e36;
  transition: background 0.3s, color 0.3s;
}

.semester-header:hover {
  background-color: #252932;
  color: var(--accent);
}

.subjects {
  display: none;
  padding: 1rem 2rem;
  background-color: #20242c;
}

.subject-header {
  cursor: pointer;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s;
  margin-top: 0.5rem;
  border-left: 3px solid transparent;
  padding-left: 1rem;
}

.subject-header:hover {
  color: var(--accent);
  border-left: 3px solid var(--accent);
}

.subject-links {
  margin-left: 2rem;
  list-style-type: disc;
  display: none;
  margin-top: 0.5rem;
}

.subject-links a {
  text-decoration: none;
  color: #b0b3b8;
  transition: color 0.3s;
}

.subject-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.resources h2 {
  margin-top: 2rem;
  color: var(--accent);
}

.resources ul {
  margin: 0.5rem 0 1.5rem 1.5rem;
  padding-left: 1rem;
  list-style-type: disc;
}

.resources li {
  padding: 0.25rem 0;
}

em {
  color: #888;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Optional: replace with hamburger nav later */
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Societies Page */
.societies {
  width: 80vw;
  max-width: 1000px;
  margin: 4rem auto;
  text-align: center;
}

.societies h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent);
}

.societies p {
  font-size: 1.2rem;
  color: #cfcfcf;
}

.about-section {
  padding: 4rem 2rem;
  width: 80vw;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(to right, #12151c, #1c2029);
  border-radius: 12px;
  margin-top: 3rem;
}

.about-section h1 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.about-section .lead {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 3rem;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.about-card {
  background-color: #181b22;
  border: 1px solid #2a2e36;
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card h2 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.about-card p {
  color: #b0b3b8;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 224, 255, 0.1);
}
