/* COLOR SYSTEM */
:root {
  --mono-black: #050505;
  --mono-charcoal: #0f0f0f;
  --mono-dark: #1a1a1a;
  --mono-gray: #2a2a2a;
  --mono-mid: #4a4a4a;
  --mono-silver: #8a8a8a;
  --mono-light: #c5c5c5;
  --mono-off-white: #e8e8e8;
  --mono-white: #f8f8f8;

  --accent-blue: #4a90d9;
  --accent-blue-bright: #64b5f6;
  --accent-purple: #7c3aed;
  --accent-glow: rgba(74, 144, 217, 0.5);
  --accent-glow-subtle: rgba(74, 144, 217, 0.2);

  --aura-black: var(--mono-black);
  --aura-deep: var(--mono-charcoal);
  --aura-dark: var(--mono-dark);
  --aura-navy: var(--mono-gray);
  --aura-blue: var(--accent-blue);
  --aura-glow: var(--accent-blue);
  --aura-light: var(--mono-light);
  --aura-white: var(--mono-white);
  --aura-accent: var(--accent-blue-bright);
  --aura-purple: var(--accent-purple);
  --aura-cyan: var(--accent-blue-bright);

  --font-display: 'Inter', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* PAGE TRANSITION */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  display: flex;
}

#page-transition .rect-bar {
  flex: 1;
  height: 100%;
  background: #ffffff;
  transform: translateY(0%);
}

#page-transition.entering .rect-bar {
  animation: rectSlideUp 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: calc(var(--i) * 0.05s);
}

#page-transition.leaving {
  pointer-events: all;
}

#page-transition.leaving .rect-bar {
  transform: translateY(-100%);
  animation: rectSlideDown 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: calc(var(--i) * 0.05s);
}

#page-transition.idle .rect-bar {
  transform: translateY(-100%);
}

@keyframes rectSlideUp {
  from {
    transform: translateY(0%);
  }

  to {
    transform: translateY(-100%);
  }
}

@keyframes rectSlideDown {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0%);
  }
}

/* Spacing - ADJUST THESE TO CHANGE LAYOUT */
:root {
  --section-padding: clamp(40px, 8vh, 80px);
  --heading-text-gap: 1px;
  --label-heading-gap: 1px;
}

/* BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* FLUID CURSOR */
.fluid-cursor-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

#fluid {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px),
(hover: none) {
  .fluid-cursor-container {
    display: none !important;
  }
}

html {
  scroll-behavior: smooth;
}

body.journey-page {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--aura-black);
  color: var(--aura-white);
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 0;
  display: none;
}

/* Firefox */
html {
  scrollbar-width: none;
}

/* ============================================================
   PARALLAX STARS
   ============================================================ */
.parallax-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.star-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  /* Extra height for scrolling */
  will-change: transform;
}

/* Stars will be generated by JavaScript */
.star {
  position: absolute;
  background: var(--mono-white);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Layer 1: Small, distant stars */
.star-layer--1 .star {
  width: 1px;
  height: 1px;
  opacity: 0.3;
}

/* Layer 2: Medium stars */
.star-layer--2 .star {
  width: 2px;
  height: 2px;
  opacity: 0.5;
}

/* Layer 3: Larger, closer stars */
.star-layer--3 .star {
  width: 3px;
  height: 3px;
  opacity: 0.7;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .star-layer {
    transform: none !important;
  }
}

/* ============================================================
   ATMOSPHERIC BACKGROUND - DISABLED (Plain black)
   ============================================================ */
.aurora-bg {
  display: none;
  /* Disabled - plain black background */
}

.aurora-bg::before {
  display: none;
}

.aurora-bg::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background:
    radial-gradient(ellipse 40% 30% at 70% 30%, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(ellipse 50% 40% at 30% 70%, rgba(74, 144, 217, 0.03), transparent 60%);
  animation: atmosphereMove2 35s ease-in-out infinite;
  filter: blur(80px);
}

@keyframes atmosphereMove {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  25% {
    transform: translate(3%, 3%) rotate(1deg) scale(1.01);
  }

  50% {
    transform: translate(-2%, 5%) rotate(-0.5deg) scale(0.99);
  }

  75% {
    transform: translate(-3%, -2%) rotate(0.5deg) scale(1.005);
  }
}

@keyframes atmosphereMove2 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(-3%, 4%) rotate(-1deg);
  }

  66% {
    transform: translate(4%, -3%) rotate(1deg);
  }
}

/* Subtle floating orbs - mostly grayscale */
.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: orbFloat 12s ease-in-out infinite;
}

.aurora-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.aurora-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.1) 0%, transparent 70%);
  top: 50%;
  right: 10%;
  animation-delay: -4s;
}

.aurora-orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  bottom: 10%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.25;
  }

  50% {
    transform: scale(1.15) translate(15px, -15px);
    opacity: 0.4;
  }
}

/* Old aurora keyframes removed - now using atmosphereMove and orbFloat */

/* ============================================================
   FLOATING NAVIGATION
   ============================================================ */
.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.floating-nav__logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--mono-white);
  text-decoration: none;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  margin-right: 8px;
  cursor: pointer;
}

.floating-nav__links {
  display: flex;
  gap: 4px;
}

.floating-nav__link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
}

.floating-nav__link:hover,
.floating-nav__link.active {
  color: var(--mono-white);
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile nav */
.floating-nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--aura-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .floating-nav {
    padding: 10px 16px;
  }

  .floating-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    flex-direction: column;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    min-width: 200px;
  }

  .floating-nav__links.open {
    display: flex;
  }

  .floating-nav__toggle {
    display: block;
  }

  .floating-nav__logo {
    border-right: none;
    padding-right: 8px;
    margin-right: 0;
  }
}

/* ============================================================
   SCROLL PROGRESS INDICATOR (Right side, next to scrollbar)
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 8px;
  /* Position next to scrollbar */
  width: 3px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1001;
}

.scroll-progress__bar {
  width: 100%;
  height: 0%;
  /* Now grows vertically */
  background: linear-gradient(180deg, var(--accent-blue), var(--mono-white));
  box-shadow: 0 0 8px rgba(74, 144, 217, 0.5);
  transition: height 0.1s linear;
}


/* ============================================================
   JOURNEY CONTAINER
   ============================================================ */
.journey {
  position: relative;
  min-height: 100vh;
}

/* ============================================================
   SECTIONS WITH TRANSITIONS
   ============================================================ */
.journey-section {
  position: relative;
  padding: 30px 24px;
  /* Reduced padding for smaller gaps between sections */
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.journey-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.journey-section__content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}


/* Section Titles */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin: 0 0 4px 0 !important;
  opacity: 0.9;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 8px 0 !important;
  background: linear-gradient(135deg, var(--mono-white) 0%, var(--mono-light) 50%, var(--mono-silver) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--mono-light);
  max-width: 600px;
  line-height: 1.8;
  margin: 0 !important;
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 100px;
}

.hero-section .section-heading {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--mono-silver);
  margin-bottom: 8px;
}

.hero-typed {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--mono-light);
  min-height: 2em;
}

.hero-typed .typed-cursor {
  color: var(--accent-blue);
  animation: cursorBlink 1s ease-in-out infinite;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-bio {
  max-width: 700px;
  margin: 32px auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--mono-silver);
}

.hero-bio .highlight {
  color: var(--accent-blue);
  font-weight: 600;
}

.hero-bio .highlight2 {
  color: var(--mono-white);
  font-weight: 600;
}

.hero-bio a {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.hero-bio a:hover {
  border-bottom-color: var(--accent-blue);
}

/* Social Links with glow hover */
.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--mono-light);
  font-size: 1.2rem;
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
}

.social-links a:hover {
  background: rgba(74, 144, 217, 0.15);
  border-color: var(--accent-blue);
  color: var(--mono-white);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(74, 144, 217, 0.2);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--mono-silver);
  font-size: 0.8rem;
  animation: scrollBounce 2s ease-in-out infinite;
  cursor: pointer;
}

.scroll-indicator__icon {
  font-size: 1.5rem;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ============================================================
   TABLE OF CONTENTS - 3D Cards
   ============================================================ */
.toc-section {
  padding: 60px 24px;
  min-height: auto;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 1000px;
}

.toc-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.6));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  text-decoration: none;
  transition: all 0.5s var(--ease-out-expo);
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
}

.toc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.toc-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

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

.toc-card__number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.toc-card__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--mono-white);
  margin-bottom: 8px;
}

.toc-card__desc {
  font-size: 0.9rem;
  color: var(--mono-silver);
}

/* ============================================================
   GLASSMORPHISM CARDS
   ============================================================ */
.glass-card {
  background: rgba(25, 25, 25, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.4s var(--ease-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   TIMELINE (Career Section)
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 32px;
}

/* Animated timeline line that draws on scroll */
.timeline-line {
  position: absolute;
  left: 8px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--mono-white) 0%, var(--mono-silver) 50%, var(--mono-mid) 100%);
  transform-origin: top;
  transform: scaleY(0);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
  /* GSAP handles the animation, but we set a fallback */
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s var(--ease-out-expo);
}

/* Fallback for when GSAP animation completes */
.timeline-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mono-white);
  border: 3px solid var(--mono-dark);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  transition: box-shadow 0.3s, transform 0.3s;
}

.timeline-item:hover::before {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px var(--accent-glow-subtle);
  transform: scale(1.2);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent-blue);
  margin-bottom: 8px;
  font-weight: 500;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mono-white);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 1rem;
  color: var(--mono-light);
  margin-bottom: 16px;
}

.timeline-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--mono-silver);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--mono-mid);
}

.timeline-bullets .highlight2 {
  color: var(--accent-blue);
  font-weight: 600;
}

/* ============================================================
   SCROLL THREAD PROJECTS SECTION
   ============================================================ */
.projects-thread-section {
  min-height: auto;
  padding-bottom: 0;
}

.projects-thread-section .journey-section__content {
  padding-bottom: 40px;
}

.scroll-thread-container {
  position: relative;
  width: 100%;
  min-height: auto;
  /* Fits content naturally */
  padding: 0 24px;
}

/* SVG Thread - wider coverage */
.scroll-thread {
  position: absolute;
  top: 0;
  left: 5%;
  width: 90%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.scroll-thread__path {
  fill: none;
  stroke: var(--mono-white);
  stroke-width: 0.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 12px var(--accent-glow-subtle));
}

/* Projects Container */
.thread-projects {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
  perspective: 1500px;
}

/* Individual Project Cards - staggered overlap for left/right alternation */
.thread-project {
  position: relative;
  margin-bottom: -40px;
  /* Reduced overlap for better hover detection */
  opacity: 0;
  transform: translateY(60px) rotateX(8deg);
  transition: opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo),
    z-index 0s;
  transform-style: preserve-3d;
}

/* Reverse stacking order - earlier cards on top */
.thread-project:nth-child(1) {
  z-index: 10;
}

.thread-project:nth-child(2) {
  z-index: 9;
}

.thread-project:nth-child(3) {
  z-index: 8;
}

.thread-project:nth-child(4) {
  z-index: 7;
}

.thread-project:nth-child(5) {
  z-index: 6;
}

/* Hovered card always on top */
.thread-project:hover {
  z-index: 100 !important;
}

.thread-project:last-child {
  margin-bottom: 80px;
}

.thread-project.is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* Alternate left/right positioning - wider spread */
.thread-project:nth-child(odd) {
  padding-left: 52%;
}

.thread-project:nth-child(even) {
  padding-right: 52%;
}

/* Project Card - 3D Inspira Style */
.thread-project__card {
  position: relative;
  background: linear-gradient(145deg, rgba(25, 25, 25, 0.95), rgba(10, 10, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
}

.thread-project__card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 50px 10px rgba(255, 255, 255, 0.2),
    0 30px 60px rgba(0, 0, 0, 0.5);
}

.thread-project__image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.thread-project__card:hover .thread-project__image {
  transform: scale(1.05);
}

.thread-project__content {
  padding: 24px;
  position: relative;
}

.thread-project__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--mono-white);
  margin: 0 0 8px 0;
}

/* Description always visible */
.thread-project__desc {
  font-size: 0.9rem;
  color: var(--mono-silver);
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.thread-project__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-blue);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.thread-project__link:hover {
  color: var(--mono-white);
  gap: 10px;
}


/* Mobile Responsive */
@media (max-width: 768px) {
  .scroll-thread-container {
    min-height: auto;
  }

  .thread-project {
    margin-bottom: 32px;
  }

  .thread-project:nth-child(odd),
  .thread-project:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }

  .thread-project::before {
    display: none;
  }

  .scroll-thread {
    display: none;
  }

}

/* ============================================================
   PROJECT GRID - 3D CARD EFFECT (Legacy - kept for other pages)
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
  perspective: 1500px;
}

.project-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(15, 15, 15, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.6s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(40px) rotateX(10deg);
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}

.project-card.is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* 3D Card shine effect */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      transparent 40%,
      rgba(255, 255, 255, 0.03) 45%,
      rgba(255, 255, 255, 0.06) 50%,
      rgba(255, 255, 255, 0.03) 55%,
      transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 10;
  pointer-events: none;
}

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

/* 3D Card glow ring - now white/subtle blue */
.project-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), var(--accent-glow-subtle));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s;
  filter: blur(12px);
}

.project-card:hover::after {
  opacity: 0.5;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.project-card__image-container {
  position: relative;
  overflow: hidden;
}

.project-card__image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

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

.project-card__image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(15, 15, 15, 0.95));
  pointer-events: none;
}

.project-card__content {
  padding: 24px;
  position: relative;
  z-index: 2;
}

.project-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--mono-white);
  margin-bottom: 8px;
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--mono-silver);
  line-height: 1.5;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--accent-blue);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.project-card__link:hover {
  color: var(--mono-white);
  gap: 10px;
}

/* ============================================================
   VIDEO/MUSIC GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
  perspective: 1000px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, rgba(25, 25, 25, 0.95), rgba(10, 10, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.5s var(--ease-out-expo);
  opacity: 0;
  transform: scale(0.9) rotateY(5deg);
  transform-style: preserve-3d;
  cursor: pointer;
  will-change: transform;
}

.gallery-item.is-visible {
  opacity: 1;
  transform: scale(1) rotateY(0);
}

.gallery-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 50px 10px rgba(255, 255, 255, 0.2),
    0 30px 60px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__title {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mono-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.gallery-item__links {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item__links i {
  display: none;
}

/* Play triangle icon */
.gallery-item__links::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 0 20px 32px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.gallery-item:hover .gallery-item__links::before {
  transform: scale(1.15);
  border-color: transparent transparent transparent #fff;
}

/* ============================================================
   MUSIC SECTION
   ============================================================ */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.music-year {
  margin-top: 60px;
}

.music-year__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--mono-white);
  margin-bottom: 8px;
}

.music-year__subtitle {
  font-size: 0.95rem;
  color: var(--mono-silver);
  margin-bottom: 24px;
  font-style: italic;
}

.music-embed {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s var(--ease-out-expo);
}

.music-embed.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.music-embed:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.music-embed iframe {
  width: 100%;
  height: 152px;
  border: none;
  border-radius: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.journey-footer {
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.9));
  position: relative;
}

.journey-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mono-silver), transparent);
}

.journey-footer__message {
  font-size: 1.2rem;
  color: var(--mono-light);
  margin-bottom: 24px;
}

.journey-footer__copyright {
  font-size: 0.85rem;
  color: var(--mono-mid);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.is-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;
}

/* Stagger children */
.stagger-reveal>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.stagger-reveal.is-visible>*:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0ms;
}

.stagger-reveal.is-visible>*:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 100ms;
}

.stagger-reveal.is-visible>*:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 200ms;
}

.stagger-reveal.is-visible>*:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 300ms;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .stagger-reveal>*,
  .journey-section {
    opacity: 1;
    transform: none;
  }

  body.journey-page {
    cursor: auto;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center {
  text-align: center;
}

.text-glow {
  color: var(--aura-glow);
  text-shadow: 0 0 20px var(--aura-glow);
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Project card link wrapper - makes entire card clickable */
.thread-project__link-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   CAREER TIMELINE STYLES
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--mono-mid);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--mono-white);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-company {
  font-size: 2rem;
  font-weight: 700;
  color: var(--mono-white);
  margin-bottom: 0;
  line-height: 1.1;
}

.timeline-role {
  font-size: 1.25rem;
  color: var(--mono-white);
  margin-bottom: 8px;
  font-weight: 500;
}

.timeline-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--mono-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--mono-mid);
}

/* Gap between sections - CHANGE 60px to adjust */
.journey-section {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  scroll-margin-top: 100px;
  /* Offset for fixed nav on anchor clicks */
}

/* Section label (e.g., "building things") - CHANGE VALUES TO ADJUST */
p.section-label,
.section-label.reveal {
  margin: 0 !important;
  padding: 0 !important;
  margin-bottom: 0px !important;
  /* Gap below label */
  line-height: 1.2 !important;
  opacity: 1 !important;
  /* Always visible */
  transform: none !important;
}

/* Section heading (e.g., "projects") - CHANGE VALUES TO ADJUST */
h2.section-heading,
.section-heading.reveal {
  margin: 0 !important;
  padding: 0 !important;
  margin-bottom: 0px !important;
  /* Gap below heading */
  line-height: 1.1 !important;
  opacity: 1 !important;
  /* Always visible */
  transform: none !important;
}

/* Description text - CHANGE VALUES TO ADJUST */
p.section-text,
.section-text.reveal {
  margin: 0 !important;
  padding: 0 !important;
  margin-top: 4px !important;
  /* Small gap above description */
  line-height: 1.5 !important;
  opacity: 1 !important;
  /* Always visible */
  transform: none !important;
}

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.video-modal__content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.video-modal.active .video-modal__content {
  transform: scale(1);
}

.video-modal__player {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(74, 144, 217, 0.4), 0 0 120px rgba(74, 144, 217, 0.2), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal__player iframe {
  width: 100%;
  height: 100%;
}

.video-modal__youtube-link {
  position: absolute;
  bottom: -45px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(74, 144, 217, 0.15);
  border: 1px solid rgba(74, 144, 217, 0.3);
  border-radius: 20px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(74, 144, 217, 0.2);
}

.video-modal__youtube-link:hover {
  background: rgba(74, 144, 217, 0.4);
  border-color: rgba(74, 144, 217, 0.6);
  box-shadow: 0 0 25px rgba(74, 144, 217, 0.4);
  transform: translateY(-2px);
}