* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #0a0a0a;
  color: #eee;
  scroll-behavior: smooth;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: #0f0f0f;
  border-bottom: 2px solid #aaff00;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: rotate(-5deg) scale(1.05);
}

.brand-name {
  color: #aaff00;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
}

.nav a {
  color: #bbb;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: #aaff00;
  transform: scale(1.1);
}

/* HERO */
.hero {
  background: url("dirtrallyworks7.jpg") center/cover no-repeat;
  height: 90vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 20px;
}

.hero h1 {
  color: #aaff00;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background-color: #aaff00;
  color: #111;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background-color: #d4ff00;
  transform: scale(1.05);
}

/* ABOUT */
.about {
  background-color: #0f0f0f;
  color: #ccc;
  text-align: center;
  padding: 80px 20px;
  border-top: 2px solid #aaff00;
  border-bottom: 2px solid #aaff00;
}

.about h2 {
  color: #aaff00;
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* GALLERY */
.gallery {
  padding: 60px 20px;
  text-align: center;
  background-color: #111;
}

.gallery h2 {
  color: #aaff00;
  font-size: 2rem;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  gap: 20px;
  padding: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
  filter: brightness(0.9);
}

.gallery-grid img:hover {
  transform: scale(1.07);
  filter: brightness(1);
  box-shadow: 0 0 15px #aaff00;
}

/* =======================================
   STYLING REVISI GALLERY: Tampilan Kartu Ala Porsche
   (Tambahkan kode ini ke file style.css Anda)
   ======================================= */

/* Container untuk Kartu Galeri (Menggantikan .gallery-navigation) */
.gallery-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Gaya Kartu (Mirip elemen Porsche Discover) */
.gallery-card {
    display: block; 
    position: relative;
    width: 30%; /* Mengatur lebar untuk 3 kartu dengan sisa ruang */
    max-width: 380px;
    height: 450px; 
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px) scale(1.02);
    /* Efek bayangan hijau Dirtrallyworks saat di-hover */
    box-shadow: 0 10px 20px rgba(170, 255, 0, 0.4); 
}

/* Gambar Latar Belakang Kartu */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-image {
    transform: scale(1.05); /* Zoom in saat di-hover */
}

/* Overlay Gelap di Kartu (Untuk Keterbacaan Teks) */
.gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Gradien dari bawah ke atas agar tulisan terbaca */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
}

/* Konten Teks di Atas Overlay */
.card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    text-align: left;
    z-index: 2;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.card-link {
    color: #aaff00; /* Teks tautan hijau neon */
    font-weight: 500;
    display: block;
    margin-top: 5px;
    transition: color 0.3s ease;
}

/* RESPONSIVE: Susun Vertikal di layar kecil */
@media (max-width: 768px) {
    .gallery-cards {
        flex-direction: column; /* Menyusun kartu ke bawah */
        align-items: center;
        gap: 20px;
    }
    
    .gallery-card {
        width: 90%; /* Ambil hampir seluruh lebar layar */
        height: 300px;
        max-width: none;
    }
}

/* CONTACT SECTION */
#contact {
  text-align: center;
  padding: 60px 20px;
  background-color: #111;
  color: #fff;
}

#contact h2 {
  font-size: 2rem;
  color: #aaff00;
  margin-bottom: 10px;
}

#contact p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 40px;
}

.contact-section {
  margin-bottom: 60px; /* jarak antar blok */
}

.contact-section h3 {
  color: #aaff00;
  font-size: 1.3rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* FLEX GRID UNTUK LOGO */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}
/* LOGO STYLE (disesuaikan agar pas di lingkaran) */
.social-logo {
  width: 55px;
  height: 55px;
  background-color: #aaff00;
  border-radius: 25%;
  padding: 5px; /* lebih kecil dari sebelumnya agar logo lebih besar */
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 2px #aaff00;
}

/* Efek hover glow */
.social-logo:hover {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 0 10px #d4ff00, 0 0 20px #aaff00;
}

/* Untuk mobile */
@media (max-width: 600px) {
  .social-logo {
    width: 55px;
    height: 55px;
    padding: 2px;
  }
}


/* =======================================
   STYLING BACK LINK (Centering Fixed)
   ======================================= */

.back-link {
    /* FIX CENTERING: Diubah menjadi elemen block dengan lebar sesuai konten */
    display: block; 
    width: fit-content; /* Membatasi lebar hanya seukuran konten */
    
    /* Centering dilakukan dengan margin auto */
    margin: 60px auto 60px auto; 

    /* Gaya Tombol (Ala Porsche/Dirtrallyworks) */
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 1px;
    
    /* Warna dan Padding */
    padding: 12px 30px;
    background-color: #aaff00; 
    color: #111; 
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem; 
    
    /* Efek Transisi */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.back-link:hover {
    background-color: #d4ff00; 
    transform: translateY(-2px) scale(1.02); 
    box-shadow: 0 5px 15px rgba(170, 255, 0, 0.4); 
}

/* =======================================
   STYLING MODAL/LIGHTBOX
   ======================================= */

.modal {
  display: none; 
  position: fixed; 
  z-index: 200; 
  padding-top: 50px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.95); 
}

.modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 900px; 
  max-height: 90vh; 
  object-fit: contain; 
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 201; 
}

.close-btn:hover,
.close-btn:focus {
  color: #aaff00;
  text-decoration: none;
  cursor: pointer;
}

@keyframes zoom {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}

.modal-content {
  animation: zoom 0.3s;
}
