/* ===== HEADER STYLES ===== */

/* CSS Variables */
:root {
  --primary-red: #ff0040;
  --dark-red: #cc0033;
  --light-red: #ff3366;
  --electric-red: #ff0066;
  --dark-bg: #0a0a0a;
  --darker-bg: #000000;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --white: #ffffff;
  --text-light: #ffffff;
  --text-light-hover: #f8f9fa;
}

/* Header Navigation */
.header {
  background: var(--dark-bg);
  box-shadow: 0 4px 20px rgba(255, 0, 64, 0.3);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary-red);
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Brand/Logo Section */
.nav-brand {
  flex-shrink: 0;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.02);
}

.logo-text {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 0, 64, 0.5);
  transition: all 0.3s ease;
}

.logo-text:hover {
  text-shadow: 0 0 15px rgba(255, 0, 64, 0.8);
}

.logo-tagline {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -2px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.logo-container:hover .logo-tagline {
  opacity: 1;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 8px 0;
  display: block;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-red);
  text-shadow: 0 0 8px rgba(255, 0, 64, 0.8);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

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

/* CTA Button */
.nav-cta {
  flex-shrink: 0;
}

/* Quick Action Buttons */
.quick-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.back-to-top {
  background: var(--primary-red);
  color: white;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 64, 0.4);
}

.whatsapp-btn {
  background: #25D366;
  color: white;
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Mobile Menu Toggle (Hidden by default) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .navbar {
    padding: 1.2rem 2.5rem;
    max-width: 1400px;
  }
  
  .logo-text {
    font-size: 32px;
  }
  
  .logo-tagline {
    font-size: 13px;
  }
  
  .nav-menu {
    gap: 2.5rem;
  }
  
  .nav-link {
    font-size: 15px;
  }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
  .navbar {
    padding: 1rem 2rem;
    max-width: 1200px;
  }
}

/* Laptop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
  
  .logo-text {
    font-size: 26px;
  }
  
  .nav-link {
    font-size: 13px;
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .nav-menu {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    order: 3;
    width: 100%;
    margin-top: 10px;
  }
  
  .logo-text {
    font-size: 24px;
  }
  
  .logo-tagline {
    font-size: 11px;
  }
  
  .nav-link {
    font-size: 13px;
    padding: 6px 0;
  }
  
  .quick-actions {
    right: 15px;
    bottom: 15px;
  }
  
  .quick-btn {
    width: 45px;
    height: 45px;
  }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .navbar {
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    order: 3;
    width: 100%;
    margin-top: 8px;
  }
  
  .logo-text {
    font-size: 22px;
    letter-spacing: 1.5px;
  }
  
  .logo-tagline {
    font-size: 10px;
  }
  
  .nav-link {
    font-size: 12px;
    padding: 5px 0;
  }
  
  .quick-actions {
    right: 15px;
    bottom: 15px;
  }
  
  .quick-btn {
    width: 45px;
    height: 45px;
  }
}

/* Mobile Small (320px - 575px) */
@media (max-width: 575px) {
  .navbar {
    padding: 0.7rem 0.8rem;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .nav-menu {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    order: 3;
    width: 100%;
    margin-top: 6px;
  }
  
  .logo-text {
    font-size: 20px;
    letter-spacing: 1.5px;
  }
  
  .logo-tagline {
    font-size: 9px;
  }
  
  .nav-link {
    font-size: 11px;
    padding: 4px 0;
  }
  
  .quick-actions {
    right: 10px;
    bottom: 10px;
  }
  
  .quick-btn {
    width: 40px;
    height: 40px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
  }
  
  .quick-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .logo-container {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .header {
    box-shadow: 0 2px 10px rgba(255, 0, 64, 0.2);
  }
  
  .logo-text {
    text-shadow: 0 0 8px rgba(255, 0, 64, 0.4);
  }
}

/* Print styles */
@media print {
  .header {
    background: #ffffff !important;
    color: #000000 !important;
    border-bottom: 2px solid #000000 !important;
    box-shadow: none !important;
    position: static !important;
  }
  
  .logo-text {
    color: #000000 !important;
    text-shadow: none !important;
  }
  
  .logo-tagline {
    color: #666666 !important;
  }
  
  .nav-link {
    color: #000000 !important;
  }
  
  .quick-actions {
    display: none !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .logo-container,
  .quick-btn,
  .mobile-menu-toggle span {
    transition: none;
  }
  
  .back-to-top {
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .header {
    background: #000000;
    border-bottom-color: var(--primary-red);
  }
  
  .logo-text {
    color: var(--primary-red);
  }
  
  .logo-tagline {
    color: #cccccc;
  }
  
  .nav-link {
    color: #ffffff;
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: var(--primary-red);
  }
}
