/* ============================================================
   STYLE.CSS — Aayush Srivastava Portfolio
   Modern vanilla CSS. No frameworks. No dependencies.
   ============================================================ */

/* Prevent animation flash — hide animatable elements until JS is ready */
html:not(.js-ready) [data-animate] {
  opacity: 0;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition:
    background-color var(--duration-slow) var(--ease-out),
    color var(--duration-slow) var(--ease-out);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain texture overlay for dark theme */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

[data-theme="light"] body::before {
  opacity: 0.015;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Selection */
::selection {
  background: var(--accent-subtle);
  color: var(--accent-light);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  z-index: 9999;
  transition: top var(--duration-fast);
}
.skip-link:focus { top: var(--space-4); }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition:
    background var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow) var(--ease-out);
}

[data-theme="light"] .nav {
  background: rgba(250, 250, 250, 0.88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-8);
}

/* Wordmark */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-mark {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--accent-light);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
  letter-spacing: 0;
  line-height: 1.4;
  transition: all var(--duration-base) var(--ease-out);
}

.nav-logo:hover .nav-logo-mark {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.nav-logo-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-snug);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-muted);
  transition: all var(--duration-base) var(--ease-out);
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Nav CTA button */
.btn-nav-cta {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--accent-light);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
}

.btn-nav-cta:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* Mobile menu toggle */
.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-muted);
  transition: all var(--duration-base) var(--ease-out);
}

.nav-mobile-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.nav-mobile-toggle svg { width: 18px; height: 18px; }

/* Mobile menu drawer */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-4) var(--space-6);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-1);
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-link {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: all var(--duration-base) var(--ease-out);
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.nav-mobile-cta {
  margin-top: var(--space-2);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--accent-light);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: all var(--duration-base) var(--ease-out);
}

.nav-mobile-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */

.page-wrapper {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding-block: var(--space-24) var(--space-16);
  position: relative;
  overflow: hidden;
}

/* Decorative grid background */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

/* Hero text side */
.hero-content {}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--green);
  background: var(--green-subtle);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3) var(--space-1) var(--space-2);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: var(--radius-full);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero-title-line { display: block; }

.hero-title-accent {
  color: transparent;
  background: linear-gradient(135deg, var(--accent-light) 0%, #a78bfa 60%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Typewriter effect */
.hero-typewriter {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  min-height: 1.75em;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  max-width: 480px;
  margin-bottom: var(--space-10);
}

.hero-description a {
  color: var(--accent-light);
  border-bottom: 1px solid var(--accent-glow);
  transition: border-color var(--duration-base);
}

.hero-description a:hover { border-color: var(--accent-light); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  border: 1px solid var(--border-muted);
  transition: all var(--duration-base) var(--ease-out);
}

.hero-social-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.hero-social-link svg { width: 18px; height: 18px; }

/* Hero image side */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image-frame {
  position: relative;
  width: 320px;
  height: 320px;
}

/* Decorative rings */
.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  animation: rotate-ring 20s linear infinite;
}

.hero-image-frame::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px dashed var(--border-subtle);
  animation: rotate-ring 30s linear infinite reverse;
}

@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-image-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 1;
  border: 2px solid var(--border-muted);
  box-shadow: var(--shadow-lg);
}

/* Floating badge on image */
.hero-image-badge {
  position: absolute;
  bottom: 16px;
  right: -20px;
  z-index: 2;
  background: var(--bg-elevated);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.hero-image-badge-icon {
  font-size: var(--text-base);
}

.hero-image-badge-text {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.hero-image-badge-sub {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

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

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding-inline: var(--space-3);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

/* ============================================================
   SECTION SHARED STYLES
   ============================================================ */

.section {
  padding-block: var(--space-24);
  position: relative;
  z-index: 1;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--accent-light);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  max-width: 560px;
}

.section-header {
  margin-bottom: var(--space-16);
}

/* ============================================================
   SKILLS SECTION (on homepage)
   ============================================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}

.skill-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration-base) var(--ease-out);
}

.skill-group:hover {
  border-color: var(--border-muted);
  background: var(--bg-elevated);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.skill-group-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skill-tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  transition: all var(--duration-base) var(--ease-out);
}

.skill-tag:hover {
  color: var(--accent-light);
  background: var(--accent-subtle);
  border-color: var(--accent-glow);
}

/* ============================================================
   WORK EXPERIENCE (work.html)
   ============================================================ */

.work-timeline {
  position: relative;
  padding-left: var(--space-8);
}

.work-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border-muted);
}

.work-entry {
  position: relative;
  margin-bottom: var(--space-16);
}

.work-entry:last-child { margin-bottom: 0; }

.work-entry::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 4px);
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
  transition: background var(--duration-slow) var(--ease-out);
}

.work-entry-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.work-period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-wide);
}

.work-badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--accent-light);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-full);
  padding: 1px var(--space-3);
}

.work-role {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-snug);
  margin-bottom: var(--space-1);
}

.work-company {
  font-size: var(--text-base);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-4);
}

.work-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-5);
}

.work-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.work-tech-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
}

/* ============================================================
   EDUCATION
   ============================================================ */

.education-grid {
  display: grid;
  gap: var(--space-4);
}

.education-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: start;
  transition: all var(--duration-base) var(--ease-out);
}

.education-card:hover {
  border-color: var(--border-muted);
  background: var(--bg-elevated);
}

.education-degree {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.education-institution {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.education-meta {
  text-align: right;
}

.education-year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  display: block;
  margin-bottom: var(--space-1);
}

.education-grade {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--accent-light);
}

/* ============================================================
   EXTRA CURRICULAR
   ============================================================ */

.activity-list {
  display: grid;
  gap: var(--space-4);
}

.activity-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  transition: all var(--duration-base) var(--ease-out);
}

.activity-card:hover {
  border-color: var(--border-muted);
  background: var(--bg-elevated);
}

.activity-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.activity-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--duration-slow) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.project-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-glow);
}

.project-card:hover::before { opacity: 1; }

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  position: relative;
}

.project-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.project-links {
  display: flex;
  gap: var(--space-2);
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-base) var(--ease-out);
}

.project-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
  border-color: var(--border-muted);
}

.project-link svg { width: 14px; height: 14px; }

.project-name {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-snug);
  position: relative;
}

.project-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  flex: 1;
  position: relative;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  position: relative;
}

.project-tech-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-intro-text {
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.contact-intro-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-10);
}

.contact-channels {
  display: grid;
  gap: var(--space-3);
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.contact-channel:hover {
  border-color: var(--border-muted);
  background: var(--bg-elevated);
  transform: translateX(4px);
}

.contact-channel-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.contact-channel-icon svg { width: 18px; height: 18px; }

.contact-channel-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.contact-channel-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.contact-channel-arrow {
  margin-left: auto;
  color: var(--text-tertiary);
  transition: transform var(--duration-base) var(--ease-out);
}

.contact-channel:hover .contact-channel-arrow {
  transform: translateX(4px);
  color: var(--accent-light);
}

.contact-channel-arrow svg { width: 16px; height: 16px; }

/* Contact right panel - availability card */
.contact-availability {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.availability-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--green);
  margin-bottom: var(--space-6);
}

.availability-status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.availability-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-snug);
}

.availability-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
}

.availability-list {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.availability-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.availability-item-icon {
  color: var(--green);
  flex-shrink: 0;
}

.availability-item-icon svg { width: 14px; height: 14px; }

/* ============================================================
   BLOG SECTION
   ============================================================ */

.blog-coming-soon {
  background: var(--bg-surface);
  border: 1px dashed var(--border-muted);
  border-radius: var(--radius-xl);
  padding: var(--space-16);
  text-align: center;
}

.blog-coming-soon-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.blog-coming-soon-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.blog-coming-soon-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
  line-height: var(--leading-loose);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  padding-block: var(--space-20) var(--space-12);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-16);
}

.page-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--accent-light);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.page-hero-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.page-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: var(--leading-loose);
}

/* ============================================================
   RESUME DOWNLOAD BANNER
   ============================================================ */

.resume-banner {
  background: linear-gradient(135deg, var(--accent-subtle) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.resume-banner-text {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.resume-banner-sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* ============================================================
   WORK PAGE: SECTION DIVIDERS
   ============================================================ */

.work-section {
  margin-bottom: var(--space-20);
}

.work-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.work-section-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-snug);
}

.work-section-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-10);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.footer-brand span {
  color: var(--accent-light);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-link {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  transition: color var(--duration-base);
}

.footer-link:hover { color: var(--text-primary); }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up var(--duration-slower) var(--ease-out) both;
}

.animate-delay-1 { animation-delay: 100ms; }
.animate-delay-2 { animation-delay: 200ms; }
.animate-delay-3 { animation-delay: 300ms; }
.animate-delay-4 { animation-delay: 400ms; }
.animate-delay-5 { animation-delay: 500ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-image-frame::before,
  .hero-image-frame::after {
    animation: none;
  }

  .typewriter-cursor {
    animation: none;
    opacity: 1;
  }

  .hero-badge-dot {
    animation: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  :root {
    --text-5xl: 3rem;
    --text-4xl: 2.25rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }

  .hero-visual { order: -1; }

  .hero-image-frame {
    width: 220px;
    height: 220px;
  }

  .hero-image-badge {
    right: 0;
    bottom: -10px;
  }

  .hero-image-badge {
    right: 50%;
    transform: translateX(50%);
    bottom: -48px;
  }

  .hero-visual {
    padding-bottom: 56px;
  }

  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-description { margin-inline: auto; }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .education-card {
    grid-template-columns: 1fr;
  }

  .education-meta { text-align: left; }

  .resume-banner {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 640px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
  }

  .container { padding-inline: var(--space-4); }

  .nav-links,
  .btn-nav-cta {
    display: none;
  }

  .nav-mobile-toggle { display: flex; }

  .hero {
    padding-block: var(--space-12);
  }

  .section { padding-block: var(--space-16); }

  .hero-image-frame {
    width: 180px;
    height: 180px;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .work-timeline { padding-left: var(--space-6); }
}

@media (min-width: 641px) {
  .nav-mobile-toggle { display: none; }
  .nav-links { display: flex; }
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.96);
  border-bottom-color: var(--border-muted);
  box-shadow: 0 1px 24px rgba(0,0,0,0.3);
}

[data-theme="light"] .nav.scrolled {
  background: rgba(250, 250, 250, 0.98);
  box-shadow: 0 1px 16px rgba(0,0,0,0.08);
}