/* ==========================================================================
   BitByHuman - CSS Design System & Layout System
   Aesthetics: Sophisticated, clean UI/UX, premium dark mode, rich micro-animations.
   ========================================================================== */

/* --- Custom Variables & Theme Tokens --- */
:root {
  /* Color Palette (Dark Theme Default) */
  --bg-base: #050507;
  --bg-surface: #0e0f12;
  --bg-surface-glass: rgba(14, 15, 18, 0.7);
  --bg-card: #14161d;
  --bg-card-hover: #191c25;
  
  /* Accent Colors (Green & Forest theme aligned with Logo) */
  --color-bit: #00e676;       /* Tech mint green representing code logic */
  --color-bit-rgb: 0, 230, 118;
  --color-human: #4c9048;     /* Organic forest green matching original logo */
  --color-human-rgb: 76, 144, 72;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #9aa0a6;
  --text-muted: #606468;
  --text-accent: var(--color-bit);

  /* Borders & Radius */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.7);
  --glow-bit: 0 0 20px rgba(var(--color-bit-rgb), 0.35);
  --glow-human: 0 0 20px rgba(var(--color-human-rgb), 0.35);

  /* Button Overrides */
  --btn-accent-bg: #ffffff;
  --btn-accent-text: #050507;
  --btn-outline-hover-bg: rgba(255, 255, 255, 0.03);

  /* Marquee Outlines */
  --marquee-stroke: rgba(255, 255, 255, 0.15);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 7rem;

  /* Radius Rounding */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 9999px;

  /* Easing & Transition */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-normal: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
}

/* Light Theme Variables Override */
[data-theme="light"] {
  --bg-base: #f5f5f7;
  --bg-surface: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.7);
  --bg-card: #ffffff;
  --bg-card-hover: #fbfbfd;
  
  --color-bit: #009640;
  --color-bit-rgb: 0, 150, 64;
  --color-human: #366933;
  --color-human-rgb: 54, 105, 51;
  
  --text-primary: #1d1d1f;
  --text-secondary: #515154;
  --text-muted: #86868b;
  --text-accent: var(--color-bit);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 0, 0, 0.15);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --glow-bit: 0 0 20px rgba(var(--color-bit-rgb), 0.15);
  --glow-human: 0 0 20px rgba(var(--color-human-rgb), 0.15);

  --btn-accent-bg: #1d1d1f;
  --btn-accent-text: #ffffff;
  --btn-outline-hover-bg: rgba(0, 0, 0, 0.03);

  --marquee-stroke: rgba(0, 0, 0, 0.1);
}

/* --- Base Resets & Typography --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background: var(--bg-base);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-round);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* --- Global Layout Utilities --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 2;
}

.section-padding {
  padding: var(--space-xxl) 0;
}

.text-gradient {
  background: var(--color-accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }

/* Grid / Flex Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: var(--space-lg); }
  .section-padding { padding: var(--space-xl) 0; }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: var(--transition-normal);
}

.header.scrolled {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border-bottom: 1px solid var(--border-color);
  height: 64px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--text-primary) !important;
}

.logo svg,
.logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent-grad);
  transition: var(--transition-fast);
  border-radius: var(--radius-round);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: var(--space-xxl) var(--space-lg) var(--space-lg);
    transition: var(--transition-normal);
  }
  .nav-menu.active { right: 0; }
  .nav-actions { display: none; } /* Hide main CTA inside mobile header, display in menu instead if needed */
}

/* --- Premium Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-round);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  border: 1px solid transparent;
  gap: var(--space-xs);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-base);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.btn-accent {
  background: var(--btn-accent-bg);
  color: var(--btn-accent-text);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: var(--btn-outline-hover-bg);
  transform: translateY(-2px);
}

.btn-text {
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  background: none;
  border: none;
}

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

.btn-theme {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  margin-right: var(--space-xs);
  outline: none;
}

.btn-theme:hover {
  border-color: var(--text-primary);
  background: var(--btn-outline-hover-bg);
  transform: scale(1.05);
}

.btn-theme svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.btn-theme:active svg {
  transform: scale(0.85);
}

/* Toggle Sun/Moon display depending on active theme attribute */
.sun-icon {
  display: block;
}

.moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon {
  display: block;
}

/* --- Hero Section & Canvas --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: all;
  opacity: 0.85;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-round);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.badge-glow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-bit);
  box-shadow: 0 0 8px var(--color-bit);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--color-bit); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
  line-height: 1.05;
}

.hero-title span {
  display: block;
}

.hero-desc {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

@media (max-width: 576px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator .mouse-icon {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse-wheel {
  width: 4px;
  height: 6px;
  background: var(--text-muted);
  border-radius: var(--radius-round);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel-scroll 1.6s infinite;
}

@keyframes wheel-scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* --- Section Title Header --- */
.section-header {
  max-width: 650px;
  margin: 0 auto var(--space-xl);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-bit);
  margin-bottom: var(--space-xs);
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
}

/* --- Philosophy / Split Section --- */
.philosophies {
  position: relative;
}

.phil-panel {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.phil-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(var(--grad-color-rgb), 0.1) 0%, transparent 60%);
  z-index: 1;
  transition: var(--transition-normal);
}

.phil-panel.bit-panel {
  --grad-color-rgb: var(--color-bit-rgb);
  border-bottom: 2px solid rgba(var(--color-bit-rgb), 0.2);
}

.phil-panel.human-panel {
  --grad-color-rgb: var(--color-human-rgb);
  border-bottom: 2px solid rgba(var(--color-human-rgb), 0.2);
}

.phil-panel:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
}

.phil-panel.bit-panel:hover {
  box-shadow: var(--shadow-md), var(--glow-bit);
  border-bottom-color: var(--color-bit);
}

.phil-panel.human-panel:hover {
  box-shadow: var(--shadow-md), var(--glow-human);
  border-bottom-color: var(--color-human);
}

.phil-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
}

.phil-panel.bit-panel .phil-icon svg { color: var(--color-bit); }
.phil-panel.human-panel .phil-icon svg { color: var(--color-human); }

.phil-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.phil-panel h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.phil-panel p {
  font-size: 1rem;
}

.phil-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.bit-panel .phil-meta { color: var(--color-bit); }
.human-panel .phil-meta { color: var(--color-human); }

/* --- Brand Pillars Section --- */
.pillars-section {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
}

.pillar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.4s var(--ease-out-expo);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pillar-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.pillar-icon {
  margin-bottom: var(--space-md);
}

.pillar-icon svg {
  width: 40px;
  height: 40px;
  color: var(--text-primary);
  stroke-width: 1.5px;
}

.pillar-card h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Stand Against AI Noise (Marquee & Editorial) --- */
.noise-section {
  background: #000;
  overflow: hidden;
  position: relative;
}

.marquee-container {
  display: flex;
  width: 100vw;
  overflow: hidden;
  user-select: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02) 50%, transparent);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-xl);
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  gap: var(--space-xl);
  animation: scroll-marquee 20s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.marquee-text-outline {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  color: transparent;
}

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

.noise-editorial {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.noise-editorial h3 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.noise-editorial p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* --- Interactive Mobile Showcase --- */
.showcase-section {
  position: relative;
}

.showcase-content {
  align-items: center;
}

.showcase-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-device-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.device-glow {
  position: absolute;
  width: 380px;
  height: 600px;
  border-radius: 50px;
  background: radial-gradient(circle, rgba(var(--color-bit-rgb), 0.15) 0%, rgba(var(--color-human-rgb), 0.1) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
}

/* Sophisticated CSS Phone Frame */
.smartphone {
  width: 320px;
  height: 640px;
  background: #000;
  border-radius: 40px;
  border: 8px solid #222;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8), 0 0 0 2px rgba(255,255,255,0.05);
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Camera Punch Hole */
.smartphone::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: #000;
  border-radius: 10px;
  z-index: 10;
}

.phone-screen {
  flex: 1;
  background: #08090c;
  display: flex;
  flex-direction: column;
  padding: 45px 16px 16px;
  font-size: 0.8rem;
  color: var(--text-primary);
  user-select: none;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.phone-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
}

.phone-nav-icon {
  width: 20px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phone-nav-icon span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
}

.phone-hero-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
  position: relative;
  overflow: hidden;
}

.phone-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(var(--color-bit-rgb), 0.1) 0%, transparent 60%);
  animation: rotate-bg 10s linear infinite;
}

@keyframes rotate-bg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.phone-hero-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}

.phone-hero-card p {
  font-size: 0.7rem;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

.phone-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(20px);
  opacity: 0;
  animation: phone-slide-in 0.6s var(--ease-out-expo) forwards;
}

.phone-item:nth-child(1) { animation-delay: 0.2s; }
.phone-item:nth-child(2) { animation-delay: 0.4s; }
.phone-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes phone-slide-in {
  to { transform: translateY(0); opacity: 1; }
}

.phone-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.phone-item:nth-child(1) .phone-item-dot { background: var(--color-bit); box-shadow: 0 0 6px var(--color-bit); }
.phone-item:nth-child(2) .phone-item-dot { background: var(--color-human); box-shadow: 0 0 6px var(--color-human); }
.phone-item:nth-child(3) .phone-item-dot { background: #ffb703; box-shadow: 0 0 6px #ffb703; }

.phone-item-text {
  flex: 1;
}

.phone-item-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.phone-item-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.phone-action-btn {
  background: var(--text-primary);
  color: #000;
  padding: 8px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  font-size: 0.75rem;
  margin-top: auto;
  cursor: pointer;
  transition: transform 0.2s;
}

.phone-action-btn:active {
  transform: scale(0.96);
}

/* --- Contact / Collaboration Form --- */
.contact-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
  position: relative;
}

.contact-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 680px;
  margin: 0 auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (max-width: 576px) {
  .contact-card { padding: var(--space-lg) var(--space-sm); }
}

.form-group {
  margin-bottom: var(--space-md);
  position: relative;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-normal);
  outline: none;
}

.form-label {
  position: absolute;
  left: 1.2rem;
  top: 1.1rem;
  color: var(--text-secondary);
  pointer-events: none;
  transition: var(--transition-normal);
  font-size: 1rem;
  background: transparent;
}

/* Float Label Animation */
.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -8px;
  left: 1rem;
  font-size: 0.8rem;
  color: var(--color-bit);
  background: var(--bg-surface);
  padding: 0 6px;
}

.form-control:focus {
  border-color: var(--color-bit);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(var(--color-bit-rgb), 0.15);
}

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

.form-control:focus ~ .form-label {
  color: var(--color-bit);
}

/* Send Button animations */
.contact-btn {
  width: 100%;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
}

/* Form success message styling */
.form-status {
  text-align: center;
  font-size: 0.95rem;
  margin-top: var(--space-sm);
  height: 24px;
  transition: var(--transition-fast);
  opacity: 0;
}

.form-status.success {
  color: var(--color-bit);
  opacity: 1;
}

.form-status.error {
  color: var(--color-human);
  opacity: 1;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-base);
  padding: var(--space-xl) 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .footer-top { flex-direction: column; gap: var(--space-lg); }
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: var(--space-xs);
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
}

@media (max-width: 576px) {
  .footer-links { flex-direction: column; gap: var(--space-md); }
}

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-column a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.scroll-reveal.reveal-left {
  transform: translateX(-30px);
}

.scroll-reveal.reveal-right {
  transform: translateX(30px);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translate(0) !important;
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Manifesto Visual Grid & Image Styling */
.manifesto-visual-wrapper {
  margin-top: var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: relative;
  height: 480px;
  background: var(--bg-surface);
}

.manifesto-visual-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.manifesto-visual-wrapper:hover img {
  transform: scale(1.025);
}

@media (max-width: 768px) {
  .manifesto-visual-wrapper {
    height: 300px;
  }
}
