
:root {
  --background: #080b10;
  --surface: #101720;
  --surface-light: #17212b;
  --text: #f2f5f8;
  --muted: #a2adba;
  --green: #39f58b;
  --border: #263340;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

.header {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 5%;
  border-bottom: 1px solid var(--border);
  background: #0b1016;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  white-space: nowrap;
}

.logo span, h1 span, .green {
  color: var(--green);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.84rem;
  padding: 8px 10px;
  border-radius: 7px;
  transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  background: #12251c;
}

.menu-toggle {
  display: none;
  color: var(--green);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 1.3rem;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
  min-height: 75vh;
}

/* CLICKABLE PAGE SWITCHING */
.page-section {
  display: none;
  padding: 64px 0 80px;
}

.page-section.active {
  display: block;
  animation: pageEnter 0.25s ease;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 65px;
  align-items: center;
  min-height: 440px;
}

.eyebrow, .tag {
  color: var(--green);
  letter-spacing: 2px;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.15;
  margin: 18px 0;
}

.hero h2 {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  margin-bottom: 18px;
}

.hero-text > p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
}

.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--green);
  color: #07110b;
}

.btn.secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.profile-frame {
  width: min(100%, 320px);
  aspect-ratio: 4 / 5;
  justify-self: center;
  border: 2px solid var(--green);
  border-radius: 25px;
  padding: 9px;
  background: var(--surface);
  box-shadow: 0 0 35px #39f58b15;
  overflow: hidden;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 17px;
}

.image-placeholder {
  height: 100%;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background: var(--surface-light);
  border-radius: 17px;
  padding: 15px;
}

.quick-cards, .grid {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.quick-cards, .three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 24px;
  min-width: 0;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: #39f58b80;
}

.quick-cards .card:hover,
.project-card:hover {
  transform: translateY(-4px);
}

.card h2, .card h3 {
  margin: 10px 0;
}

.card p {
  color: var(--muted);
  margin: 8px 0;
}

.card-icon {
  font-size: 2rem;
}

.card a:not(.btn), .text-link {
  color: var(--green);
  display: inline-block;
  margin-top: 10px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 8px 0;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 28px;
  align-items: start;
}

.about-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 15px;
  border: 1px solid var(--border);
}

.about-card p {
  margin: 14px 0;
}

.info-list {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 12px;
}

.info-list strong {
  color: var(--text);
}

.school-card img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 18px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}

.school-card {
  text-align: center;
}

.school-card .tag {
  margin-top: 15px;
}

.gallery-image {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 18px;
  background: var(--surface-light);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.skill {
  margin: 20px 0;
}

.skill > span {
  display: block;
  margin-bottom: 7px;
}

.skill-track {
  height: 8px;
  border-radius: 99px;
  background: #263340;
  overflow: hidden;
}

.skill-track div {
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.skill-list {
  list-style: none;
  margin-top: 15px;
}

.skill-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  font-weight: 700;
  margin-top: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--text);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
}

.contact-form textarea {
  resize: vertical;
}

.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px 15px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1050px) {
  .header {
    flex-wrap: wrap;
  }

  .nav-links {
    gap: 3px;
  }

  .nav-links a {
    padding: 7px;
  }
}

@media (max-width: 760px) {
  .header {
    position: sticky;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
  }

  .hero, .about-layout, .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero {
    padding: 25px 0;
  }

  .profile-frame {
    width: min(75%, 280px);
  }

  .quick-cards, .three-columns, .two-columns {
    grid-template-columns: 1fr;
  }

  .page-section {
    padding: 38px 0 55px;
  }

  .section-heading h1 {
    font-size: 2.2rem;
  }
}
.floating-nav-btn {
  position: fixed;
  bottom: 24px;
  background: var(--surface-light);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: 0.2s ease;
  z-index: 1000;
}

.prev-btn {
  left: 24px;
}

.next-btn {
  right: 24px;
}

.floating-nav-btn:hover {
  background: var(--green);
  color: #07110b;
  border-color: var(--green);
  transform: translateY(-2px);
}
/* Bento Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px;
}

/* Make Profile span 2 rows on desktop */
.profile-bento-card {
  grid-row: span 2;
}

/* Make Goals span across 2 columns under How I Work */
.goals-bento-card {
  grid-column: span 1; 
}

/* List Formatting */
.bento-list {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}

.bento-list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-list li strong {
  color: var(--text);
}

/* Badges / Pill Tags */
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  background: var(--surface-light);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .profile-bento-card,
  .goals-bento-card {
    grid-row: span 1;
    grid-column: span 1;
  }
}