@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..700;1,400..700&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* --- Theme Variables --- */
:root {
  /* Fonts */
  --font-heading-classic: 'Playfair Display', Georgia, serif;
  --font-body-classic: 'EB Garamond', Georgia, serif;
  --font-heading-modern: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body-modern: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Font weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  
  /* Layout constraints */
  --header-height-max: 90px;
  --header-height-min: 60px;
  --content-width: 1200px;
}

/* CLASSIC GILDED THEME */
body.theme-classic {
  --bg-primary: #f5eee6;
  --bg-secondary: #e8ded2;
  --bg-tertiary: #dfd2c1;
  --text-primary: #2b1d0f;
  --text-secondary: #5a4531;
  --accent: #8c2512;
  --accent-secondary: #b35936;
  --accent-glow: rgba(140, 37, 18, 0.15);
  --border-color: #cbbca9;
  --card-shadow: 0 10px 30px rgba(43, 29, 15, 0.08), 0 1px 3px rgba(43, 29, 15, 0.05);
  --font-heading: var(--font-heading-classic);
  --font-body: var(--font-body-classic);
  --accent-gradient: linear-gradient(135deg, #8c2512 0%, #b35936 100%);
  --nav-backdrop: rgba(245, 238, 230, 0.9);
  --card-bg: #f9f5f0;
  --card-border: 1px solid rgba(140, 37, 18, 0.2);
  --glow-shadow: none;
}

/* MODERN NEO-UNION THEME */
body.theme-modern {
  --bg-primary: #0a0b0e;
  --bg-secondary: #111318;
  --bg-tertiary: #191c24;
  --text-primary: #f3f4f7;
  --text-secondary: #9ea3b0;
  --accent: #00f2fe;
  --accent-secondary: #4facfe;
  --accent-glow: rgba(0, 242, 254, 0.25);
  --border-color: #232833;
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 242, 254, 0.1);
  --font-heading: var(--font-heading-modern);
  --font-body: var(--font-body-modern);
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --nav-backdrop: rgba(10, 11, 14, 0.85);
  --card-bg: rgba(25, 28, 36, 0.6);
  --card-border: 1px solid rgba(255, 255, 255, 0.08);
  --glow-shadow: 0 0 20px var(--accent-glow);
}

/* --- Base Body Styling --- */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 1.15rem;
  position: relative;
  min-height: 100vh;
}

/* Classic Texture Overlay - dynamically embedded SVG noise for weathered look */
body.theme-classic::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.28;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'><filter id='noiseFilter'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23noiseFilter)'/></svg>");
  mix-blend-mode: multiply;
}

/* Modern grid pattern overlay for Cyberpunk vibe */
body.theme-modern::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, var(--text-secondary) 1px, transparent 1px),
    linear-gradient(to bottom, var(--text-secondary) 1px, transparent 1px);
}

/* Adjust all headings and text sizes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  color: var(--text-primary);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* --- Floating Header (Shrinking on Scroll) --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-max);
  z-index: 1000;
  background-color: var(--nav-backdrop);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  /* Scroll Timeline properties */
  animation: shrink-header auto linear both;
  animation-timeline: scroll(block root);
  animation-range: 0px 120px;
}

@keyframes shrink-header {
  to {
    height: var(--header-height-min);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: var(--weight-medium);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Theme Toggle Control */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-switch-label {
  font-size: 0.85rem;
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.theme-switch {
  display: inline-block;
  height: 28px;
  position: relative;
  width: 60px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: var(--bg-tertiary);
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
  border: 1px solid var(--border-color);
}

.slider:before {
  background: var(--accent-gradient);
  bottom: 3px;
  content: "";
  height: 20px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 20px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .slider:before {
  transform: translateX(30px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--header-height-max);
  background-color: var(--bg-secondary);
  overflow: hidden;
}

body.theme-classic .hero {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(140, 37, 18, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(179, 89, 54, 0.04) 0%, transparent 40%);
}

body.theme-modern .hero {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.03) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(79, 172, 254, 0.05) 0%, transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  z-index: 5;
}

.tagline {
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tagline::before {
  content: "";
  width: 20px;
  height: 2px;
  background-color: var(--accent);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

body.theme-classic .hero-title {
  font-style: italic;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: var(--weight-semibold);
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow), var(--glow-shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

body.theme-classic .btn-secondary:hover {
  background-color: rgba(43, 29, 15, 0.04);
}

/* Hero Image Container */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.hero-image-container {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
  position: relative;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  z-index: 2;
  position: relative;
}

/* Background elements for portrait */
.hero-image-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: var(--accent-gradient);
  opacity: 0.15;
  filter: blur(50px);
  z-index: 1;
  border-radius: 50%;
}

.hero-frame {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 1px solid var(--accent);
  opacity: 0.3;
  border-radius: 30px;
  pointer-events: none;
  z-index: 0;
}

body.theme-classic .hero-frame {
  border: 2px double var(--accent);
  border-radius: 8px;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
}

body.theme-classic .hero-portrait {
  border-radius: 8px;
}

/* --- Section Formatting --- */
.section {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-subtitle {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  font-weight: var(--weight-bold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.8rem;
}

/* --- Scroll Entry Effects --- */
/* Applied via CSS View Timeline for supported browsers, fallback in JS */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .scroll-reveal {
      animation: reveal-up auto linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 45%;
    }
  }
}

/* --- Reanimation Story Section --- */
.reanim-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.reanim-narrative p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.reanim-narrative p strong {
  color: var(--text-primary);
}

/* Sleek Journal/Terminal component */
.reanim-console {
  background-color: var(--bg-tertiary);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-body-modern);
}

body.theme-classic .reanim-console {
  font-family: var(--font-body-classic);
  background-color: #ebdcd0;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 4px;
}

.console-header {
  background-color: rgba(0, 0, 0, 0.15);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

body.theme-classic .console-header {
  border-bottom: 1px dashed var(--border-color);
  background: transparent;
  padding: 0 0 0.8rem 0;
  margin-bottom: 1rem;
}

.console-dots {
  display: flex;
  gap: 0.5rem;
}

.console-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
}

body.theme-modern .console-dot:nth-child(1) { background-color: #ff5f56; }
body.theme-modern .console-dot:nth-child(2) { background-color: #ffbd2e; }
body.theme-modern .console-dot:nth-child(3) { background-color: #27c93f; }

.console-title {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: var(--weight-bold);
}

body.theme-classic .console-title {
  font-size: 1rem;
  text-transform: none;
  font-family: var(--font-heading);
  font-style: italic;
}

.console-body {
  padding: 2rem;
  max-height: 400px;
  overflow-y: auto;
  font-size: 1rem;
}

body.theme-classic .console-body {
  padding: 0;
  font-size: 1.15rem;
}

.console-log-entry {
  margin-bottom: 1.5rem;
}

.console-log-entry:last-child {
  margin-bottom: 0;
}

.log-date {
  color: var(--accent);
  font-weight: var(--weight-bold);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading-modern);
}

body.theme-classic .log-date {
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

/* --- Manifesto / Platform Section --- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.platform-card {
  background-color: var(--card-bg);
  border: var(--card-border);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

body.theme-classic .platform-card {
  border-radius: 4px;
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), var(--glow-shadow);
  border-color: var(--accent);
}

body.theme-modern .platform-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.theme-modern .platform-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--accent);
  border: 1px solid var(--border-color);
}

body.theme-classic .card-icon {
  background-color: var(--bg-secondary);
  border-radius: 4px;
}

.platform-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.platform-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  flex-grow: 1;
}

/* --- Ventures Section (Podcast & Keynotes) --- */
.venture-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 8rem;
}

.venture-block:last-child {
  margin-bottom: 0;
  grid-template-columns: 1fr 1.1fr;
}

.venture-block:last-child .venture-image-wrapper {
  grid-column: 1;
}

.venture-block:last-child .venture-content {
  grid-column: 2;
}

.venture-image-wrapper {
  position: relative;
}

.venture-image {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: var(--card-border);
}

body.theme-classic .venture-image {
  border-radius: 4px;
}

/* Custom Interactive Audio Player Component */
.audio-player-card {
  background-color: var(--bg-tertiary);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
}

body.theme-classic .audio-player-card {
  border-radius: 4px;
  background-color: var(--bg-secondary);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.player-cover {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.player-meta {
  flex-grow: 1;
}

.episode-title {
  font-size: 1.15rem;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.show-title {
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--weight-bold);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-play-pause {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--accent-glow);
}

.btn-play-pause:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px var(--accent-glow);
}

.btn-play-pause svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.player-progress-container {
  flex-grow: 1;
}

.player-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 28%;
  background: var(--accent-gradient);
  border-radius: 3px;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 28%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background-color: var(--text-primary);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.progress-bar-track:hover .progress-thumb {
  opacity: 1;
}

/* Spin graphic when playing */
.spinning-disc-container {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 90px;
  height: 90px;
  z-index: 10;
}

.disc-vinyl {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #0b0d10;
  border: 4px solid #1a1e24;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 6s linear infinite;
  animation-play-state: paused;
}

.disc-vinyl.playing {
  animation-play-state: running;
}

.disc-label {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 1px solid var(--border-color);
}

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

/* --- Timeline Section --- */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

body.theme-modern .timeline-line {
  background-image: linear-gradient(to bottom, var(--border-color), var(--accent), var(--border-color));
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 50%;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: 50%;
  padding-right: 0;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 10px;
  right: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 3px solid var(--accent);
  z-index: 5;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -10px;
}

.timeline-content {
  background-color: var(--card-bg);
  border: var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

body.theme-classic .timeline-content {
  border-radius: 4px;
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: var(--weight-bold);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* --- Contact / Booking Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.contact-details svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.booking-form-card {
  background-color: var(--card-bg);
  border: var(--card-border);
  border-radius: 16px;
  padding: 3.5rem 3rem;
  box-shadow: var(--card-shadow);
}

body.theme-classic .booking-form-card {
  border-radius: 4px;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

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

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: var(--weight-semibold);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
}

body.theme-classic .form-control {
  border-radius: 4px;
  background-color: #fcfcfc;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* User verification helper styles */
.form-control:user-valid {
  border-color: #27c93f;
}

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

/* --- Footer --- */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 3rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 2rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-secondary);
}

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

.copyright {
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .tagline {
    justify-content: center;
  }
  
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .reanim-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .venture-block,
  .venture-block:last-child {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .venture-block:last-child .venture-image-wrapper {
    grid-column: auto;
  }
  
  .venture-block:last-child .venture-content {
    grid-column: auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* In a full project we'd use a mobile menu, keeping it simple here */
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .platform-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-line {
    left: 2rem;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 4rem;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 4rem;
  }
  
  .timeline-dot {
    left: calc(2rem - 8px);
    right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: calc(2rem - 8px);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
