/* ==========================
   Modern Portfolio Styles
   ========================== */

:root {
  --bg: #070A12;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.085);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-2: rgba(255, 255, 255, 0.18);

  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.35);

  --radius: 18px;
  --radius-lg: 26px;

  --max: 1120px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
  position: relative;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 560px;
  height: 560px;
  filter: blur(48px);
  opacity: 0.45;
  border-radius: 50%;
  transform: translate3d(0, 0, 0);
}

.blob-a {
  top: -160px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 83, 173, 0.75), rgba(109, 94, 255, 0.35), transparent 70%);
}

.blob-b {
  bottom: -170px;
  right: -140px;
  background: radial-gradient(circle at 35% 35%, rgba(0, 255, 196, 0.65), rgba(70, 120, 255, 0.32), transparent 70%);
}

.grid-noise {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.11;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(7, 10, 18, 0.78), rgba(7, 10, 18, 0.46));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  width: min(var(--max), calc(100% - 48px));
  margin: 14px auto 0;
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.06);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.1) 55%),
    linear-gradient(135deg, rgba(255, 83, 173, 0.95), rgba(0, 255, 196, 0.85));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.brand-mark.small {
  width: 22px;
  height: 22px;
  border-radius: 8px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.2px;
  opacity: 0.95;
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  transform: translateY(-1px);
}

.nav a.active {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* Typography */
.eyebrow {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 12px;
}

.h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.01em;
}

.h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

.lead {
  margin: 8px 0 10px;
  font-size: 18px;
}

.sublead {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 56ch;
}

/* Hero */
.hero {
  padding-top: 48px;
}

.hero-slim {
  padding-top: 54px;
  padding-bottom: 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: center;
}

.hero-copy {
  padding: 18px 0;
}

.hero-media {
  display: grid;
  justify-items: end;
}

.media-card {
  width: min(420px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.media-card .avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.avatar {
  width: 290px;
  height: 290px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

/* Typewriter */
.typewrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.typewriter {
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 83, 173, 0.95), rgba(0, 255, 196, 0.85));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.caret {
  width: 10px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  animation: blink 1s infinite;
  transform: translateY(2px);
}

@keyframes blink {

  0%,
  45% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
  font-size: 14px;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.btn i {
  font-size: 14px;
}

.btn-primary {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 83, 173, 0.9), rgba(0, 255, 196, 0.7));
  color: rgba(7, 10, 18, 0.95);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.40);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.mini-stats {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.chip i {
  color: rgba(255, 255, 255, 0.85);
}

/* Section head */
.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

/* Layout blocks */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.about-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
}

.about-card p {
  margin: 0 0 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-top: 12px;
}

.info {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.k {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.v {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-actions {
  margin-top: 14px;
}

/* Cards */
.cards {
  display: grid;
  gap: 16px;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow-soft);
  padding: 18px;
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), background 240ms var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 83, 173, 0.15), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(0, 255, 196, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 240ms var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.17);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.04));
}

.card:hover::after {
  opacity: 1;
}

.card-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.card-ico i {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.project .h3 {
  margin-top: 12px;
}

.project .muted {
  flex-grow: 1;
}

.project .linkish {
  margin-top: auto;
}

/* Frames (images/placeholder) */
.frame {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.frame .avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  object-fit: cover;
}

.frame-wide {
  aspect-ratio: 353 / 250;
}

.frame-award {
  aspect-ratio: 353 / 300;
}

.ph-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 14px;
  position: relative;
  padding-left: 16px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255, 83, 173, 0.7), rgba(0, 255, 196, 0.55));
  opacity: 0.6;
  border-radius: 999px;
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: start;
}

.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}

.tl-content {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  padding: 16px 16px 14px;
}

.tl-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

/* Awards grid */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Award card specific styles */
.award .h3 {
  margin-top: 14px;
}

.award .muted {
  flex-grow: 1;
}

.tags {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.tag i {
  color: rgba(255, 255, 255, 0.85);
}

/* “View details” link button */
.linkish {
  margin-top: 14px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.90);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}

.linkish:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Center helper */
.center {
  display: grid;
  place-items: center;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.modal.open {
  pointer-events: auto;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  width: min(720px, calc(100% - 36px));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.055));
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  transform: translateY(10px) scale(0.985);
  transition: transform 220ms var(--ease);
}

.modal.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.90);
  border-radius: 999px;
  padding: 9px 10px;
  cursor: pointer;
}

.modal-x:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Footer */
.site-footer {
  padding: 28px 0 38px;
}

.footer-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.6fr;
  gap: 16px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.footer-social {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.90);
  transition: transform 220ms var(--ease), background 220ms var(--ease);
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
}

.small {
  font-size: 13px;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 12px 13px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), background 220ms var(--ease);
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    justify-items: start;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .cards.three {
    grid-template-columns: 1fr;
  }

  .awards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .site-header {
    border-radius: 22px;
    padding: 10px 12px;
  }

  .nav {
    position: fixed;
    top: 82px;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--max), calc(100% - 24px));
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 10, 18, 0.72);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .cards.two {
    grid-template-columns: 1fr;
  }

  .awards-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .card,
  .btn,
  .linkish,
  .nav a,
  .modal,
  .modal-dialog,
  .to-top {
    transition: none !important;
    animation: none !important;
  }

  .caret {
    animation: none !important;
    opacity: 1;
  }
}