:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --secondary: #f97316;
  --dark: #111827;
  --gray: #4b5563;
  --light-gray: #f9fafb;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Helvetica, Arial, sans-serif;
}


.marquee-container {
  width: 100%;
  overflow: hidden;
  background-color: white;
  border-top: none;
  border-bottom: none;
  padding: 50px 0;
  position: relative;
}

.marquee-text {
  white-space: nowrap;
  display: inline-block;
  font-size: 30px;
  font-weight: bold;
  color: black;
  position: absolute;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

html {
  overflow-x: hidden; /* Prevent horizontal scrolling at the HTML level */
  width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal overflow */
  width: 100%; /* Use 100% instead of 100vw to prevent scrollbar issues */
  position: relative; /* For proper positioning of fixed elements */
  min-height: 100vh; /* Ensure full height */
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%; /* Changed from 80% to 90% */
  max-width: 1200px; /* Added max-width */
  margin: 0 auto;
  padding: 0; /* Removed padding that could cause extra space */
}

/* Back to Top Button */
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  color: white;
  background-color: var(--primary); /* Added missing background color */
  cursor: pointer;
  padding: 15px;
  border-radius: 100px;
}

#myBtn:hover {
  background-color: #555;
}

/* Header & Navbar */
header {
  background: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%; /* Ensure full width */
  position: relative;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 170px;
  height: auto;
}

.nav-menu {
  list-style: none;
  display: flex;
}

.nav-menu li {
  margin: 0 15px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #007bff;
}

/* Buttons */
.auth-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  transition: 0.3s;
}

.btn-login {
  background: transparent;
  border: 2px solid #007bff;
  color: #007bff;
}

.btn-login:hover {
  background: #007bff;
  color: #fff;
}

.btn-signup {
  background: #007bff;
  color: #fff;
}

.btn-signup:hover {
  background: #0056b3;
}

/* Hamburger Menu Styling */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 100;
  transition: all 0.3s ease;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) {
  top: 0;
}

.hamburger-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
  bottom: 0;
}

/* Active state for hamburger animation */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s;
  padding-top: 20px;
  z-index: 2000; /* Ensure it's above other elements */
  overflow-y: auto; /* Allow scrolling inside menu */
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  text-align: right;
  padding: 15px;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mobile-nav-item {
  margin: 10px 0;
}

.mobile-nav-link {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  padding: 10px 0;
  display: block; /* Make the entire area clickable */
  transition: color 0.3s;
}

.mobile-nav-link:hover {
  color: #007bff;
}

.mobile-auth {
  padding: 20px;
  text-align: center;
}

/* Fixed Sidebar Dashboard Styling */
.sidebar-dashboard {
  position: fixed;
  top: 0;
  left: -300px; /* Start off-screen */
  width: 280px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow-y: auto;
  transition: left 0.3s ease;
}

.sidebar-dashboard.open {
  left: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eaeaea;
}

.sidebar-logo img {
  height: 40px;
}

.sidebar-close {
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.sidebar-close:hover {
  color: #333;
}

/* User Profile Section */
.user-profile {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eaeaea;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  flex: 1;
}

.user-name {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 600;
}

.user-account {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Menu Section */
.menu-section {
  padding: 15px 0;
}

.menu-section .section-title {
  font-size: 12px;
  text-transform: uppercase;
  color: #999;
  margin: 0 20px 10px;
  letter-spacing: 1px;
}

.menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  margin: 2px 0;
}

.menu-item a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.menu-item a:hover {
  background-color: #f5f5f5;
}

.menu-item.active a {
  background-color: #f0f7ff;
  color: #0066cc;
  font-weight: 500;
}

.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  margin-right: 15px;
}

.menu-text {
  font-size: 15px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 20px;
  border-top: 1px solid #eaeaea;
  margin-top: auto;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background-color: #f5f5f5;
  border: none;
  border-radius: 6px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-logout:hover {
  background-color: #e5e5e5;
}

.logout-icon {
  margin-right: 10px;
}

/* Add this to ensure proper spacing between sections */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Only show sidebar dashboard on button click, not based on screen size */
@media (max-width: 768px) {
  body.no-scroll {
    overflow: hidden;
  }
  
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .nav-menu {
    display: none;
  }
  
  .auth-buttons {
    display: none;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f5f7ff 0%, #e8ecfd 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  width: 100%; /* Ensure full width */
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--dark);
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

/* Button Styles */
.btn-primary {
  padding: 15px 30px;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(80, 70, 229, 0.15);
}

.btn-secondary {
  padding: 15px 30px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(80, 70, 229, 0.1);
  transform: translateY(-3px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-white:hover {
  background: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--white);
  width: 100%; /* Ensure full width */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--white);
  border-radius: 10px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(80, 70, 229, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.feature-icon svg {
  width: 35px;
  height: 35px;
  color: var(--primary);
}

.feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark);
}

.feature-desc {
  font-size: 16px;
  color: var(--gray);
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background: var(--light-gray);
  width: 100%; /* Ensure full width */
}

.steps {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e5e7eb;
  z-index: 1;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  margin: 0 auto 20px;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark);
}

.step-desc {
  font-size: 16px;
  color: var(--gray);
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background: var(--white);
  width: 100%; /* Ensure full width */
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--white);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.testimonial-text {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
}

.author-info p {
  font-size: 14px;
  color: var(--gray);
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #5046e5 0%, #3c35b9 100%);
  color: var(--white);
  text-align: center;
  width: 100%; /* Ensure full width */
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.cta-subtitle {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 30px;
  width: 100%; /* Ensure full width */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--white);
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-desc {
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 25px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 15px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 5px;
  color: var(--secondary);
}

.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
  font-size: 15px;
  opacity: 0.8;
}

.contact-info svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

/* Enhanced Responsive Styles */
@media screen and (max-width: 1024px) {
  .container {
    width: 95%; /* Wider container on smaller screens */
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    width: 90%;
  }
  
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .steps {
    flex-direction: column;
    gap: 40px;
  }
  
  .steps::before {
    display: none;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media screen and (max-width: 480px) {
  .container {
    width: 95%;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .testimonial-card {
    padding: 30px 20px;
  }
  
  .cta-title {
    font-size: 28px;
  }
}