/* Shared CSS for Header and Footer */
:root {
  --primary-color: #007BFF;
  --secondary-color: #FFC107;
  --text-color: #333;
  --light-text-color: #f8f8f8;
  --bg-dark: #222;
  --bg-light: #fff;
  --border-color: #eee;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f4f4f4;
}

*, *::before, *::after {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: underline;
}

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

/* Header Styles */
.site-header {
  background-color: var(--bg-dark);
  color: var(--light-text-color);
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.site-header .header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.site-header .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary-color); /* Creative logo design */
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  transition: color 0.3s ease;
}

.site-header .logo:hover {
  color: #fff;
  text-decoration: none;
}

.main-nav .nav-list {
  display: flex;
  gap: 1.5rem;
}

.main-nav .nav-list li a {
  color: var(--light-text-color);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav .nav-list li a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.main-nav .nav-list li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

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

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--light-text-color);
  margin: 5px 0;
  transition: 0.4s;
}

/* Footer Styles */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--light-text-color);
  padding: 3rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-footer .footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer .footer-col {
  flex: 1;
  min-width: 250px; /* Adjust as needed */
}

.site-footer .footer-col h3 {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.site-footer .footer-col p,
.site-footer .footer-col a {
  color: var(--light-text-color);
  line-height: 1.8;
}

.site-footer .footer-col a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.site-footer .footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer .social-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.site-footer .social-links img {
  width: 24px;
  height: 24px;
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%); /* Make icons white */
  transition: filter 0.3s ease;
}

.site-footer .social-links a:hover img {
  filter: invert(80%) sepia(90%) saturate(1000%) hue-rotate(0deg) brightness(120%) contrast(100%); /* Make icons yellow on hover */
}

.site-footer .footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .site-header .header-container {
    padding: 0 1rem;
  }

  .main-nav .nav-list {
    display: none; /* Hide navigation by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    z-index: 999;
  }

  .main-nav .nav-list.active {
    display: flex; /* Show when active */
  }

  .main-nav .nav-list li {
    text-align: center;
    padding: 0.75rem 0;
  }

  .main-nav .nav-list li a {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    display: block;
  }

  .hamburger-menu {
    display: block; /* Show hamburger menu on mobile */
  }

  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-footer .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .footer-col {
    min-width: unset;
    width: 100%;
    max-width: 400px;
  }

  .site-footer .footer-nav ul {
    align-items: center;
  }

  .site-footer .social-links {
    justify-content: center;
  }
}