/*
 * Siddhartha Chaturvedi • Strategic AI Visionary
 * Design: Bauhaus x Japanese Minimalism
 * "Less, but better." — Dieter Rams
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Palette: Washi Paper & Sumi Ink */
  --washi: #F2F0E9;
  --bg-washi: #F2F0E9;
  --ink: #1A1A1A;
  --ink-light: #666666;
  --vermillion: #E34234;
  --line: #D4D2CC;
  --paper-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");

  /* Typography */
  --font-primary: 'Inter', -apple-system, system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing (Ma - Negative Space) */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-washi);
  background-color: var(--bg-washi);
  overflow-x: hidden;
  overflow-y: scroll;
  position: relative;
}

/* Main content container with max-width */
.main-container {
  max-width: 1800px;
  margin: 0 auto;
}

/* Paper Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--paper-texture);
  pointer-events: none;
  z-index: 50;
  opacity: 0.4;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Bauhaus Typography */
h1,
h2,
h3,
h4 {
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-washi);
}

::-webkit-scrollbar-thumb {
  background: var(--ink);
}

/* ============================================
   UTILITIES
   ============================================ */
.border-ink {
  border-color: var(--ink);
}

/* Fluid Responsive Utilities */
.fluid-hero-name {
  font-size: clamp(2.5rem, 8vw, 9rem);
  line-height: 0.9;
}

.fluid-photo {
  width: clamp(6rem, 15vw, 12rem);
  height: clamp(6rem, 15vw, 12rem);
}

.adaptive-container {
  padding-left: clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
}

/* Responsive section padding with better mobile margins */
.section-padding {
  padding-left: clamp(1.5rem, 5vw, 6rem);
  padding-right: clamp(1.5rem, 5vw, 6rem);
}

/* Max-width container for content sections */
.content-max-width {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.fluid-subtext {
  font-size: clamp(0.75rem, 1.5vw, 1.375rem);
}

/* ============================================
   LOGO COMPONENT
   ============================================ */
.logo-container {
  position: relative;
  width: 32px;
  height: 32px;
}

.logo-dot {
  width: 32px;
  height: 32px;
  background-color: var(--vermillion);
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.logo-pic {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: grayscale(100%) contrast(1.3) brightness(0.9);
}

.logo-container:hover .logo-dot {
  opacity: 0;
}

.logo-container:hover .logo-pic {
  opacity: 1;
}

/* ============================================
   TEXT EFFECTS
   ============================================ */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* ============================================
   IMAGE FILTERS
   ============================================ */
.img-ink-filter {
  filter: grayscale(100%) contrast(1.2) brightness(0.95);
  mix-blend-mode: multiply;
}

/* ============================================
   TICKER ANIMATION
   ============================================ */
.ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  animation: scroll 40s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-in;
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

@keyframes bounce {

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

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

/* ============================================
   MOBILE PROGRESS INDICATOR
   ============================================ */
#mobile-progress {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--vermillion);
  background: rgba(242, 240, 233, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

/* ============================================
   STAGE & SCREENS (Legacy - may not be used)
   ============================================ */
#stage {
  width: 100%;
  height: auto;
}

.screen {
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  position: relative;
  border-bottom: 1px solid var(--line);
}

.screen:last-child {
  border-bottom: none;
}

.screen-content {
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.screen-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.screen.in-view .screen-content {
  animation: fadeIn 0.8s ease-out;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-profile {
  margin-bottom: var(--space-md);
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--vermillion);
  object-fit: cover;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
  color: var(--ink);
  line-height: 1.1;
}

.hero-tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--ink-light);
  max-width: 400px;
  margin: 0 auto var(--space-lg);
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--vermillion);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint span:first-child {
  font-size: 1.5rem;
}

/* ============================================
   VALUE FUNCTION SECTION
   ============================================ */
.vf-header {
  margin-bottom: var(--space-lg);
}

.vf-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
  color: var(--ink);
}

.vf-subtitle {
  font-size: 1.125rem;
  color: var(--ink-light);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.triad-visual {
  margin-bottom: var(--space-lg);
}

.triad-visual svg {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.triad-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.triad-card {
  background: var(--washi);
  border: 1px solid var(--line);
  padding: var(--space-md);
  text-align: left;
  transition: border-color 0.3s ease;
}

.triad-card:hover {
  border-color: var(--vermillion);
}

.card-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.card-sublabel {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--vermillion);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.card-content {
  font-size: 0.9375rem;
  color: var(--ink-light);
  line-height: 1.7;
}

.executive-directive {
  background: rgba(227, 66, 52, 0.05);
  border: 1px solid var(--vermillion);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.directive-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: var(--space-sm);
}

.directive-text {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-lead {
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.about-description {
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   CTA SECTION
   ============================================ */
.availability-text {
  font-size: 1.125rem;
  color: var(--ink-light);
  margin-bottom: var(--space-md);
}

.cta-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border: 1px solid var(--line);
  background: var(--washi);
  transition: border-color 0.3s ease;
  text-decoration: none;
}

.cta-link:hover {
  border-color: var(--vermillion);
}

.cta-label {
  font-size: 0.75rem;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.cta-handle {
  font-size: 1.125rem;
  color: var(--ink);
  font-weight: 600;
}

.location-text {
  font-size: 0.875rem;
  color: var(--ink-light);
  font-family: var(--font-mono);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--washi);
}

.quote-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.quote-source {
  font-size: 0.875rem;
  color: var(--ink-light);
  font-family: var(--font-mono);
}

.copyright {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--ink-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile-first: Better margins on small screens */
@media (max-width: 767px) {
  body {
    padding: 0 1rem;
  }
  
  .adaptive-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Tablet and up */
@media (min-width: 768px) {
  .screen {
    padding: var(--space-xl) var(--space-md);
  }

  .screen-content {
    max-width: 1000px;
  }

  .profile-pic {
    width: 150px;
    height: 150px;
  }

  .triad-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .cta-links {
    flex-direction: row;
    max-width: 600px;
  }

  .cta-link {
    flex: 1;
  }
}

/* Large screens: Prevent content from becoming too wide */
@media (min-width: 1920px) {
  body {
    padding: 0 calc((100vw - 1800px) / 2);
  }
}

/* Extra large screens: Even more constraints */
@media (min-width: 2560px) {
  body {
    padding: 0 calc((100vw - 2000px) / 2);
  }
}