/*!
 * Resume styles — copied from DineshS36/portfolio
 * https://github.com/DineshS36/portfolio @ 35c39891904ebb716d4c3e48b64cc724390f42c3
 * Copyright (c) DineshS36 — Licensed under the Apache License, Version 2.0.
 * Modifications: files concatenated in src/index.css order; the Google Fonts
 * @import removed (fonts are self-hosted in fonts.css). See ../NOTICE.txt.
 */

/* ===== tokens.css ===== */

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

/* No pull-to-refresh: on phones, flicking up at the top reloaded the page. */
html,
body {
  overscroll-behavior-y: none;
}

body {
  background-color: #050505;
  color: #e5e5e5;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (pointer: fine) {
  body,
  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}

::selection {
  background: #ffffff;
  color: #000000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

/* Typography Utilities */
.font-mono {
  font-family: 'Space Mono', monospace;
}

.text-gray {
  color: #888888;
}

.text-dark-gray {
  color: #444444;
}

.uppercase {
  text-transform: uppercase;
}

/* Glowing Effects */
.text-glow {
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.text-glow-intense {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7), 0 0 16px rgba(255, 255, 255, 0.4);
}

/* Editorial Masked Headline Architecture */
.masked-heading {
  overflow: visible;
}

.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-right: 0.28em;
  perspective: 600px;
}

.word-mask:last-child {
  margin-right: 0;
}

.word-inner {
  display: inline-block;
  will-change: transform, opacity;
}

/* ===== animations.css ===== */
/* Shared Animations & Keyframes */

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes slideDown {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(200%);
  }
}

@keyframes badgePop {
  0% {
    opacity: 0;
    transform: translate(-50%, 15px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* Glitch Effect */
.glitch-wrapper {
  position: relative;
}

.glitch-wrapper::before,
.glitch-wrapper::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-wrapper::before {
  left: 2px;
  text-shadow: -2px 0 #fff;
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-wrapper::after {
  left: -2px;
  text-shadow: -2px 0 #888;
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(10px, 9999px, 31px, 0);
  }
  20% {
    clip: rect(65px, 9999px, 16px, 0);
  }
  40% {
    clip: rect(43px, 9999px, 5px, 0);
  }
  60% {
    clip: rect(89px, 9999px, 98px, 0);
  }
  80% {
    clip: rect(12px, 9999px, 64px, 0);
  }
  100% {
    clip: rect(53px, 9999px, 28px, 0);
  }
}

/* ===== layout.css ===== */
/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
  z-index: 10;
}

/* Canvas Background & Hero Wrapper */
.three-hero-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

.three-hero-bg-wrapper.hero-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.three-hero-bg-wrapper.hero-visible {
  opacity: 1 !important;
  visibility: visible !important;
}

#three-starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

#three-starfield-canvas.starfield-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#three-starfield-canvas.starfield-visible {
  opacity: 1 !important;
  visibility: visible !important;
}

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

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      transparent 0%,
      transparent 64%,
      rgba(5, 5, 5, 0.32) 84%,
      #050505 100%);
  z-index: -1;
  pointer-events: none;
}

/* A static, compositor-friendly sheen gives the hero its premium glow without
   adding any work to the raymarch shader. It is deliberately off in Orbit Mode
   because that mode already enables real bloom. */
.bg-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 48% 43% at 50% 42%,
      rgba(255, 174, 73, 0.14) 0%,
      rgba(255, 130, 28, 0.055) 36%,
      transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.9;
  transition: opacity 0.35s ease;
}

.bg-overlay.orbit-active::before {
  opacity: 0;
}

/* Scroll Hints */
.scroll-hint {
  text-align: center;
  padding: 2rem;
  opacity: 0.5;
  animation: pulse 2s infinite;
}

.scroll-hint-bottom {
  margin-bottom: 2rem;
  padding-bottom: 4rem;
}

.scroll-arrow {
  display: inline-block;
  animation: bounce 2s infinite;
}

/* ===== components/cursor.css ===== */
/* Custom Cursor */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 30000;
  will-change: transform;
  transition: width 0.3s, height 0.3s, background-color 0.3s, box-shadow 0.3s;
  mix-blend-mode: difference;
}

#cursor.hovered {
  width: 50px;
  height: 50px;
  background-color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  border: none;
}

/* Over navbar and hero branding, keep cursor subtle so convex text is crystal clear.
   core.js sets these classes (a body:has(...:hover) selector re-styles the page on
   every hover change, which made the cursor lag). */
#cursor.is-subtle {
  width: 22px !important;
  height: 22px !important;
  background-color: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important;
}

#cursor.on-gallery {
  mix-blend-mode: normal !important;
  border-color: #fff !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5), inset 0 0 5px rgba(0, 0, 0, 0.5) !important;
}

#cursor.on-gallery.hovered {
  mix-blend-mode: normal !important;
  background-color: #fff !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
}

@media (max-width: 768px), (pointer: coarse), (hover: none) {
  body {
    cursor: auto !important;
  }

  #cursor {
    display: none !important;
  }
}

/* ===== components/navbar.css ===== */
/* Floating Glass Dock Navigation */
nav.dock-mode {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: fit-content;
  background: rgba(8, 8, 8, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

nav.dock-mode.nav-visible,
.nav-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

nav.dock-mode.nav-hidden,
.nav-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-28px) scale(0.96);
  pointer-events: none;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  text-decoration: none;
  color: #fff;
  letter-spacing: -1px;
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  letter-spacing: 2px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Interactive Direct Letter Focus Magnifier */
.convex-word {
  display: inline-flex;
  align-items: center;
  perspective: 500px;
  transform-style: preserve-3d;
}

.convex-char {
  display: inline-block;
  transform-style: preserve-3d;
  padding: 0.2rem 0.05em;
  transition: transform 0.22s cubic-bezier(0.2, 1.15, 0.4, 1),
              color 0.18s ease,
              text-shadow 0.22s ease,
              opacity 0.18s ease;
  transform-origin: center center;
  will-change: transform;
  cursor: pointer;
}

/* 1. The exact letter being hovered/focused gets BIG */
.convex-char:hover {
  transform: translateY(-4px) scale(1.42) translateZ(20px);
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.95), 0 0 26px rgba(255, 255, 255, 0.5);
  z-index: 10;
  position: relative;
}

/* 2. Immediate next neighbor scales slightly */
.convex-char:hover + .convex-char {
  transform: translateY(-2px) scale(1.18) translateZ(10px);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  z-index: 5;
  position: relative;
}

/* 3. Immediate previous neighbor scales slightly */
.convex-char:has(+ .convex-char:hover) {
  transform: translateY(-2px) scale(1.18) translateZ(10px);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  z-index: 5;
  position: relative;
}

.nav-link svg {
  transition: transform 0.25s ease;
}

.nav-link:hover svg {
  transform: translateY(2px);
}



nav.dock-mode .nav-inner {
  padding: 0 1.5rem;
  gap: 3rem;
  height: 3.5rem;
}

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .desktop-resume-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
  }

  .mobile-brand-link {
    display: none;
    text-decoration: none;
    color: #fff;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
  }

  .mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
  }

  .hamburger-bar {
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    transform-origin: center;
  }

  .hamburger-bar.open.top {
    transform: translateY(4px) rotate(45deg);
  }

  .hamburger-bar.open.bot {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

@media (max-width: 768px) {
  .nav-links,
  .desktop-resume-link {
    display: none !important;
  }

  .mobile-brand-link {
    display: inline-flex;
  }

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

  nav.dock-mode {
    width: calc(100% - 2.5rem);
    max-width: 440px;
    top: 1rem;
    padding: 0.25rem 0.6rem;
  }

  nav.dock-mode .nav-inner {
    padding: 0 0.8rem;
    justify-content: space-between;
    height: 3.25rem;
    gap: 0;
  }

  .nav-actions {
    gap: 1rem;
  }
}

.hero-logo {
  transition: opacity 0.5s ease-in-out;
}

.hero-logo.fade-in {
  opacity: 1;
}

.hero-logo.fade-out {
  opacity: 0;
}

/* ==========================================================================
   Mobile Full-Screen Navigation Drawer
   ========================================================================== */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px) scale(0.98);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer-tag {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.mobile-drawer-close:hover,
.mobile-drawer-close:active {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: rotate(90deg);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  margin: 2rem 0;
  gap: 0.25rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: #fff;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, padding-left 0.25s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:active,
.mobile-nav-item.active {
  transform: translateX(8px);
  color: #fff;
}

.mobile-nav-num {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  min-width: 2rem;
}

.mobile-nav-label {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-grow: 1;
}

.mobile-nav-indicator {
  color: #fff;
  font-size: 0.75rem;
  text-shadow: 0 0 10px #fff;
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-resume-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

.mobile-resume-btn:hover,
.mobile-resume-btn:active {
  background: #fff;
  color: #050505;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.mobile-footer-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* ===== components/preloader.css ===== */
/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 1s ease-in-out;
}

.loader-text {
  font-family: 'Space Mono', monospace;
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  letter-spacing: 5px;
  animation: pulse 1s infinite alternate;
}

.loader-bar-bg {
  width: 300px;
  height: 2px;
  background: #333;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
  width: 0%;
  transition: width 0.05s linear;
}

.preloader-hud {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-footer {
  display: flex;
  color: #888;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.preloader-pct {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* ===== components/orbit-badge.css ===== */
/* 3D Orbit Mode Badge */
.orbit-mode-badge {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  padding: 0.65rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  pointer-events: none;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 180, 84, 0.2);
  animation: badgePop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.orbit-mode-badge .badge-title {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-family: ui-monospace, 'SF Mono', monospace;
  color: #ffb454;
  text-shadow: 0 0 12px rgba(255, 180, 84, 0.5);
}

.orbit-mode-badge .badge-hint {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  font-family: ui-monospace, 'SF Mono', monospace;
  color: rgba(234, 250, 255, 0.7);
}

/* ===== components/project-modal.css ===== */
/* ==========================================================================
   Project Modal & Editorial Case Study Layout
   High-Fidelity Cyberpunk / Dark Aesthetic
   ========================================================================== */

.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  isolation: isolate;
}

@media (pointer: fine) {
  .project-modal-overlay,
  .project-modal-overlay * {
    cursor: none !important;
  }
}

.project-modal-panel {
  width: 100%;
  max-width: 1080px;
  height: min(88vh, 860px);
  max-height: calc(100vh - 2.5rem);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 10, 0.94);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

/* Modal Header */
.project-modal-header {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.75rem 2rem 1.25rem;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-modal-tag {
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.project-modal-title {
  font-size: 2.1rem;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.02em;
}

.project-modal-subtitle {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 55ch;
}

.project-modal-close {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex: 0 0 auto;
}

.project-modal-close:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Editorial Case Study Navigation Tab Bar */
.project-modal-tab-bar {
  flex: 0 0 auto;
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem 2rem;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.project-modal-tab-btn {
  background: transparent;
  border: none;
  color: #888;
  padding: 0.7rem 1.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 8px;
  white-space: nowrap;
}

.project-modal-tab-btn .tab-number {
  color: #555;
  font-size: 0.72rem;
  font-weight: 700;
  transition: color 0.25s ease;
}

.project-modal-tab-btn:hover {
  color: #ddd;
  background: rgba(255, 255, 255, 0.04);
}

.project-modal-tab-btn:hover .tab-number {
  color: #aaa;
}

.project-modal-tab-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.project-modal-tab-btn.active .tab-number {
  color: #fff;
}

.project-modal-tab-btn.active .tab-label {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   TAB 1: Overview & Gallery
   ========================================================================== */

.project-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  padding: 1.75rem 2rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.project-modal-gallery {
  padding-right: 1.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  align-self: start;
}

.project-modal-gallery-main {
  position: relative;
}

.project-modal-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.25s ease;
}

.project-modal-nav-btn:hover:not([disabled]) {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.project-modal-nav-btn[disabled] {
  opacity: 0.25;
  cursor: not-allowed;
}

.project-modal-nav-btn:first-of-type {
  left: 12px;
}

.project-modal-nav-btn:last-of-type {
  right: 12px;
}

.project-modal-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.project-modal-thumb {
  width: 86px;
  height: 58px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.25s ease;
}

.project-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-modal-thumb.active {
  border-color: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.project-modal-content {
  padding-left: 1.75rem;
}

/* Engineering Challenge Callout */
.case-study-callout-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #fff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.callout-header {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #aaa;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout-glow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}

.callout-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ddd;
  margin: 0;
}

.project-modal-description {
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-modal-section {
  margin-bottom: 1.5rem;
}

.project-modal-section-title {
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 0.65rem;
  letter-spacing: 0.06em;
}

.project-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.project-modal-list li {
  color: #aaa;
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
  font-size: 0.9rem;
}

.project-modal-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 1px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.project-modal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.project-modal-pill {
  color: #bbb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.project-modal-pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.project-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.project-modal-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
  cursor: pointer;
}

.project-modal-action-btn:hover {
  border-color: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.project-modal-action-btn.primary-btn {
  background: #fff;
  color: #000;
  font-weight: 700;
  border-color: #fff;
}

.project-modal-action-btn.primary-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.4);
}

.project-modal-action-btn.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   TAB 2: System Architecture & Deep Dive
   ========================================================================== */

.project-modal-architecture-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.case-study-section-header {
  margin-bottom: 1.25rem;
}

.section-badge {
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
  display: block;
}

.case-study-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem;
  letter-spacing: 0.02em;
}

.case-study-subheading {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  max-width: 70ch;
}

/* Visual Pipeline Diagram */
.architecture-pipeline-grid {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.architecture-node-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px;
}

.architecture-node-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  transition: all 0.3s ease;
}

.architecture-node-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.node-step {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  color: #555;
  font-weight: bold;
}

.node-title {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: #fff;
  letter-spacing: 0.04em;
}

.node-tech-badge {
  display: inline-block;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  color: #ddd;
  margin-bottom: 0.75rem;
}

.node-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.architecture-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.25rem;
  user-select: none;
}

/* Engineering Strategy Grid */
.architecture-decisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.decision-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.decision-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
}

.decision-card-icon {
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.decision-card-title {
  font-size: 0.95rem;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.decision-card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

/* Performance Metrics Tiles */
.metrics-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.metric-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.35rem 1rem;
  text-align: center;
  transition: all 0.25s ease;
}

.metric-tile:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   TAB 3: Live Prototype & Sandbox Frame
   ========================================================================== */

.project-modal-prototype-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.prototype-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(14, 14, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  gap: 1rem;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.browser-address-bar {
  flex: 1;
  max-width: 500px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #aaa;
  overflow: hidden;
}

.lock-icon {
  color: #27c93f;
  flex-shrink: 0;
}

.address-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prototype-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.device-toggle-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #888;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-toggle-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.launch-external-btn {
  font-size: 0.75rem;
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.launch-external-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.prototype-viewport-container {
  position: relative;
  flex: 1 1 auto;
  min-height: 440px;
  height: 520px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prototype-viewport-container.device-desktop .prototype-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.prototype-viewport-container.device-mobile {
  background: #08080a;
}

.prototype-viewport-container.device-mobile .prototype-iframe {
  width: 390px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.95);
  margin: auto;
}

.prototype-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #888;
  font-size: 0.85rem;
  z-index: 2;
  pointer-events: none;
}

.prototype-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.prototype-empty-state {
  text-align: center;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* ==========================================================================
   Modal Custom Scrollbars
   ========================================================================== */

.project-modal-body::-webkit-scrollbar,
.project-modal-architecture-body::-webkit-scrollbar,
.project-modal-prototype-body::-webkit-scrollbar,
.architecture-pipeline-grid::-webkit-scrollbar,
.project-modal-tab-bar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.project-modal-body::-webkit-scrollbar-track,
.project-modal-architecture-body::-webkit-scrollbar-track,
.project-modal-prototype-body::-webkit-scrollbar-track,
.architecture-pipeline-grid::-webkit-scrollbar-track,
.project-modal-tab-bar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.project-modal-body::-webkit-scrollbar-thumb,
.project-modal-architecture-body::-webkit-scrollbar-thumb,
.project-modal-prototype-body::-webkit-scrollbar-thumb,
.architecture-pipeline-grid::-webkit-scrollbar-thumb,
.project-modal-tab-bar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.project-modal-body::-webkit-scrollbar-thumb:hover,
.project-modal-architecture-body::-webkit-scrollbar-thumb:hover,
.project-modal-prototype-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

.project-modal-body,
.project-modal-architecture-body,
.project-modal-prototype-body,
.architecture-pipeline-grid,
.project-modal-tab-bar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 960px) {
  .project-modal-panel {
    max-width: 95vw;
    height: 92vh;
    max-height: 94vh;
  }

  .project-modal-body {
    grid-template-columns: 1fr;
  }

  .project-modal-gallery {
    padding-right: 0;
    border-right: none;
    position: static;
  }

  .project-modal-content {
    padding-left: 0;
    margin-top: 1.5rem;
  }

  .project-modal-image {
    height: 300px;
  }

  .metrics-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .architecture-pipeline-grid {
    flex-direction: column;
  }

  .architecture-connector {
    transform: rotate(90deg);
    padding: 0.4rem 0;
  }
}

@media (max-width: 580px) {
  .project-modal-overlay {
    padding: 0.75rem;
  }

  .project-modal-panel {
    height: 96vh;
    max-height: 100dvh;
    border-radius: 12px;
  }

  .project-modal-header {
    padding: 1.25rem 1.25rem 1rem;
  }

  .project-modal-tab-bar {
    padding: 0.35rem 1rem;
  }

  .project-modal-body,
  .project-modal-architecture-body,
  .project-modal-prototype-body {
    padding: 1rem 1.25rem 1.5rem;
  }

  .project-modal-image {
    height: 220px;
  }

  .prototype-viewport-container {
    min-height: 340px;
    height: 380px;
  }
}

/* ===== components/footer.css ===== */
/* Footer */
footer {
  border-top: 1px solid #222;
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  margin-top: 5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: #888;
  text-decoration: none;
  transition: 0.3s;
}

.social-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px #fff;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ===== components/lenis.css ===== */
/* Lenis Smooth Scrolling Styles */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ===== pages/hero.css ===== */
/* Hero Section */
header.hero-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 11rem;
  box-sizing: border-box;
}

.hero-subtitle {
  letter-spacing: 0.22em;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 22px rgba(255, 255, 255, 0.55), 0 0 35px rgba(255, 255, 255, 0.3);
  text-align: center;
}

.hero-title-1 {
  font-size: 8.5rem;
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
  color: #eeeeee;
  text-shadow: 0 0 7px rgba(255, 255, 255, 0.55), 0 0 14px rgba(255, 255, 255, 0.28);
}

.hero-title-2 {
  font-size: 7.5rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  background: linear-gradient(to right, #666, #fff, #666);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 1.5rem;
}

/* Interactive 3D Holographic Globe CTA */
.hero-globe-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3.5rem 0 1.5rem;
  perspective: 1000px;
}

.hero-globe-cta {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  border-radius: 50%;
  transition: filter 0.3s ease;
}

.hero-globe-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 8px;
}

/* Radar Scan Rings */
.globe-radar-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  box-sizing: border-box;
}

.globe-radar-ring.outer {
  inset: -14px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  animation: radarSpin 24s linear infinite;
}

.globe-radar-ring.inner {
  inset: -6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(255, 255, 255, 0.65);
  animation: radarSpinReverse 14s linear infinite;
}

.hero-globe-cta:hover .globe-radar-ring.outer {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
  animation-duration: 8s;
}

.hero-globe-cta:hover .globe-radar-ring.inner {
  border-top-color: #fff;
  border-bottom-color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
  animation-duration: 5s;
}

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

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

/* Globe Canvas Layer */
.globe-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  pointer-events: auto;
  z-index: 1;
}

/* Frosted Center Core HUD Lens */
.globe-core-lens {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.25rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.hero-globe-cta:hover .globe-core-lens {
  background: rgba(255, 255, 255, 0.95);
  border-color: #ffffff;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.7), inset 0 0 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.06);
}

.globe-coord {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1.5px;
  line-height: 1;
  margin-bottom: 2px;
  transition: color 0.3s;
}

.globe-action {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1;
  transition: color 0.3s;
}

.globe-sub {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  line-height: 1;
  margin-top: 3px;
  transition: color 0.3s;
}

.globe-arrow-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease, color 0.3s ease;
}

.hero-globe-cta:hover .globe-coord {
  color: #555555;
}

.hero-globe-cta:hover .globe-action {
  color: #000000;
}

.hero-globe-cta:hover .globe-sub {
  color: #333333;
}

.hero-globe-cta:hover .globe-arrow-badge {
  color: #000000;
  transform: translate(2px, -2px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  width: 1px;
  height: 4rem;
  background: linear-gradient(to bottom, #fff, transparent);
  overflow: hidden;
}

.scroll-dot {
  width: 100%;
  height: 50%;
  background: #fff;
  animation: slideDown 2s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    line-height: 1.4;
    margin-bottom: 1rem;
    padding: 0 1rem;
  }

  .hero-title-1 {
    font-size: 4rem;
  }

  .hero-title-2 {
    font-size: 3.5rem;
  }
}

/* Short screens (a 1366×768 laptop, a 1080p screen at 125 %): at full size the
   hero needs about 720px of height, and a scroll on the hero moves on to the next
   page, so the globe below the fold could never be seen. Up to 800px of height
   the headline and spacing scale with it, matching the full-size layout at 800px. */
@media (min-width: 769px) and (max-height: 800px) {
  header.hero-container {
    padding-top: 22vh;
  }

  .hero-subtitle {
    margin-bottom: 2.5vh;
  }

  .hero-title-1 {
    font-size: 17vh;
  }

  .hero-title-2 {
    font-size: 15vh;
    margin-bottom: 3vh;
  }

  .hero-globe-wrapper {
    margin: 7vh 0 3vh;
  }
}

/* ===== pages/about.css ===== */
/* About Section */
.about-intro-section {
  padding-top: 7rem;
  padding-bottom: 3.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-title {
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.divider {
  position: relative;
  width: clamp(140px, 18vw, 220px);
  height: 2px;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.5) 45%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  transform-origin: left center;
  will-change: transform;
}

.divider::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff, 0 0 16px rgba(255, 255, 255, 0.9);
}

.about-text {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.abstract-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 480px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(5, 5, 5, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.abstract-box:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
}

.about-photo-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08080c;
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.abstract-box:hover .about-photo-img {
  transform: scale(1.025);
}

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

  .abstract-box {
    max-width: 380px;
    height: 420px;
  }
}

/* ==========================================================================
   Engineering Telemetry & Active Radar Deck
   ========================================================================== */
.telemetry-command-deck {
  margin-top: 4.5rem;
  background: rgba(8, 8, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.4s ease;
}

.telemetry-command-deck:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.telemetry-header-left {
  display: flex;
  align-items: center;
}

.telemetry-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  display: inline-block;
  margin-right: 0.65rem;
  animation: telemetryPulse 2s ease-in-out infinite;
}

.telemetry-hud-tag {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: #eeeeee;
  font-weight: 700;
}

.telemetry-hud-status {
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.telemetry-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.telemetry-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.telemetry-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.card-badge {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: #38bdf8;
  font-weight: 600;
}

.card-indicator {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: #4ade80;
}

.telemetry-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.65rem 0;
  letter-spacing: 0.5px;
}

.telemetry-card-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 1.25rem 0;
}

.telemetry-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.85rem;
  margin-top: auto;
}

/* LinkedIn Profile Identity Preview */
.linkedin-profile-preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 0.85rem;
}

.linkedin-preview-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(56, 189, 248, 0.5);
  flex-shrink: 0;
}

.linkedin-preview-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

.linkedin-preview-name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.linkedin-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0ea5e9;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
}

.linkedin-preview-role {
  font-size: 0.68rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action Links */
.telemetry-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.telemetry-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.telemetry-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.telemetry-btn-ping {
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.telemetry-btn-ping:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.telemetry-arrow {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.telemetry-btn:hover .telemetry-arrow {
  transform: scale(1.2);
}

@keyframes telemetryPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

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

  .telemetry-command-deck {
    margin-top: 3.5rem;
    padding: 1.25rem;
  }

  .telemetry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}


/* ===== pages/work.css ===== */
/* Work Section */
.work-page-section {
  padding-top: 7rem;
  padding-bottom: 6rem;
  min-height: 120vh;
}

.work-header {
  margin-bottom: 3.5rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.project-card {
  position: relative;
  aspect-ratio: 4/3;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #222;
  transition: all 0.5s;
  cursor: pointer;
}

.project-card:nth-child(even) {
  transform: translateY(4rem);
}

.project-card:hover {
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.project-bg {
  position: absolute;
  inset: 0;
  transition: transform 1s;
}

.bg-1 {
  background: conic-gradient(from 90deg, #333, #050505, #111);
}

.bg-2 {
  background: radial-gradient(circle, #444, #050505);
}

.bg-3 {
  background: linear-gradient(45deg, #222, #050505);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: opacity 0.5s;
  z-index: 10;
}

.project-card:hover .project-overlay {
  opacity: 0;
}

.project-card:hover .project-bg {
  transform: scale(1.1);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 20;
  transform: translateY(20px);
  transition: transform 0.5s;
}

.project-card:hover .project-info {
  transform: translateY(0);
}

.project-category {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

.project-title {
  font-size: 2rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-card:nth-child(even) {
    transform: translateY(0);
  }
}

/* ===== pages/skills.css ===== */
/* ==========================================================================
   Skills 360° Cylindrical Orbital Stage
   Continuous Running Motion • Perspective Scaling • Cyberpunk HUD Deck
   ========================================================================== */

.skills-page-section {
  padding-top: 7rem;
  padding-bottom: 8rem;
  min-height: 125vh;
  position: relative;
  width: 100%;
  overflow: visible;
}

.skills-header {
  margin-bottom: 2rem;
  position: relative;
  z-index: 20;
}

/* 360-Degree Orbital Viewport - Unclipped Full-Width Stage */
.skills-orbital-viewport {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1350px;
  perspective-origin: 50% 50%;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  margin: 1.5rem 0 2.5rem;
  overflow: visible;
}

.skills-orbital-viewport:active {
  cursor: grabbing;
}

/* Ambient Ring & Core Laser Center */
.orbital-ambient-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 580px;
  height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  border-radius: 50%;
}

.orbital-core-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(76deg);
  border-radius: 50%;
  pointer-events: none;
}

.orbital-core-ring.ring-top {
  width: 960px;
  height: 380px;
  transform: translate(-50%, -190px) rotateX(76deg);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.04);
}

.orbital-core-ring.ring-mid {
  width: 920px;
  height: 360px;
  transform: translate(-50%, 0px) rotateX(76deg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.orbital-floor-grid {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 860px;
  height: 90px;
  transform: translateX(-50%) rotateX(65deg);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(10px);
}

/* 3D Cylinder Stage Host */
.skills-cylinder-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  pointer-events: none;
}

/* Individual Orbital Card - True 3D Bent Ring Geometry */
.skill-orbital-card {
  position: absolute;
  width: 370px;
  max-width: 86vw;
  pointer-events: auto;
  border-radius: 20px;
  background: rgba(10, 10, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, filter 0.3s ease;
  will-change: transform, opacity, filter;
  transform-origin: center center;

  /* 3D Cylindrical Ring Positioning + Tangential Curve Bend */
  transform: translate3d(
    calc(var(--card-sin) * 440px),
    calc(var(--card-cos) * -20px),
    calc(var(--card-cos) * 230px)
  ) rotateY(var(--card-rotate-y)) scale(var(--depth-scale));
  opacity: var(--depth-opacity);
  filter: var(--depth-blur);
}

.skill-orbital-card:hover {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 45px rgba(255, 255, 255, 0.22);
  filter: blur(0px) !important;
  opacity: 1 !important;
  transform: translate3d(
    calc(var(--card-sin) * 440px),
    calc(var(--card-cos) * -20px),
    calc(var(--card-cos) * 260px)
  ) rotateY(var(--card-rotate-y)) scale(1.06) !important;
}

.skill-orbital-card.active-front {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 255, 255, 0.2);
}

.orbital-card-inner {
  position: relative;
  padding: 1.85rem 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

/* Top bar within card */
.orbital-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  gap: 0.5rem;
}

.skill-id-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.skill-tag {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #999999;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Content */
.skill-card-title {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
  line-height: 1.2;
}

.skill-card-summary {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #a0a0a0;
  margin-bottom: 1.1rem;
}

/* Live Telemetry Meter inside card */
.orbital-telemetry-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
  font-size: 0.68rem;
}

.telemetry-icon {
  color: #ffb454;
  font-size: 0.75rem;
}

.telemetry-text {
  color: #d0d0d0;
  letter-spacing: 0.04em;
}

/* Skill Chips */
.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-left: 0;
  margin: 0;
}

.skill-pill {
  color: #999999;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.skill-orbital-card:hover .skill-pill {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .skills-orbital-viewport {
    height: 540px;
  }
  .skill-orbital-card {
    width: 320px;
    transform: translate3d(
      calc(var(--card-sin) * 330px),
      calc(var(--card-cos) * -18px),
      calc(var(--card-cos) * 180px)
    ) rotateY(var(--card-rotate-y)) scale(var(--depth-scale));
  }
  .orbital-core-ring.ring-top {
    width: 720px;
  }
  .orbital-core-ring.ring-mid {
    width: 680px;
  }
}

@media (max-width: 640px) {
  .skills-orbital-viewport {
    height: 480px;
    perspective: 800px;
  }
  .skill-orbital-card {
    width: 290px;
    transform: translate3d(
      calc(var(--card-sin) * 220px),
      calc(var(--card-cos) * -12px),
      calc(var(--card-cos) * 130px)
    ) rotateY(var(--card-rotate-y)) scale(var(--depth-scale));
  }
  .orbital-core-ring.ring-top {
    width: 480px;
  }
  .orbital-core-ring.ring-mid {
    width: 440px;
  }
  .orbital-card-inner {
    padding: 1.35rem 1.25rem;
  }
}



/* ===== pages/timeline.css ===== */
/* ==========================================================================
   Timeline / Experience Section
   Editorial Dark void layout aligned with #about, #work & #skills
   ========================================================================== */

.timeline-section {
  position: relative;
  z-index: 10;
  padding-top: 3.5rem;
  padding-bottom: 7rem;
}

/* --------------------------------------------------------------------------
   Section Header Aligned with Portfolio Design System
   -------------------------------------------------------------------------- */
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.timeline-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   Stage Slider with Beside-Card Navigation Arrows
   -------------------------------------------------------------------------- */
.timeline-stage-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.timeline-side-arrow {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(14, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.timeline-side-arrow:hover:not(:disabled) {
  background: #ffffff;
  color: #050505;
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: scale(1.08);
}

.timeline-side-arrow:disabled {
  opacity: 0.18;
  cursor: not-allowed;
  transform: none;
}

.timeline-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.meta-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  animation: radarPulse 2s ease-in-out infinite;
}

@keyframes radarPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.4;
  }
}

.timeline-jump-strip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-jump-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #777777;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-jump-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-jump-pill.is-active {
  background: #ffffff;
  color: #050505;
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Carousel Viewport & Sliding Track
   -------------------------------------------------------------------------- */
.timeline-carousel-shell {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

.timeline-cards-track {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Stage Split-Pane Card
   -------------------------------------------------------------------------- */
.timeline-stage-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.2rem;
  background: rgba(12, 12, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2.4rem 2.6rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.timeline-card-slide.is-active .timeline-stage-card {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9),
              0 0 25px rgba(255, 255, 255, 0.04),
              inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Left Pane: Narrative & Technical Telemetry
   -------------------------------------------------------------------------- */
.timeline-narrative-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.stage-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.stage-badge {
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.stage-date {
  font-size: 0.72rem;
  color: #aaaaaa;
  letter-spacing: 0.06em;
}

.stage-step-tag {
  font-size: 0.72rem;
  color: #666666;
  letter-spacing: 0.08em;
}

.stage-title-wrap {
  margin-bottom: 1rem;
}

.stage-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.stage-headline {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #888888;
}

.stage-summary {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #b0b0b0;
  margin-bottom: 1.4rem;
}

/* Telemetry Metrics Grid */
.stage-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.stage-metric-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-lbl {
  font-size: 0.64rem;
  color: #777777;
  letter-spacing: 0.06em;
}

.metric-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* Tech Stack Pills matching .skill-pill */
.stage-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stage-pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.45);
  border: 1px solid #222222;
  font-size: 0.74rem;
  color: #888888;
  transition: all 0.3s ease;
}

.stage-pill:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   Right Pane: 3D Interactive Spatial Viewport
   -------------------------------------------------------------------------- */
.timeline-simulation-pane {
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 50%, rgba(18, 20, 32, 0.75) 0%, rgba(6, 7, 12, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  min-height: 320px;
  position: relative;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.7), 0 12px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.terminal-canvas-wrapper {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantum-visualizer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}


/* --------------------------------------------------------------------------
   Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .timeline-stage-wrapper {
    gap: 0.75rem;
  }

  .timeline-side-arrow {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .timeline-stage-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.8rem 1.6rem;
  }

  .stage-title {
    font-size: 1.4rem;
  }

  .timeline-simulation-pane {
    min-height: 250px;
  }
}

@media (max-width: 640px) {
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .timeline-stage-wrapper {
    position: relative;
  }

  .timeline-side-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .timeline-arrow-prev {
    left: -12px;
  }

  .timeline-arrow-next {
    right: -12px;
  }

  .stage-metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

/* ===== pages/contact.css ===== */
/* ==========================================================================
   Centered Deep Space Beacon - Contact Architecture
   Awwwards-Grade Cosmic Monolithic Experience
   ========================================================================== */

.contact-page-section {
  padding-top: 7rem;
  padding-bottom: 7rem;
  min-height: 100vh;
}

.contact-beacon-wrapper {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 1. Centered Celestial Beacon Header */
.contact-header.centered {
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.beacon-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.section-title.centered {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  text-align: center;
  line-height: 1.1;
}

.divider.centered {
  width: 4rem;
  height: 4px;
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.85);
  margin: 0 auto 1.75rem auto;
  transform-origin: center center;
  will-change: transform;
}

.divider.centered::before {
  display: none;
}

.contact-lead.centered {
  max-width: 580px;
  font-size: 1.12rem;
  line-height: 1.7;
  color: #9ca3af;
  text-align: center;
  margin: 0 auto;
}

/* 2. Centered Cosmic Monolithic Glass Transponder */
.cosmic-monolith-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 3.2rem auto;
  background: rgba(10, 10, 16, 0.78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2.4rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.03);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.cosmic-monolith-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 255, 255, 0.06);
}

/* Interactive Cursor-Tracking Starlight Specular Rim Glow */
.cosmic-monolith-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: radial-gradient(
    450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.42),
    rgba(255, 255, 255, 0.06) 40%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cosmic-monolith-card:hover::before {
  opacity: 1;
}

/* Monolith Top Beacon Telemetry */
.monolith-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.beacon-status-pill {
  display: inline-flex;
  align-items: center;
}

.beacon-freq-text {
  font-size: 0.7rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monolith-title {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #888899;
}

/* Dynamic Interstellar Signal Integrity Gauge */
.signal-meter-section {
  margin-bottom: 2rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.signal-meter-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.signal-label {
  color: #94a3b8;
}

.signal-percentage {
  color: #ffffff;
  font-weight: 700;
}

.signal-meter-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.signal-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #ffffff);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dispatch Form Elements */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #9999aa;
}

.field-input {
  background: rgba(6, 6, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.9rem 1.15rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.field-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.18), inset 0 0 8px rgba(255, 255, 255, 0.05);
  background: rgba(12, 12, 18, 0.92);
}

.field-textarea {
  resize: vertical;
  min-height: 115px;
  line-height: 1.6;
}

/* Transmit Action Button */
.stellar-transmit-btn {
  position: relative;
  overflow: hidden;
  margin-top: 0.75rem;
  padding: 1.1rem 2rem;
  border-radius: 10px;
  background: #ffffff;
  color: #050505;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stellar-transmit-btn:hover {
  background: #f0f0f5;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 5px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.transmit-btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.stellar-transmit-btn:hover .transmit-btn-shimmer {
  left: 140%;
}

.transmit-btn-text {
  position: relative;
  z-index: 2;
}

.form-status-msg {
  font-size: 0.75rem;
  color: #ffffff;
  padding: 0.5rem 0;
  text-align: center;
}


/* 3. Centered Direct Comms Orbit Deck */
.direct-comms-deck {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.comms-capsule {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: rgba(14, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.comms-capsule:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.05);
}

.comms-channel-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


.comms-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.comms-email {
  font-size: 0.9rem;
  color: #ffffff;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.copy-signal-btn {
  padding: 0.5rem 1.15rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.copy-signal-btn:hover {
  background: #ffffff;
  color: #050505;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.orbit-availability-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}


/* Responsive Viewports */
@media (max-width: 640px) {
  .cosmic-monolith-card {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }

  .comms-capsule {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    border-radius: 16px;
    padding: 1.1rem;
  }

  .comms-channel-info {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .copy-signal-btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Sideways Flying Paper Rocket & Cosmic Meteor Wave Styles
   ========================================================================== */

.sideways-launch-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  position: relative;
  padding: 2rem 1rem;
  overflow: hidden;
  border-radius: 16px;
}

/* 1. Centered 0-100% Counter (on top of the arena) */
.launch-counter-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 420px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
}

.launch-counter-value {
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.7), 0 0 50px rgba(96, 165, 250, 0.45);
}

.launch-status-subtext {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #94a3b8;
  min-height: 1.2rem;
}

.launch-meter-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.launch-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #ffffff);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
  transition: width 0.05s linear;
}

/* 2. The Sideways Flight Arena */
.sideways-flight-arena {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3. Sideways Paper Rocket with Wave Undulation */
.paper-rocket-sideways-wrap {
  position: absolute;
  width: 96px;
  height: 48px;
  z-index: 5;
  transition: transform 0.08s linear;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.85)) drop-shadow(0 10px 25px rgba(96, 165, 250, 0.45));
}

.space-rocket-side-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Horizontal Ion Thruster Flame Pulse */
.rocket-side-thruster-plume {
  animation: thrusterSidePulse 0.1s infinite alternate ease-in-out;
  transform-origin: 14px 24px;
}

.rocket-side-core-flame {
  animation: coreSidePulse 0.08s infinite alternate ease-in-out;
  transform-origin: 14px 24px;
}

@keyframes thrusterSidePulse {
  0% {
    transform: scaleX(0.85) scaleY(0.9);
    opacity: 0.85;
  }
  100% {
    transform: scaleX(1.4) scaleY(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 12px #60a5fa);
  }
}

@keyframes coreSidePulse {
  0% {
    transform: scaleX(0.85);
    opacity: 0.85;
  }
  100% {
    transform: scaleX(1.35);
    opacity: 1;
  }
}

/* Starlight Plasma Particles behind the thruster */
.rocket-plasma-trail {
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plasma-dot {
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #60a5fa, 0 0 16px #ffffff;
  animation: plasmaStream 0.65s infinite ease-out;
}

.plasma-dot.p1 { width: 5px; height: 5px; opacity: 0.95; animation-delay: 0s; }
.plasma-dot.p2 { width: 7px; height: 7px; opacity: 0.75; animation-delay: 0.15s; }
.plasma-dot.p3 { width: 9px; height: 9px; opacity: 0.5; animation-delay: 0.3s; }
.plasma-dot.p4 { width: 11px; height: 11px; opacity: 0.25; animation-delay: 0.45s; }

@keyframes plasmaStream {
  0% {
    transform: translateX(0) scale(1);
    opacity: 0.95;
  }
  100% {
    transform: translateX(-35px) scale(0.2);
    opacity: 0;
  }
}

/* Sent Success Confirmation Stage */
.sent-success-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  animation: fadeInSuccess 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sent-success-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: popInCheck 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.sent-success-check {
  font-size: 1.8rem;
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.sent-success-title {
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: #ffffff;
}

.sent-success-desc {
  max-width: 440px;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  color: #94a3b8;
}

.send-another-btn {
  padding: 0.85rem 1.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.send-another-btn:hover {
  background: #ffffff;
  color: #050505;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

@keyframes fadeInSuccess {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes popInCheck {
  0% { transform: scale(0.3); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
