*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  line-height: 1.7;
  color: #e0e0e0;
  background-color: #0a0f1c;
}

/* ====================== HEADER ====================== */
.header {
  background: #D70C19;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 0.8rem 0;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  max-height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.25s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #a0d8ff;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  gap: 6px;
  z-index: 1100;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    display: block;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ====================== MOBILE MENU ====================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #1a3a5c;
    z-index: 999;
    padding-top: 100px;
    padding-left: 2rem;
    padding-right: 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.mobile-menu.open,
.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 1.2rem 0;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.mobile-menu a:hover {
  color: #a0d8ff;
  padding-left: 10px;
}

.mobile-menu a.active {
  color: #a0d8ff;
  font-weight: 600;
}

/* Show hamburger on mobile */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }
}

/* ====================== HERO SECTION ====================== */
.inovation-section {
  position: relative;
  min-height: 100vh; /* Full viewport height on all devices */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  
  /* Smooth responsive background image */
  background-image: 
    linear-gradient(rgba(10, 15, 28, 0.65), rgba(10, 15, 28, 0.75)), 
    url('images/technology-hero.jpg'); /* Replace with your actual hero image path */
  background-size: cover;
  background-position: center 30%; /* Slight top bias for better mobile framing */
  background-repeat: no-repeat;
  background-attachment: fixed; /* Subtle parallax feel on larger screens */
}

/* Adjust background positioning for different screens */
@media (max-width: 768px) {
  .inovation-section {
    background-position: center 40%;
    min-height: 85vh; /* Slightly shorter on mobile for better scroll feel */
  }
}

@media (min-width: 1024px) {
  .inovation-section {
    background-position: center 20%;
  }
}

.inovation-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(10, 15, 28, 0.9) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 0 20px;
  animation: fadeInUp 1.2s ease-out forwards;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  opacity: 0.95;
  font-weight: 400;
}

.hero-content .cta-button {
  display: inline-block;
  padding: 16px 42px;
  background: linear-gradient(135deg, #00d4ff, #0077ff);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.hero-content .cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.45);
}

/* Fade-in animation for hero */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================== TECHNOLOGY INFO SECTION ====================== */
.technology-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 120px;
  background-color: #0a0f1c;
  align-content: center;
  text-align: center;
}

.technology-info h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1.8rem;
  position: relative;
  padding-bottom: 1.2rem;
}



.technology-info h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #00d4ff, #0077ff);
  border-radius: 2px;
}

.technology-info p,
.technology-info P { /* Normalize case */
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d0d8e8;
  margin-bottom: 2.2rem;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  
}

.technology-info h1 + p,
.technology-info h1 + P {
  font-size: 1.25rem;
  color: #a0b0d0;
  font-weight: 500;
  margin-bottom: 3.5rem;
  
}

/* Subtle section separators */
.technology-info > h1:not(:first-child) {
  margin-top: 5rem;
}

/* Modern card-style grouping for related content */
.technology-info > h1 + p + h1 {
  margin-top: 4rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .technology-info {
    padding: 70px 18px 90px;
  }
  
  .technology-info h1 {
    margin-bottom: 1.4rem;
  }
  
  .technology-info p,
  .technology-info P {
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .technology-info {
    padding: 90px 40px 110px;
  }
}

/* Large screens - extra breathing room */
@media (min-width: 1200px) {
  .technology-info {
    padding: 120px 20px 140px;
  }
}

/* Optional: Add a subtle glow or accent to key terms if you wrap them in <span class="highlight"> */
.highlight {
  color: #00d4ff;
  font-weight: 600;
}

/* Accessibility & Print-friendly tweaks */
@media print {
  .inovation-section {
    background-image: none !important;
    min-height: auto;
  }
}

/* ====================== FOOTER ====================== */
footer {
  background: #0d0d0d;
  border-top: 1px solid #1f1f1f;
  padding: 64px 48px 32px;
  position: relative;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}

footer::before {
  content: 'BYD';
  font-family: 'Bebas Neue', sans-serif;
  font-size: 280px;
  color: rgba(255, 255, 255, 0.02);
  position: absolute;
  bottom: -30px;
  right: -20px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -4px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 3px;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.brand-tagline {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e8001a;
  margin-bottom: 20px;
}

.brand-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: #888;
  max-width: 300px;
  font-weight: 300;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  background: transparent;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-btn:hover {
  border-color: #e8001a;
  color: #fff;
  background: rgba(232, 0, 26, 0.08);
}

.footer-col h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #777;
  font-size: 13.5px;
  font-weight: 300;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a::before {
  content: '';
  width: 0;
  height: 1px;
  background: #e8001a;
  transition: width 0.2s ease;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-col ul li a:hover::before {
  width: 12px;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #222, #e8001a33, #222, transparent);
  margin-bottom: 28px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
  color: #444;
  font-weight: 300;
}

.footer-copy span {
  color: #e8001a;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 11.5px;
  color: #444;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 0, 26, 0.1);
  border: 1px solid rgba(232, 0, 26, 0.2);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  color: #e8001a;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 20px;
  width: fit-content;
}

.dot {
  width: 6px;
  height: 6px;
  background: #e8001a;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

@media (max-width: 768px) {
  footer { padding: 48px 24px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}