@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: #0f0f0f;
  color: white;
  line-height: 1.6;
}

/* =========================
   CONTAINER
========================= */

.container {
  width: 80%;
  max-width: 1200px;
  margin: auto;
}

/* =========================
   HEADER
========================= */

header {
  padding: 70px 0 50px;
  background: #0f0f0f;
  border-bottom: 1px solid #222;
}

header h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 52px;
  margin-bottom: 10px;
}

header p {
  color: #7c5cff;
  font-size: 18px;
}

/* =========================
   NAVIGATION
========================= */

nav {
  background: #111;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 20px 0;
}

nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

nav a:hover {
  color: #7c5cff;
}

/* =========================
   GENERAL SECTION
========================= */

section {
  padding: 90px 0;
}

section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 42px;
  margin-bottom: 15px;
}

.description {
  color: #888;
  font-size: 16px;
  margin-bottom: 35px;
}

/* =========================
   PROFILE
========================= */

#profil {
  background: #0f0f0f;
}

.profile-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.photo-container {
  flex-shrink: 0;
}

.profile-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 15px;
  border: 1px solid #252525;
}

.profile-text {
  max-width: 700px;
}

.profile-text h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  margin-bottom: 20px;
}

.profile-text p {
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* =========================
   BIODATA
========================= */

.dark-section {
  background: #151515;
}

.biodata-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.biodata-card {
  background: #1c1c1c;
  border: 1px solid #252525;
  border-radius: 10px;
  padding: 25px;
}

.biodata-card span {
  display: block;
  color: #777;
  font-size: 13px;
  margin-bottom: 10px;
}

.biodata-card h3 {
  font-size: 16px;
  font-weight: 600;
}

/* =========================
   MATA KULIAH
========================= */

#mata-kuliah {
  background: #0f0f0f;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 30px;
  border: 1px solid #252525;
  border-radius: 10px;
}

/* TABLE */

table {
  width: 100%;
  min-width: 950px;
  border-collapse: collapse;
  background: #161616;
  color: #ddd;
  font-size: 14px;
}

/* TABLE HEADER */

thead {
  background: #1c1c1c;
}

th {
  padding: 16px 12px;
  border: 1px solid #252525;
  color: white;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

/* TABLE BODY */

td {
  padding: 15px 12px;
  border: 1px solid #252525;
  vertical-align: middle;
  color: #aaa;
}

/* NOMOR */

th:first-child,
td:first-child {
  width: 60px;
  text-align: center;
}

/* MATAKULIAH */

th:nth-child(2) {
  min-width: 360px;
}

td:nth-child(2) {
  min-width: 360px;
  color: #ddd;
}

/* KELAS */

th:nth-child(3),
td:nth-child(3) {
  width: 70px;
  text-align: center;
}

/* SKS */

th:nth-child(4),
td:nth-child(4) {
  width: 60px;
  text-align: center;
}

/* RUANG */

th:nth-child(5),
td:nth-child(5) {
  width: 90px;
  text-align: center;
}

/* HARI */

th:nth-child(6),
td:nth-child(6) {
  width: 100px;
  text-align: center;
}

/* WAKTU */

th:nth-child(7) {
  min-width: 170px;
}

td:nth-child(7) {
  min-width: 170px;
  white-space: nowrap;
}

/* TABLE HOVER */

tbody tr {
  transition: 0.2s;
}

tbody tr:hover {
  background: #1e1e1e;
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 70px 0;
  background: #111;
  border-top: 1px solid #222;
}

footer h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  margin-bottom: 10px;
}

footer p {
  color: #777;
  margin-top: 10px;
}

footer a {
  color: #7c5cff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 40px;
  font-size: 13px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .container {
    width: 90%;
  }

  .biodata-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 40px;
  }

  section {
    padding: 70px 0;
  }

  section h2 {
    font-size: 32px;
  }

  nav .container {
    gap: 20px;
    overflow-x: auto;
  }

  nav a {
    white-space: nowrap;
  }

  .biodata-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: 180px;
    height: 180px;
  }

  .table-container {
    border-radius: 8px;
  }

  table {
    min-width: 950px;
  }
}