/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

/* GLASS EFFECT */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  animation: slideDownHeader 0.8s ease;
}

@keyframes slideDownHeader {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

header img { 
  height: 45px;
  transition: transform 0.3s ease;
}

header img:hover {
  transform: scale(1.1);
}

nav { 
  display: flex; 
  gap: 20px;
}

nav a {
  color: #f4b400;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

nav a:hover { 
  color: #fff;
  transform: translateY(-2px);
}

nav a:hover::after {
  width: 100%;
}

/* MOBILE NAV */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  position: absolute;
  top: 70px;
  right: 20px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  animation: fadeInMenu 0.3s ease;
}

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu a {
  padding: 10px 0;
  color: #f4b400;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  color: #fff;
  transform: translateX(5px);
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
  animation: zoomIn 20s ease infinite;
}

@keyframes zoomIn {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.hero-img.active { 
  opacity: 1;
}

/* Show desktop images by default, hide mobile */
.mobile-hero { display: none; }
.desktop-hero { display: block; }

/* HERO CONTENT WITH SLIDE-DOWN ANIMATION */
.hero-content.glass {
  max-width: 900px;
  width: 95%;
  padding: 60px 40px;
  text-align: center;
  margin-top: -150px;
  opacity: 0;
  transform: translateY(-50px);
  animation: slideDown 1s ease forwards;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title-line1 {
  font-size: 65px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
  animation: fadeInUp 1s ease 0.3s backwards;
}

.hero-title-line2 {
  font-size: 65px;
  font-weight: bold;
  color: #f4b400;
  margin-bottom: 30px;
  line-height: 1.2;
  animation: fadeInUp 1s ease 0.5s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero button {
  font-size: 22px;
  padding: 20px 60px;
  border-radius: 12px;
  border: none;
  background: #f4b400;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #000;
  animation: fadeInUp 1s ease 0.7s backwards;
  box-shadow: 0 4px 15px rgba(244, 180, 0, 0.4);
}

.hero button:hover {
  background: #fff;
  color: #000;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
}

/* SECTIONS */
.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.section.featured-cars {
  padding-top: 60px;
}

/* LIGHT MODE - White background for About section with design */
@media (prefers-color-scheme: light) {
  .section#about {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%);
    max-width: 100%;
    padding: 60px 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 50px 50px 0 0;
  }

  /* Decorative elements */
  .section#about::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 180, 0, 0.2) 0%, transparent 20%);
    border-radius: 50%;
    pointer-events: none;
  }

  .section#about::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 180, 0, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  
  }

  .section#about > h2,
  .section#about > h3,
  .section#about > h4,
  .section#about > p,
  .section#about > .about-text,
  .section#about > .tagline,
  .section#about > .core-values-text,
  .section#about > .icons-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
  }
  
  .section#about .about-text,
  .section#about p {
    color: #333333;
  }

  .section#about .core-values-text {
    color: #444444;
  }
  
  .section#about .mission-text p,
  .section#about .mission-text ul {
    color: #333333;
  }

  /* Enhanced icon boxes in light mode - no shadows */
  .section#about .icon-box {
    background: transparent;
    box-shadow: none;
    border: none;
  }

  .section#about .icon-box:hover {
    box-shadow: none;
    border: none;
  }

  /* Mission section styling in light mode */
  .section#about .mission-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 1200px;
    margin: 60px auto;
    position: relative;
    z-index: 1;
  }

  /* Remove mobile overrides for mission in light mode */
}

.section h2 {
  font-size: 40px;
  color: #f4b400;
  text-align: center;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease;
}

.section h3 {
  font-size: 32px;
  color: #f4b400;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.section h4 {
  font-size: 28px;
  color: #f4b400;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.cars-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 20px;
  margin-top: 20px;
}

.cars-gallery img {
  width: 100%;
  border-radius: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.cars-gallery img:hover { 
  transform: scale(1.06) rotate(1deg);
  box-shadow: 0 8px 30px rgba(244, 180, 0, 0.4);
}

.icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.icon-box { 
  width: 100%;
  height: auto;
  border-radius: 25px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(244, 180, 0, 0.3);
}

.icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.icon-box:hover img {
  transform: scale(1.05);
}

.section p {
  text-align: center;
  font-size: 18px;
  margin: 15px auto;
  line-height: 1.8;
  max-width: 1200px;
  animation: fadeInUp 0.8s ease;
}

.section p a {
  color: #f4b400;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.section p a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.section p a:hover {
  color: #fff;
}

.section p a:hover::after {
  width: 100%;
}

.about-text {
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
  margin: 20px auto;
  max-width: 1200px;
  color: #d0d0d0;
  animation: fadeInUp 0.8s ease;
}

.tagline {
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
  margin: 30px auto 20px;
  max-width: 1200px;
  color: #f4b400;
  font-weight: bold;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.core-values-text {
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  margin: 20px auto;
  max-width: 1200px;
  color: #ffffff;
  animation: fadeInUp 0.8s ease;
}

.footer {
  padding: 50px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  margin-top: 0;
  animation: fadeIn 1s ease;
}

/* MISSION SECTION */
.mission-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 60px auto;
  max-width: 1200px;
  animation: fadeInUp 1s ease;
}

.mission-image {
  flex: 1;
  min-width: 250px;
  height: 300px;
  background-image: url('images/mission-car.png');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.mission-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 40px rgba(244, 180, 0, 0.3);
}

.mission-text {
  flex: 1;
  min-width: 250px;
}

.mission-text h3 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 20px;
  text-align: left;
  margin-top: 0;
  animation: fadeInLeft 0.8s ease;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mission-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #d0d0d0;
  text-align: left;
  margin: 0;
  animation: fadeInRight 0.8s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mission-text ul {
  font-size: 18px;
  color: #d0d0d0;
  text-align: left;
  margin: 0;
  animation: fadeInRight 0.8s ease;
}

.mission-text ul li {
  margin-bottom: 10px;
}

/* Show desktop mission image by default, hide mobile */
.mobile-mission { display: none; }
.desktop-mission { display: block; }

/* CONTACT SECTION */
.contact-section {
  background: #fff !important;
  color: #0a0a0a;
  padding: 80px 20px;
  margin-top: 0;
  animation: fadeIn 1s ease forwards;
  opacity: 1;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-section h2 {
  color: #0a0a0a;
  font-size: 42px;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.contact-intro {
  color: #555;
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  background: #f8f8f8;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: block;
  cursor: pointer;
  animation: fadeInUp 0.8s ease;
}

.contact-card:nth-child(1) {
  animation-delay: 0.1s;
}

.contact-card:nth-child(2) {
  animation-delay: 0.2s;
}

.contact-card:nth-child(3) {
  animation-delay: 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: #f4b400;
  box-shadow: 0 10px 30px rgba(244, 180, 0, 0.15);
  background: #fff;
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.2) rotate(5deg);
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-card h3 {
  color: #0a0a0a;
  font-size: 22px;
  margin: 0 0 15px 0;
  text-align: center;
  transition: color 0.3s ease;
}

.contact-card:hover h3 {
  color: #f4b400;
}

.contact-card span {
  transition: all 0.3s ease;
}

.contact-card:hover span {
  color: #0a0a0a;
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
  }

  body {
    scroll-padding-top: 90px;
  }

  .hero {
    height: 80vh;
    padding: 10px;
  }

  .hero-content.glass {
    max-width: 95%;
    width: 95%;
    padding: 40px 25px;
    margin-top: -100px;
    opacity: 0;
    transform: translateY(-50px);
    animation: slideDown 1s ease forwards;
  }

  .hero-title-line1 {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .hero-title-line2 {
    font-size: 36px;
    margin-bottom: 25px;
  }

  .hero button {
    font-size: 18px;
    padding: 18px 40px;
    width: 100%;
  }

  .section h2 {
    font-size: 32px;
  }

  .section h3 {
    font-size: 26px;
  }

  .section h4 {
    font-size: 22px;
  }

  .section p, .about-text, .tagline, .core-values-text {
    font-size: 16px;
  }

  .icon-box {
    padding: 0;
  }

  .icon-box img {
    width: 100%;
    height: 100%;
  }

  .cars-gallery {
    grid-template-columns: 1fr;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .cars-gallery img {
    min-width: 280px;
    scroll-snap-align: start;
  }

  .icons-grid {
    grid-template-columns: 1fr;
  }
  
  .section.featured-cars {
    padding-top: 20px;
    margin-top: -50px;
  }
  
  .desktop-hero { display: none; }
  .mobile-hero { display: block; }
  
  .mission-section {
    gap: 20px;
    margin: 40px auto;
  }
  
  .mission-image {
    min-width: 140px;
    flex: 0.8;
    height: 200px;
    background-image: url('images/mission-car-mobile.png');
  }
  
  .mission-text {
    flex: 1.2;
  }
  
  .mission-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .mission-text p {
    font-size: 15px;
  }
  
  .mission-text ul {
    font-size: 14px;
  }
  
  .mission-text ul li {
    margin-bottom: 8px;
  }
  
  .contact-section {
    padding: 60px 20px;
  }
  
  .contact-section h2 {
    font-size: 32px;
  }
  
  .contact-intro {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-card {
    padding: 30px 20px;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
  }
  
  .contact-card h3 {
    font-size: 20px;
  }
}