/* Removes default spacing and sets consistent box-sizing. 
Sets a full-height black background. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  background: black;
}

/* Creates a fixed, semi-transparent black 
navbar with spacing and vertical centering. */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  background: rgba(0, 0, 0, 0.7);
  position: sticky;
  height: 70px;
  width: 100%;
  top: 0;
  z-index: 100;
}

/* Large, bold white text. */
.navbar .logo {
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
}

/* Horizontal navigation layout 
with spacing between items. */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li {
  position: relative;
}

/* Clean, animated hover effects. */
.nav-links a {
  position: relative;
  display: inline-block;
  color: white;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Color-gradient lines animate on top and bottom. Link floats up slightly. */
.nav-links a::before,
.nav-links a::after {
  content: '';
  position: absolute;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, red, blue);
  transition: width 0.4s ease;
}

.nav-links a::before {
  top: 0;
  left: 100%;
  transform: translateX(-100%);
}

.nav-links a::after {
  bottom: 0;
  left: 0;
}

.nav-links a:hover {
  transform: translateY(-4px);
}

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

 /* Logo image aligns with text and keeps a consistent size. */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  width: auto;
  margin-right: 10px;
}
    
/* Brand Box Layout */
/* Sets up a horizontal flex container with a dark theme. */
.brand-box {
  position: relative;
  display: flex;
  gap: 50px;
  background-color: black;
  padding: 35px 50px;
  margin: 100px 80px;
  border-radius: 20px;
  font-family: 'Teko', sans-serif;
  box-shadow: 0 0 20px rgba(77, 166, 255, 0.15);
  overflow: hidden;
  background-image: linear-gradient(to bottom, red, blue); /* Simulated two-color left border */
  background-repeat: no-repeat;
  background-size: 6px 100%;
  background-position: left center;
  padding-left: 56px; /* 50px + 6px fake border width */
}

/* On hover, the box lifts up slightly and casts a deeper shadow for interactivity. */
.brand-box:hover {
  transform: translateY(-9px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

/* Left Column */
/* Column layout, aligned to top-left */
.brand-left {
  flex: 1 1 50%; /*Takes half the space. */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Spacing and alignment for the brand logo and text. */
.brand-left-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

/* Base paragraph styling for brand descriptions. */
.brand-left p {
  font-size: 1rem;
  color: #b8b8b8;
}

/* Slightly bright and semi-transparent logo with fixed width. */
.brand-logo2 {
  width: 80px;
  height: auto;
  filter: brightness(1.2);
  opacity: 0.85;
}

/* Clear, uppercase brand title using a bold condensed font. */
.brand-left h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: #f5f5f5;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Shared style for brand description blocks using 
readable spacing and a clean modern font. */
#ferrari-description,
#ford-description,
#landrover-description,
#maserati-description,
#lincoln-description,
#jaguar-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.7;
  letter-spacing: 0.4px;
  max-width: 90%;
  margin-top: 8px;
}

/* Second column for video; aligned to the right. */
.brand-right {
  flex: 1;
  text-align: right;
}

/* Circular-cornered square video player 
with slight hover scaling and lighting tweaks. */
.brand-video {
  width: 380px;
  height: 340px;
  object-fit: cover;
  border-radius: 16px;
  border: none;
  box-shadow:
  5px 0 20px rgba(255, 0, 0, 0.5),   /* red glow */
  8px 0 10px rgba(0, 128, 255, 0.5),  /* blue glow closer in */
  0 6px 30px rgba(0, 0, 0, 0.4);      /* base shadow */
  filter: brightness(0.95) contrast(1.05);
  transition: transform 0.3s ease;
}

.brand-video:hover {
  transform: scale(1.02);
}

/* Spaced navigation buttons for video switching. */
.nav-buttons {
  margin-top: 20px;
  margin-left: 130px;
  display: flex;
  gap: 30px;
}

/* Fully custom styled buttons with no default styles; grow on hover. */
button {
  all: unset;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

button:hover {
  transform: scale(1.9);
}

/* Circular navigation arrows 
with dark background and directional rotation. */
.arrow-video {
  width: 36px;
  height: 36px;
  object-fit: cover;
  background-color: #1e1e1e;
  border-radius: 50%;
  pointer-events: none;
}

.rotate-left {
  transform: rotate(180deg);
}

/* Footer base styles: background, text color, padding, and font */
footer {
  background-color: #111;
  border-top: #ccc solid 1px;
  color: #fff;
  padding: 40px 20px;
  font-family: 'Teko', sans-serif;
}

/* Flex container for footer columns; wraps on smaller screens */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Each column inside the footer with flexible width */
.footer-column {
  flex: 1 1 200px;
  min-width: 180px;
}

/* Heading style for each footer section */
.footer-column h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #141687;
}

/* Unordered list style reset */
.footer-column ul {
  list-style: none;
  padding: 0;
}

/* Space between each list item link */
.footer-column ul li {
  margin-bottom: 8px;
}

/* Link style: subtle color with smooth hover transition */
.footer-column ul li a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s;
}

/* On hover, make links fully white */
.footer-column ul li a:hover {
  color: #fff;
}

/* Social icon style: size, spacing, and color */
.social-icons a {
  font-size: 1.5rem;
  margin-right: 15px;
  color: #ccc;
  transition: color 0.3s;
}

/* On hover, change social icon color to orange */
.social-icons a:hover {
  color: #f83737;
}

/* Bottom line of the footer: centered and subtle */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  color: #777;
  font-size: 0.9rem;
}


@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    height: auto;
  }

  .logo {
    margin-bottom: 1rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}


/* Responsive Design For screens ≤ 900px */
@media (max-width: 900px) {
  .brand-box {
    flex-direction: column;
    align-items: center;
    padding: 30px;
    gap: 30px;
    margin-top: 90px; 
  }

  .brand-left, .brand-right {
    align-items: center;
    text-align: center;
  }

  .brand-video {
    width: 100%;
    height: 300px;
  }

  .nav-buttons {
    margin-left: 0;
    justify-content: center;
  }
}



