/* ===== MAIN ===== */
main {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.divider {
  width: 100%;
  margin: 1rem 0;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.2);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--neutral-black);
  opacity: 0.5;
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--neutral-white);
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  animation: slideUp 1s ease forwards 1s;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  animation: slideUp 1s ease forwards 1.2s;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent);
  color: var(--neutral-white);
  font-size: 1.2rem;
  font-weight: 500;
  border-radius: 0.4rem;
  transition: all 0.3s ease-in-out;
  transform: translateY(20px);
  animation: slideUp 1s ease forwards 1.4s;
  position: relative;
  overflow: hidden;
}

.hero-btn:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 101, 177, 0.3);
}

.hero-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 101, 177, 0.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Responsive */
@media screen and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content p {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-btn {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
  }
}

/* ===== INTRO SECTION ===== */
.intro-section {
  padding: 5rem 2rem;
  margin-top: 2rem;
  border-radius: 10px;
  background-color: var(--neutral-white);
  position: relative;
  overflow: hidden;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.intro-text {
  text-align: center;
  margin-bottom: 4rem;
  transform: translateY(30px);
  transition: transform 0.6s ease 0.2s;
}

.intro-text h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  display: inline-block;
}

.intro-text h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 60px;
  height: 3px;
  background: var(--primary);
  transform: translateX(-50%);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.intro-text:hover h2::after {
  width: 100px;
}

.intro-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--neutral-gray);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.intro-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pillar {
  background: var(--neutral-light);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease-in-out;
  border: 1px solid rgba(128, 128, 128, 0.1);
}

.pillar:hover {
  transform: translateY(-10px) ;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.pillar img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.4s ease-in-out;
  filter: brightness(0.75);
}

.pillar img:hover {
  transform: scale(1.05);
  filter: brightness(1);
}

.pillar-content {
  padding: 2rem;
  position: relative;
}

.pillar-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.pillar-content h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.pillar:hover .pillar-content h3::after {
  width: 50px;
}

.pillar-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--neutral-gray);
  position: relative;
}

/* Intro Section Responsive */
@media screen and (max-width: 1024px) {
  .intro-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-text h2 {
    font-size: 2.4rem;
  }

  .intro-text p {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 768px) {
  .intro-section {
    padding: 4rem 1.5rem;
  }

  .intro-pillars {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .intro-text h2 {
    font-size: 2rem;
  }

  .pillar {
    max-width: 500px;
    margin: 0 auto;
  }

  .pillar-content {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .intro-section {
    padding: 3rem 1rem;
  }

  .intro-text h2 {
    font-size: 1.8rem;
  }

  .intro-text p {
    font-size: 1rem;
  }

  .pillar-content h3 {
    font-size: 1.3rem;
  }

  .pillar-content p {
    font-size: 0.9rem;
  }
}

/* ===== 3D Model Section ===== */
.threeD-showcase {
  overflow: hidden;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: 0.5rem;
  background-color: var(--neutral-white);
}

.threeD-showcase-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--neutral-white);
}

.threeD-showcase .threeD-showcase-container h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  display: inline-block;
}

.threeD-showcase .threeD-showcase-container h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 60px;
  height: 3px;
  background: var(--primary);
  transform: translateX(-50%);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.threeD-showcase .threeD-showcase-container p {
  font-size: 1.2rem;
  color: var(--neutral-gray);
  max-width: 800px;
  text-align: center;
}

.threeD-showcase .threeD-showcase-container model-viewer {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 768px) {
  .threeD-showcase .threeD-showcase-container h2 {
    font-size: 2rem;
  }

  .threeD-showcase .threeD-showcase-container p {
    font-size: 1rem;
  }

  .threeD-showcase .threeD-showcase-container model-viewer {
    height: 350px;
  }
}

/* ===== MODELS SECTION ===== */
.models-section {
  padding: 4rem 2rem;
  border-radius: 1rem;
  background-color: var(--neutral-white);
  overflow: hidden;
}

.models-header {
  text-align: center;
  margin-bottom: 2rem;
}

.models-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.models-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 60px;
  height: 3px;
  background: var(--primary);
  transform: translateX(-50%);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.models-header:hover h2::after {
  width: 100px;
}

.models-header p {
  font-size: 1.2rem;
  color: var(--neutral-gray);
  max-width: 800px;
  margin: 0 auto;
}

.models-slider-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  width: 100%;
}

.models-slider {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding: 0.5rem 0;
}

.model-card {
  flex: 0 0 calc(50% - 1rem);
  background: linear-gradient(145deg, var(--neutral-white), var(--neutral-light), rgba(128, 128, 128, 0.15));
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(128, 128, 128, 0.08);
}

.model-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: linear-gradient(145deg, var(--neutral-white), var(--neutral-light), rgba(128, 128, 128, 0.25));
  border-color: rgba(128, 128, 128, 0.15);
}

.model-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.model-card:hover img {
  transform: scale(1.05);
}

.model-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin: 1.5rem 1.5rem 1rem;
  position: relative;
}

.model-card h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.model-card:hover h3::after {
  width: 70px;
}

.model-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--neutral-gray);
  margin: 0 1.5rem 1.5rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--neutral-white);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--neutral-white);
}

.slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--neutral-gray);
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider-dot.active {
  width: 12px;
  height: 12px;
  background-color: var(--primary);
}

/* Models Section Responsive Styles */
@media screen and (min-width: 1200px) {
  .model-card {
    flex: 0 0 calc(33.333% - 1.33rem);
  }
}

@media screen and (max-width: 1024px) {
  .models-section {
    padding: 3.5rem 1.5rem;
    width: 100%;
  }

  .model-card h3 {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 768px) {
  .models-section {
    padding: 3rem 1rem;
    width: 100%;
  }

  .models-slider {
    gap: 1.5rem;
  }

  .model-card {
    flex: 0 0 calc(100% - 0.75rem);
    max-width: 100%;
  }

  .model-card img {
    height: 180px;
  }

  .model-card h3 {
    font-size: 1.3rem;
    margin: 1rem 1rem 0.5rem;
  }

  .model-card p {
    font-size: 0.9rem;
    margin: 0 1rem 1rem;
  }

  .slider-dots {
    gap: 0.4rem;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  .slider-dot.active {
    width: 10px;
    height: 10px;
  }
}

@media screen and (max-width: 600px) {
  .models-section {
    padding: 2.5rem 0.75rem;
  }

  .models-slider {
    gap: 1rem;
  }

  .model-card {
    flex: 0 0 85%;
    max-width: 85%;
  }

  .slider-controls {
    margin-top: 1.5rem;
  }

  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .models-section {
    padding: 2rem 0.5rem;
  }

  .models-slider {
    gap: 0.75rem;
  }

  .model-card {
    flex: 0 0 calc(100% - 0.375rem);
    max-width: 100%;
  }

  .model-card img {
    height: 160px;
  }

  .model-card h3 {
    font-size: 1.2rem;
    margin: 0.8rem 0.8rem 0.5rem;
  }

  .model-card p {
    font-size: 0.85rem;
    margin: 0 0.8rem 0.8rem;
  }

  .slider-controls {
    margin-top: 1.25rem;
  }

  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 360px) {
  .model-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .model-card img {
    height: 140px;
  }

  .models-slider {
    gap: 0.5rem;
  }
}

/* ===== WHY BMW SECTION ===== */
.why-bmw-section {
  padding: 4rem 0;
  background-color: var(--neutral-black);
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.why-bmw-header {
  text-align: center;
  margin-bottom: 2rem;
}

.why-bmw-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--neutral-white);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.why-bmw-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.why-bmw-header:hover h2::after {
  width: 130px;
}

.why-bmw-header p {
  font-size: 1.2rem;
  color: var(--neutral-light);
  max-width: 800px;
  margin: 0 auto;
}

.why-bmw-content {
  display: flex;
  flex-wrap: wrap;
}

.why-bmw-engine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.why-bmw-engine img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-bmw-engine-container {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: 400;
  color: var(--neutral-white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 2rem;
}

.why-bmw-engine-content {
  width: 40%;
}

.why-bmw-engine-content h3 {
  font-size: 2rem;
  font-weight: 400;
  color: var(--neutral-white);
  margin-bottom: 1rem;
}

.why-bmw-engine-content p {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--neutral-white);
  margin-bottom: 1rem;
  line-height: 1.7;
  word-spacing: 0.1rem;
}

.why-bmw-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.why-bmw-control img {
  width: 80%;
  height: 80%;
  object-fit: cover;
}

.why-bmw-control-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.why-bmw-control-content {
  margin-left: 3rem;
  width: 80%;
}

.why-bmw-control-content h3 {
  font-size: 2rem;
  font-weight: 400;
  color: var(--neutral-white);
  margin-bottom: 1rem;
}

.why-bmw-control-content p {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--neutral-white);
  margin-bottom: 1rem;
  line-height: 1.7;
  word-spacing: 0.1rem;
}

.why-bmw-brakes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.why-bmw-brakes img {
  width: 75%;
  height: 75%;
  object-fit: cover;
}

.why-bmw-brakes-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.why-bmw-brakes-content {
  margin-right: 3rem;
  width: 70%;
}

.why-bmw-brakes-content h3 {
  font-size: 2rem;
  font-weight: 400;
  color: var(--neutral-white);
  margin-bottom: 1rem;
}

.why-bmw-brakes-content p {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--neutral-white);
  margin-bottom: 1rem;
  line-height: 1.7;
  word-spacing: 0.1rem;
}

.suspension-steering-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.why-bmw-suspension {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.why-bmw-steering {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.suspension-steering-container img {
  width: 500px;
  height: 500px;
  object-fit: cover;
}

.suspension-steering-container .why-bmw-suspension-container,
.suspension-steering-container .why-bmw-steering-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.suspension-steering-container .why-bmw-suspension-content,
.suspension-steering-container .why-bmw-steering-content {
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.suspension-steering-container h3 {
  font-size: 2rem;
  font-weight: 400;
  color: var(--neutral-white);
  margin-bottom: 1rem;
}

.suspension-steering-container p {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--neutral-white);
  margin-bottom: 1rem;
  line-height: 1.7;
  word-spacing: 0.1rem;
}

/* ===== WHY BMW SECTION RESPONSIVE STYLES ===== */
@media screen and (max-width: 1200px) {
  .why-bmw-engine-container {
    flex-direction: column;
    gap: 1rem;
    top: 85%;
  }

  .why-bmw-engine-content {
    width: 70%;
  }

  .suspension-steering-container {
    flex-direction: column;
    gap: 2rem;
  }

  .suspension-steering-container img {
    width: 400px;
    height: 400px;
  }
}

@media screen and (max-width: 992px) {
  .why-bmw-control,
  .why-bmw-brakes {
    flex-direction: column;
    gap: 2rem;
  }

  .why-bmw-control img,
  .why-bmw-brakes img {
    width: 100%;
  }

  .why-bmw-engine-content h3,
  .why-bmw-control-content h3,
  .why-bmw-brakes-content h3,
  .suspension-steering-container h3 {
    font-size: 1.8rem;
  }

  .why-bmw-control-content,
  .why-bmw-brakes-content {
    margin: 0;
    width: 80%;
    text-align: center;
  }

  .suspension-steering-container img {
    width: 350px;
    height: 350px;
  }
}

@media screen and (max-width: 768px) {
  .why-bmw-section {
    padding: 3rem 1rem;
  }

  .why-bmw-content {
    flex-direction: column;
    align-items: center;
  }

  .why-bmw-engine,
  .why-bmw-control,
  .why-bmw-brakes,
  .why-bmw-suspension,
  .why-bmw-steering {
    width: 100%;
    padding: 0 1rem;
  }

  .why-bmw-engine {
    flex-direction: column;
  }

  .why-bmw-engine img,
  .why-bmw-control img,
  .why-bmw-brakes img {
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  .why-bmw-engine-container {
    position: static;
    transform: none;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
  }

  .why-bmw-engine-content,
  .why-bmw-control-content,
  .why-bmw-brakes-content,
  .suspension-steering-container .why-bmw-suspension-content,
  .suspension-steering-container .why-bmw-steering-content {
    width: 90%;
    text-align: center;
    margin: 0 auto;
  }

  .why-bmw-engine-content h3,
  .why-bmw-control-content h3,
  .why-bmw-brakes-content h3,
  .suspension-steering-container h3 {
    font-size: 1.6rem;
  }

  .why-bmw-engine-content p,
  .why-bmw-control-content p,
  .why-bmw-brakes-content p,
  .suspension-steering-container p {
    font-size: 1rem;
  }

  .suspension-steering-container img {
    width: 300px;
    height: 300px;
  }
}

@media screen and (max-width: 576px) {
  .why-bmw-header h2 {
    font-size: 2rem;
  }

  .why-bmw-header p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .why-bmw-engine-content h3,
  .why-bmw-control-content h3,
  .why-bmw-brakes-content h3,
  .suspension-steering-container h3 {
    font-size: 1.4rem;
  }

  .why-bmw-engine-content p,
  .why-bmw-control-content p,
  .why-bmw-brakes-content p,
  .suspension-steering-container p {
    font-size: 0.9rem;
  }

  .suspension-steering-container img {
    width: 250px;
    height: 250px;
  }

  .why-bmw-section {
    padding: 2rem 0;
  }
}

@media screen and (max-width: 480px) {
  .why-bmw-engine-container {
    padding: 1rem 0;
  }

  .suspension-steering-container img {
    width: 200px;
    height: 200px;
  }

  .why-bmw-engine-content,
  .why-bmw-control-content,
  .why-bmw-brakes-content,
  .suspension-steering-container .why-bmw-suspension-content,
  .suspension-steering-container .why-bmw-steering-content {
    width: 95%;
  }
}