/* ─────────────────────────────────────────────
   DESIGN TOKENS & VARIABLES
   ───────────────────────────────────────────── */
:root {
  --clr-bg:          #0c0e12;
  --clr-surface:     #141821;
  --clr-surface-2:   #1a1f2e;
  --clr-border:      #2a3044;
  --clr-text:        #c8cdd9;
  --clr-text-muted:  #707a94;
  --clr-text-bright: #eef0f4;
  --clr-accent:      #e8713a;
  --clr-accent-dim:  rgba(232,113,58,.18);
  --clr-accent-glow: rgba(232,113,58,.35);
  --clr-navy:        #1e2438;
  --clr-teal:        #4dd9b4;
  --clr-teal-dim:    rgba(77,217,180,.15);

  --font-display:    'Syne', sans-serif;
  --font-body:       'DM Sans', sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  --radius:          8px;
  --radius-lg:       14px;
  --shadow:          0 4px 24px rgba(0,0,0,.35);
  --shadow-card:     0 2px 12px rgba(0,0,0,.3);

  --nav-h:           68px;
  --max-w:           1140px;
}

/* ─────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─────────────────────────────────────────────
   UTILITY
   ───────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: .6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--clr-text-bright);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--clr-text-muted);
  max-width: 600px;
  margin-bottom: 2.4rem;
  font-size: .95rem;
}

/* Reveal animation utility */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────── */
nav#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(12,14,18,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--clr-border);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  transition: background .3s;
}

nav#main-nav .logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--clr-text-bright);
  display: flex;
  align-items: center;
  gap: .5rem;
}
nav#main-nav .logo .logo-mark {
  width: 28px; height: 28px;
  border: 2px solid var(--clr-accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
nav#main-nav .logo .logo-mark span {
  width: 10px; height: 10px;
  background: var(--clr-accent);
  border-radius: 50%;
}

.nav-links {
  display: flex; gap: 1.6rem; align-items: center;
}
.nav-links a {
  font-size: .82rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  letter-spacing: .04em;
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--clr-accent);
  transition: width .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--clr-text-bright); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--clr-text-bright); border-radius: 2px; transition: .3s; }

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-geo {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-geo .geo {
  position: absolute;
  border: 1px solid var(--clr-border);
  opacity: .4;
}
.hero-geo .g1 { width: 360px; height: 360px; border-radius: 50%; top: -80px; right: -100px; }
.hero-geo .g2 { width: 200px; height: 200px; bottom: 12%; left: -60px; border-radius: var(--radius-lg); transform: rotate(15deg); }
.hero-geo .g3 { width: 120px; height: 120px; top: 35%; right: 18%; border-radius: 50%; border-color: var(--clr-accent); opacity: .15; }
.hero-geo .g4 { width: 80px; height: 80px; bottom: 25%; right: 30%; transform: rotate(45deg); border-color: var(--clr-teal); opacity: .2; }

.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--clr-bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}

.hero-content .badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--clr-accent-dim);
  border: 1px solid var(--clr-accent-glow);
  border-radius: 30px;
  padding: .35rem .75rem;
  font-size: .73rem;
  font-family: var(--font-mono);
  color: var(--clr-accent);
  letter-spacing: .08em;
  margin-bottom: 1.4rem;
}
.hero-content .badge .dot { width: 6px; height: 6px; background: var(--clr-accent); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse {
  0%,100%{ opacity:1; } 50%{ opacity:.4; }
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--clr-text-bright);
  line-height: 1.08;
  margin-bottom: 1.2rem;
}
.hero-content h1 .accent { color: var(--clr-accent); }

.hero-content .tagline {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .72rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--clr-accent);
  color: #fff;
  box-shadow: 0 4px 18px var(--clr-accent-glow);
}
.btn-primary:hover { box-shadow: 0 6px 28px var(--clr-accent-glow); }

.btn-ghost {
  background: transparent;
  color: var(--clr-text-bright);
  border: 1px solid var(--clr-border);
}
.btn-ghost:hover { border-color: var(--clr-accent); background: var(--clr-accent-dim); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-wrap {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.hero-img-wrap::before {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 48px; height: 48px;
  border-top: 2px solid var(--clr-accent);
  border-right: 2px solid var(--clr-accent);
  border-radius: 0 var(--radius-lg) 0 0;
  z-index: 2;
}
.hero-img-wrap::after {
  content: '';
  position: absolute;
  bottom: -1px; left: -1px;
  width: 48px; height: 48px;
  border-bottom: 2px solid var(--clr-accent);
  border-left: 2px solid var(--clr-accent);
  border-radius: 0 0 0 var(--radius-lg);
  z-index: 2;
}

section { padding: 7rem 0; }
section + section { border-top: 1px solid var(--clr-border); }

/* ─────────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────────── */

#about {
  padding-top: 1rem;  
  padding-bottom: 3rem;
}

#about .container {
  margin-top: 0;        
}
#about .grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.about-card .avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--clr-surface-2);
  border: 3px solid var(--clr-accent);
  margin-inline: auto;
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.about-card h3 {
  font-family: var(--font-display);
  color: var(--clr-text-bright);
  font-size: 1.15rem;
  margin-bottom: .25rem;
}
.about-card .role {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--clr-accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.about-card .tag-row { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; }
.tag {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  padding: .28rem .65rem;
  font-size: .72rem;
  color: var(--clr-text-muted);
  font-family: var(--font-mono);
}

.about-content p {
  margin-bottom: 1.1rem;
  color: var(--clr-text);
  font-size: .94rem;
}
.about-content .highlight-box {
  background: var(--clr-accent-dim);
  border-left: 3px solid var(--clr-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
}
.about-content .highlight-box p { margin-bottom: 0; color: var(--clr-text-bright); font-size: .88rem; }

/* ─────────────────────────────────────────────
  

/* ─────────────────────────────────────────────
   ASSIGNMENTS (ENHANCED WITH IMAGES & VIDEO)
   ───────────────────────────────────────────── */
#assignments .week-list { max-width: 900px; }

.week-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  margin-bottom: .7rem;
  background: var(--clr-surface);
  overflow: hidden;
  transition: border-color .3s, transform .2s;
}
.week-item:hover { 
  border-color: var(--clr-surface-2); 
  transform: translateY(-2px);
}

.week-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  cursor: pointer;
  user-select: none;
  transition: background .2s;
  text-decoration: none;
}
.week-header:hover { background: var(--clr-surface-2); }

.week-num {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--clr-accent);
  background: var(--clr-accent-dim);
  padding: .3rem .6rem;
  border-radius: 6px;
  min-width: 52px;
  text-align: center;
  white-space: nowrap;
}

.week-header h3 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--clr-text-bright);
  flex: 1;
}
.week-header .chevron {
  width: 18px; height: 18px;
  color: var(--clr-text-muted);
  transition: transform .3s;
}

.week-item.open .chevron { transform: rotate(180deg); }
.week-item.open { border-color: var(--clr-accent-glow); }

.week-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.22,1,.36,1);
}
.week-item.open .week-body { max-height: 2000px; }

.week-body-inner {
  padding: 0 1.4rem 1.4rem;
}

.week-detail-block {
  margin-bottom: 1.2rem;
}

.week-detail-block .wdb-title {
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: .5rem;
}

.week-detail-block p {
  font-size: .85rem;
  color: var(--clr-text);
  line-height: 1.65;
}

/* Image Gallery in Weeks */
.week-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.week-images img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
  transition: transform .3s, border-color .3s;
  cursor: pointer;
}

.week-images img:hover {
  transform: scale(1.02);
  border-color: var(--clr-accent);
}

/* File Pills */
.files-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .8rem;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  padding: .35rem .65rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--clr-teal);
  text-decoration: none;
  transition: all .2s;
}
.file-pill:hover {
  border-color: var(--clr-teal);
  background: var(--clr-teal-dim);
  transform: translateY(-1px);
}

/* Video Embed */
.week-video {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--clr-border);
}

.week-video iframe {
  width: 100%;
  height: 400px;
  border: none;
}
/* ─────────────────────────────────────────────
   ASSIGNMENTS PAGE (CARD GRID STYLE)
   ───────────────────────────────────────────── */

.assignments-page {
  padding-top: calc(var(--nav-h) + 3rem);
}

.week-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.week-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  box-shadow: var(--shadow-card);
}

.week-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-accent);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

.week-card h3 {
  font-family: var(--font-display);
  color: var(--clr-text-bright);
  font-size: 1.1rem;
  margin-bottom: .6rem;
}

.week-card p {
  font-size: .85rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.4rem;
}
/* ─────────────────────────────────────────────
   FINAL PROJECT
   ───────────────────────────────────────────── */
#final-project .fp-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.fp-image {
  aspect-ratio: 16/16;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.fp-summary h2 { margin-bottom: .6rem; }
.fp-summary .fp-tagline {
  font-size: 1rem;
  color: var(--clr-text);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.fp-summary .fp-meta {
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.fp-meta .tag { background: var(--clr-accent-dim); color: var(--clr-accent); border-color: var(--clr-accent-glow); }

/* .fp-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
} */

.fp-block {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
}
.fp-block .fp-block-label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: .5rem;
}
.fp-block h4 {
  font-family: var(--font-display);
  color: var(--clr-text-bright);
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.fp-block p {
  font-size: .8rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}
.fp-block ul {
  list-style: disc;
  margin-left: 1.2rem;
  margin-top: .5rem;
}
.fp-block ul li {
  font-size: .8rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin-bottom: .3rem;
}

/* Back to Home Button */
.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 2rem;
  padding: .6rem 1.2rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-text-bright);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  transition: all .25s;
  text-decoration: none;
}

.back-to-home:hover {
  border-color: var(--clr-accent);
  background: var(--clr-accent-dim);
  transform: translateX(-3px);
}

.back-to-home svg {
  width: 16px;
  height: 16px;
}

/* ─────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────── */
#contact { text-align: center; }
#contact .section-sub { margin-inline: auto; }

.contact-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 40px;
  padding: .65rem 1.2rem;
  text-decoration: none;
  color: var(--clr-text-bright);
  font-size: .82rem;
  transition: border-color .25s, transform .2s, background .25s;
}
.contact-pill:hover { border-color: var(--clr-accent); background: var(--clr-accent-dim); transform: translateY(-2px); }
.contact-pill svg { width: 16px; height: 16px; color: var(--clr-accent); }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
footer {
  padding: 2.4rem 0;
  border-top: 1px solid var(--clr-border);
  text-align: center;
}
footer p {
  font-size: .74rem;
  color: var(--clr-text-muted);
  font-family: var(--font-mono);
}
footer .footer-links {
  display: flex; justify-content: center; gap: 1.4rem; margin-top: .5rem;
}
footer .footer-links a {
  font-size: .72rem;
  color: var(--clr-text-muted);
  transition: color .2s;
}
footer .footer-links a:hover { color: var(--clr-accent); }

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--clr-bg); padding: 1.5rem 5%; gap: 1rem; border-bottom: 1px solid var(--clr-border); z-index: 800; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content .tagline { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { justify-content: center; order: -1; }
  .hero-img-wrap { max-width: 320px; }
  #about .grid { grid-template-columns: 1fr; }
  .about-card { max-width: 320px; margin-inline: auto; }
  #final-project .fp-hero { grid-template-columns: 1fr; }
  .week-images { grid-template-columns: 1fr; }
  .week-video iframe { height: 250px; }
}

@media (max-width: 480px) {
  :root { --nav-h: 60px; }
  .hero-content h1 { font-size: 2.2rem; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-accent); }