:root {
  --primary: #4361ee;
  --primary-dark: #3a0ca3;
  --secondary: #f72585;
  --accent: #4cc9f0;
  --light: #f8f9fa;
  --dark: #212529;
  --gradient: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
}

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* Text Utilities */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.x-small {
  font-size: 0.7rem;
}

/* Navbar */
.navbar {
  transition: all 0.3s ease;
  padding: 15px 0;
}

.navbar.scrolled {
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
}

.nav-link {
  font-weight: 500;
  padding: 8px 15px !important;
  color: var(--dark) !important;
  position: relative;
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 15px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: calc(100% - 30px);
}

/* Buttons */
.btn-primary {
  background: var(--gradient);
  border: none;
  font-weight: 500;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}

/* Hero Section */
.hero {
  padding: 150px 0 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    rgba(135, 184, 248, 0.5),
    rgba(11, 109, 255, 0.5)
  );
  background-blend-mode: multiply;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 30px;
}

.floating {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Sections */
section {
  padding: 80px 0;
  position: relative;
}

.bg-light {
  background-color: #f9fafe !important;
}

/* Cards */
.feature-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(67, 97, 238, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(67, 97, 238, 0.1);
  color: var(--primary);
  font-size: 24px;
}

.step-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(67, 97, 238, 0.1);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto 20px;
}

.use-case-card {
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.use-case-visual {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dashboard Preview */
.dashboard-preview {
  background: var(--gradient);
  color: white;
  border-radius: 20px;
  margin: 80px 0;
  overflow: hidden;
}

.dashboard-slide {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Progress Elements */
.circular-progress {
  width: 100%;
  height: 100%;
}

.circle-bg {
  fill: none;
  stroke-linecap: round;
}

.circle-fill {
  fill: none;
  stroke-linecap: round;
  animation: progress 1s ease-out forwards;
}

@keyframes progress {
  0% {
    stroke-dasharray: 0, 100;
  }
}

.occupancy-circle {
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: 50%;
  background: #e9ecef;
}

.occupancy-fill {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  clip: rect(0, 20px, 40px, 0);
  background: #4361ee;
}

.occupancy-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: bold;
  color: #4361ee;
}

/* Bus Illustration */
.bus-illustration {
  position: relative;
  width: 100%;
  height: 40px;
}

.bus-body {
  position: absolute;
  width: 100%;
  height: 20px;
  background: #4361ee;
  border-radius: 4px;
  bottom: 0;
}

.bus-window {
  position: absolute;
  width: 15px;
  height: 10px;
  background: #a5b4fc;
  border-radius: 2px;
  top: 5px;
  left: 10px;
}

.bus-wheel {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #1e293b;
  border-radius: 50%;
  bottom: -6px;
}

.bus-wheel.back {
  right: 10px;
}

/* Building Illustration */
.building {
  position: relative;
  width: 60px;
  height: 80px;
}

.building-base {
  position: absolute;
  width: 100%;
  height: 70%;
  background: #e9ecef;
  bottom: 0;
  border-radius: 3px;
}

.building-window {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #a5b4fc;
  border-radius: 1px;
}

.building-window:nth-child(2) {
  top: 15px;
  left: 10px;
}

.building-window:nth-child(3) {
  top: 15px;
  right: 10px;
}

.building-window:nth-child(4) {
  top: 30px;
  left: 10px;
}

.building-door {
  position: absolute;
  width: 20px;
  height: 25px;
  background: #94a3b8;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px 2px 0 0;
}

/* School Illustration */
.school-building {
  position: relative;
  width: 80px;
  height: 60px;
}

.school-roof {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 20px solid #e9ecef;
}

.school-body {
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 60px;
  height: 40px;
  background: white;
  border-radius: 3px;
}

.school-door {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 20px;
  background: #94a3b8;
  border-radius: 2px 2px 0 0;
}

.school-window {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #a5b4fc;
  border-radius: 2px;
  top: 15px;
  left: 15px;
}

.school-window.right {
  left: auto;
  right: 15px;
}

/* Office Building */
.office-building {
  position: relative;
  width: 50px;
  height: 80px;
}

.office-tower {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 3px;
}

.office-window {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #a5b4fc;
  border-radius: 1px;
  left: 10px;
}

.office-window {
  top: 15px;
}

.office-window.middle {
  top: 30px;
}

.office-window.top {
  top: 45px;
}

/* Corporate Shuttle */
.corporate-shuttle {
  position: relative;
  width: 50px;
  height: 25px;
}

.shuttle-body {
  position: absolute;
  width: 100%;
  height: 15px;
  background: #4361ee;
  border-radius: 3px;
  bottom: 0;
}

.shuttle-window {
  position: absolute;
  width: 8px;
  height: 6px;
  background: #bbdefb;
  border-radius: 1px;
  top: 5px;
  left: 10px;
}

.shuttle-wheel {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #1e293b;
  border-radius: 50%;
  bottom: -3px;
  left: 10px;
}

/* Avatars */
.avatar,
.student-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.student-avatar {
  width: 28px;
  height: 28px;
}

/* Footer specific styles */
.text-white-60 {
  color: rgba(255, 255, 255, 0.6);
}

.bg-white-10 {
  background-color: rgba(255, 255, 255, 0.1);
}

.hover-white:hover {
  color: white !important;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

.footer-links a {
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-links a:hover {
  padding-left: 4px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeIn 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}
.delay-4 {
  animation-delay: 0.8s;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 3px;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 80px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .feature-card,
  .step-card {
    padding: 20px;
  }
}
