/* Base Styles and Variables */
:root {
  /* Main Color Palette */
  --primary: #ff6b35; /* Vibrant orange-red for main actions */
  --primary-light: #ff8a65;
  --primary-dark: #e64a19;
  --secondary: #2e7d32; /* Green for positive metrics */
  --secondary-light: #4caf50;
  --accent: #4527a0; /* Purple for special highlights/AI features */
  --accent-light: #7e57c2;

  /* Neutrals */
  --dark: #263238;
  --medium: #607d8b;
  --light: #eceff1;
  --white: #ffffff;

  /* Status Colors */
  --success: #43a047;
  --warning: #ffa000;
  --danger: #e53935;

  /* Dimensions */
  --header-height: 70px;
  --sidebar-width: 240px;
  --border-radius: 12px;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f5f7fa;
  color: var(--dark);
  line-height: 1.6;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding-top: var(--header-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.section-header p {
  color: var(--medium);
  font-size: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(230, 74, 25, 0.3);
}

.btn-light {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-light:hover {
  background-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(230, 74, 25, 0.2);
}

/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-img {
  font-size: 1.8rem;
  margin-right: 0.5rem;
}

.nav-menu {
  display: flex;
  position: relative;
  left: 320px;
  gap: 1.5rem;
}

.nav-menu li a {
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-menu li a:hover {
  color: var(--primary);
}

.nav-menu li a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  cursor: pointer;
  font-size: 2rem;
  color: var(--dark);
}
/* Sidebar Navigation */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: -280px;
  width: 280px;
  height: calc(100vh - var(--header-height));
  background-color: var(--white);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  overflow-y: auto;
  transition: left 0.3s ease;
}

.sidebar.active {
  left: 0;
}

.sidebar-menu {
  padding: 1.5rem 0;
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 0.5rem;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-menu li a:hover {
  background-color: var(--light);
  color: var(--primary);
}

.sidebar-menu li a.active {
  background-color: var(--primary-light);
  color: var(--primary);
  border-left: 4px solid var(--primary);
}

.sidebar-menu .icon {
  margin-right: 1rem;
  font-size: 1.2rem;
}

.sidebar-divider {
  height: 1px;
  background-color: var(--light);
  margin: 1rem 1.5rem;
}

/* Overlay for mobile sidebar */
.overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.overlay.active {
  display: block;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
  .burger {
    display: block;
  }

  .nav-menu {
    display: none;
  }
}

/* Small devices adjustment */
@media (max-width: 576px) {
  .sidebar {
    width: 250px;
    left: -250px;
  }

  .sidebar-menu li a {
    padding: 0.6rem 1.2rem;
  }
}

/* Burger menu animation */
.burger {
  transition: transform 0.3s ease;
}

.burger.active {
  transform: rotate(90deg);
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  /* Remove or comment out this line: */
  /* background-image: url("/picture/herobg.jpg"); */
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 8rem 0;
  text-align: center;
  overflow: hidden;
}
/* Black overlay div with opacity */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity here */
  z-index: 0; /* Keep it behind the text */
}

/* Ensuring content is above the overlay */
.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background-color: #ff6b35;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #e55b2c;
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(335px, 1fr));
  gap: 3rem;
}

.feature-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Dashboard Preview Section */
.dashboard-preview {
  background-color: var(--accent);
  color: var(--white);
  padding: 5rem 0;
}

.dashboard-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.dashboard-text {
  flex: 1;
}

.dashboard-text h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.dashboard-image {
  flex: 1;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* How It Works Section */
.how-it-works {
  background-color: var(--light);
  padding: 5rem 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.step {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--white);
  padding: 5rem 0;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 3rem;
  color: var(--primary-light);
  opacity: 0.3;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
}

/* CTA Section */
.cta {
  background: linear-gradient(to right, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}

.cta h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 4rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--light);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  .dashboard-content {
    flex-direction: column;
  }

  .dashboard-text,
  .dashboard-image {
    flex: none;
    width: 100%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    right: -100%;
    top: var(--header-height);
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 5rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .feature-card,
  .step,
  .testimonial-card {
    padding: 1.5rem;
  }
}
/* Add this to your existing CSS file */

/* Ensure all elements respect the viewport boundaries */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Fix potential issues with fixed elements */
header, .sidebar {
    max-width: 100vw;
}

/* Ensure containers don't cause overflow */
.container {
    width: 100%;
    max-width: 100%;
}

/* Fix for any potential image overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Additional mobile-specific fixes */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    body {
        position: relative;
        overflow-x: hidden;
    }
    
    /* Ensure hero content fits */
    .hero-content {
        padding: 0 15px;
    }
    
    /* Fix for any animation elements */
    [data-aos] {
        width: 100%;
    }
}