/* Golden Car Custom Styles - Clean & Optimized */
:root {
    --primary-color: #000000;
    --secondary-color: #FFD700;
    --accent-color: #FFFFFF;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    padding-top: 76px;
    line-height: 1.7;
    color: #333;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}

.container {
    max-width: var(--container-max-width);
}

/* ===== LAYOUT & SECTIONS ===== */
section {
    padding: var(--section-padding);
}

.content-section {
    position: relative;
}

.py-section {
    padding: var(--section-padding);
}

/* ===== NAVBAR ===== */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.95) !important;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.logo-img {
    height: 42px;
    width: auto;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
    transition: var(--transition);
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* ===== NAVBAR ENHANCEMENTS ===== */
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #333333 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero .lead {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ===== IMAGES ===== */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: var(--transition);
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.progressive-image {
    background: transparent;
    overflow: hidden;
    position: relative;
}

.progressive-image img {
    background: transparent;
    transition: opacity 0.5s ease;
}

.progressive-image.loaded img {
    opacity: 1;
}

/* Image Sizes - Proportional & Responsive */
.hero .img-fluid {
    max-height: 500px;
    object-fit: contain;
    object-position: center;
}

.content-section .img-fluid {
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.service-image {
    max-height: 300px;
    object-fit: cover;
    object-position: center;
    width: 100%;
    aspect-ratio: 16/9;
}

/* Legalitas Images Styling */
.legalitas-image {
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.legalitas-image:hover {
    transform: scale(1.05);
}

/* ===== CARDS ===== */
.card {
    transition: var(--transition);
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow);
    background: #fff;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    margin-bottom: 1rem;
    color: #333;
}

.card-text {
    flex-grow: 1;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Legalitas Card Hover Effect */
.legalitas-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legalitas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(45deg, #FFD700, #FFC107);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.btn-warning:hover {
    background: linear-gradient(45deg, #FFC107, #FFB300);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-outline-warning {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-warning:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-dark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-dark:hover {
    background-color: #333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== STATISTICS ===== */
.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #FFC107 100%);
    color: var(--primary-color);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* ===== UTILITIES ===== */
.badge {
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.display-3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile First - Base styles above are for mobile */
@media (max-width: 767px) {
    .hero {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero .img-fluid {
        max-height: 250px;
    }
    
    .content-section .img-fluid {
        max-height: 200px;
    }
    
    .service-image {
        max-height: 150px;
        aspect-ratio: 4/3;
    }
    
    section {
        padding: 60px 0;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .hero {
        min-height: 75vh;
    }
    
    .hero .img-fluid {
        max-height: 350px;
    }
    
    .service-image {
        max-height: 200px;
    }
    
    .display-3 {
        font-size: 3.5rem;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .hero {
        min-height: 85vh;
    }
    
    .hero .img-fluid {
        max-height: 500px;
    }
    
    .service-image {
        max-height: 300px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .progressive-image img,
    .fade-in-up,
    .btn,
    .card,
    .logo-img {
        transition: none;
        animation: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .progressive-image,
    .hero .img-fluid,
    .service-image,
    .navbar {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
}

/* ===== TRANSPARENT IMAGES ===== */
.critical-image {
    background: none !important;
    background-color: transparent !important;
    object-fit: contain;
    max-height: 500px;
}

.hero .critical-image {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.hero .critical-image:hover {
    transform: scale(1.02);
}

/* Ensure PNG transparency is preserved */
img[src$=".png"] {
    background: transparent;
}

/* ===== IMAGE OPTIMIZATION ===== */

/* ===== FLOATING WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    animation: pulse-wa 2s infinite;
    user-select: none;
    -webkit-user-drag: none;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #25d366, #20ba5a);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:hover::before {
    opacity: 0.3;
}

.whatsapp-float:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 22px;
    }
}
