:root {
  --primary-color: #fa5305;
  --dark-color: #333;
  --light-color: #f4f4f4;
  --text-color: #333;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.4;
  color: var(--text-color);
  background-color: var(--white);
  font-size: 14px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.site-logo img {
  height: 40px;
}

/* Navigation Styles */
.site-navigation {
  display: flex;
  align-items: center;
}

.site-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-menu li {
  margin-left: 15px;
}

.site-menu a {
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.site-menu a:hover,
.site-menu .active a {
  color: var(--primary-color);
}

.site-menu .active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-color);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu .active a {
  color: var(--primary-color);
}

.mobile-menu a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  transition: color 0.3s ease;
}

/* Mobile Icon Navigation */
.mobile-icon-nav {
  display: none;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.mobile-icon-nav ul {
  display: flex;
  list-style: none;
  justify-content: space-around;
  padding: 8px 0;
  margin: 0;
}

.mobile-icon-nav li {
  flex: 1;
  text-align: center;
}

.mobile-icon-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 0;
  color: var(--dark-color);
  font-size: 0.7rem;
  transition: color 0.3s ease;
}

.mobile-icon-nav a i {
  font-size: 1.2rem;
  margin-bottom: 3px;
  transition: color 0.3s ease;
}

/* Fixed: Hover and active states for mobile icon navigation */
.mobile-icon-nav a:hover,
.mobile-icon-nav a:hover i,
.mobile-icon-nav .active a,
.mobile-icon-nav .active a i {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/bg_3.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.hero p {
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 15px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dark-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background-color: var(--white);
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.feature-image {
  width: 100%;
  height: 200px;
  background-color: #e0e0e0;
  margin-bottom: 15px;
  border-radius: 4px;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.feature-card p {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Dashboard Section */
.dashboard {
  background-color: var(--light-color);
  padding: 20px 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dashboard-card {
  background-color: var(--white);
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.dashboard-card ul {
  list-style-type: none;
  padding-left: 0;
}

.dashboard-card li {
  margin-bottom: 8px;
  font-size: 0.8rem;
}

/* Smart Alerts Section */
.smart-alerts {
  padding: 15px 0;
}

.notifications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.notification-card {
  background-color: var(--white);
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.smart-alerts .section-title {
    margin-bottom: 10px;
}

.notification-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.notification-card p {
  font-size: 0.8rem;
  color: #666;
}

/* Footer */
.footer-section {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 20px 0 10px;
}

.footer-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.footer-section h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 500;
}

.footer-section .links {
  list-style-type: none;
  padding-left: 0;
}

.footer-section .links li {
  margin-bottom: 8px;
}

.footer-section .links a {
  color: #aaa;
  transition: color 0.3s ease;
  font-size: 0.8rem;
}

span .footer-image {
    margin-bottom: -6px;
    height: 25px;
}

.footer-section .links a:hover {
  color: var(--primary-color);
}

.copyright-text {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #444;
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 0.8rem;
}

/* Bottom padding for mobile icon nav */
.content-wrapper {
  padding-bottom: 15px;
}

/* Dark Mode Specific Styles for Mobile Navigation */
.dark-mode .mobile-menu li a:hover,
.dark-mode .mobile-menu li.active a,
.dark-mode .mobile-menu li a:hover span,
.dark-mode .mobile-menu li.active a span,
.dark-mode .mobile-menu li a:hover i,
.dark-mode .mobile-menu li.active a i {
  color: var(--primary-color) !important;
}

.dark-mode .mobile-icon-nav li a:hover,
.dark-mode .mobile-icon-nav li.active a,
.dark-mode .mobile-icon-nav li a:hover span,
.dark-mode .mobile-icon-nav li.active a span,
.dark-mode .mobile-icon-nav li a:hover i,
.dark-mode .mobile-icon-nav li.active a i {
  color: var(--primary-color) !important;
}

.dark-mode .site-menu li a:hover,
.dark-mode .site-menu li.active a {
  color: var(--primary-color) !important;
}

.dark-mode .site-menu .active a::after {
  background-color: var(--primary-color) !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .features-grid,
  .dashboard-grid,
  .notifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-icon-nav {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .features-grid,
  .dashboard-grid,
  .notifications-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .copyright-text {
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 20px 0;
  }
  
  .hero h1 {
    font-size: 1.2rem;
  }
  
  .hero p {
    font-size: 0.6rem;
  }
  
  .features, .dashboard, .smart-alerts {
    padding: 20px 0;
  }
    .section-title {
        font-size: 1rem;
    }
  .footer-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .copyright-text {
    margin-bottom: 15px;
  }
}