* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  background-color: #0d1b2a;
  color: white;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* ====================== HEADER ====================== */
.header {
  background: #D70C19;
  position: fixed;           /* FIX 1: changed sticky → fixed so it always stays on top */
  top: 0;
  left: 0;                   /* FIX 2: added left:0 / right:0 so fixed header spans full width */
  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: 60px;
  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;         /* FIX 3: needed for underline pseudo-element */
  padding-bottom: 4px;
}

/* Underline hover effect */
.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.nav-active::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.nav-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;              /* FIX 4: hamburger must sit above mobile menu overlay */
  position: relative;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  display: block;             /* FIX 5: spans must be block-level to show correctly */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger to X Animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);       /* FIX 6: scaleX(0) is cleaner than translateX for hiding */
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ====================== MOBILE MENU ====================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: #1a3a5c;        /* FIX 7: changed from sky-blue to dark navy matching site theme */
  z-index: 999;
  padding-top: 90px;
  padding-left: 2rem;
  padding-right: 2rem;        /* FIX 8: added right padding so text doesn't touch edge */
  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);  /* FIX 9: shadow so menu feels layered */
}

.mobile-menu.open {
  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;         /* FIX 10: subtle slide-right on hover for mobile links */
}

/* FIX 11: Dark overlay behind mobile menu when open */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;               /* just below mobile-menu (999) */
  backdrop-filter: blur(2px);
  transition: opacity 0.4s ease;
}

.mobile-overlay.active {
  display: block;
}

/* Active link styling for both desktop and mobile */
.nav-menu a.active,
.mobile-menu a.active {
  color: #a0d8ff;
  font-weight: 600;
}

/* ====================== FIX 12: PUSH MAIN CONTENT BELOW FIXED HEADER ====================== */
main {
  padding-top: 76px;          /* matches header height so content isn't hidden behind it */
}

/* ====================== MOBILE RESPONSIVE ====================== */
@media (max-width: 992px) {
    .hamburger {
        display: flex;          /* Show hamburger on mobile */
    }

    .nav-menu {
        display: none;          /* Hide desktop nav on mobile */
    }

    /* Optional: make header padding nicer on small screens */
    .header {
        padding: 0.6rem 0;
    }
}


/* ====================== HERO SECTION ====================== */
.display-page{
  min-height: 100vh;
  background-image: url('images/bydaboutbg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-color: #0d1b2a;
  padding: 120px 1.5rem 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}



/* Make sure content stays above the overlay */
.display-page > * {
  position: relative;
  z-index: 2;
}

.display-page h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  max-width: 800px;
  line-height: 1.1;
}

.display-page p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 2rem;
}

/*About-info*/
/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Outfit:wght@300;400;500;600&display=swap');

/* === CSS VARIABLES === */
:root {
  --bg-section: #f5f4f0;
  --bg-card: #ffffff;
  --bg-card-hover: #fafaf8;
  --accent: #1a3a5c;
  --accent-light: #2a5f9e;
  --accent-line: #c8a84b;
  --text-heading: #0d1f35;
  --text-body: #4a5568;
  --text-card-head: #1a3a5c;
  --border: #e2ddd6;
  --border-hover: #c8a84b;
  --radius: 12px;
  --shadow: 0 2px 20px rgba(13, 31, 53, 0.06);
  --shadow-hover: 0 12px 40px rgba(13, 31, 53, 0.12);
}

/* === SECTION WRAPPER === */
.about-content {
  background-color: var(--bg-section);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(200, 168, 75, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(26, 58, 92, 0.05) 0%, transparent 55%);
  padding: 90px 60px 100px;
  font-family: 'Outfit', sans-serif;
  position: relative;
}

/* Thin top decorative border */
.about-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 60px;
  right: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-line), var(--accent-light), var(--accent-line));
  opacity: 0.6;
}

/* === MAIN HEADINGS (h1 direct children) === */
.about-content > h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: black;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 24px;
  max-width: 800px;
  position: relative;
  padding-bottom: 18px;
}

/* Gold underline accent on main headings */
.about-content > h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent-line);
}

/* Second h1 (R&D heading) gets more top margin */
.about-content > h1:nth-of-type(2) {
  margin-top: 70px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

/* === INTRO PARAGRAPH === */
.about-content > p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-body);
  font-weight: 300;
  max-width: 820px;
  margin: 0 0 16px;
}

/* === CARD GRID CONTAINER === */
.about-info-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

/* === INDIVIDUAL CARDS === */
.about-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #c8a84b;
  border-radius: var(--radius);
  padding: 32px 30px 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease;
}

/* Left accent bar */
.about-info-card::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 0;
  width: 3px;
  height: 40px;
  background: var(--accent-line);
  border-radius: 0 2px 2px 0;
  transition: height 0.35s ease;
}

/* Subtle corner glow on hover */
.about-info-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 58, 92, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.about-info-card:hover::before {
  height: 60px;
}

.about-info-card:hover::after {
  opacity: 1;
}

/* ── 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; }
}