/* ═══════════════════════════════════════════════════════════
   EDITORIAL BRUTALIST STYLE SYSTEM — Devgna Vyas Portfolio
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Warm Paper Light Theme (Default) */
  --bg:           #F9F8F6;
  --bg-elevated:  #FFFDF5;
  --bg-card:      #FFFFFF;
  --bg-hover:     #EBE5DE;
  --surface:      #E5E5E0;
  --border:       #111111;
  --border-hover: #CC0000;

  --text-primary:   #111111;
  --text-secondary: #3A3A3A;
  --text-tertiary:  #5C5853;

  --accent:       #CC0000; /* Editorial Red */
  --accent-soft:  #FF4D4D; /* Correction Red */
  --accent-dim:   rgba(204, 0, 0, 0.08);
  --accent-glow:  rgba(204, 0, 0, 0.04);
  --accent-ring:  rgba(204, 0, 0, 0.3);
  
  --brand-gold:   #D4AF37; /* Luxury Gold */
  --brand-blue:   #2D5DA1; /* Ballpoint Blue */
  --brand-yellow: #FFD93D; /* Highlighter Yellow */

  /* Typography */
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Inter', 'Outfit', sans-serif;
  --font-mono:    'Fira Code', 'SF Mono', 'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad: clamp(70px, 8vw, 120px);
  --container:   min(1250px, 92vw);

  /* Shadows */
  --shadow-brutal-sm: 2px 2px 0px 0px #111111;
  --shadow-brutal:    4px 4px 0px 0px #111111;
  --shadow-brutal-md: 8px 8px 0px 0px #111111;
  --shadow-brutal-lg: 12px 12px 0px 0px #111111;

  --shadow-luxury: 0 8px 32px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-tactile: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Focus */
  --focus-ring: 0 0 0 2px #F9F8F6, 0 0 0 4px #CC0000;
}

[data-theme="dark"] {
  /* Dark Cyber Obsidian Palette */
  --bg:           #0B0C12;
  --bg-elevated:  #12131C;
  --bg-card:      #161722;
  --bg-hover:     #1C1E2D;
  --surface:      #23253A;
  --border:       #F3F4F6;
  --border-hover: #FFB000; /* Cyber Gold */

  --text-primary:   #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-tertiary:  #6B7280;

  --accent:       #FFB000; /* Cyber Gold */
  --accent-soft:  #64FFDA; /* Ice Teal */
  --accent-dim:   rgba(255, 176, 0, 0.12);
  --accent-glow:  rgba(255, 176, 0, 0.05);
  --accent-ring:  rgba(255, 176, 0, 0.4);
  
  --brand-gold:   #FFB000;
  --brand-blue:   #64FFDA;
  --brand-yellow: #FFD93D;

  --shadow-brutal-sm: 2px 2px 0px 0px #F3F4F6;
  --shadow-brutal:    4px 4px 0px 0px #F3F4F6;
  --shadow-brutal-md: 8px 8px 0px 0px #F3F4F6;
  --shadow-brutal-lg: 12px 12px 0px 0px #F3F4F6;
  
  --focus-ring: 0 0 0 2px #0B0C12, 0 0 0 4px #FFB000;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE SETUP
   ═══════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

#sakura-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  transition: background-color 0.4s var(--ease), color 0.3s var(--ease);
  position: relative;
}

/* Subtle Paper Grain Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

[data-theme="dark"] body::before {
  opacity: 0.06;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

.container { width: var(--container); margin: 0 auto; }

/* Global Focus Rings */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring) !important;
  border-radius: 4px;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 10001;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.08s linear;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR (EDITORIAL HEADER)
   ═══════════════════════════════════════════════════════════ */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  transition: all 0.3s var(--ease);
}
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  color: var(--accent);
  letter-spacing: -1px;
}

.nav-links { display: flex; gap: 24px; }
.nav-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.2s var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

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

/* Brutalist Buttons */
.btn-brutal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text-primary);
  box-shadow: var(--shadow-brutal-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--ease-tactile);
}
.btn-brutal:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-brutal);
  border-color: var(--accent);
}
.btn-brutal:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.btn-brutal-accent {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--border);
}
.btn-brutal-accent:hover {
  border-color: var(--border);
  background: var(--accent-soft);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-brutal-sm);
  color: var(--text-primary);
  transition: var(--ease-tactile);
}
.theme-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-brutal);
}
.theme-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 2px solid var(--border);
  padding: 10px;
  box-shadow: var(--shadow-brutal-sm);
  background: var(--bg-card);
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--border);
  transition: all 0.25s var(--ease);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 20px;
  gap: 12px;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--surface);
}

/* ═══════════════════════════════════════════════════════════
   HERO (VOL. 01 MAGAZINE LEADING)
   ═══════════════════════════════════════════════════════════ */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-top: max(140px, 15vh);
  padding-bottom: 100px;
  border-bottom: 2px solid var(--border);
}

.hero-scanline {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(rgba(18,19,28,0) 50%, rgba(0,0,0,0.02) 50%), linear-gradient(90deg, rgba(255,0,0,0.01), rgba(0,255,0,0.005), rgba(0,0,255,0.01));
  background-size: 100% 4px, 6px 100%;
}

.hero-content {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: center;
  z-index: 2;
  position: relative;
}

/* Issue Metadata Row */
.editorial-meta-strip {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 2px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 700;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.hero-name em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-title {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 32px;
}

/* Tactile arrow visual annotation */
.btn-brutal-wrap {
  position: relative;
  display: inline-block;
}
.annotation-arrow {
  position: absolute;
  top: -36px; right: -75px;
  width: 80px; height: 40px;
  pointer-events: none;
}
.annotation-path {
  fill: none;
  stroke: var(--brand-blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 0;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-img-wrapper {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  height: auto;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-brutal-md);
  position: relative;
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}
.hero-img-wrapper:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-brutal-lg);
}
.hero-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 1.2s var(--ease);
}
.hero-img-wrapper:hover img {
  filter: grayscale(0%);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 60px;
  right: 0px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: rotate(90deg);
  transform-origin: right bottom;
}
.hero-scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  font-weight: 800;
}
.scroll-line {
  width: 60px;
  height: 2px;
  background: var(--text-tertiary);
}

/* GitHub widgets centered stacked */
.github-stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  border-top: 1px dashed var(--surface);
  padding-top: 20px;
}
.gh-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.gh-stat-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}
.gh-stat-label {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   SECTION HEADINGS & DIVIDERS
   ═══════════════════════════════════════════════════════════ */

.section {
  padding: var(--section-pad) 0;
  border-bottom: 2px solid var(--border);
}
.section-alt {
  background: var(--bg-elevated);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-label::before {
  content: '[';
  color: var(--text-tertiary);
  margin-right: 4px;
}
.section-label::after {
  content: ']';
  color: var(--text-tertiary);
  margin-left: 4px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 48px;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT (EDITORIAL STORY & FACTS)
   ═══════════════════════════════════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 50px;
}

.about-text p {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Elegant Dropcap */
.about-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 72px;
  float: left;
  line-height: 54px;
  padding-top: 4px;
  padding-right: 8px;
  color: var(--accent);
  font-weight: 900;
}

.about-details {
  border: 2px solid var(--border);
  box-shadow: var(--shadow-brutal-sm);
  background: var(--bg-card);
  padding: 24px;
}

.detail-item {
  padding: 16px 0;
  border-bottom: 1px dashed var(--surface);
}
.detail-item:last-child { border-bottom: none; }

.detail-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  display: block;
}
.detail-value {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   WORK / PROJECTS (NEWS zine CARD)
   ═══════════════════════════════════════════════════════════ */

.project-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-brutal);
  padding: 36px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  transition: var(--ease-tactile);
}
.project-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-brutal-lg);
  border-color: var(--accent);
  z-index: 10;
}

.project-card-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-blue);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-summary {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.project-section h4 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.project-section p {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tech-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  text-transform: uppercase;
}

.project-links {
  border-top: 1px dashed var(--surface);
  padding-top: 16px;
}
.btn-small {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  border-bottom: 2px solid var(--border);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-small:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   PUBLISHED RESEARCH (CLIPPING CARD)
   ═══════════════════════════════════════════════════════════ */

.publication-card {
  background: var(--bg-elevated);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-brutal);
  padding: 36px;
  position: relative;
  z-index: 1;
  transition: var(--ease-tactile);
}
.publication-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-brutal-lg);
  z-index: 10;
}

/* Gold corner micro-accents */
.pub-gold-corner {
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 12px;
  border-top: 3px solid var(--brand-gold);
  border-right: 3px solid var(--brand-gold);
}

.pub-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.pub-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}

.pub-authors {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.pub-venue {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: 16px;
}

.pub-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.pub-abstract {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   CAPABILITIES / SKILLS (MONOSPACE MATRIX)
   ═══════════════════════════════════════════════════════════ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.skill-category {
  border: 2px solid var(--border);
  box-shadow: var(--shadow-brutal-sm);
  background: var(--bg-card);
  padding: 24px;
  position: relative;
  z-index: 1;
  transition: var(--ease-tactile);
}
.skill-category:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal-md);
  border-color: var(--accent);
  z-index: 10;
}

.skill-cat-title {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.skill-list li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   PHILOSOPHY (PULL-QUOTE CARD)
   ═══════════════════════════════════════════════════════════ */

.philosophy-block {
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-brutal);
  padding: 48px;
  position: relative;
}

.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--accent);
  margin-bottom: 12px;
}

.philosophy-author {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-tertiary);
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.philosophy-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   MEDIA CAROUSELS (CONTACT-SHEET SLIDERS)
   ═══════════════════════════════════════════════════════════ */

.gallery-wrapper {
  position: relative;
  margin-top: 32px;
}

.media-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}
.media-gallery::-webkit-scrollbar { display: none; } /* Hide Chrome/Safari */

.gallery-item {
  flex: 0 0 clamp(240px, 75vw, 280px);
  scroll-snap-align: start;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-brutal-sm);
  background: var(--bg-card);
  padding: 8px;
  position: relative;
  z-index: 1;
  transition: var(--ease-tactile);
}
.gallery-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal);
  border-color: var(--accent);
  z-index: 10;
}

.gallery-item img,
.gallery-item video {
  width: 100%; height: 200px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.8s var(--ease);
}
.gallery-item:hover img,
.gallery-item:hover video {
  filter: grayscale(0%);
}

.gallery-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Carousel Control Buttons */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-brutal-sm);
  color: var(--text-primary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--ease-tactile);
}
.gallery-nav:hover {
  transform: translateY(-50%) translate(-1px, -1px);
  box-shadow: var(--shadow-brutal);
}
.gallery-nav:active {
  transform: translateY(-50%) translate(2px, 2px);
  box-shadow: none;
}
.gallery-nav-prev { left: -22px; }
.gallery-nav-next { right: -22px; }

.gallery-progress {
  height: 4px;
  background: var(--surface);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
.gallery-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════
   WRITING / CAROUSEL
   ═══════════════════════════════════════════════════════════ */

.writing-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.writing-carousel::-webkit-scrollbar { display: none; }

.poem-card {
  flex: 0 0 clamp(280px, 85vw, 340px);
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-brutal);
  padding: 32px;
  position: relative;
  z-index: 1;
  transition: var(--ease-tactile);
}
.poem-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal-md);
  border-color: var(--accent);
  z-index: 10;
}

.poem-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 12px;
}
.poem-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  height: 120px;
  overflow: hidden;
  position: relative;
}
.poem-body::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 30px;
  background: linear-gradient(transparent, var(--bg-card));
}
.poem-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 16px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT & SOCIAL STICKERS
   ═══════════════════════════════════════════════════════════ */

.contact-text {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 40px;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-brutal-sm);
  position: relative;
  z-index: 1;
  transition: var(--ease-tactile);
}
.contact-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-brutal);
  border-color: var(--accent);
  z-index: 10;
}
.contact-item span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM & TOAST
   ═══════════════════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.brutal-form {
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-brutal);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-ui);
  font-size: 15px;
  padding: 12px 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text-primary);
  outline: none;
  transition: var(--ease-tactile);
}
.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-brutal-sm);
}

.form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 10px;
  font-weight: 800;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease);
}
.welcome-overlay.show {
  opacity: 1;
  visibility: visible;
}
.welcome-overlay h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--text-primary);
  margin-bottom: 24px;
}
.welcome-overlay p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}
.welcome-overlay .btn-brutal {
  font-size: 14px;
  padding: 16px 32px;
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX MODALS
   ═══════════════════════════════════════════════════════════ */

.lightbox,
.writing-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11,12,18,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  padding: 40px;
}
.lightbox.open,
.writing-lightbox.open { display: flex; }

.lightbox img {
  max-height: 80vh;
  max-width: 85vw;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-brutal-lg);
}

.lightbox-close {
  position: absolute;
  top: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 13px;
}

/* Writing Lightbox Content */
.writing-lb-content {
  background: var(--bg-elevated);
  border: 3px solid var(--border);
  box-shadow: var(--shadow-brutal-lg);
  padding: 48px;
  max-width: 680px;
  width: 100%;
  max-height: 75vh;
  overflow-y: auto;
}
.wlb-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 24px;
  text-align: center;
}
.wlb-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-wrap;
}

/* ═══════════════════════════════════════════════════════════
   BACK TO TOP & FOOTER
   ═══════════════════════════════════════════════════════════ */

.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-brutal-sm);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brutal);
}
.back-to-top:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* ═══ Support ═══ */
.support-embed-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 4vw, 36px);
  margin-top: 24px;
}

.support-embed-row iframe {
  border: 0;
  flex-shrink: 0;
}

.upi-tip-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity var(--ease-tactile), transform var(--ease-tactile);
}

.upi-tip-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.upi-tip-link img {
  display: block;
  width: auto;
  height: auto;
  max-width: 5.5rem;
}

.footer {
  padding: 30px 0;
  background: var(--bg-elevated);
  border-top: 2px solid var(--border);
  text-align: center;
}
.footer-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN SYSTEM (MOBILE FIRST COLLAPSE)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 968px) {
  :root {
    --section-pad: clamp(45px, 6vw, 75px);
  }

  .nav-links { display: none; }
  .nav-actions { 
    display: flex; 
    margin-left: auto; 
    margin-right: 16px; 
  }
  .nav-actions .btn-brutal { display: none; }
  .nav-hamburger { display: flex; }
  .gallery-nav { display: none; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-scroll-indicator { display: none; }
  .editorial-meta-strip { display: none; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-image { justify-content: center; width: 100%; padding: 0 20px; }
  .hero-img-wrapper { max-width: 100%; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }

  .project-details { grid-template-columns: 1fr; gap: 16px; }
  .project-card { padding: 24px; }
  .skills-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  #hero { min-height: auto; padding-top: 120px; padding-bottom: 60px; }
  .section-heading { font-size: 28px; }
  .hero-name { font-size: clamp(36px, 10vw, 44px); }
  .project-title { font-size: 20px; }
  .philosophy-block { padding: 20px; }
  .writing-lb-content { padding: 20px; }
  .contact-links { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .brutal-form { padding: 20px; }
  .hero-ctas { flex-direction: column; width: 100%; align-items: stretch; }
  .btn-brutal-wrap { width: 100%; }
  .btn-brutal { width: 100%; justify-content: center; padding: 16px; }
  
  .poem-card { flex: 0 0 clamp(240px, 85vw, 340px); padding: 24px; }
  .gallery-item { flex: 0 0 clamp(200px, 75vw, 280px); }
}

@media (min-width: 969px) {
  body {
    zoom: 1.25;
  }
}



