/* Tesla Header & Footer Component Styles */

/* ========== HEADER STYLES ========== */
.tesla-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tesla-header.scrolled {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.header-logo:hover {
  opacity: 0.8;
}

.header-logo-img {
  height: 24px;
  width: auto;
  display: block;
}

.header-logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.header-logo:hover .header-logo-text {
  color: #ffcc00;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-nav a {
  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  padding: 8px 12px;
  border-radius: 4px;
}

.header-nav a:hover {
  color: rgb(36, 104, 98);
  /* background-color: rgba(255, 102, 0, 0.1); */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-btn {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  /* display: inline-block; */
}

.header-btn-primary {
  /* background: linear-gradient(45deg, #ffcc00, #ff6600); */
  color: #000;
}

.header-btn-primary:hover {
  /* background: linear-gradient(45deg, #fff, #ffcc00); */
  transform: translateY(-2px);
  /* box-shadow: 0 4px 10px rgba(255, 204, 0, 0.4); */
  color: #000;
letter-spacing: 1px;
}


.header-btn-secondary {
  background: transparent;
  color: #222;
  border: 2px solid #222;
}

.header-btn-secondary:hover {
  background: #222;
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #222;
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 3px;
}

/* Add padding to body for fixed header */
body {
  padding-top: 70px;
}

/* ========== FOOTER STYLES ========== */
.tesla-footer {
  background-color: #000;
  color: #fff;
  padding: 60px 20px 20px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: #999;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffcc00;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: linear-gradient(45deg, #ffcc00, #ff6600);
  color: #000;
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffcc00;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 992px) {
  .header-container {
    padding: 15px 20px;
  }

  .header-nav {
    gap: 20px;
  }

  .header-nav a {
    font-size: 13px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    z-index: 1001;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .header-nav {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px;
    gap: 0;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .header-nav.active {
    left: 0;
  }

  .header-nav a {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .header-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .header-btn {
    width: 90%;
    margin: 0 auto;
    padding: 12px 20px;
    text-align: center;
    display: block;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
