:root {
  --bg: #f8f9fa;
  --text: #222;
  --card-bg: #fff;
  --border: #ddd;
  --link: #007bff;
  --link-hover: #0056b3;
}

.dark {
  --bg: #0d1117;
  --text: #e6edf3;
  --card-bg: #161b22;
  --border: #30363d;
  --link: #58a6ff;
  --link-hover: #1f6feb;
}

html{
    box-sizing: border-box;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Header */
.header {
  text-align: center;
  padding: 3rem 1rem 1rem;
}

.header h1 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
}

.subtitle {
  opacity: 0.8;
}

/* Container */
.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Card */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card h2 {
  margin-top: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.description {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}

/* Project Table */
.project-table {
  width: 100%;
  border-collapse: collapse;
}

.project-table tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.project-table tr:hover {
  background: rgba(127,127,127,0.05);
}

.project-table td {
  padding: 0.8rem;
  vertical-align: top;
}

.link {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

.notification {
  position: fixed;
  z-index: 1000;
  top: 20px;
  right: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.3rem 1.5rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 275px;
  font-size: 0.9rem;
  transition: opacity 1.5s linear;
  opacity: 1;
}

/* -------------------- Responsive -------------------- */

/* Tablets */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .card {
    padding: 1.2rem 1.5rem;
  }

  .card h2 {
    font-size: 1.4rem;
  }

  .description {
    font-size: 0.9rem;
  }

  .project-table td {
    padding: 0.6rem;
  }
  .notification {
    max-width: 275px;
    font-size: 0.85rem;
    bottom: 20px;
    top: auto;
    right: 20px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .header {
    padding: 2rem 1rem 1rem;
  }

  .header h1 {
    font-size: 2.5rem;
  }

  .container {
    padding: 0.5rem;
    gap: 1.2rem;
  }

  .card {
    padding: 1rem 1rem;
  }

  .card h2 {
    font-size: 1.2rem;
  }

  .description {
    font-size: 0.85rem;
  }

  .project-table td {
    padding: 0.5rem;
  }

  .notification {
    /* max-width: 100px;
    font-size: 0.8rem;
    margin: 0 10px;
    padding: 0.8rem 1rem;
    top: 10px;
    bottom: auto;
    right: 0; */
    opacity: 0;
  }

  .footer {
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
  }
}
