:root {
  --bg: #0b0b0f;
  --bg-soft: #141421;
  --accent: #e50914;
  --accent-soft: #ff3b47;
  --text: #f2f2f4;
  --muted: #a8a8b3;
  --card: #1a1a26;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

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

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #232335 0%, #0b0b0f 60%);
  color: var(--text);
  line-height: 1.6;
}

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

.loader {
  position: fixed;
  inset: 0;
  background: #09090d;
  display: grid;
  place-items: center;
  z-index: 999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  position: relative;
  display: grid;
  gap: 18px;
  place-items: center;
}

.loader-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
}

.netflix-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.sangam-logo {
  display: flex;
  gap: 10px;
  position: relative;
}

.logo-letter {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(5rem, 16vw, 10rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ff4d57 0%, #e50914 55%, #9b040c 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  overflow: hidden;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: letterReveal 0.9s ease forwards;
  text-shadow: 0 0 12px rgba(229, 9, 20, 0.45);
}

.logo-letter::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.08) 4px,
      transparent 4px,
      transparent 10px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
}

.logo-letter::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  filter: blur(6px);
  opacity: 0;
  animation: brushSweep 0.9s ease forwards;
  mix-blend-mode: screen;
}

.sangam-logo {
  line-height: 1;
}

.logo-letter:nth-child(1) { animation-delay: 0s; }
.logo-letter:nth-child(1)::after { animation-delay: 0.05s; }
.logo-letter:nth-child(2) { animation-delay: 0.25s; }
.logo-letter:nth-child(2)::after { animation-delay: 0.3s; }
.logo-letter:nth-child(3) { animation-delay: 0.5s; }
.logo-letter:nth-child(3)::after { animation-delay: 0.55s; }
.logo-letter:nth-child(4) { animation-delay: 0.75s; }
.logo-letter:nth-child(4)::after { animation-delay: 0.8s; }
.logo-letter:nth-child(5) { animation-delay: 1s; }
.logo-letter:nth-child(5)::after { animation-delay: 1.05s; }
.logo-letter:nth-child(6) { animation-delay: 1.25s; }
.logo-letter:nth-child(6)::after { animation-delay: 1.3s; }

@keyframes letterReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes brushSweep {
  0% {
    transform: translateX(-40%);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateX(200%);
    opacity: 0;
  }
}

.netflix-container::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 6px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.8), transparent 70%);
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(8px);
  opacity: 0.7;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 20;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6vw;
  background: rgba(11, 11, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.social-rail {
  position: fixed;
  left: 24px;
  bottom: 24px;
  transform: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 12;
  padding: 8px 6px;
  border-radius: 999px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}


.social-rail a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  position: relative;
  z-index: 1;
}

.social-rail a:hover {
  transform: translateY(-2px);
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.5);
}

.social-rail svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.social-rail:hover {
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.22), rgba(229, 9, 20, 0.04));
  box-shadow: 0 0 30px rgba(229, 9, 20, 0.28);
}

.social-rail:hover a {
  background: transparent;
  border-color: transparent;
}

.social-rail:hover a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-header.scrolled {
  background: rgba(11, 11, 15, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.3rem;
}

.brand-initial {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
}
.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.cta {
  padding: 10px 18px;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

main {
  padding: 40px 6vw 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
  min-height: 60vh;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 8px;
}

.subhead {
  font-size: 1.3rem;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

.eyebrow {
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  max-width: 520px;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.primary {
  background: var(--accent);
  box-shadow: 0 20px 40px rgba(229, 9, 20, 0.35);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.hero-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.hero-meta span {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 0.85rem;
}

.hero-poster {
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: min(962px, 100vw);
  aspect-ratio: 4 / 4.5;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.hero-photo canvas {
  width: 100%;
  height: 100%;
  display: block;
}


.poster-card {
  width: min(320px, 80vw);
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, rgba(229, 9, 20, 0.8) 0%, rgba(21, 21, 29, 0.9) 70%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.15), transparent 60%);
}

.poster-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.poster-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.poster-tags {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.poster-tags span {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.row-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

.row-controls {
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.card-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.card-track::-webkit-scrollbar {
  display: none;
}

.card {
  background: var(--card);
  padding: 22px;
  border-radius: var(--radius);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
}

.card-art {
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  position: relative;
  overflow: hidden;
}

.card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent 60%);
}

.card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 6px,
    transparent 6px,
    transparent 14px
  );
  opacity: 0.35;
}

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

.card-art.top-crop img {
  object-position: top;
}
.art-fire {
  background: linear-gradient(135deg, #ff7a18, #af002d 70%);
}

.art-spam {
  background: linear-gradient(135deg, #4b6cb7, #182848 70%);
}

.art-weather {
  background: linear-gradient(135deg, #00c6ff, #0072ff 70%);
}

.art-hospital {
  background: linear-gradient(135deg, #11998e, #38ef7d 70%);
}

.art-event {
  background: linear-gradient(135deg, #ee0979, #ff6a00 70%);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 45px rgba(0, 0, 0, 0.5);
}

.card-label {
  color: var(--accent-soft);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

.card-links {
  margin-top: auto;
}

.text-btn {
  background: none;
  border: none;
  color: var(--accent-soft);
  font-weight: 600;
  cursor: pointer;
  padding-top: 8px;
}

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

.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}

.now-playing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  background: var(--bg-soft);
  padding: 24px;
  border-radius: var(--radius);
}

.now-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.now-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 18px;
  border-radius: 14px;
}

.continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.continue-card {
  background: var(--card);
  padding: 18px;
  border-radius: 16px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  background: var(--bg-soft);
  padding: 28px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.muted {
  color: var(--muted);
  margin-top: 16px;
}

blockquote {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: rgba(255, 255, 255, 0.8);
}

.learn-strip {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.18), rgba(255, 255, 255, 0.04) 55%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.learn-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.learn-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.15;
  pointer-events: none;
}

.learn-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.learn-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.learn-items span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.learn-items span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.8);
}

.about-bg {
  position: absolute;
  right: -60px;
  top: 20%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.35), transparent 70%);
  filter: blur(10px);
  opacity: 0.6;
  pointer-events: none;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.filter-btn.active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.skill-card {
  background: var(--card);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card.hidden {
  display: none;
}

.timeline {
  display: grid;
  gap: 16px;
  position: relative;
  padding-left: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.timeline-item {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.7);
}
.timeline-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-grid span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.language-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 16px;
}

.lang-row {
  display: grid;
  gap: 8px;
}

.lang-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.lang-level {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.lang-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.lang-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e50914, #ff5a65);
  position: relative;
}

.lang-fill::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.cert-card {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(229, 9, 20, 0.15), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.cert-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cert-list {
  list-style: none;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.cert-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.cert-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.6);
  flex: 0 0 auto;
}

.cert-list li span {
  flex: 1 1 auto;
  text-align: left;
}

.cert-link {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.18);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cert-link:hover {
  transform: translateY(-1px);
  background: rgba(229, 9, 20, 0.35);
}

.contact-card {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.9), rgba(21, 21, 29, 0.95));
  padding: 30px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-links {
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
}

.contact-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.site-footer {
  padding: 16px 6vw 24px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 10, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.project-modal.active {
  display: flex;
}

.modal-card {
  background: #12121b;
  border-radius: 18px;
  padding: 26px;
  max-width: 520px;
  width: min(90vw, 520px);
  box-shadow: var(--shadow);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  float: right;
}

.modal-label {
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
}

.modal-role {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.modal-highlights {
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.modal-highlights span {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.modal-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  display: none;
  place-items: center;
  z-index: 20;
}

.to-top.show {
  display: grid;
}

.resume-viewer {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111118;
  width: min(900px, 92vw);
  aspect-ratio: 1 / 1.414;
  max-height: calc((100vh - 180px) * 2.08);
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.resume-viewer object {
  width: 100%;
  height: 100%;
  border: 0;
}

.resume-page {
  height: 100vh;
}

.resume-page main {
  height: auto;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .social-rail {
    left: 12px;
  }

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

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

  main {
    padding: 28px 6vw 60px;
    gap: 60px;
  }

  .cta {
    width: 100%;
    text-align: center;
  }

  .hero-meta {
    flex-wrap: wrap;
  }

  .hero-photo {
    width: min(360px, 92vw);
  }

  .contact-links {
    flex-direction: column;
  }

  .social-rail {
    position: static;
    flex-direction: row;
    justify-content: center;
    transform: none;
    margin: 12px 0 0;
  }

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

@media (max-width: 900px) {
  .card-track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .card-track {
    grid-auto-columns: 100%;
  }
}
