@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Unbounded:wght@500;600;700;800&family=Sora:wght@400;600;700&display=swap');

:root {
  --bg: #0e1116;
  --bg-alt: #121723;
  --card: #171f2c;
  --surface: #1d2738;
  --text: #f5f7ff;
  --muted: #c6cbe0;
  --muted-2: #98a2c8;
  --line: rgba(245, 247, 255, 0.14);
  --accent: #7cd3ff;
  --accent-2: #ffb4d6;
  --accent-3: #b9f27f;
  --shadow: 0 22px 55px rgba(8, 11, 19, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(124, 211, 255, 0.28), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255, 180, 214, 0.22), transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(185, 242, 127, 0.18), transparent 50%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  mix-blend-mode: overlay;
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
}

/* Navigation */
.nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s ease;
  background: rgba(18, 23, 35, 0.4);
  backdrop-filter: blur(20px);
}

.nav-shell.scrolled {
  padding: 0.75rem 0;
  background: rgba(18, 23, 35, 0.92);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-bottom: 0;
}

.nav-links a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.3s ease;
}

.nav-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.nav-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 6rem;
  overflow: hidden;
  --mx: 0px;
  --my: 0px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 70%;
  background: radial-gradient(circle at center, rgba(124, 211, 255, 0.28), transparent 60%);
  filter: blur(16px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(245, 247, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 247, 255, 0.06) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.18;
}

.hero-inner {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: heroFade 1.1s ease forwards;
}

.hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--accent-2);
}

.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-manifesto {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
}

.hero-headline {
  font-size: 1rem;
  color: var(--muted);
}

.hero-desc {
  color: var(--muted);
  font-size: 1rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
  padding: 0.9rem 2rem;
  border-radius: 18px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0a0f18;
  border: 1px solid var(--accent);
  box-shadow: 0 18px 30px rgba(124, 211, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(124, 211, 255, 0.35);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted-2);
  font-size: 0.85rem;
}

.hero-tags span {
  padding: 0.35rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.hero-interactive {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-orb {
  position: absolute;
  width: clamp(120px, 18vw, 220px);
  height: clamp(120px, 18vw, 220px);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.75;
  mix-blend-mode: screen;
  transition: transform 0.2s ease;
}

.orb-one {
  top: 10%;
  left: 12%;
  background: radial-gradient(circle at 30% 30%, rgba(124, 211, 255, 0.9), transparent 65%);
  transform: translate(calc(var(--mx) * 0.04), calc(var(--my) * 0.04));
}

.orb-two {
  bottom: 12%;
  right: 15%;
  background: radial-gradient(circle at 60% 40%, rgba(255, 180, 214, 0.85), transparent 60%);
  transform: translate(calc(var(--mx) * -0.05), calc(var(--my) * -0.05));
}

.orb-three {
  top: 40%;
  right: 38%;
  background: radial-gradient(circle at 40% 40%, rgba(185, 242, 127, 0.75), transparent 60%);
  transform: translate(calc(var(--mx) * 0.03), calc(var(--my) * -0.03));
}

.hero-puck {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  border-radius: 36px;
  background: radial-gradient(circle at 30% 20%, rgba(124, 211, 255, 0.2), rgba(18, 23, 35, 0.85));
  transform: translate(calc(-50% + var(--mx) * 0.08), calc(-50% + var(--my) * 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.hero-rings {
  position: absolute;
  top: 18%;
  right: 18%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(124, 211, 255, 0.35);
  box-shadow: inset 0 0 40px rgba(124, 211, 255, 0.2);
  transform: translate(calc(var(--mx) * -0.06), calc(var(--my) * 0.06));
  animation: ringPulse 6s ease-in-out infinite;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-2);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--muted);
}

.anchor-offset {
  position: relative;
  top: -120px;
}

/* Projects Grid — MD3 Expressive */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.project-card {
  background: var(--card);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 24px 48px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.18);
}

.project-card--featured {
  grid-column: 1 / -1;
}

.project-card--featured .project-card__media {
  height: 260px;
}

.project-card--featured .project-card__title {
  font-size: 1.5rem;
}

.project-card--featured .project-card__desc {
  font-size: 0.95rem;
}

.project-card__media {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--surface);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-card__media img {
  transform: scale(1.06);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 17, 22, 0.85) 100%);
  pointer-events: none;
}

.project-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chip--accent {
  background: rgba(124, 211, 255, 0.15);
  color: var(--accent);
}

.chip--green {
  background: rgba(185, 242, 127, 0.15);
  color: var(--accent-3);
}

.chip--pink {
  background: rgba(255, 180, 214, 0.15);
  color: var(--accent-2);
}

.chip--blue {
  background: rgba(100, 140, 255, 0.15);
  color: #8cacff;
}

.chip--orange {
  background: rgba(255, 180, 100, 0.15);
  color: #ffb464;
}

.project-card__title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
}

.project-card__desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.project-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card__link i {
  font-size: 0.9rem;
}

.project-card__link:hover {
  background: var(--accent);
  color: #0a0f18;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 211, 255, 0.3);
}

/* Skill Matrix */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  background: var(--card);
  border-radius: 28px;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.skill-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-pills span {
  padding: 0.35rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.timeline-card {
  background: var(--card);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.timeline-media {
  height: 160px;
  overflow: hidden;
}

.timeline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-body {
  padding: 1.4rem 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-2);
}

.timeline-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.05rem;
}

.timeline-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.timeline-link {
  margin-top: auto;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text);
  border-bottom: 1px solid transparent;
  width: fit-content;
}

.timeline-link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* Contact */
.contact-section {
  background: var(--bg-alt);
  padding: 5rem 0 6rem;
}

.contact-card {
  background: var(--card);
  border-radius: 32px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.contact-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.contact-desc {
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-list {
  display: grid;
  gap: 0.75rem;
}

.contact-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: 20px 90px 1fr;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  transition: transform 0.25s ease, border 0.25s ease;
}

.contact-item:hover {
  border-color: var(--accent-2);
  color: var(--text);
  transform: translateY(-2px);
}

.contact-item i {
  font-size: 1rem;
  color: var(--accent-2);
}

.contact-value {
  color: var(--text);
  font-weight: 600;
}

/* Footer */
.footer-custom {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-text-custom {
  font-size: 0.75rem;
  color: var(--muted-2);
  margin: 0;
}

.footer-social-custom {
  display: flex;
  gap: 0.75rem;
}

.footer-social-custom a {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.3s ease;
}

.footer-social-custom a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(12, 15, 22, 0.98);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}

.mobile-menu a {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  padding: 0.6rem 0;
  color: var(--muted);
}

.mobile-menu a:hover {
  color: var(--text);
}

.mobile-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.mobile-social {
  display: flex;
  gap: 1rem;
}

.mobile-social a {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    transform: translate(calc(var(--mx) * -0.06), calc(var(--my) * 0.06)) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(calc(var(--mx) * -0.06), calc(var(--my) * 0.06)) scale(1.08);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .projects-grid {
    gap: 1rem;
  }

  .project-card--featured .project-card__media {
    height: 220px;
  }

  .project-card--featured .project-card__title {
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 6.5rem 0 3.5rem;
    min-height: 90vh;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-kicker {
    font-size: 0.75rem;
  }

  .hero-manifesto {
    font-size: 0.95rem;
  }

  .hero-headline,
  .hero-desc {
    font-size: 0.9rem;
  }

  .hero-content {
    gap: 1.2rem;
  }

  .hero-orb {
    width: clamp(80px, 25vw, 140px);
    height: clamp(80px, 25vw, 140px);
    opacity: 0.5;
  }

  .orb-one {
    top: 5%;
    left: 5%;
  }

  .orb-two {
    bottom: 5%;
    right: 5%;
  }

  .orb-three {
    display: none;
  }

  .hero-puck {
    width: 140px;
    height: 140px;
  }

  .hero-rings {
    width: 120px;
    height: 120px;
    top: 12%;
    right: 10%;
  }

  .btn-primary,
  .btn-ghost {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .section-header {
    margin-bottom: 1.8rem;
  }

  .skill-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-group {
    padding: 1.25rem;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-item {
    grid-template-columns: 20px 1fr;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }

  .contact-item span:first-of-type {
    display: none;
  }

  .nav-shell {
    padding: 0.8rem 0;
  }

  .nav-inner {
    gap: 0.75rem;
  }

  .logo {
    font-size: 0.95rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card--featured .project-card__media {
    height: 200px;
  }

  .project-card__media {
    height: 160px;
  }

  .project-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .project-card__title {
    font-size: 1.05rem;
  }

  .project-card__desc {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 5.5rem 0 2.5rem;
    min-height: 85vh;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .hero-content {
    gap: 1rem;
  }

  .hero-tags {
    gap: 0.5rem;
  }

  .hero-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .project-card--featured .project-card__media {
    height: 170px;
  }

  .project-card--featured .project-card__title {
    font-size: 1.15rem;
  }

  .project-card__media {
    height: 140px;
  }

  .project-card__body {
    padding: 1rem 1rem 1.25rem;
    gap: 0.5rem;
  }

  .project-card__title {
    font-size: 0.95rem;
  }

  .project-card__desc {
    font-size: 0.78rem;
  }

  .project-card__link {
    padding: 0.55rem 0.9rem;
    font-size: 0.65rem;
  }

  .chip {
    font-size: 0.6rem;
    padding: 0.2rem 0.55rem;
  }

  .skill-pills span {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
  }

  .contact-card {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .contact-title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
  }

  .contact-list {
    gap: 0.6rem;
  }

  .contact-item {
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
  }

  .contact-value {
    font-size: 0.8rem;
  }

  .footer-inner {
    gap: 0.75rem;
  }

  .footer-text-custom {
    font-size: 0.65rem;
    text-align: center;
  }

  .reveal {
    transform: translateY(20px);
  }

  .mobile-menu a {
    font-size: 1.6rem;
  }
}
