/* Style Custom untuk Rental Mobil + Driver Purbalingga
   Optimized by Heri Wibowo
*/

/* --- Dasar & Tipografi --- */
body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- Navigasi Dinamis --- */
#mainNav {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Update: Pastikan link navigasi berubah warna saat navbar jadi putih agar terbaca */
.bg-white\/95 .nav-link {
    color: #475569; /* slate-600 */
}

.bg-white\/95 .nav-link:hover {
    color: #1d4ed8; /* blue-700 */
}

/* --- Hero Section --- */
.hero-gradient {
    background: radial-gradient(circle at top right, #1e3a8a, #0f172a);
    position: relative;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: #2563eb;
    filter: blur(150px);
    opacity: 0.2;
    top: 20%;
    right: 10%;
    z-index: 0;
}

/* --- Armada Card (Optimasi Grid) --- */
.car-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid transparent; /* Update: Smooth border transition */
}

.car-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6; 
}

/* Update: Pastikan gambar tidak keluar kotak saat dizoom */
.car-card .overflow-hidden {
    overflow: hidden;
}

.car-card img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-card:hover img {
    transform: scale(1.15);
}

/* --- Tombol & Aksen --- */
.btn-grad {
    background-image: linear-gradient(to right, #2563eb 0%, #1d4ed8 51%, #2563eb 100%);
    background-size: 200% auto;
    transition: 0.5s;
    border: none;
}

.btn-grad:hover { 
    background-position: right center; 
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* --- Animasi --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;      /* Center icon */
    justify-content: center;   /* Center icon */
    color: white;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1.25); }
    50% { transform: translateY(-20px) scale(1.25); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* --- Update: Responsive Breakpoints Lebih Akurat --- */

/* Layar Tablet (Grid jadi 2 atau 3 kolom agar tidak sempit) */
@media (max-width: 1024px) {
    .car-card {
        padding: 1rem;
    }
}

/* Layar Mobile */
@media (max-width: 768px) {
    .animate-float {
        animation: none; 
        transform: scale(1.1);
    }
    
    .car-card {
        margin-bottom: 1rem;
    }
    
    /* Perbaikan padding hero di mobile agar tidak terlalu rapat ke atas */
    header#home {
        padding-top: 120px;
        text-align: center;
    }
    
    header#home .flex {
        justify-content: center;
    }
}