/* General Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background-color: #007BFF; /* Primary color */
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* Creative design for logo */
  background: linear-gradient(45deg, #FFC107, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-nav li {
  margin-left: 30px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #FFC107; /* Secondary color */
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
  color: #FFC107; /* Secondary color */
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 20px;
  justify-content: space-between;
  position: relative;
  z-index: 1000;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Footer Styles */
.site-footer {
  background-color: #222; /* Darker background for footer */
  color: #eee;
  padding: 40px 0 20px;
  font-size: 15px;
}

.site-footer h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.site-footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: #007BFF; /* Primary color */
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col p,
.footer-col a {
  color: #bbb;
  text-decoration: none;
  line-height: 1.8;
}

.footer-col a:hover {
  color: #007BFF; /* Primary color */
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  color: #fff;
  background-color: #444;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  border-radius: 50%;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: #007BFF; /* Primary color */
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.footer-bottom p {
  margin: 0;
  color: #999;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3; /* Move nav below logo and toggle */
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #007BFF; /* Primary color */
  }

  .main-nav.active {
    max-height: 400px; /* Adjust as needed */
    transition: max-height 0.5s ease-in;
  }

  .main-nav ul {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }

  .main-nav li {
    margin: 0;
    padding: 10px 0;
  }

  .main-nav a {
    display: block;
    padding: 10px 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header .logo {
    flex-grow: 1; /* Allow logo to take available space */
  }

  .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    margin-top: 20px;
  }
}

/* Prevent body scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
}
