:root {
  --accent: #ffd700;
  --accent-glow: rgba(255, 215, 0, 0.3);
  --bg-dark: #111;
  --text-light: #fdfdfd;
  font-family: 'Segoe UI', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scroll */
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 999;
}

.header-logo {
  height: 40px;
  margin-right: 10px;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a:hover {
  color: var(--accent);
}

/* Hamburger Toggle (Mobile only) */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero */
.hero.parallax {
  background: url("img/audi.jpg") center/cover no-repeat fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  padding-left: 10%;
  padding-right: 10%;
  color: var(--text-light);
}

.hero-content {
  background: rgba(0, 0, 0, 0.4);
  padding: 40px;
  border-radius: 8px;
  max-width: 600px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Button */
.btn {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: bold;
  box-shadow: 0 0 5px var(--accent-glow), 0 0 10px var(--accent-glow);
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  transform: scale(1.05);
}

/* Shimmer effect */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn.shimmer.animate::before {
  animation: shimmer 1s ease forwards;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Sections */
section {
  padding: 100px 10%;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 40px;
}

/* Grid Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--accent-glow);
}

/* About */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about img {
  width: 400px;
  border-radius: 8px;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Carousel Gallery */
.carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scrollGallery 30s linear infinite;
  gap: 20px;
}

.carousel img {
  width: 600px;
  height: 400px;
  border-radius: 6px;
  object-fit: cover;
}

@keyframes scrollGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reviews */
.reviews p {
  text-align: center;
  font-size: 1.1rem;
}

.reviews p:first-child {
  font-size: 2rem;
  color: var(--accent);
}

/* Footer */
footer {
  background: #000;
  padding: 60px 10%;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

footer .col {
  flex: 1 1 200px;
}

.footer-nav {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin: 8px 0;
}

.footer-nav a:hover {
  color: var(--accent);
}

.social-icons a {
  margin-right: 10px;
  color: white;
  transition: opacity 0.3s ease;
}

.social-icons a:hover {
  opacity: 0.7;
}

/* =======================
   Responsive (Mobile)
========================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    display: none;
    gap: 15px;
    margin-top: 10px;
  }

  nav ul.active {
    display: flex;
  }

  .hero.parallax {
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
    height: 90vh;
    padding: 0 5%;
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    margin: auto;
    padding: 20px;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about {
    flex-direction: column;
    text-align: center;
  }

  .about img {
    width: 100%;
    max-width: 400px;
  }

  .carousel img {
    width: 100%;
    height: auto;
  }

  footer {
    flex-direction: column;
  }
}

/* Fix carousel image sizing for mobile */
@media (max-width: 768px) {
  .carousel img {
    width: 100%;
    height: auto;
    max-width: 300px;
    object-fit: cover;
  }

  .carousel-track {
    gap: 10px;
  }
}
