/* Stylesheet for WakeBus Premium Landing Page */

:root {
  --bg-color: #0c121e;
  --bg-card: rgba(25, 46, 75, 0.45); /* Glassmorphism using the brand deep blue #192e4b */
  --border-color: rgba(201, 224, 208, 0.12); /* Subtle borders using brand mint green */
  --primary-color: #f6cb58; /* Vibrant brand sunflower gold */
  --secondary-color: #bbd3dd; /* Soft brand sky blue */
  --accent-purple: #c9e0d0; /* Soft brand mint green */
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-shadow: 0 0 20px rgba(246, 203, 88, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-color);
  top: -100px;
  right: -50px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  top: 600px;
  left: -200px;
}

/* Header & Navigation */
header {
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo span span {
  color: var(--primary-color);
}

.logo-icon {
  color: var(--primary-color);
  font-size: 22px;
}

.justify-center {
  justify-content: center;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}

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

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #000;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(246, 203, 88, 0.2);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-shadow);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content .badge {
  background-color: rgba(246, 203, 88, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(246, 203, 88, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 40%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.stat-item h3 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Hero Image & Cards */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 95%;
  max-width: 480px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  animation: float 6s ease-in-out infinite;
}

.floating-card {
  position: absolute;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.geofence-card {
  bottom: 40px;
  left: -20px;
  animation: float-reversed 6s ease-in-out infinite;
}

.bell-icon {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  animation: pulse-ring 2s infinite;
}

.geofence-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.geofence-card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Step/About Section */
.about-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
}

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

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: 16px;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: rgba(246, 203, 88, 0.3);
  transform: translateY(-5px);
}

.step-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  position: relative;
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  background: var(--border-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Features Section */
.features-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
  background-color: rgba(18, 26, 47, 0.2);
}

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

.features-left h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.features-left p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
}

.feature-list-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.feat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(79, 172, 254, 0.1);
  border: 1px solid rgba(79, 172, 254, 0.2);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-list-item h4 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.feature-list-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.tech-stack-card {
  background: linear-gradient(135deg, rgba(18, 26, 47, 0.8) 0%, rgba(10, 14, 23, 0.9) 100%);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-stack-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.tech-stack-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.tech-list {
  list-style: none;
}

.tech-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: 14px;
}

.tech-list li:last-child {
  margin-bottom: 0;
}

.tech-list li i {
  color: var(--primary-color);
  font-size: 16px;
  margin-top: 3px;
}

.tech-list li span {
  color: var(--text-main);
}

.tech-list li strong {
  color: #fff;
}

/* Simulator Section */
.simulator-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

.simulator-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.sim-dashboard {
  display: grid;
  grid-template-columns: 350px 1fr;
  min-height: 500px;
}

.sim-control-panel {
  background-color: rgba(10, 14, 23, 0.8);
  border-right: 1px solid var(--border-color);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.sim-control-panel h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
}

.sim-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sim-metric:last-of-type {
  border-bottom: none;
  margin-bottom: 24px;
}

.metric-label {
  font-size: 14px;
  color: var(--text-muted);
}

.metric-value {
  font-weight: 700;
  font-size: 15px;
}

.status-active {
  color: var(--primary-color);
}

.alert-off {
  color: var(--text-muted);
}

.alert-on {
  color: #FF5E7E;
  text-shadow: 0 0 10px rgba(255, 94, 126, 0.4);
  animation: blink 1s infinite alternate;
}

.hide {
  display: none !important;
}

.logs-container {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.logs-container h4 {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.logs-content {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 150px;
  padding: 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  overflow-y: auto;
}

.log-line {
  margin-bottom: 6px;
  color: #A3E635;
}

.log-line.text-muted {
  color: var(--text-muted);
}

/* Simulator Visual Map */
.sim-map-visual {
  position: relative;
  background-color: #0E1424;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-bg {
  width: 100%;
  height: 100%;
  position: relative;
  min-height: 450px;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-size: 30px 30px;
  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);
}

.destination-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FF5E7E;
  font-size: 28px;
  z-index: 10;
}

.dest-label {
  font-family: var(--font-family);
  font-size: 12px;
  color: #fff;
  margin-top: 4px;
  background-color: rgba(10, 14, 23, 0.8);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  font-weight: 600;
  white-space: nowrap;
}

.geofence-ring {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px dashed rgba(246, 203, 88, 0.3);
  background-color: rgba(246, 203, 88, 0.02);
  transition: all 0.5s ease;
  z-index: 5;
  pointer-events: none;
}

.geofence-ring.active {
  border-color: rgba(255, 94, 126, 0.6);
  background-color: rgba(255, 94, 126, 0.08);
  animation: pulse-ring 2s infinite;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bus-vehicle {
  position: absolute;
  transform: translate(-50%, -50%);
  color: var(--primary-color);
  font-size: 24px;
  z-index: 15;
  transition: top 0.2s linear, left 0.2s linear;
}

.bus-ping {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  opacity: 0;
  animation: ping 1.5s infinite;
  pointer-events: none;
}

/* Alarm Notification Toast */
.alarm-toast {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 94, 126, 0.95);
  backdrop-filter: blur(16px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 40px rgba(255, 94, 126, 0.4);
  z-index: 20;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.pulse-icon {
  font-size: 24px;
  animation: shake 0.5s infinite;
}

.alarm-toast strong {
  font-size: 15px;
  display: block;
}

.alarm-toast p {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 2px;
}

.btn-toast-dismiss {
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  margin-left: 10px;
}

/* Footer */
footer {
  background-color: #05070B;
  border-top: 1px solid var(--border-color);
  padding: 50px 0;
}

.footer-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 16px 0 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

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

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float-reversed {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(246, 203, 88, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(246, 203, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(246, 203, 88, 0); }
}

@keyframes ping {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes blink {
  0% { opacity: 0.2; }
  100% { opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 42px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .sim-dashboard {
    grid-template-columns: 1fr;
  }
  
  .sim-control-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}
