/* ============================================
   BRIAN JASON TRAN — Portfolio Design System
   Light theme with bold, bright colors
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Lexend+Deca:wght@700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg: #fafafa;
  --bg-white: #ffffff;
  --bg-elevated: #f0f0f0;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8f8;
  --surface: #f5f5f5;

  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.16);

  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-tertiary: #888;

  /* Bold accent palette */
  --accent-blue: #2563eb;
  --accent-violet: #7c3aed;
  --accent-rose: #e11d48;
  --accent-orange: #ea580c;
  --accent-teal: #0d9488;
  --accent-gradient: linear-gradient(135deg, #84cc16 0%, #10b981 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(132,204,22,0.1) 0%, rgba(16,185,129,0.1) 100%);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);

  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;

  --container-max: 1200px;
  --container-wide: 1400px;
  --nav-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-violet);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: 800px;
}

/* --- Typography --- */
.heading-xl {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.heading-lg {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-md {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.heading-sm {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.body-lg {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.body-md {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
}

/* Gradient text helper */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: rgba(250,250,250,0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav__brand:hover {
  opacity: 0.8;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

.nav__social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__social a {
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
}

.nav__social a:hover {
  color: var(--text-primary);
}

.nav__social svg {
  width: 20px;
  height: 20px;
}

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: var(--transition-fast);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }

  .nav__menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: auto;
    padding: 32px 0 40px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav__menu.open { opacity: 1; pointer-events: all; }
  .nav__links { flex-direction: column; gap: 28px; }
  .nav__links a { font-size: 1.3rem; font-weight: 600; }
  .nav__social { margin-top: 24px; }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,29,72,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__label {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 20px;
  background: var(--accent-gradient-soft);
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.03em;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__subtitle {
  max-width: 620px;
  margin: 0 auto 44px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--text-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 100px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  letter-spacing: -0.01em;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  color: #fff;
}

.hero__cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.hero__cta:hover svg {
  transform: translateX(3px);
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 2.5s ease-in-out infinite;
  color: var(--text-tertiary);
}

.hero__scroll svg {
  width: 24px;
  height: 24px;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* --- Section --- */
.section {
  padding: 60px 0;
}

.section--compact {
  padding: 36px 0;
}

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

.section__header {
  text-align: center;
  margin-bottom: 36px;
}

.section__label {
  margin-bottom: 10px;
}

.section__title {
  margin-bottom: 10px;
}

.section__subtitle {
  max-width: 620px;
  margin: 0 auto;
}

/* --- Project Grid --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

@media (max-width: 480px) {
  .project-grid { grid-template-columns: 1fr; }
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  color: #fff;
}

.project-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  transform: translateY(-4px);
  color: #fff;
}

.project-card__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.project-card__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(0,0,0,0) 40%, 
    rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.project-card:hover .project-card__image {
  transform: scale(1.08);
}

.project-card__body {
  position: relative;
  z-index: 2;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card__tag {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-card__tag--blue { background: rgba(37, 99, 235, 0.5); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.project-card__tag--yellow { background: rgba(202, 138, 4, 0.65); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.project-card__tag--red { background: rgba(239, 68, 68, 0.5); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.project-card__tag--green { background: rgba(34, 197, 94, 0.5); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.project-card__tag--orange { background: rgba(249, 115, 22, 0.5); color: #fff; border: 1px solid rgba(255,255,255,0.3); }

.project-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.project-card__desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

/* Featured card */
.project-card--featured {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .project-card--featured { grid-column: span 1; }
}

/* --- Page Hero (detail pages) --- */
.page-hero {
  padding: 120px 0 40px;
  text-align: center;
  background: var(--bg-white);
}

.page-hero__label { margin-bottom: 10px; }
.page-hero__title { margin-bottom: 14px; }

.page-hero__subtitle {
  max-width: 700px;
  margin: 0 auto;
}

/* --- Video Embed --- */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* --- Media Grid --- */
.media-grid {
  display: grid;
  gap: 16px;
}

.media-grid--2 { grid-template-columns: repeat(2, 1fr); }
.media-grid--3 { grid-template-columns: repeat(3, 1fr); }
.media-grid--w2-custom { grid-template-columns: 1.25fr 1fr; }
.media-grid--auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

@media (max-width: 768px) {
  .media-grid--2, .media-grid--3, .media-grid--w2-custom { grid-template-columns: 1fr; }
}

.media-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.media-item img, .media-item video { width: 100%; display: block; }

.media-item--span-2 { grid-column: span 2; }

@media (max-width: 768px) {
  .media-item--span-2 { grid-column: span 1; }
}

/* --- Film Grid --- */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

.film-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.film-card:hover {
  box-shadow: 0 6px 24px rgba(37,99,235,0.16), 0 2px 6px rgba(0,0,0,0.06);
}

.film-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.film-card__info { padding: 10px 14px; }

.film-card__title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.film-card__role {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.film-card__placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  line-height: 1.3;
}

/* --- Project Section --- */
.project-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.project-section:first-of-type { border-top: none; }

.project-section__header { margin-bottom: 24px; }
.project-section__title { margin-bottom: 8px; }
.project-section__desc { max-width: 700px; }

/* --- Resume --- */
.resume-section { padding: 40px 0; }

.resume-block { margin-bottom: 32px; }

.resume-block__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-block__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.resume-block__date {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

.resume-block__company {
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 2px;
}

.resume-block__role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.resume-block__list {
  list-style: none;
  padding: 0;
}

.resume-block__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.resume-block__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* --- Skills Grid --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.skill-card {
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.skill-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.skill-card__list {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
  color: var(--text-primary);
}

.contact-item:hover {
  box-shadow: 0 6px 24px rgba(37,99,235,0.16), 0 2px 6px rgba(0,0,0,0.06);
  color: var(--text-primary);
}

.contact-item__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.08);
  border-radius: 14px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.contact-item__icon svg {
  width: 22px;
  height: 22px;
}

.contact-item__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.contact-item__value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: box-shadow var(--transition-fast);
  letter-spacing: -0.01em;
}

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
}

.btn--primary:hover {
  box-shadow: 0 8px 28px rgba(16,185,129,0.3), 0 2px 8px rgba(0,0,0,0.1);
  color: #fff;
}

.btn--outline {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn--outline:hover {
  box-shadow: 0 6px 24px rgba(37,99,235,0.16), 0 2px 6px rgba(0,0,0,0.06);
  color: var(--text-primary);
}

.btn svg { width: 16px; height: 16px; }

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg-white);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer__links a {
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
}

.footer__links a:hover { color: var(--text-primary); }

.footer__links svg {
  width: 22px;
  height: 22px;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
  border: none;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 100;
  border: none;
}

.back-to-top.visible { opacity: 1; pointer-events: all; }

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: var(--text-primary);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* --- 3-Column Home Grid --- */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 40px;
  min-height: calc(100vh - 120px);
  align-content: center;
}

@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; gap: 20px; min-height: auto; padding-bottom: 24px; }
}

/* --- Resume Box (About page) --- */
@keyframes revealLoad {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.resume-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px 32px;
  margin-top: 28px;
  opacity: 0;
  animation: revealLoad 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

.resume-box .section {
  padding: 28px 0;
}

.resume-box .section:first-child {
  padding-top: 0;
}

.resume-box .section:last-child {
  padding-bottom: 0;
}

.resume-box .section--compact {
  padding: 20px 0;
}

.resume-box .section__header {
  text-align: left;
  margin-bottom: 20px;
}

.resume-box .resume-block {
  margin-bottom: 24px;
}

.resume-box .divider + .resume-block {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .resume-box { padding: 24px 16px; }
}

.home-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 16 / 9;
  min-height: auto;
  background: #000;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
  cursor: pointer;
  color: #fff;
}

.home-card:hover {
  box-shadow: 0 12px 40px rgba(37,99,235,0.22), 0 4px 12px rgba(0,0,0,0.1);
  color: #fff;
}

.home-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

/* Iframe background helper removed in favor of native video */




/* Zoom effect removed as requested */
/* .home-card:hover .home-card__bg {
  transform: scale(1.04);
} */

.home-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 90%, transparent 100%);
}

.home-card__content {
  position: relative;
  z-index: 1;
  padding: 24px 36px;
}

.home-card__title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.15;
}

.home-card__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  /* Ensure titles align by giving description consistent minimum space */
  min-height: 2.7rem;
}

/* --- About Page --- */
.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  box-shadow: var(--shadow-card);
}

.about-summary {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--bg-card);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: box-shadow var(--transition-fast);
}

.social-link:hover {
  box-shadow: 0 6px 24px rgba(37,99,235,0.16), 0 2px 6px rgba(0,0,0,0.06);
  color: var(--text-primary);
}

.social-link svg {
  height: 18px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* --- Dynamic Background --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}
