/* Clean Warm Off-White Light Portfolio Design System — Apple/Framer-Caliber Aesthetics */
:root {
  --bg-primary: #F7F7F5;
  --bg-card: #FFFFFF;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-tertiary: #888888;
  --border-subtle: #EAEAEA;
  --border-hover: #D0D0CC;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-editorial: 'Antonio', 'Bebas Neue', 'Big Shoulders Display', 'Impact', sans-serif;
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid #111111 !important;
  outline-offset: 2px !important;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: #F7F7F5;
  color: #111111;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: #F7F7F5;
  color: #111111;
  overflow-x: hidden;
}

/* Scroll Progress Bar at Top of Viewport */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #111111, #444444);
  z-index: 100;
  transition: width 0.1s ease-out;
}

/* Floating Glass Capsule Navigation */
.glass-capsule {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.07);
}

/* Smooth Shared-Layout & Modal Animations */
@keyframes backdropFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes scaleInExpand {
  0% {
    opacity: 0.15;
    transform: scale(0.94) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.15);
  }
}

@keyframes flowLine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.animate-backdrop-fade {
  animation: backdropFade 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-expand {
  animation: scaleInExpand 380ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* =========================================================================
   PROJECT OPEN TRANSITION (300-500ms Luxury Expansion)
   project card -> image expands -> project details
   ========================================================================= */

@keyframes projectBackdropFade {
  0% {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

@keyframes projectHeroExpand {
  0% {
    opacity: 0.15;
    transform: scale(0.92) translateY(24px);
  }
  60% {
    opacity: 0.9;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes projectHeaderReveal {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes projectDetailsReveal {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-project-backdrop {
  animation: projectBackdropFade 380ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-project-header {
  animation: projectHeaderReveal 350ms cubic-bezier(0.16, 1, 0.3, 1) 40ms backwards;
  will-change: transform, opacity;
}

.animate-project-hero-expand {
  animation: projectHeroExpand 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
  transform-origin: center top;
}

.animate-project-details {
  animation: projectDetailsReveal 460ms cubic-bezier(0.16, 1, 0.3, 1) 120ms backwards;
  will-change: transform, opacity;
}

.project-card-interactive {
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card-interactive:active {
  transform: scale(0.985);
}

/* Custom Minimal Dot Cursor — Constant Sleek Small Dot Everywhere */
.custom-cursor {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #111111;
  transform: translate(-50%, -50%);
  z-index: 9999;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .custom-cursor {
    display: none !important;
  }
}

/* Document & Card Aesthetics */
.white-card {
  background-color: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.photo-desk-card {
  position: relative;
  background-color: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.photo-desk-card:hover {
  transform: translateY(-6px) scale(1.02) rotate(0deg) !important;
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.14), 0 6px 16px -4px rgba(0, 0, 0, 0.08);
  z-index: 30 !important;
}

.document-shelf-card {
  background-color: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.document-shelf-card:hover {
  border-color: #111111;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.09);
  transform: translateY(-4px);
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F7F7F5;
}
::-webkit-scrollbar-thumb {
  background: #E0E0DC;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C4C4C0;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Typography & Monospace utility */
.font-mono {
  font-family: var(--font-mono);
}
.font-serif {
  font-family: var(--font-serif);
}

/* =========================================================================
   PROJECT MICRO-ANIMATIONS (Apple / Linear Caliber)
   ========================================================================= */

/* 01. AI Lead Gen: Tiny moving dots along lines */
@keyframes flowDotY {
  0% {
    top: 0%;
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    top: 100%;
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
}

@keyframes flowDotX {
  0% {
    left: 0%;
    opacity: 0;
    transform: translateX(0) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  80% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    left: 100%;
    opacity: 0;
    transform: translateX(0) scale(0.6);
  }
}

/* 01. AI Lead Gen: Green flow dots */
.anim-dot-y {
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 8px 1px rgba(16, 185, 129, 0.8);
  animation: flowDotY 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.anim-dot-x {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 8px 1px rgba(16, 185, 129, 0.8);
  animation: flowDotX 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 02. SmartDoc: Blue/Teal Laser scanning line moving across invoice */
@keyframes invoiceScanSweep {
  0% {
    top: 0%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 2px);
    opacity: 0;
  }
}

.invoice-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0) 0%, #06B6D4 30%, #3B82F6 70%, rgba(59, 130, 246, 0) 100%);
  box-shadow: 0 0 10px 2px rgba(6, 182, 212, 0.6), 0 0 20px 4px rgba(59, 130, 246, 0.35);
  animation: invoiceScanSweep 3.2s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 20;
}

.invoice-scan-glow {
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.16) 0%, rgba(6, 182, 212, 0) 100%);
  animation: invoiceScanSweep 3.2s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 19;
}

/* 03. TaskFlow: Purple moving card */
@keyframes cardGlide {
  0%, 25% {
    transform: translate(0, 0);
  }
  33%, 58% {
    transform: translate(calc(100% + 1rem), 0);
  }
  66%, 92% {
    transform: translate(calc(200% + 2rem), 0);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* 04. RAG: Amber Question -> Search -> Answer Pulse */
@keyframes ragPulseWave {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.rag-node-glow {
  animation: ragPulseWave 3s ease-in-out infinite;
}

.anim-dot-amber {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background-color: #F59E0B;
  box-shadow: 0 0 8px 1px rgba(245, 158, 11, 0.85);
  animation: flowDotX 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 05. AI Content Strategy: Pink/Orange Animated SVG Chart Line */
@keyframes chartLineDash {
  0% {
    stroke-dashoffset: 400;
  }
  50% {
    stroke-dashoffset: 0;
  }
  90% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 400;
  }
}

.anim-chart-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: chartLineDash 4.5s ease-in-out infinite;
}

@keyframes metricPointPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.anim-chart-point {
  animation: metricPointPulse 2s ease-in-out infinite;
}

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

/* Touch & Mobile Cursor Disabling */
@media (pointer: coarse), (hover: none) {
  .custom-cursor {
    display: none !important;
  }
}

/* Deep Dive Accordion Smooth Disclosure */
.deep-dive-accordion {
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-out;
}

/* =========================================================================
   MINIMAL EDITORIAL COVER HERO (PORTFOLIO + Centered Portrait + Name)
   ========================================================================= */

.hero-cover-root {
  background-color: #F7F7F5;
  color: #111111;
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Subtle Technical Ambient Grid */
.hero-light-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 1;
}

/* Soft Technical Glow (Subtle and non-intrusive) */
.hero-cover-glow {
  display: none;
}

/* Huge PORTFOLIO Typography Layer — Editorial Masthead Behind Portrait */
/* Huge PORTFOLIO Typography Layer — Editorial Masthead Behind Portrait */
.hero-giant-title-wrapper {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.hero-giant-title {
  font-family: var(--font-editorial);
  font-size: clamp(3.25rem, 17.5vw, 19.2rem);
  font-weight: 700;
  color: #111111;
  letter-spacing: 0.01em;
  line-height: 0.84;
  white-space: nowrap;
  user-select: none;
  opacity: 1;
  text-transform: uppercase;
  display: inline-block;
}

/* Centered Portrait Layer Overlapping Typography — Substantially Larger, Editorial Focal Point */
.hero-cover-portrait-wrapper {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  width: 100%;
  max-width: clamp(380px, 46vw, 650px);
  margin-top: -38px;
}

.hero-cover-portrait-img {
  width: 100%;
  height: auto;
  max-height: clamp(520px, 72vh, 790px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.13)) contrast(1.05) brightness(0.98);
  -webkit-mask-image: linear-gradient(to bottom, 
    #000000 0%, 
    #000000 55%, 
    rgba(0, 0, 0, 0.8) 70%, 
    rgba(0, 0, 0, 0.35) 85%, 
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(to bottom, 
    #000000 0%, 
    #000000 55%, 
    rgba(0, 0, 0, 0.8) 70%, 
    rgba(0, 0, 0, 0.35) 85%, 
    rgba(0, 0, 0, 0) 100%
  );
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dedicated Mobile Viewport Fine-Tuning (375px, 390px, 430px) */
@media (max-width: 640px) {
  .hero-giant-title-wrapper {
    top: 15%;
  }

  .hero-giant-title {
    font-size: clamp(3.1rem, 17vw, 4.75rem);
    letter-spacing: 0.015em;
  }

  .hero-cover-portrait-wrapper {
    max-width: clamp(270px, 74vw, 340px);
    margin-top: -24px;
  }

  .hero-cover-portrait-img {
    max-height: clamp(340px, 52vh, 440px);
  }
}

/* Subtle Editorial Reveal Animations */
@keyframes heroTitleReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.98);
  }
  100% {
    opacity: 0.98;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes heroPortraitReveal {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroContentReveal {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-hero-title-reveal {
  animation: heroTitleReveal 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-hero-portrait-reveal {
  animation: heroPortraitReveal 700ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.animate-hero-content-reveal {
  animation: heroContentReveal 600ms cubic-bezier(0.16, 1, 0.3, 1) 240ms both;
}

/* =========================================================================
   🎨 GIANT HIDDEN ARTWORK / PRINTED ART POSTER MARGINS
   Massive cropped word fragments (THINK, BUILD, BREAK, LEARN, SHIP) in margins
   ========================================================================= */

.poster-artwork-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 1199px) {
  .poster-artwork-layer {
    display: none !important;
  }
}

.poster-word-row {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  will-change: transform;
}

.poster-frag-left {
  font-family: var(--font-editorial);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  line-height: 0.78;
  font-size: clamp(140px, 15vw, 260px);
  color: rgba(17, 17, 17, 0.038);
  -webkit-text-stroke: 1.5px rgba(17, 17, 17, 0.08);
  transform: translateX(-12%);
  text-align: left;
  transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
}

.poster-frag-right {
  font-family: var(--font-editorial);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  line-height: 0.78;
  font-size: clamp(140px, 15vw, 260px);
  color: rgba(17, 17, 17, 0.038);
  -webkit-text-stroke: 1.5px rgba(17, 17, 17, 0.08);
  transform: translateX(12%);
  text-align: right;
  transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
}

/* Subtle hairline axis connecting the poster fragments */
.poster-axis-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 17, 0.06) 0%,
    rgba(17, 17, 17, 0.02) 20%,
    transparent 35%,
    transparent 65%,
    rgba(17, 17, 17, 0.02) 80%,
    rgba(17, 17, 17, 0.06) 100%
  );
  pointer-events: none;
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  .poster-word-row {
    transform: none !important;
  }
}




