/* ============================================================
   KRISHNA JHA — Shared Styles for About / Projects / Contact
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto !important; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; font-family: inherit; cursor: pointer; }

/* ── Design Tokens ── */
:root {
  --bg:            #ebebeb;
  --bg-card:       #fafafa;
  --bg-dark:       #0a0a0a;
  --text:          #0a0a0a;
  --text-light:    #f5f5f5;
  --text-muted:    #777;
  --border:        #d0d0d0;
  --glow:          #c8d8f0;
  --accent-red:    #c0392b;
  --accent-blue:   #2c5f9e;
  --font-display:  'Black Han Sans', sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --nav-h:         68px;
  --px:            clamp(24px, 5vw, 80px);
  --radius:        12px;
}

/* ── Body ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Page Shell (blue glow border like Framer) ── */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999 !important;
  display: flex;
  justify-content: center;
  padding: 0 var(--px);
  height: var(--nav-h);
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 769px) {
  .site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .logo {
    justify-self: start;
  }
  .header-nav {
    justify-self: center;
  }
  .nav-pills {
    justify-self: end;
  }
}

.site-header.nav-hidden {
  transform: translateY(-100%);
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: 0.03em;
  color: var(--text);
  user-select: none;
}

.logo:hover { opacity: 0.7; transition: opacity 0.2s; }

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--text);
  transition: width 0.25s ease;
}

.header-nav-link:hover { color: var(--text); }
.header-nav-link:hover::after { width: 100%; }
.header-nav-link.active { color: var(--text); font-weight: 600; }
.header-nav-link.active::after { width: 100%; }

.nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  gap: 8px;
}

.nav-pill.outline {
  background: transparent;
  border: 1px solid rgba(10, 10, 10, 0.12);
  color: var(--text);
}

.nav-pill.filled {
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--bg);
}

.nav-pill:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-pill.outline:hover {
  background: rgba(10, 10, 10, 0.04);
  border-color: rgba(10, 10, 10, 0.4);
}

.nav-pill.filled:hover {
  background: rgba(10, 10, 10, 0.9);
  border-color: rgba(10, 10, 10, 0.9);
}

/* ============================================================
   PAGE HERO BANNER (for sub-pages)
   ============================================================ */
.page-hero {
  padding: clamp(60px, 10vh, 120px) var(--px) clamp(40px, 6vh, 80px);
  border-bottom: 1px solid var(--border);
}

.page-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-title span {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
}

/* ============================================================
   SECTIONS & ALIGNMENT
   ============================================================ */
.page-hero,
.section,
.contact-email-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.page-hero > *,
.section > *,
.contact-email-wrap > * {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: clamp(60px, 8vh, 100px) var(--px);
  border-bottom: 1px solid var(--border);
}

.section:last-of-type { border-bottom: none; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-muted);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 32px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* ============================================================
   FOOTER
   ============================================================ */
/* ============================================================
   PREMIUM CUSTOM SITE FOOTER
   ============================================================ */
.site-footer {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--border);
  margin-top: 0; /* Prevent background leak gaps */
  padding: 120px 0 40px 0; /* Use padding instead of margin to preserve vertical breathing room */
  overflow: hidden;
  position: relative;
  font-family: var(--font-body);
}

.site-footer-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  flex-direction: column;
}

/* Diagonal stripes pattern container */
.stripe-divider {
  height: 48px;
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--border),
    var(--border) 1px,
    transparent 1px,
    transparent 8px
  );
  opacity: 0.45;
  margin-bottom: 32px;
}

/* Descriptive Grid/List */
.footer-details-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .footer-details-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-details-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
  }
}

.details-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.details-item dt {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.details-item dd {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}

.details-item dd ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Social media link rows with dividers */
.footer-social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 16px 0;
  width: 100%;
}

.social-row-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px;
}

.social-icon-link:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.social-icon-link svg {
  display: block;
}

.footer-separator {
  height: 24px;
  width: 1px;
  background-color: var(--border);
}

/* Large Interactive Logotype */
.interactive-logotype-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 64px;
  user-select: none;
}

.interactive-logotype-wrapper {
  width: 100%;
  max-width: 1410px;
  cursor: default;
  overflow: visible !important;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
}

.big-logotype-svg {
  width: 100%;
  height: auto;
  max-height: 200px;
  display: block;
  overflow: visible !important;
}

/* Built-by Spinner */
.footer-spinner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0 0 0;
}

.spinning-text-container {
  width: 130px;
  height: 130px;
  animation: footer-spin 16s linear infinite;
  transform-origin: center;
}

@keyframes footer-spin {
  100% { transform: rotate(360deg); }
}

.link-underline {
  position: relative;
  display: inline-block;
  color: var(--text);
  transition: color 0.2s ease;
}

.link-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--text);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* ============================================================
   SKILL TAGS
   ============================================================ */
.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.skill-tag:hover {
  border-color: var(--text);
  color: var(--text);
  background: rgba(0,0,0,0.03);
}

/* ============================================================
   UTILITY
   ============================================================ */
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .nav-pills { gap: 6px; }
  .nav-pill { height: 30px; padding: 0 12px; font-size: 10px; }
  .site-footer { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { gap: 12px; }
}

/* ============================================================
   PREMIUM PORTFOLIO ANIMATIONS (Apple Hiring Bar)
   ============================================================ */

/* Smooth Scrolling Setup */
html.lenis {
  height: auto;
  scroll-behavior: auto !important;
}
.lenis-smooth {
  scroll-behavior: initial;
}
.lenis-smooth [data-lenis-prevent] {
  overflow: clip;
}
.lenis-target {
  scroll-behavior: initial;
}

/* Hide default cursor on desktop when hovering */
@media (hover: hover) and (pointer: fine) {
  html, body, a, button, [role="button"], input, textarea, select {
    cursor: none !important;
  }
  
  /* Exclude hero section entirely so it retains the ordinary default cursor */
  #hero-section, #hero-section *, #hero, #hero * {
    cursor: auto !important;
  }
}

/* Hide custom cursor when hovering over or interacting within the hero section */
body:has(#hero-section:hover) .custom-cursor {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Custom Cursor Styles */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 10000;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background-color 0.3s cubic-bezier(0.19, 1, 0.22, 1),
              border-color 0.3s cubic-bezier(0.19, 1, 0.22, 1),
              width 0.3s cubic-bezier(0.19, 1, 0.22, 1),
              height 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

/* Custom Cursor Text (Hidden to keep constant size clean and minimal) */
.custom-cursor-label {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-cursor.magnetic-active {
  width: 46px !important; height: 46px !important;
  background-color: var(--text) !important;
  border-color: var(--text) !important;
  pointer-events: none !important;
}

.custom-cursor.magnetic-active .custom-cursor-label {
  display: none !important;
  opacity: 0 !important;
}

/* Caret state for text-scrub */
.custom-cursor.text-scrub-active {
  width: 46px !important; height: 46px !important;
  background-color: transparent !important;
  border-color: var(--text) !important;
  border-radius: 50% !important;
  pointer-events: none !important;
}

/* Drag state */
.custom-cursor.drag-active {
  width: 46px !important; height: 46px !important;
  background-color: var(--text) !important;
  border-color: var(--text) !important;
  pointer-events: none !important;
}

/* Rotating SVG overlay on cursor for wireframe */
.custom-cursor.rotate-active {
  width: 46px !important; height: 46px !important;
  border-style: solid !important;
  pointer-events: none !important;
}

/* Cursor Ripple Effect */
.cursor-ripple {
  position: fixed;
  width: 20px; height: 20px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%; height: 3px;
  background: var(--text);
  z-index: 10001;
  transform-origin: left;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Split text line mask container */
.split-line-wrapper {
  overflow: hidden;
  display: block;
  padding-top: 0.25em;
  padding-bottom: 0.25em;
  margin-top: -0.25em;
  margin-bottom: -0.25em;
}

.split-line {
  display: block;
  transform-origin: left center;
  will-change: transform, opacity;
}

/* Typography styles for alternating fill/outline */
.text-fill {
  color: var(--text) !important;
  -webkit-text-stroke: 0px !important;
}

.text-outline {
  -webkit-text-stroke: 1.5px var(--text) !important;
  color: transparent !important;
  transition: -webkit-text-stroke 0.4s ease, color 0.4s ease;
}

/* Sliding / Morphing active filter background indicator */
.filter-morph-bg {
  position: absolute;
  background: var(--text);
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Line divider assembly styling */
.hairline-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* Meta rows typewriter reveal style */
.meta-row-revealed {
  opacity: 0;
  transform: translateY(8px);
}

/* Interactive Wireframe Globe styles */
.globe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}
.globe-container:active {
  cursor: grabbing;
}
.globe-svg {
  width: 100%;
  height: 100%;
  max-width: 420px;
  max-height: 420px;
}
.globe-svg path {
  fill: none;
  stroke: var(--text);
  stroke-width: 1px;
  stroke-opacity: 0.15;
  transition: stroke-opacity 0.3s;
}
.globe-svg .globe-major {
  stroke-opacity: 0.4;
  stroke-width: 1.2px;
}
.globe-container:hover .globe-svg path {
  stroke-opacity: 0.35;
}
.globe-container:hover .globe-svg .globe-major {
  stroke-opacity: 0.75;
}

/* Experience timeline line */
.timeline {
  position: relative;
}
.timeline-track-line {
  position: absolute;
  left: 20px;
  top: 0;
  width: 1.5px;
  height: 100%;
  background: var(--border);
  transform-origin: top;
  transform: scaleY(0);
  z-index: 0;
}
@media (max-width: 640px) {
  .timeline-track-line {
    display: none;
  }
}
.timeline-item {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* Custom styling for project items hover row inverts */
.project-item {
  transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.project-item-bg {
  position: absolute;
  inset: 0;
  background: var(--text-dark);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 0;
}
.project-item:hover .project-item-bg {
  transform: scaleY(1);
}

/* Oversized watermark watermark */
.about-watermark {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(140px, 24vw, 320px);
  line-height: 0.8;
  color: var(--text);
  opacity: 0.035;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  left: -20px;
  top: 120px;
}

/* ============================================================
   PAGE SECTION BASE
   ============================================================ */
.page-section {
  position: relative;
  width: 100%;
}

/* ============================================================
   FIXED STICKY NAVBAR
   ============================================================ */
.fixed-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transform: translateY(-102%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.fixed-navbar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ── About-specific styles ── */

/* Two-col bio layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Large bio number accent */
.about-number {
  font-family: var(--font-display);
  font-size: clamp(100px, 18vw, 220px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.08);
  user-select: none;
  margin-bottom: -20px;
}

.bio-text {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.75;
  color: #333;
  font-weight: 300;
}

.bio-text strong { font-weight: 600; color: var(--text); }

/* Fact rows */
.fact-table {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.fact-row:first-child {
  border-top: 1px solid var(--border);
}

.fact-key {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.fact-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* Image side */
.about-image-col {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.about-img-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 48px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Hover reveal on image */
.about-img-reveal {
  position: absolute;
  inset: 0;
  filter: invert(1) hue-rotate(180deg) saturate(1.4) brightness(0.95);
  clip-path: circle(0px at 50% 50%);
  transition: clip-path 0.06s ease;
}

.about-img-frame:hover .about-img-reveal {
  /* JS controls this */
}

/* Experience timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:first-child { border-top: 1px solid var(--border); }

@media (max-width: 640px) {
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
}

.timeline-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 4px;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.timeline-company {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  font-weight: 400;
}

/* CTA section */
.cta-section {
  padding: clamp(80px, 12vh, 140px) var(--px);
  text-align: center;
  border-bottom: none;
}

.cta-section .section-title {
  font-size: clamp(40px, 7vw, 90px);
  margin-bottom: 24px;
}

.cta-section p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}

.cta-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* ── Projects-specific styles ── */

/* Filter chips */
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  position: relative;
}

.filter-btn {
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}

.filter-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

.filter-btn.active,
.filter-btn.active:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

/* Project list — large horizontal items */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 32px 24px;
  margin: 0 -24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.project-item:first-child { border-top: 1px solid var(--border); }

.project-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 0;
}

.project-item:hover::before { transform: scaleX(1); }

.project-item > * { position: relative; z-index: 1; }

.project-item:hover .proj-num,
.project-item:hover .proj-name,
.project-item:hover .proj-cat,
.project-item:hover .proj-desc,
.project-item:hover .proj-tags span,
.project-item:hover .proj-arrow {
  color: #fff !important;
  border-color: rgba(255,255,255,0.3) !important;
}

.proj-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.proj-main { display: flex; flex-direction: column; gap: 6px; }

.proj-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--text);
  transition: color 0.3s;
}

.proj-cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.proj-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.proj-arrow {
  font-size: 24px;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
}

.project-item:hover .proj-arrow {
  transform: translate(4px, -4px);
  color: #fff !important;
}

.proj-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.proj-tags span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s;
}

@media (max-width: 640px) {
  .project-item { grid-template-columns: 48px 1fr; }
  .proj-right { display: none; }
}

/* Featured project cards at top */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

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

.featured-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #1a1a1a;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.featured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.75);
}

.featured-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.55);
}

.featured-card-content {
  position: relative;
  z-index: 1;
}

.feat-year {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.feat-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 30px);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 10px;
}

.feat-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.feat-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
}

/* Arrow hover icon on featured card */
.feat-arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 2;
}

.featured-card:hover .feat-arrow {
  opacity: 1;
  transform: scale(1);
}

/* ── Contact-specific styles ── */

/* Big email link */
.contact-email-wrap {
  padding: clamp(60px, 10vh, 120px) var(--px);
  border-bottom: 1px solid var(--border);
}

.email-row-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.email-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.email-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 56px);
  color: var(--text);
  letter-spacing: -0.01em;
  position: relative;
  transition: opacity 0.2s;
}

.email-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.email-link:hover::after { transform: scaleX(1); transform-origin: left; }

.copy-btn {
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.copy-btn.copied {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

/* Two-col layout: form + socials */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field-input,
.field-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border);
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: #bbb;
}

.field-input:focus,
.field-textarea:focus {
  border-color: var(--text);
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 16px 36px;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
}

.submit-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

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

.form-status {
  font-size: 13px;
  color: #16a34a;
  font-weight: 500;
  min-height: 20px;
}

/* Sidebar: socials + info */
.contact-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.social-item:first-child { border-top: 1px solid var(--border); }

.social-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}

.social-item:hover::before { transform: scaleX(1); }

.social-item span, .social-item svg { position: relative; z-index: 1; }
.social-item:hover span { color: #fff; }
.social-item:hover svg { stroke: #fff; }

.social-item svg {
  stroke: var(--text-muted);
  transition: stroke 0.3s;
}

/* Availability banner */
.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: var(--radius);
}

.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
  animation: pulse-green 2s ease infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}

.avail-text {
  font-size: 13px;
  font-weight: 500;
  color: #16a34a;
}

/* ============================================================
   FLOATING PROJECT PREVIEW & TOASTS
   ============================================================ */

/* Floating Project Preview Container */
.project-preview-container {
  position: fixed;
  width: 280px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: scale(0.6);
  transform-origin: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  background: var(--bg-card);
}

.project-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Toast Notifications Container */
.toast-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

/* Individual Toast */
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  width: 340px;
  max-width: calc(100vw - 64px);
  position: relative;
  overflow: hidden;
  transform: translateY(24px) scale(0.95);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Toast Icons */
.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.toast-error .toast-icon {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

/* Toast Text */
.toast-message {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  flex-grow: 1;
}

/* Close Button */
.toast-close {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  padding: 4px;
  border-radius: 6px;
}

.toast-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.04);
}

/* Animated Progress bar indicating remaining duration */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
}

.toast-success .toast-progress {
  background: #16a34a;
}

.toast-error .toast-progress {
  background: #dc2626;
}

/* ============================================================
   LANGUAGE SWITCHER, BACK TO TOP & READING TIME BADGES
   ============================================================ */

/* Back to Top floating action button */
.back-to-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--text, #0a0a0a);
  color: #ffffff;
  border: 1.5px solid var(--text, #0a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.back-to-top-btn:hover {
  background: #ffffff;
  color: var(--text, #0a0a0a);
  transform: scale(1.08) translateY(-2px);
}

.back-to-top-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

/* Reading Time Badge */
.reading-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #777777);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border, #d0d0d0);
  border-radius: 999px;
  padding: 4px 10px;
  transition: all 0.3s ease;
  width: fit-content;
}

.reading-time-badge svg {
  color: var(--text-muted, #777777);
  opacity: 0.8;
}

.about-reading-time {
  margin-bottom: 24px;
}

/* Language toggle button custom adjustments */
.lang-toggle-btn {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lang-toggle-btn:hover {
  background: var(--text, #0a0a0a) !important;
  color: #ffffff !important;
  border-color: var(--text, #0a0a0a) !important;
}

/* ============================================================
   10.0 ELITE PORTFOLIO DESIGN SYSTEMS & LAYOUT CLASSES
   ============================================================ */

/* WebGL Background Container */
#webgl-canvas {
  display: none !important;
}

/* Page-Load Progress Curtain */
.progress-curtain {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #0a0a0a;
  color: #f5f5f5;
  font-family: 'Courier New', Courier, monospace;
}

.curtain-panel-left, .curtain-panel-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: #0a0a0a;
  transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}

.curtain-panel-left { left: 0; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.curtain-panel-right { right: 0; border-left: 1px solid rgba(255, 255, 255, 0.08); }

.curtain-content {
  position: relative;
  z-index: 10002;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.curtain-percent {
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
}

.curtain-bar-wrap {
  width: 240px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.curtain-bar-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  transition: width 0.1s ease-out;
}

.curtain-status {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #777;
}

/* GPU-Accelerated Smooth Custom Scrollbar */
.custom-scrollbar-track {
  position: fixed;
  right: 6px;
  top: 10%;
  height: 80%;
  width: 4px;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  opacity: 0;
  pointer-events: auto;
  transition: width 0.3s, opacity 0.4s, background 0.3s;
}

.custom-scrollbar-track:hover {
  width: 8px;
  background: rgba(0, 0, 0, 0.08);
}

.custom-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--text, #0a0a0a);
  border-radius: 999px;
  cursor: grab;
  transition: background 0.2s;
}

.custom-scrollbar-thumb:active {
  cursor: grabbing;
  background: #444444;
}



/* Exclusive Custom Cursor Tuning - Clean & High-Contrast for Light Theme */
.custom-cursor {
  background: transparent;
  border-color: var(--text) !important;
}

/* 3D Perspective Card Flip States */
.card-3d-perspective {
  perspective: 1200px;
}

.card-3d-container {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Inline reading stats badge design */
.reading-time-badge-inline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-muted, #777777);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Floating Wireframe Inertial Orbit widget container */
#inertial-widget-container {
  position: absolute;
  top: 120px;
  right: 5%;
  width: 180px;
  height: 180px;
  z-index: 10;
  cursor: grab;
}

#inertial-widget-container:active {
  cursor: grabbing;
}

/* Ambient dynamic glow shadow effects */
.ambient-spill-card {
  position: relative;
}

.ambient-spill-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, rgba(140, 180, 230, 0.15) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  filter: blur(20px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.ambient-spill-card:hover .ambient-spill-glow {
  opacity: 1;
}

/* Odometer numbers design */
.odometer-wrapper {
  display: inline-flex;
  overflow: hidden;
  height: 1.1em;
  line-height: 1.1em;
}

.odometer-digit-col {
  display: flex;
  flex-direction: column;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Venetian blind reveal effect mask */
.venetian-mask-container {
  position: relative;
  overflow: hidden;
}

.venetian-blind-slide {
  position: absolute;
  inset: 0;
  background: var(--text, #0a0a0a);
  transform: scaleY(1);
  transform-origin: top;
  z-index: 3;
}

/* ============================================================
   12.0 BLOG CARD HOVER INTERACTION
   ============================================================ */
.blog-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease !important;
}

.blog-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: var(--text) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.blog-card:hover .blog-title {
  color: var(--text) !important;
}

.blog-card:hover .blog-arrow {
  transform: translate(3px, -3px);
  color: var(--text) !important;
}

/* ============================================================
   13.0 ELITE SECTION-TRANSITIONS & PERFORMANCE LAYERS
   ============================================================ */
.scroll-section {
  position: relative;
  width: 100%;
  background: var(--bg);
  will-change: transform, opacity, clip-path;
  border-top: none !important;
}

/* Chapter Dividers with Custom Gradient & Shimmer */
.chapter-divider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(44, 95, 158, 0.4), rgba(192, 57, 43, 0.4), transparent);
  transform-origin: left center;
  overflow: hidden;
  z-index: 10;
  will-change: transform;
}

.chapter-divider-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  will-change: left;
}

/* 3D Perspective Context */
.card-3d-perspective {
  perspective: 1200px;
}

.featured-card, .project-item, .blog-card {
  will-change: transform, opacity, skewY, rotateX;
}

/* Label mask reveal helpers */
.label-mask-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.char-span {
  display: inline-block;
  will-change: transform;
}


/* ============================================================
   14.0 SIGNATURE MOTION SYSTEMS (Dumeme, Made in Evolve, Zajno)
   ============================================================ */

/* --- 14.1 Chapter Wipe Shutter Overlay (Dumeme) --- */
.chapter-wipe {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(235, 235, 235, 0.95) 0%,
    rgba(200, 216, 240, 0.9) 50%,
    rgba(235, 235, 235, 0.95) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  z-index: 99999;
  transform: translateY(100%);
  pointer-events: none;
  will-change: transform;
}

/* --- 14.2 Sticky Side Progress Navigation (Zajno) --- */
.side-progress-nav {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 900;
  font-family: var(--font-body), sans-serif;
}

@media (max-width: 1024px) {
  .side-progress-nav {
    display: none !important; /* Hide on mobile/tablets per constraints */
  }
}

.side-nav-dot-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-nav-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
}

.side-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, opacity 0.3s;
}

.side-nav-label {
  position: absolute;
  right: 32px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  color: var(--text);
}

/* Hover & Active States */
.side-nav-dot-wrap:hover .side-nav-num {
  opacity: 1;
  transform: translateX(-4px);
}

.side-nav-dot-wrap:hover .side-nav-dot {
  opacity: 1;
  transform: scale(1.5);
  background: var(--text);
}

.side-nav-dot-wrap:hover .side-nav-label {
  opacity: 1;
  transform: translateX(0);
}

.side-nav-dot-wrap.active .side-nav-num {
  opacity: 1;
  color: var(--text);
  transform: translateX(-2px);
}

.side-nav-dot-wrap.active .side-nav-dot {
  opacity: 1;
  transform: scale(2);
  background: var(--text);
}

/* --- 14.3 Signature Scroll Motif Strip (Dumeme) --- */
.scroll-motif-container {
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  user-select: none;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.scroll-motif-container:hover {
  background: rgba(10, 10, 10, 0.02); /* Elegant, subtle dark overlay instead of flashing bright off-white */
}

.scroll-motif-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pause the scrolling animation smoothly on hover to allow detailed inspection of the text tags */
.scroll-motif-container:hover .scroll-motif-track {
  animation-play-state: paused;
}

.scroll-motif-text {
  font-family: var(--font-display), sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  display: inline-block;
  padding-right: 4px;
  will-change: transform;
  transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Highlight the marquee items to full color contrast on hover */
.scroll-motif-container:hover .scroll-motif-text {
  color: var(--text);
  opacity: 0.95;
  letter-spacing: 0.18em;
}

/* Infinite automatic continuous marquee animations (like live line) */
#scroll-motif-1 .scroll-motif-track,
#scroll-motif-3 .scroll-motif-track {
  animation: scroll-marquee-left 35s linear infinite;
}

#scroll-motif-2 .scroll-motif-track {
  animation: scroll-marquee-right 35s linear infinite;
}

@keyframes scroll-marquee-left {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes scroll-marquee-right {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* --- 14.4 Oversized Scroll-Reveal Headline (Made in Evolve) --- */
.scroll-headline-section {
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 120px 24px;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.scroll-headline-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.scroll-headline-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.headline-word {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  opacity: 0.08; /* Starting faint for the scroll scrub reveal */
  transform: scale(0.9) translateY(20px);
  will-change: transform, opacity;
  transition: color 0.3s;
}

/* --- 14.5 Morphing SVG Arrow Icons (Zajno) --- */
.morph-arrow-svg {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: middle;
}

.arrow-path {
  transition: d 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s;
}

/* Interactive hover triggers for arrows */
.featured-card:hover .morph-arrow-svg,
.project-item:hover .morph-arrow-svg,
.blog-card:hover .morph-arrow-svg {
  transform: scale(1.1);
}

.featured-card:hover .arrow-path,
.project-item:hover .arrow-path,
.blog-card:hover .arrow-path {
  d: path("M 4 20 L 20 4 M 13 4 L 20 4 L 20 11");
}

/* Align and polish existing arrow containers */
.feat-arrow {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.proj-arrow {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.blog-arrow {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}


/* --- 14.6 Premium Custom Page Loader (Uiverse.io by JkHuger, styled for Krishna Jha) --- */
body.no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

.page-loader-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: none !important;
}

.page-loader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loader-container {
  position: relative;
  width: 300px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.circle {
  position: relative;
  left: -100px;
  width: 0;
  height: 0;
  border: 50px solid #ffffff; /* Yellow replaced with white matching the theme */
  border-radius: 50%;
  border-right-color: transparent;
  animation: move 5s linear 0s infinite normal forwards;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.circle:before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 0;
  height: 0;
  border: 50px solid #ffffff; /* Yellow replaced with white matching the theme */
  border-radius: 50%;
  border-right-color: transparent;
  animation: chomp1 .25s ease-in-out 0s infinite normal forwards;
}

.circle:after {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 0;
  height: 0;
  border: 50px solid #ffffff; /* Yellow replaced with white matching the theme */
  border-radius: 50%;
  border-right-color: transparent;
  animation: chomp2 .25s ease-in-out 0s infinite normal forwards;
}

.loader {
  position: relative;
  top: 50px;
  width: 300px;
  height: 0px;
  border-top: 10px dotted black;
  animation: loader_4013 5s ease-in-out 0s infinite normal forwards;
}

.dots {
  position: relative;
  top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dot {
  position: relative;
  width: 10px;
  height: 10px;
  margin: 0 10px;
  border-radius: 50%;
  background: var(--accent-blue, #2c5f9e); /* Theme blue replacement */
  animation: dot1 5s linear 0s infinite none normal;
}

.dot:nth-child(1) { animation-delay: 0s }
.dot:nth-child(2) { animation-delay: 0.25s }
.dot:nth-child(3) { animation-delay: 0.5s }
.dot:nth-child(4) { animation-delay: 0.75s }
.dot:nth-child(5) { animation-delay: 1s }
.dot:nth-child(6) { animation-delay: 1.25s }
.dot:nth-child(7) { animation-delay: 1.5s }
.dot:nth-child(8) { animation-delay: 1.75s }
.dot:nth-child(9) { animation-delay: 1.9s }
.dot:nth-child(10) { animation-delay: 2.1s }

.dots2 {
  position: relative;
  top: 50px;
  left: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dot2 {
  position: relative;
  left: -10px;
  width: 10px;
  height: 10px;
  margin: 0 10px;
  border-radius: 50%;
  background: var(--accent-red, #c0392b); /* Theme red replacement */
  opacity: 0;
  animation: dot2 5s linear 0s infinite none normal;
}

.dot2:nth-child(10) { animation-delay: 2.5s }
.dot2:nth-child(9) { animation-delay: 2.75s }
.dot2:nth-child(8) { animation-delay: 3.0s }
.dot2:nth-child(7) { animation-delay: 3.25s }
.dot2:nth-child(6) { animation-delay: 3.5s }
.dot2:nth-child(5) { animation-delay: 3.75s }
.dot2:nth-child(4) { animation-delay: 4.0s }
.dot2:nth-child(3) { animation-delay: 4.25s }
.dot2:nth-child(2) { animation-delay: 4.5s }
.dot2:nth-child(1) { animation-delay: 4.6s }

@keyframes chomp1 {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(45deg); }
  100% { transform: rotate(0deg); }
}

@keyframes chomp2 {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-45deg); }
  100% { transform: rotate(0deg); }
}

@keyframes move {
  0%, 100% { left: -100px; }
  0%, 48% { transform: rotateY(0deg); }
  50%, 100% { transform: rotateY(180deg); }
  50% { left: 100%; }
}

@keyframes loader_4013 {
  0%, 100% { border-top: 10px dotted var(--accent-blue, #2c5f9e); }
  0%, 48% { border-top: 10px dotted var(--accent-blue, #2c5f9e); }
  50%, 100% { border-top: 10px dotted var(--accent-red, #c0392b); }
  50% { border-top: 10px dotted var(--accent-red, #c0392b); }
}

@keyframes dot1 {
  0%,4% { background: var(--accent-blue, #2c5f9e); opacity: 1; }
  5%,94% { background: var(--accent-red, #c0392b); opacity: 0; }
  95%,100% { background: var(--accent-blue, #2c5f9e); opacity: 1; }
}

@keyframes dot2 {
  0%,4% { background: var(--accent-red, #c0392b); opacity: 1; }
  5%,94% { opacity: 0; }
  95%,100% { background: var(--accent-red, #c0392b); opacity: 1; }
}


/* --- 14.7 Footer KRISHNA volume/speaker animation --- */
.footer-logo-letters {
  transform-origin: bottom center;
}

.logo-letter {
  fill: var(--text, currentColor);
  stroke: none;
  animation: volume-bounce 1.4s ease-in-out infinite alternate;
  transform-origin: bottom;
  display: inline-block;
}

@keyframes volume-bounce {
  0% {
    transform: translateY(0) scaleY(1);
  }
  100% {
    transform: translateY(-24px) scaleY(1.15);
  }
}

.letter-k { animation-delay: 0.0s; }
.letter-r { animation-delay: 0.15s; }
.letter-i { animation-delay: 0.3s; }
.letter-s { animation-delay: 0.45s; }
.letter-h { animation-delay: 0.6s; }
.letter-n { animation-delay: 0.75s; }
.letter-a { animation-delay: 0.9s; }

/* Quote / Apostrophe Font Fallback for Black Han Sans Font */
.quote-fallback {
  font-family: 'Inter', sans-serif !important;
  font-weight: inherit !important;
  text-transform: inherit !important;
  display: inline-block;
  margin: 0 -0.05em;
}

/* Perfect alignment & center-rotation for footer spinning text */
.spinning-text-container svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Disable all scroll reveals/animations inside Contact page */
#contact .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

#contact .split-line-wrapper {
  overflow: visible !important;
  display: inline !important;
}

#contact .split-line {
  transform: none !important;
  opacity: 1 !important;
}



