/* CSS Kustom untuk Responsivitas dan Perbaikan Layout */
.gradient-primary {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
}

.nav-link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.nav-link-underline:hover::after {
    width: 100%;
}

/* Perbaikan untuk peta */
.map-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* Rasio 4:3 untuk peta */
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Perbaikan untuk mobile menu */
.mobile-menu {
    transition: all 0.3s ease;
}

/* Perbaikan untuk card hover */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Perbaikan untuk WhatsApp button */
.whatsapp-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Perbaikan untuk gambar produk */
.product-image {
    height: 12rem;
    object-fit: contain;
}

/* Perbaikan untuk testimonial */
.testimonial-card {
    height: 100%;
}

/* HERO SECTION STYLES */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 102, 204, 0.85) 0%,
        rgba(0, 82, 163, 0.8) 50%,
        rgba(0, 61, 122, 0.75) 100%
    );
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c35 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #0066cc;
}

/* Floating Elements Animation */
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-element 6s ease-in-out infinite;
}

.floating-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-3 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float-element {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Stats Counter */
.stats-container {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ff6b35;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .product-grid {
        grid-template-columns: 1fr !important;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .mobile-logo {
        height: 2.5rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        max-width: 300px;
    }
    
    .stats-container {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .feature-card {
        padding: 1.5rem !important;
    }
    
    .floating-element {
        display: none; /* Sembunyikan floating elements di mobile untuk performa */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .brands-grid {
        grid-template-columns: 1fr !important;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stats-container {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-section {
        min-height: 70vh;
    }
}

/* Utility classes untuk konsistensi */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3.5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}
