/* ==========================================================================
   1. GLOBAL STYLES & BODY
   ========================================================================== */

 body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  
  background: radial-gradient(circle at 50% 30%, #131b2e 0%, #080c14 70%);
  background-attachment: fixed; 
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}


/* ==========================================================================
2. HEADER SECTION
   ========================================================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 1000;

  max-width: 1320px;
  width: calc(100% - 32px);
  margin: 16px auto 0;
  padding: 18px 34px;
  box-sizing: border-box;

  background: linear-gradient(135deg, rgba(11, 19, 43, 0.96), rgba(23, 30, 53, 0.94));
  border: 1px solid rgba(79, 124, 255, 0.22);
  border-radius: 21px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;

  background-image: linear-gradient(135deg, #d0d5dd, #667085);
  color: #0b132b;
  font-weight: 700;
  font-size: 16px;
  user-select: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.student {
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
}

.header-tag {
  font-size: 12px;
  font-weight: 500;
  color: #9fb2d8;
  line-height: 1.2;
}

.header-clock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.clock-time {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.clock-day {
  font-size: 12px;
  font-weight: 500;
  color: #9fb2d8;
  text-transform: capitalize;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

/* --- Navigation --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);

  color: #c5d0e6;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;

  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  background-color: rgba(79, 124, 255, 0.18);
  color: #ffffff;
  border-color: rgba(79, 124, 255, 0.5);
}

.nav-links a.is-active {
  background-color: #1b2845;
  color: #ffffff;
  border-color: #4f7cff;
  box-shadow: 0 0 0 1px rgba(79, 124, 255, 0.25);
}

@media (max-width: 820px) {
  .header {
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .header-clock {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .header-tag {
    display: none;
  }

  .student {
    font-size: 17px;
  }

  .nav-links a {
    padding: 8px 13px;
    font-size: 14px;
  }
}

/* ==========================================================================
   3. PROJECTS SECTION
   ========================================================================== */
   
.project-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
}

.hero-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  min-height: 820px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-radius: 10px;

  background: linear-gradient(to bottom, #030814, #171e35, #030814);
  border: 1px solid #1c2541;
  border-bottom: 0;
  box-shadow: 0 5px 10px rgb(28, 33, 63);
  backdrop-filter: blur(12px);
}

.text-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 48px 20px 32px 20px;
  box-sizing: border-box;
}

.text-box {
  width: 100%;
  max-width: 680px;
  padding: 28px 24px;
  border-radius: 14px;
  text-align: center;
  color: #ffffff;
  background: radial-gradient(circle at top, rgba(79, 124, 255, 0.14), rgba(10, 17, 34, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-box__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #9fb2d8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-box h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.text-box p {
  max-width: 500px;
  margin: 0 auto 18px auto;
  font-size: 1.1rem;
  color: #d1d5db;
}

/* ==========================================================================
   4. FOOTER SECTION
   ========================================================================== */


.footer {
  width: 100%;
  background: linear-gradient(to bottom, #010307, #090b11);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 44px 20px 24px;
  box-sizing: border-box;
  margin-top: auto;
  color: #e6ecf8;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px 36px;
  align-items: start;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
}

.footer-column h3 {
  margin: 0 0 4px 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-role {
  margin: 0;
  color: #9aa5bd;
  font-size: 14px;
  line-height: 1.45;
}

.footer-badge {
  margin-top: 4px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #9fb2d8;
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.28);
}

.footer-column a {
  color: #b8c2d8;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-column a:hover {
  color: #ffffff;
  border-bottom-color: #4f7cff;
}

.footer-muted {
  margin: 0;
  color: #6f7a92;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  max-width: 960px;
  margin: 32px auto 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #8792aa;
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
  5.  SCHEDULE SECTION
========================================================================== */

.schedule-section {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 16px;
    color: #e6ecf8;
    font-family: inherit;
  }

  .schedule-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
  }

  .schedule-tab {
    background: rgba(255, 255, 255, 0.04);
    color: #9aa5bd;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
  }

  .schedule-tab:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
  }

  .schedule-tab.active {
    background: #1b2845;
    color: #ffffff;
    border-color: #4f7cff;
  }

  .schedule-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 17, 34, 0.75);
  }

  .schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
  }

  .schedule-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
  }

  .schedule-table td {
    font-size: 14px;
    color: #d4dce9;
  }

  .schedule-table tbody tr:last-child td {
    border-bottom: none;
  }

  .schedule-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
  }

  .time-cell {
    white-space: nowrap;
    color: #9fb2d8 !important;
  }

  .zoom-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s ease;
  }

  .zoom-btn:hover {
    background: #1d4ed8;
  }

  .is-hidden {
    display: none;
  }

/* ==========================================================================
6. TEXTBOOKS SECTION
   ========================================================================== */

.textbooks-section {
  width: 100%;
  max-width: 960px;
  margin: 16px auto 0;
  padding: 0 16px;
  box-sizing: border-box;
  color: #e6ecf8;
}

.textbooks-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.textbooks-filter {
  background: rgba(255, 255, 255, 0.04);
  color: #9aa5bd;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: 0.2s ease;
}

.textbooks-filter:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.textbooks-filter.active {
  background: #1b2845;
  color: #ffffff;
  border-color: #4f7cff;
}

.textbooks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.book-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(10, 17, 34, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.book-card:hover {
  border-color: rgba(79, 124, 255, 0.45);
  background: rgba(15, 25, 48, 0.88);
}

.book-card.is-missing {
  opacity: 0.72;
}

.book-card__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.book-card__subject {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.book-card__meta {
  font-size: 12px;
  color: #9aa5bd;
}

.book-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 6px 13px;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.book-btn:hover {
  background: #1d4ed8;
}

.book-card__empty {
  flex-shrink: 0;
  font-size: 12px;
  color: #7c879e;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .textbooks-grid {
    grid-template-columns: 1fr;
  }
}

.is-hidden {
  display: none !important;
}

/* ==========================================================================
7. ENTRANCE ANIMATIONS
   ========================================================================== */
@keyframes uiFadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes uiCardPop {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.header {
  animation: uiFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.text-box {
  animation: uiFadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.18s;
}

.schedule-table-wrap,
.textbooks-toolbar {
  animation: uiFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.32s;
}


.ui-item-enter {
  animation: uiCardPop 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(0.28s + var(--stagger, 0) * 65ms);
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .text-box,
  .schedule-table-wrap,
  .textbooks-toolbar,
  .ui-item-enter {
    animation: none !important;
  }
}