/* ===================================
   📐 LAYOUT - Container, Header, Footer
   =================================== */

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* ===================================
   🎯 HEADER & NAVIGATION
   =================================== */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--card-bg);
  box-shadow: var(--box-shadow-sm);
  z-index: var(--z-header);
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

/* Logo */
.logo {
  height: 70px;
  padding: 10px 15px;
}

.logo img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: filter var(--transition);
}

[data-theme="dark"] .logo img {
  filter: brightness(0) invert(1);
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

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

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  transition: color var(--transition);
  position: relative;
}

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

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

/* CTA Button in Nav */
.btn-nav {
  background-color: var(--primary-color);
  color: white !important;
  padding: 8px 20px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition);
}

.btn-nav:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-nav::after {
  display: none;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: calc(var(--z-header) + 1);
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===================================
   🦶 FOOTER
   =================================== */

footer {
  background-color: var(--card-bg);
  color: var(--text-secondary);
  padding: 50px 0 20px;
  transition: background-color var(--transition);
}

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

.footer-logo {
  flex: 1;
  min-width: 250px;
  margin-right: 50px;
  margin-bottom: 30px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 15px;
  transition: filter var(--transition);
}

[data-theme="dark"] .footer-logo img {
  filter: brightness(0) invert(1);
}

.footer-logo p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex: 2;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  min-width: 150px;
  margin-right: 30px;
  margin-bottom: 30px;
}

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

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

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

.footer-column a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-column a:hover {
  color: var(--primary-color);
}

.footer-column i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
}

/* Social Icons */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--background-color);
  border-radius: var(--border-radius-full);
  transition: all var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Copyright */
.copyright {
  text-align: center;
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

/* ===================================
   📱 RESPONSIVE - Tablet & Mobile
   =================================== */

/* Tablet */
@media screen and (max-width: 992px) {
  .nav-links li {
    margin-left: 20px;
  }
  
  .footer-logo {
    margin-right: 30px;
  }
  
  .footer-column {
    min-width: 130px;
    margin-right: 20px;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  /* Mobile Navigation */
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: var(--box-shadow-lg);
    display: none;
    z-index: calc(var(--z-header) - 1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: 15px 20px;
  }
  
  /* Footer */
  .footer-container {
    flex-direction: column;
  }
  
  .footer-logo {
    text-align: center;
    margin-right: 0;
    max-width: 100%;
  }
  
  .footer-links {
    justify-content: space-around;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .logo {
    height: 60px;
    padding: 10px;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-column {
    text-align: center;
    margin-right: 0;
    width: 100%;
  }
}
