/* ==========================================================================
   STYLE.CSS — Tanvir Kanoje Personal Portfolio
   Framer Luxury Dark Theme with Signature Serif Italics & Neon Orange Accents
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-primary: #070708;
  --bg-secondary: #0c0d10;
  --bg-elevated: #131418;
  --bg-card: #14161b;
  --bg-card-hover: #191c22;
  --bg-glass: rgba(19, 20, 24, 0.75);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-accent: rgba(251, 69, 4, 0.35);

  /* Accents */
  --accent: #fb4504;
  --accent-hover: #ff5718;
  --accent-light: #ff723b;
  --accent-glow: rgba(251, 69, 4, 0.25);
  --accent-soft: rgba(251, 69, 4, 0.1);

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.88);
  --text-muted: #9496a1;
  --text-dimmed: #636674;

  /* Typography Families */
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;

  /* Typography Scale */
  --text-xs: clamp(0.72rem, 0.7rem + 0.15vw, 0.8rem);
  --text-sm: clamp(0.82rem, 0.8rem + 0.2vw, 0.92rem);
  --text-base: clamp(0.95rem, 0.92rem + 0.25vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1.05rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.3rem, 1.2rem + 0.6vw, 1.55rem);
  --text-2xl: clamp(1.6rem, 1.45rem + 1vw, 2.1rem);
  --text-3xl: clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
  --text-display: clamp(2.8rem, 2.2rem + 3.8vw, 5.2rem);
  --text-hero: clamp(3.2rem, 2.5rem + 4.8vw, 6.2rem);

  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Layout */
  --container-max: 1240px;
  --container-pad: clamp(16px, 4vw, 32px);
  --header-height: 80px;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Motion */
  --ease-framer: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 12% 15%, rgba(251, 69, 4, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 88% 65%, rgba(251, 69, 4, 0.035) 0%, transparent 45%);
}

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

ul, ol {
  list-style: none;
}

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

button, input, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--duration-fast) ease;
}
.skip-link:focus {
  top: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.display {
  font-size: var(--text-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-primary);
}

.display--light {
  color: var(--text-primary);
}

.serif-italic, em, .display em, h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  padding-inline: 2px;
}

.lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
  max-width: 62ch;
}

.lead--light {
  color: rgba(255, 255, 255, 0.85);
}

.section {
  padding-block: var(--space-3xl);
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.section-head > div:first-child {
  flex: 1 1 540px;
}

.section-head__side {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  backdrop-filter: blur(8px);
}

.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.pill--live .pill__dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* --------------------------------------------------------------------------
   4. BUTTONS & CHARACTER ROLL
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--duration-fast) var(--ease-framer);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--lg {
  padding: 16px 32px;
  font-size: var(--text-base);
}

.btn--block {
  width: 100%;
}

.btn--accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn--accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(251, 69, 4, 0.4);
}
.btn--accent:active {
  transform: translateY(0);
}

.btn--dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}
.btn--dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.btn--ghost:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-fast) var(--ease-framer);
}
.btn:hover .btn__icon {
  transform: translate(2px, -2px);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-framer);
}
.icon-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Roll Hover */
.roll {
  display: inline-flex;
  overflow: hidden;
  position: relative;
  line-height: 1;
}

.roll__char {
  display: inline-block;
  position: relative;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: calc(var(--i, 0) * 16ms);
}

.roll__char::after {
  content: attr(data-char);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
}

.btn:hover .roll__char,
.nav__link:hover .roll__char,
a:hover .roll__char {
  transform: translateY(-100%);
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding-block: var(--space-md);
  transition: padding var(--duration-fast) var(--ease-framer);
}

.site-header[data-scrolled="true"] {
  padding-block: 12px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(12, 13, 16, 0.72);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(251, 69, 4, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  color: var(--accent);
}

.brand__name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--duration-fast) ease;
  padding-block: 6px;
}
.nav__link:hover {
  color: var(--text-primary);
}

.site-header__cta {
  padding: 10px 20px;
  font-size: var(--text-sm);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
}

.menu-toggle__bars {
  width: 18px;
  height: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle__bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-fast) ease;
}

.is-menu-open .menu-toggle__bars span:first-child {
  transform: translateY(5px) rotate(45deg);
}
.is-menu-open .menu-toggle__bars span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 8, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-framer);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.mobile-menu__nav a {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}
.mobile-menu__nav a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION & PORTRAIT INTEGRATION
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--space-3xl);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  font-size: var(--text-hero);
  line-height: 1.05;
  margin-bottom: var(--space-lg);
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line__inner {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.is-loaded .hero__title .line:nth-child(1) .line__inner {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 100ms;
}
.is-loaded .hero__title .line:nth-child(2) .line__inner {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 200ms;
}
.is-loaded .hero__title .line:nth-child(3) .line__inner {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 300ms;
}

.hero__lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero Visual Composition with Real Photo */
.hero__visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: absolute;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  transition: transform 0.1s ease-out;
}

.hero__frame--back {
  width: 360px;
  height: 460px;
  transform: rotate(-5deg) translate(-20px, 10px);
  background: radial-gradient(circle at 50% 50%, rgba(251, 69, 4, 0.25) 0%, rgba(19, 20, 24, 0.95) 80%);
  filter: blur(1px);
  z-index: 1;
  border-color: var(--border-accent);
}

.hero__frame--main {
  width: 380px;
  height: 490px;
  transform: rotate(2deg);
  z-index: 2;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--accent-glow);
  background-color: #121318;
  position: relative;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) brightness(0.96) saturate(1.05);
  transition: transform var(--duration-slow) var(--ease-framer);
}

.hero__frame--main:hover .hero__photo {
  transform: scale(1.03);
}

/* Subtle dark gradient overlay on photo */
.hero__frame--main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 7, 8, 0.75) 100%);
  pointer-events: none;
}

.hero__chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(19, 20, 24, 0.88);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.hero__chip svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.hero__chip--one {
  top: 10%;
  right: -5%;
}

.hero__chip--two {
  bottom: 8%;
  left: -5%;
}

/* --------------------------------------------------------------------------
   7. ABOUT ME SECTION
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__media {
  position: relative;
}

.about__card {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background: #14161b;
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) brightness(0.95);
}

.about__badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  background: rgba(12, 13, 16, 0.85);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about__badge-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
}
.about__badge-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.about__body .display {
  margin-bottom: var(--space-lg);
}

.about__body .lead {
  margin-bottom: var(--space-lg);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-xl);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. EDUCATION SECTION (Academic Journey)
   -------------------------------------------------------------------------- */
.education-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--duration-normal) var(--ease-framer);
}

.edu-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.edu-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.edu-card__institution {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-card__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(251, 69, 4, 0.12);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.edu-card__degree {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.edu-card__meta {
  font-size: var(--text-xs);
  color: var(--text-dimmed);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.edu-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. SKILLS SECTION (Technical Toolkit)
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  transition: all var(--duration-fast) ease;
}

.skill-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

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

.skill-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

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

.skill-tag {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
}

.skill-card:hover .skill-tag {
  border-color: var(--border-medium);
}

.skill-tag:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   10. FEATURED PROJECTS (Swipe Carousel & Modals)
   -------------------------------------------------------------------------- */
.carousel-nav {
  display: flex;
  gap: 12px;
}

.carousel {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-sm);
}

.carousel__track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-inline: max(var(--container-pad), calc((100vw - var(--container-max)) / 2));
  cursor: grab;
}

.carousel__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 clamp(320px, 80vw, 540px);
  scroll-snap-align: start;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-framer);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.work-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: #101217;
}

.project-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.project-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.project-preview--aws {
  background: radial-gradient(circle at 60% 40%, rgba(251, 69, 4, 0.3) 0%, rgba(16, 18, 23, 0.98) 75%);
}

.project-preview--ledger {
  background: radial-gradient(circle at 40% 60%, rgba(59, 130, 246, 0.3) 0%, rgba(16, 18, 23, 0.98) 75%);
}

.project-preview--portfolio {
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.3) 0%, rgba(16, 18, 23, 0.98) 75%);
}

.project-preview__mockup {
  position: relative;
  z-index: 2;
  width: 85%;
  height: 70%;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  padding: 16px;
  transition: transform var(--duration-normal) var(--ease-framer);
}

.work-card:hover .project-preview__mockup {
  transform: translateY(-4px) scale(1.02);
}

.mockup-header {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.mockup-header span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.mockup-body {
  font-family: monospace;
  font-size: var(--text-xs);
  color: var(--accent);
}

.work-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-card__badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.work-card__badge--progress {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.work-card__badge--shipped {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.work-card__title {
  font-size: var(--text-xl);
  margin-bottom: 8px;
  color: var(--text-primary);
}

.work-card__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-block: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-lg);
  font-size: var(--text-xs);
}

.meta dt {
  color: var(--text-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 2px;
}

.meta dd {
  color: var(--text-primary);
  font-weight: 500;
}

.work-card__btn {
  margin-top: auto;
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   11. BEYOND CODE (Leadership, Debate, MUN)
   -------------------------------------------------------------------------- */
.beyond-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.beyond-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.beyond-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--duration-fast) ease;
}

.beyond-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.beyond-card__title {
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.beyond-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. OPPORTUNITY / COLLABORATION BANNER
   -------------------------------------------------------------------------- */
.banner {
  padding-block: var(--space-2xl);
}

.banner__inner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(48px, 6vw, 84px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--border-accent);
  background: linear-gradient(135deg, rgba(251, 69, 4, 0.12) 0%, rgba(19, 20, 24, 0.98) 100%);
  box-shadow: 0 0 50px rgba(251, 69, 4, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.banner__content {
  max-width: 620px;
}

.banner__title {
  font-size: var(--text-display);
  margin-bottom: var(--space-sm);
}

.banner__text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.5;
}

.banner__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   13. CONTACT SECTION & FORMS
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-3xl);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: var(--space-xl);
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-fast) ease;
}

.contact-channel:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateX(4px);
}

.contact-channel__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact-channel__info {
  display: flex;
  flex-direction: column;
}

.contact-channel__label {
  font-size: var(--text-xs);
  color: var(--text-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-channel__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.field__input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all var(--duration-fast) ease;
}

.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  background: rgba(255, 255, 255, 0.05);
}

.field__input--area {
  resize: vertical;
  min-height: 120px;
}

.field__error {
  font-size: var(--text-xs);
  color: #ef4444;
  min-height: 18px;
}

.form__footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}

.form__status {
  font-size: var(--text-sm);
}
.form__status.is-success { color: #10b981; }
.form__status.is-error { color: #ef4444; }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.site-footer__title {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-sm);
}

.site-footer__sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 44ch;
}

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav__list a {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--duration-fast) ease;
}
.footer-nav__list a:hover {
  color: var(--accent);
}

.footer-nav__num {
  font-size: var(--text-xs);
  color: var(--text-dimmed);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-dimmed);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.socials {
  display: flex;
  gap: 16px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-fast) ease;
}
.socials a:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.socials svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   15. CASE STUDY MODAL (<dialog>)
   -------------------------------------------------------------------------- */
.dialog {
  border: none;
  background: transparent;
  color: var(--text-primary);
  max-width: 900px;
  width: 92vw;
  margin: auto;
  padding: 0;
}

.dialog::backdrop {
  background: rgba(5, 5, 6, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dialog__panel {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.dialog__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
}

.dialog__hero {
  width: 100%;
  height: 220px;
  background: radial-gradient(circle at 50% 50%, rgba(251, 69, 4, 0.25) 0%, rgba(20, 22, 27, 0.98) 80%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog__content {
  padding: clamp(24px, 5vw, 48px);
}

.dialog__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.dialog__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-block: var(--space-md);
  border-block: 1px solid var(--border-subtle);
  margin-bottom: var(--space-xl);
}

.dialog__meta dt {
  font-size: var(--text-xs);
  color: var(--text-dimmed);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.dialog__meta dd {
  font-weight: 600;
  color: var(--text-primary);
}

.dialog__sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.dialog__section-title {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}

.dialog__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    min-height: 440px;
  }
  .about__grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .education-cards {
    grid-template-columns: 1fr;
  }
  .beyond-grid {
    grid-template-columns: 1fr;
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero__frame--back {
    display: none;
  }
  .hero__frame--main {
    width: 320px;
    height: 420px;
  }
  .hero__chip--one {
    top: 5%;
    right: 0;
  }
  .hero__chip--two {
    bottom: 5%;
    left: 0;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .dialog__meta {
    grid-template-columns: 1fr;
  }
}
