/* Structural Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

main.container {
  padding-top: 10px;
}

.page-padded {
  padding-top: 100px;
}

/* Header Styles */
header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 50px;
  height: auto;
  margin-right: 10px;
}

.gradient-logo-text {
  font-family: 'Arial', sans-serif;
  font-size: 21px;
  font-weight: bold;
  background: linear-gradient(45deg, #b8860b, #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
}

.logo-text:hover {
  color: var(--secondary-color);
}

/* Navigation Styles */
nav ul {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 500;
  position: relative;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.burger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 5px;
  /* Creates a better touch target area */
  z-index: 1001;
  /* Keeps the X visible above the open menu */
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Burger to "X" Animation --- */
.burger.active .line1 {
  transform: translateY(8px) rotate(45deg);
}

.burger.active .line2 {
  opacity: 0;
}

.burger.active .line3 {
  transform: translateY(-8px) rotate(-45deg);
}

/* Global Sections */
.section {
  padding: 100px 0;
  text-align: center;
}

.section-title {
  margin-bottom: 40px;
  font-size: 36px;
  color: var(--text-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 10px auto 0;
}

.section-bg {
  background-color: var(--bg-color);
}

.section-text {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 18px;
}

/* Footer Styles */
footer {
  background-color: #333;
  color: var(--white);
  padding: 60px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

.footer-column {
  flex: 1;
  min-width: 205px;
  text-align: left;
}

.footer-column h3 {
  margin-bottom: 20px;
  color: var(--accent-color);
  font-size: 20px;
}

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

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

.footer-column ul li a {
  color: var(--white);
}

.footer-column ul li a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: left;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

footer a {
  color: #5debeb;
}

footer a:hover {
  color: var(--accent-color);
}

/* Layout Media Queries */
@media screen and (max-width: 768px) {
  .burger {
    display: block;
  }

  nav {
    position: fixed;
    right: 0;
    top: 0;
    background-color: var(--white);
    width: 65%;
    /* Slightly wider for modern phones */
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother easing */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-top: 80px;
    /* Pushes links down so the X button doesn't cover them */
  }

  nav.active {
    transform: translateX(0%);
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
  }

  nav ul li {
    margin: 20px 0;
    opacity: 0;
    /* Hide initially for stagger effect */
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Staggered fade-in for links when menu is open */
  nav.active ul li {
    opacity: 1;
    transform: translateX(0);
  }

  nav.active ul li:nth-child(1) {
    transition-delay: 0.1s;
  }

  nav.active ul li:nth-child(2) {
    transition-delay: 0.15s;
  }

  nav.active ul li:nth-child(3) {
    transition-delay: 0.2s;
  }

  nav.active ul li:nth-child(4) {
    transition-delay: 0.25s;
  }

  nav.active ul li:nth-child(5) {
    transition-delay: 0.3s;
  }

  nav.active ul li:nth-child(6) {
    transition-delay: 0.35s;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-column {
    width: 100%;
  }
}