/* style.css */

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Define primary blue and secondary red */
:root {
  --primary-color: #007BFF; /* Blue */
  --secondary-color: #FF0000; /* Red */
}

/* Global Body */
body {
  font-family: 'Roboto', sans-serif;
  margin: 20px;
  line-height: 1.6;
  color: #333;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid var(--secondary-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

nav {
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* --- Dropdown Menu Styles --- */
.nav-links li.dropdown {
  position: relative;
}

/* Hide the sub-menu by default */
.nav-links li.dropdown ul.dropdown-content {
  display: none !important;
  position: absolute;
  top: 100%; /* Directly below the parent item */
  left: 0;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
  padding: 0;
  margin: 0;
  text-align: left;
}

/* Each sub-menu item */
.nav-links li.dropdown ul.dropdown-content li {
  list-style: none;
}

.nav-links li.dropdown ul.dropdown-content li a {
  display: block;
  padding: 10px;
  color: var(--primary-color);
  text-decoration: none;
  transition: background 0.3s ease;
}

.nav-links li.dropdown ul.dropdown-content li a:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

/* Show the sub-menu on hover */
.nav-links li.dropdown:hover ul.dropdown-content {
  display: block !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Hero Section (example for Home page) */
.hero {
  background: url('https://source.unsplash.com/1600x900/?park,business')
              no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px; /* space for fixed header */
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #fff;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: var(--secondary-color);
}

/* Section */
.section {
  padding: 100px 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: #333;
}

/* Footer */
footer {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 200px;
    border: 1px solid #ddd;
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 10px 0;
  }
  .menu-toggle {
    display: flex;
  }
}
