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

:root {
  --page-bg: #708180;
  --page-text: #101318;
  --muted-text: rgba(16, 19, 24, 0.72);
  --accent: #ff9f1c;
  --accent-2: #ff3b30;
  --card-bg: rgba(255, 255, 255, 0.18);
  --card-border: rgba(255, 255, 255, 0.34);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

body {
  min-height: 100vh;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-text);
  overflow-x: hidden;
  background-color: var(--page-bg);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 159, 28, 0.25), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(33, 150, 243, 0.18), transparent 25%),
    url("https://uploads-ssl.webflow.com/62e3ee10882dc50bcae8d07a/631a5d4631d4c55a475f3e34_noise-50.png");
  background-attachment: fixed;
}

body.dark-mode {
  --page-bg: #11151c;
  --page-text: #f8fafc;
  --muted-text: rgba(248, 250, 252, 0.74);
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.16);
  background-color: var(--page-bg);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 159, 28, 0.16), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(33, 150, 243, 0.20), transparent 25%),
    url("https://uploads-ssl.webflow.com/62e3ee10882dc50bcae8d07a/631a5d4631d4c55a475f3e34_noise-50.png");
}

h1, h2, h3, .section_title {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  letter-spacing: -0.045em;
  line-height: 1;
}

a {
  color: inherit;
}

.site-topbar {
  min-height: 104px;
  padding: 1.1rem 1.6rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

.brand-mark img {
  width: 88px;
  transition: transform 0.3s ease;
}

.brand-mark img:hover,
.squeeze-image:hover {
  transform: scale(0.88) rotate(-3deg);
}

.theme-switcher {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--page-text);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.14);
}

.mode-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 25px;
  flex: 0 0 auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(0,0,0,0.28);
  transition: .35s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .35s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(23px);
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0.5rem 1rem 1.2rem;
  background-color: transparent;
}

.navbar li a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  display: block;
  color: var(--accent);
  text-decoration: none;
  padding: 0.75rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: 0.25s ease;
}

.navbar li a:hover {
  color: #111;
  background: var(--accent);
  transform: translateY(-2px);
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.section_title {
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 820px;
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted-text);
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  font-family: 'Black Ops One', cursive;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #111;
  border: none;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: 0.25s ease;
}

.button:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
}

.button-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--page-text);
}

/* Home */
.home-hero {
  min-height: calc(100vh - 220px);
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.3rem 0 5rem;
  text-align: center;
  display: grid;
  place-items: center;
}

.home-title {
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  max-width: 1000px;
  margin: 0 auto 1rem;
  opacity: 0;
  transform: translateX(-70px);
  animation: slideInHero 1s ease forwards;
}

@keyframes slideInHero {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.home_title-color {
  color: var(--accent);
  font-size: clamp(2.8rem, 7vw, 6.1rem);
  display: block;
  text-align: center;
  margin-bottom: 0.65rem;
}

.home_title-color2 {
  color: var(--accent-2);
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-family: 'Black Ops One', cursive;
  text-align: center;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  font-size: 1.18rem;
  color: var(--muted-text);
}

.hero-actions,
.about-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* About */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.about-copy h1 {
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  max-width: 830px;
  margin-bottom: 1.25rem;
}

.about-copy p {
  font-size: 1.08rem;
  max-width: 760px;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--muted-text);
}

.about-lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem) !important;
  font-weight: 700;
  color: var(--page-text) !important;
}

.about-card,
.experience-card,
.project-card,
.edu-card,
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.about-card {
  padding: 1rem;
  transform: rotate(1.5deg);
}

.about-photo {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 1.5rem;
  display: block;
}

.about-card-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-weight: 800;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #16c784;
  box-shadow: 0 0 0 8px rgba(22, 199, 132, 0.16);
  flex: 0 0 auto;
}

.about-highlights,
.exp-grid,
.project-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.about-highlights {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.highlight-card,
.exp-tile {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 1.4rem;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
}

.me {
  width: 300px;
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}



.highlight-card span,
.contact-card span,
.project-tag,
.exp-label,
.edu-date {
  color: var(--accent);
  font-family: 'Black Ops One', cursive;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.highlight-card h3,
.exp-tile h3 {
  margin: 0.45rem 0;
  font-size: 1.45rem;
}

/* Experience */
.experience-card {
  padding: 1.5rem;
}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.exp-header h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin: 0.45rem 0;
}

.exp-header p {
  color: var(--muted-text);
  font-weight: 700;
}

.exp-badge {
  background: var(--accent);
  color: #111;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

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

.exp-tile p {
  color: var(--muted-text);
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 1rem;
}

.impact-strip div {
  border: 1px solid var(--card-border);
  border-radius: 1.3rem;
  padding: 1rem;
  background: rgba(0,0,0,0.08);
}

.impact-strip strong,
.impact-strip span {
  display: block;
}

.impact-strip strong {
  color: var(--accent);
  font-size: 1.2rem;
}

.impact-strip span {
  color: var(--muted-text);
}

/* Projects */
.projects-section .section-intro {
  margin-bottom: 2.2rem;
}

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

.project-card {
  padding: 1.55rem;
  transition: 0.25s ease;
}

.project-card:hover,
.contact-card:hover,
.edu-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.project-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  margin: 0.55rem 0 0.75rem;
}

.project-card p {
  color: var(--muted-text);
  margin-bottom: 0.8rem;
}

.featured-project {
  grid-column: span 2;
}

.project-impact {
  font-weight: 800;
  color: var(--page-text) !important;
}

.project-list {
  padding-left: 1.2rem;
  color: var(--muted-text);
}

.video-container {
  max-width: 100%;
  margin: 1rem auto 0;
  text-align: center;
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid var(--card-border);
}

.video-container video {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* Education */
.edu-timeline {
  display: grid;
  gap: 1rem;
}

.edu-card {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.2rem;
  align-items: center;
  transition: 0.25s ease;
}

.edu-logo {
  min-height: 170px;
  border-radius: 1.3rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.22);
  border: 1px solid var(--card-border);
}

.edu-logo img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  padding: 1rem;
}

.edu-content h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0.4rem 0 0.25rem;
}

.edu-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  color: var(--accent);
  letter-spacing: normal;
  line-height: 1.3;
}

.edu-content p {
  color: var(--muted-text);
  margin-bottom: 0.65rem;
}

.pill-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.pill-row span {
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-weight: 800;
  background: rgba(255,255,255,0.08);
}

/* Contact */
.contact {
  text-align: center;
}

.contact-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1.12rem;
  color: var(--muted-text);
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.contact-card {
  padding: 1.5rem;
  text-decoration: none;
  transition: 0.25s ease;
}

.contact-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  word-break: break-word;
}

/* Resume */
.resume {
  text-align: center;
}

.resume_text {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--muted-text);
}

.resume-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.resume-viewer {
  width: 100%;
  height: 900px;
  border: 3px solid var(--accent);
  border-radius: 1rem;
  overflow: hidden;
  background-color: #fff;
}

.resume-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  background: transparent !important;
  color: var(--page-text);
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--card-border);
  margin-top: 3rem;
}

.footer_social {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer_icon {
  color: var(--page-text);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  border: 1px solid var(--card-border);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: 0.25s ease;
}

.footer_icon:hover {
  background: var(--accent);
  color: #111;
  transform: translateY(-2px);
}

@media screen and (max-width: 900px) {
  .about-hero,
  .about-highlights,
  .exp-grid,
  .project-grid,
  .contact-grid,
  .impact-strip,
  .edu-card {
    grid-template-columns: 1fr;
  }

  .featured-project {
    grid-column: span 1;
  }

  .about-card {
    transform: none;
  }

  .about-photo {
    height: 300px;
  }

  .theme-switcher {
    position: static;
    margin: 0 auto 0.5rem;
    width: fit-content;
  }

  .site-topbar {
    display: grid;
    gap: 0.8rem;
    justify-items: center;
  }

  .home-hero {
    min-height: auto;
  }
}

@media screen and (max-width: 560px) {
  .navbar li a {
    padding: 0.55rem 0.75rem;
  }

  .section {
    width: min(100% - 1.2rem, 1120px);
    padding: 2.8rem 0;
  }

  .resume-viewer {
    height: 650px;
  }
}


/* Bigger Worm Game Video */
.video-container {
  margin-top: 1.5rem;
}

.video-container video {
  height: 520px !important;
  width: 100%;
  object-fit: cover;
  border-radius: 1.25rem;
}

@media screen and (max-width: 768px) {
  .video-container video {
    height: 320px !important;
  }
}


.project-card2:has(.video-container) {
  grid-column: 1 / -1;
}

.project-card2:has(.video-container) .video-container {
  width: 100%;
  max-width: 100%;
  margin-top: 1.5rem;
}

.project-card2:has(.video-container) .video-container video {
  width: 100%;
  height: 480px !important;
  object-fit: cover;
  border-radius: 1.25rem;
}

@media screen and (max-width: 768px) {
  .project-card2:has(.video-container) .video-container video {
    height: 300px !important;
  }