/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&family=Share+Tech+Mono&display=swap');

/* CSS Variables */
:root {
  /* Colors */
  --bg-primary: #0d0f11;
  --bg-secondary: #14171a;
  --bg-tertiary: #1b1e22;
  --primary: #ff6b00; /* Caution Orange */
  --primary-hover: #e05e00;
  --primary-glow: rgba(255, 107, 0, 0.4);
  --secondary: #ffb800; /* Sand Gold */
  --accent: #00e5ff; /* Cyan status light */
  
  --text-primary: #f8f9fa;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 107, 0, 0.2);
  
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;

  /* Layout */
  --nav-height: 80px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border: 2px solid var(--bg-primary);
  border-radius: 10px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Blueprint Grid Background Pattern */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: -1;
}

/* Utility Components */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-orange-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #e05e00 100%);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--primary-glow);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.6);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-primary);
  padding: 13px 27px;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

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

/* Danger Striped Accent Divider */
.danger-stripes {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    #000,
    #000 10px,
    var(--primary) 10px,
    var(--primary) 20px
  );
  width: 100%;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(13, 15, 17, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(13, 15, 17, 0.95);
  height: 70px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.logo svg {
  fill: var(--primary);
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: radial-gradient(circle at 70% 30%, rgba(255, 107, 0, 0.08) 0%, rgba(13, 15, 17, 0) 60%),
              var(--bg-primary);
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  max-width: 650px;
}

.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 15px;
  display: block;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.05;
  margin-bottom: 25px;
  font-weight: 900;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Hero Scene Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Animated gear ring */
.gear-ring {
  position: absolute;
  width: 90%;
  height: 90%;
  border: 2px dashed rgba(255, 107, 0, 0.2);
  border-radius: 50%;
  animation: rotateGear 40s linear infinite;
}

.gear-ring::before {
  content: '⚙️';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--primary-glow);
}

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

.hero-image-wrap {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: rgba(20, 23, 26, 0.8);
  backdrop-filter: blur(10px);
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-image-wrap img {
  width: 95%;
  height: 95%;
  object-fit: cover;
  border-radius: 50%;
}

/* Interactive Sandpit Section */
.sandpit-section {
  position: relative;
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
  position: relative;
  z-index: 10;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: inline-block;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* The Sandbox Simulator Grid */
.sandbox-simulator {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 25px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 10;
}

.canvas-container {
  position: relative;
  width: 100%;
  background-color: #2b2621; /* Darker sand base */
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 3px solid #14110f;
  box-shadow: inset 0 10px 30px rgba(0,0,0,0.8);
  cursor: crosshair;
}

#sandpitCanvas {
  display: block;
  width: 100%;
  height: 500px; /* Base height */
  background-color: transparent;
}

/* Simulator Remote Control / Dashboard Sidebar */
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #191c20;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 20px;
  color: var(--text-primary);
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00e5ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00e5ff;
}

.telemetry-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.telemetry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.telemetry-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: bold;
}

.control-tips {
  margin-top: 25px;
  background: rgba(255, 107, 0, 0.05);
  border: 1px dashed var(--border-accent);
  border-radius: 8px;
  padding: 12px;
}

.control-tips h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.control-tips ul {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.control-tips li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.key-badge {
  background: #2d3748;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-bottom: 2px solid #1a202c;
}

.audio-controls {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.audio-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sound Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #3e444d;
  transition: .4s;
  border-radius: 22px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

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

.game-reward {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(255,184,0,0.1) 0%, rgba(255,107,0,0.1) 100%);
  border: 1px solid rgba(255, 184, 0, 0.2);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  animation: pulseBorder 2s infinite alternate;
}

@keyframes pulseBorder {
  0% { border-color: rgba(255, 184, 0, 0.2); }
  100% { border-color: rgba(255, 107, 0, 0.5); }
}

.reward-title {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.reward-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Blueprint Menu Section */
.menu-section {
  padding: 100px 0;
  position: relative;
  background: radial-gradient(circle at 10% 80%, rgba(255, 184, 0, 0.04) 0%, rgba(13, 15, 17, 0) 50%),
              var(--bg-primary);
}

.menu-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.blueprint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 10;
}

@media(max-width: 992px) {
  .blueprint-grid {
    grid-template-columns: 1fr;
  }
}

.blueprint-panel {
  background: rgba(20, 23, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  position: relative;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

/* Blueprint grid texture specifically for menu panels */
.blueprint-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(0, 229, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, 0.015) 1px, transparent 1px);
  pointer-events: none;
  z-index: -1;
}

.panel-header-blueprint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.panel-header-blueprint h3 {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-header-blueprint h3 svg {
  fill: var(--primary);
  width: 28px;
  height: 28px;
}

.blueprint-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary);
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  position: relative;
}

.menu-item:hover {
  background: rgba(255, 107, 0, 0.02);
  border-color: rgba(255, 107, 0, 0.15);
  transform: translateX(8px);
}

.menu-item-details {
  flex: 1;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.menu-item-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.menu-item-price {
  font-family: var(--font-mono);
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.1rem;
}

.menu-item-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  max-width: 90%;
}

.menu-item-icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.badge-dietary {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-dietary.chef-spec {
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary);
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.badge-dietary.veg {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

/* About / Experience Section */
.about-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

@media(max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 35px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  background: rgba(255, 107, 0, 0.03);
  border-color: rgba(255, 107, 0, 0.15);
  transform: translateY(-5px);
}

.feature-card svg {
  fill: var(--primary);
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.feature-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Right-side gallery/stack for the experience section */
.about-image-stack {
  position: relative;
  height: 450px;
}

.about-img {
  position: absolute;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-main {
  width: 75%;
  height: 80%;
  top: 0;
  left: 0;
  z-index: 2;
}

.about-img-sub {
  width: 60%;
  height: 60%;
  bottom: 0;
  right: 0;
  z-index: 3;
  border: 4px solid var(--bg-secondary);
}

.about-image-stack:hover .about-img-main {
  transform: translate(-10px, -10px) scale(1.02);
}

.about-image-stack:hover .about-img-sub {
  transform: translate(10px, 10px) scale(1.02);
}

/* Dispatcher / Reservation Section */
.reservation-section {
  padding: 100px 0;
  background-color: var(--bg-primary);
  position: relative;
}

.dispatch-panel {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.dispatch-header {
  background: linear-gradient(90deg, #1b2025, #111417);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--primary);
}

.dispatch-title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dispatch-title svg {
  fill: var(--primary);
  width: 24px;
  height: 24px;
}

.dispatch-form {
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

@media(max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
  outline: none;
}

.form-group select option {
  background: var(--bg-tertiary);
  color: #fff;
}

.submit-btn-wrap {
  text-align: center;
}

.submit-btn-wrap .btn-primary {
  width: 100%;
  max-width: 300px;
}

/* Footer styling */
footer {
  background-color: #08090a;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

@media(max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

.footer-info-col {
  max-width: 400px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 15px;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.social-icon:hover svg {
  fill: #fff;
}

.footer-col h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-contact-item svg {
  fill: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media(max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Custom Scroll & Interactive animations */

/* Heavy construction machine floating or sliding along screen edge */
.scrolling-truck-decor {
  position: absolute;
  width: 150px;
  height: auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.5s ease-out;
}

.decor-excavator {
  bottom: 10%;
  left: -50px;
}

.decor-loader {
  top: 15%;
  right: -50px;
}

/* Mobile Responsiveness Rules */
@media(max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 40px;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .sandbox-simulator {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media(max-width: 768px) {
  .nav-links {
    display: none; /* Can toggle with JS */
  }
  .nav-toggle {
    display: block;
  }
  
  .nav-right .btn-secondary {
    display: none; /* Hide primary reservation button on small header */
  }
}

/* Joystick Overlay for mobile sandpit controls */
.mobile-joystick-container {
  display: none; /* Visual fallback in canvas / sidebar controls */
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

@media(max-width: 768px) {
  .mobile-joystick-container {
    display: flex;
  }
}

.joystick-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.joystick-btn:active {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* ==========================================================================
   Video Overlay Modal Styling
   ========================================================================== */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 15, 17, 0.85);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal-overlay.open {
  display: flex;
  opacity: 1;
}

.video-modal-content {
  width: 90%;
  max-width: 800px;
  background: var(--bg-tertiary);
  border: 2px solid var(--primary-glow);
  border-radius: var(--border-radius-lg);
  position: relative;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.video-modal-overlay.open .video-modal-content {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.video-modal-close:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Extra Animations & Scroll Reveals
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse glow animation for CTA video triggers */
#hero-btn-video, #sandpit-btn-video {
  position: relative;
  animation: btnPulseGlow 3s infinite alternate;
}

@keyframes btnPulseGlow {
  0% {
    box-shadow: 0 0 5px rgba(255, 107, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.3);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
    border-color: var(--primary);
  }
}

/* Animated brand logo components */
.logo-steam {
  transform-origin: bottom;
  animation: logoSteam 2.2s ease-in-out infinite;
}

.logo-steam-1 {
  animation-delay: 0s;
}

.logo-steam-2 {
  animation-delay: 1.1s;
}

@keyframes logoSteam {
  0%, 100% {
    transform: translateY(0) scaleY(1) scaleX(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-3px) scaleY(1.15) scaleX(0.95);
    opacity: 1;
  }
}

/* Wiggle excavator arm on logo hover */
.logo:hover .logo-arm {
  transform-origin: 54px 38px;
  animation: logoArmWiggle 1.5s ease-in-out infinite;
}

@keyframes logoArmWiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-6deg);
  }
}

/* ==========================================================================
   Hero Section Background Video Player
   ========================================================================== */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-bg iframe {
  width: 100vw;
  height: 56.25vw; /* 16:9 ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 ratio */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.45; /* Adjusted opacity to make video clearly visible under overlay */
  filter: grayscale(15%) contrast(115%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(13, 15, 17, 0.4) 0%, rgba(13, 15, 17, 0.8) 100%);
  z-index: 2;
}

/* ==========================================================================
   Hero Visual SVG Loader Animation
   ========================================================================== */
@keyframes loaderDrive {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(8px, 1px); } /* Drive forward into sand */
  35% { transform: translate(8px, 1px); } /* Scooping */
  60% { transform: translate(-6px, 0); } /* Backing up */
  80% { transform: translate(-6px, 0); } /* Dropping cargo (raised arm) */
}

@keyframes engineVibe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.6px); }
}

@keyframes liftArm {
  0%, 100%, 25% { transform: rotate(0deg); }
  35%, 60%, 75% { transform: rotate(-12deg); } /* Lifts scoop */
  85% { transform: rotate(2deg); } /* Dumps / lowers */
}

@keyframes smokeDrift {
  0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
  15% { opacity: 0.5; }
  100% { transform: translate(-8px, -20px) scale(1.4); opacity: 0; }
}

.working-loader-group {
  animation: loaderDrive 8s ease-in-out infinite;
}

.loader-body-group {
  animation: engineVibe 0.12s linear infinite;
}

.loader-arm-group {
  transform-origin: 95px 90px;
  animation: liftArm 8s ease-in-out infinite;
}

.hero-visual .loader-arm-group {
  transform-origin: 54px 38px !important;
}

/* Cargo sand appearing and disappearing in sync with scooping timeline */
@keyframes cargoAppear {
  0%, 25%, 85%, 100% { opacity: 0; }
  35%, 75% { opacity: 1; }
}

.scoop-cargo {
  animation: cargoAppear 8s ease-in-out infinite;
  transform-origin: center;
}

.smoke-puff {
  transform-origin: 60px 45px;
  fill: #718096;
  opacity: 0;
}

.smoke-puff-1 {
  animation: smokeDrift 2s linear infinite;
}

.smoke-puff-2 {
  animation: smokeDrift 2s linear infinite;
  animation-delay: 1s;
}
