@import url("https://fonts.googleapis.com/css2?family=Cal+Sans&family=Roboto:wght@300;400;500;600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f8f9ff;
  --ink: #0b0b0b;
  --muted: #1b1b1b;
  --accent: #6aa3ff;
  --accent-2: #ff86c8;
  --card: #ffffff;
  --line: rgba(10, 10, 10, 0.08);
  --shadow: rgba(12, 16, 20, 0.12);
  --max: 1100px;
  --gutter: clamp(18px, 3vw, 32px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, sans-serif;
  color: var(--ink);
  font-size: 15px;
  background: var(--bg);
  min-height: 100vh;
}

html,
body {
  scrollbar-color: rgba(255, 134, 200, 0.75) rgba(12, 16, 20, 0.08);
  scrollbar-width: thin;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: rgba(12, 16, 20, 0.08);
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 134, 200, 0.75), rgba(120, 200, 255, 0.75));
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

body.page-about {
  display: flex;
  flex-direction: column;
}

body.page-about main {
  flex: 1;
}

body.page-about .site-footer {
  background: transparent;
  backdrop-filter: none;
}

body.page-about .split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr);
  align-items: stretch;
}

body.page-about main a:not(.about-button) {
  color: var(--accent-2);
}

body.page-about main a:not(.about-button):hover {
  color: var(--accent-2);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 128, 208, 0.48), transparent 32%),
    radial-gradient(circle at 82% 14%, rgba(120, 200, 255, 0.55), transparent 34%),
    radial-gradient(circle at 70% 78%, rgba(255, 210, 148, 0.45), transparent 36%),
    radial-gradient(circle at 22% 72%, rgba(148, 236, 255, 0.5), transparent 30%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.98));
  opacity: 0.95;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 1px, transparent 2px);
  background-size: 120px 120px, 180px 180px, 240px 240px;
  background-position: 20px 40px, 60px 120px, 140px 80px;
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
  flex-wrap: wrap;
}

.logo a {
  font-family: "Cal Sans", serif;
  font-size: 2.0rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-2);
}

.logo-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav a:hover,
.logo a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent-2);
  font-weight: 600;
}

main {
  padding-bottom: 80px;
}

.hero {
  padding: 32px 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: center;
}

.hero-title {
  font-family: "Cal Sans", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 8px;
}

.hero-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 520px;
}

.hero-cta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--accent);
  color: #041012;
  font-weight: 600;
  box-shadow:
    0 8px 18px rgba(12, 16, 20, 0.28),
    0 20px 50px rgba(12, 16, 20, 0.38);
}

.button.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-card img {
  width: 100%;
  border-radius: 18px;
  display: block;
  max-width: 160px;
  margin: 0 auto 8px;
}

.about-hero {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  width: 100%;
  max-width: 426px;
  max-height: 320px;
  margin: 67px 0 0 0;
  justify-self: end;
  align-self: stretch;
}

.about-hero img {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  object-fit: cover;
  margin: 0;
}

.about-hero video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: #000;
  object-fit: cover;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.section {
  padding: 32px 0;
}

.section-title {
  font-family: "Cal Sans", serif;
  font-size: 1.5rem;
  margin: 0 0 8px;
  font-weight: 100;
}

.section-sub {
  color: var(--muted);
  max-width: 680px;
  font-size: 0.78rem;
}

.availability-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 18px;
  padding: 10px 16px;
  border-radius: 999px;
  /* border: 1px solid rgba(255, 134, 200, 0.4); */
  background: linear-gradient(60deg, rgba(120, 200, 255, 0.25), rgba(255, 134, 200, 0.2));
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: none;
}

.availability-banner strong {
  font-weight: 700;
}

.card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 28px;
}

.card {
  background: var(--card);
  /* border: 1px solid var(--line);
  border-radius: 18px; */
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  box-shadow:
    0 8px 18px rgba(12, 16, 20, 0.28),
    0 20px 50px rgba(12, 16, 20, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  color: inherit;
}

.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.project-card {
  display: block;
  padding: 0;
  text-align: left;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 18px;
  border: 0px solid var(--line);
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  box-shadow: 0 12px 30px var(--shadow);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: box-shadow 300ms ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-card .card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}

.project-card.is-hovered {
  box-shadow:
    0 10px 22px rgba(12, 16, 20, 0.32),
    0 28px 70px rgba(12, 16, 20, 0.42);
  z-index: 10;
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.project-title {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-align: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-card:hover .project-title,
.project-card:focus-visible .project-title {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card img {
  width: 100%;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.card-title {
  font-weight: 500;
  font-size: 0.98rem;
}

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(255, 134, 200, 0.28);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  color: var(--ink);
}

.social-links img {
  width: 20px;
  height: 20px;
  display: block;
}

.project-hero {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 196, 236, 0.65), rgba(197, 227, 255, 0.7));
  min-height: 240px;
}

.project-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 90px 32px 40px;
}

.modal.hidden {
  display: none;
}

.modal.show .modal-card {
  animation: modalIn 320ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.modal.closing .modal-card {
  animation: modalOut 260ms cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.96);
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
}

.modal.show .modal-backdrop {
  opacity: 1;
  transition: opacity 220ms ease;
}

.modal.closing .modal-backdrop {
  opacity: 0;
  transition: opacity 220ms ease;
}

.modal-card {
  position: relative;
  z-index: 1;
  max-width: 2000px;
  width: min(92vw, 1800px);
  height: calc(100vh - 130px);
  max-height: calc(100vh - 130px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(12, 16, 20, 0.16);
  transform-origin: center;
}

.modal-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr;
  align-items: stretch;
  gap: 0;
  height: 100%;
  min-height: 0;
}

.modal-media {
  position: relative;
  background: #ffffff;
  height: 100%;
  display: block;
  align-self: stretch;
  min-height: 0;
}

.media-strip {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
  padding: 0;
  scroll-padding: 0;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.media-item {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  scroll-snap-align: center;
}

.media-embed {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 0 auto;
}

.media-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.media-strip.single-media {
  justify-content: center;
}

.media-strip::-webkit-scrollbar {
  height: 10px;
}

.media-strip::-webkit-scrollbar-track {
  background: rgba(12, 16, 20, 0.08);
  border-radius: 999px;
}

.media-strip::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(255, 134, 200, 0.75), rgba(120, 200, 255, 0.75));
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.media-strip {
  scrollbar-color: rgba(255, 134, 200, 0.75) rgba(12, 16, 20, 0.08);
  scrollbar-width: thin;
}

.media-item img,
.media-item video {
  width: 100%;
  object-fit: contain;
  height: auto;
  max-height: 100%;
  border-radius: 14px;
}

.media-item iframe {
  border: none;
  border-radius: 14px;
  background: #000;
}

.modal-details {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.modal-details h4 {
  margin: 12px 0 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.modal-details h4.credits-title {
  text-align: center;
}

.modal-details p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.modal-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.modal-details li {
  color: var(--muted);
  line-height: 1.4;
}

.modal-details .credits-list {
  text-align: center;
  justify-items: center;
}

.modal-details .credits-list li {
  text-align: center;
}

.modal-details a {
  color: var(--accent-2);
}

.modal-link-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.modal-link-card img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.modal-link-card .card-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

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

.modal-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 134, 200, 0.45);
  background: rgba(255, 134, 200, 0.15);
}

.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1.8rem;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 10px;
  z-index: 2;
}

.media-nav.prev {
  left: 10px;
}

.media-nav.next {
  right: 10px;
}

.modal-text {
  padding: 24px;
  display: grid;
  gap: 8px;
  align-content: start;
  overflow-y: auto;
  height: 100%;
  min-height: 0;
}

#modal-description {
  display: none;
}

.modal-text::-webkit-scrollbar {
  width: 10px;
}

.modal-text::-webkit-scrollbar-track {
  background: rgba(12, 16, 20, 0.08);
  border-radius: 999px;
}

.modal-text::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 134, 200, 0.75), rgba(120, 200, 255, 0.75));
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.modal-text {
  scrollbar-color: rgba(255, 134, 200, 0.75) rgba(12, 16, 20, 0.08);
  scrollbar-width: thin;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 1.6rem;
  padding: 4px 12px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 3;
}

@media (max-width: 900px) {
  .modal {
    padding: 72px 16px 24px;
    align-items: flex-start;
  }

  .modal-card {
    width: 100%;
    height: calc(100vh - 110px);
    max-height: calc(100vh - 110px);
    border-radius: 14px;
  }

  .modal-content {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 45vh) 1fr;
  }

  .modal-media {
    min-height: 220px;
  }

  .modal-text {
    padding: 18px;
  }

  .media-item {
    padding: 12px;
  }

  body.page-about .split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr);
  }

  body.page-about .about-hero {
    justify-self: start;
    max-width: 100%;
  }
}

.split {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 24px;
}

.list {
  display: grid;
  gap: 10px;
}

.about-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  justify-items: stretch;
  justify-content: start;
  margin-top: auto;
  padding-top: 28px;
}

.about-text {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.about-text p {
  margin: 0 0 14px;
}

.about-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.about-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(12, 16, 20, 0.12);
}

.about-button.resume {
  background: linear-gradient(120deg, rgba(255, 146, 198, 0.75), rgba(255, 210, 148, 0.85));
  border-color: rgba(255, 146, 198, 0.4);
}

.about-button.email {
  background: linear-gradient(120deg, rgba(120, 200, 255, 0.75), rgba(148, 236, 255, 0.85));
  border-color: rgba(120, 200, 255, 0.4);
}

.about-button.linkedin {
  background: linear-gradient(120deg, rgba(134, 120, 255, 0.7), rgba(255, 134, 200, 0.8));
  border-color: rgba(134, 120, 255, 0.35);
}

.list-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.plain-list {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  background: transparent;
  backdrop-filter: none;
}

.site-footer .container {
  display: flex;
  justify-content: center;
}

.footer-copy {
  color: var(--accent-2);
  font-size: 0.9rem;
}


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

.reveal {
  animation: fadeUp 0.7s ease both;
}

.reveal.delay-1 {
  animation-delay: 0.1s;
}

.reveal.delay-2 {
  animation-delay: 0.2s;
}

.reveal.delay-3 {
  animation-delay: 0.3s;
}

.project-card.reveal {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .site-header .container {
    padding: 10px var(--gutter);
    flex-wrap: nowrap;
    align-items: center;
  }

  .logo-sub {
    display: none;
  }

  .nav {
    width: auto;
    gap: 12px;
  }

  .nav a {
    font-size: 0.8rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .container {
    padding-inline: var(--gutter);
  }

  .site-header .container {
    padding-inline: var(--gutter);
  }
}


@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
