/* --- 1. CSS VARIABLES & RESET --- */
:root {
    --bg-body: #050505;       /* Hitam pekat */
    --bg-card: #121212;       /* Abu gelap untuk kartu */
    --bg-input: #1e1e1e;      /* Abu lebih terang untuk input */
    --accent: #dc2626;        /* Merah Racing */
    --accent-hover: #b91c1c;  /* Merah gelap */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;    /* Abu-abu teks */
    --border-color: #27272a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #fff;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- 2. LAYOUT UTILITIES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- 3. BUTTONS & INPUTS (Automotive Style) --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Bentuk sedikit kotak (mechanical feel) */
    border-radius: 4px; 
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.form-control {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--accent);
}

label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

/* --- 4. NAVIGATION --- */
header {
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(5px); /* Sedikit blur hanya untuk readability */
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.logo i {
    color: var(--accent);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after { width: 100%; }

/* --- 5. HERO SECTION --- */
.hero {
  padding: 80px 0;
  position: relative;
  background-image: url("img/carsilva.jpg");
  background-position: center;
  background-repeat: no-repeat;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Booking Widget (Dark Panel) */
.booking-panel {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    margin-top: 1rem;
}

.booking-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-img-wrapper {
  position: relative;
  z-index: 1;
  width: auto;
  height: 380px;
border-radius: 8px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8));
  transition: transform 0.5s ease;
  overflow: hidden;
}

.hero-img-wrapper:hover{
    transform: scale(1.02);
}

.hero-img-wrapper img {
  height: 380px;
  object-fit: cover;
}

/* --- 6. FEATURES (Why Choose Us) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: 0.3s;
    text-align: center;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- 7. FLEET SECTION --- */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.car-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.car-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.1);
}

.car-thumb {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.car-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.car-card:hover .car-thumb img {
    transform: scale(1.1);
}

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.car-details {
    padding: 25px;
}

.car-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.car-category {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.car-specs {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.spec-item i { color: var(--accent); }

.car-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    display: block;
}

.car-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* --- 8. FOOTER --- */
footer {
    background-color: #000;
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info p {
    color: var(--text-muted);
    margin-top: 20px;
    font-size: 0.9rem;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-img-wrapper { display: none; } /* Hide image on mobile for focus */
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { margin: 0 auto 30px; }
    .nav-menu { display: none; } /* Simplified for mobile */
    .footer-grid { grid-template-columns: 1fr; }
}
