/* Font Family */
* {
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 700;
}

/* Gradient Backgrounds */
.gradient-hero {
    background-color: #1e3a8a;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 58, 138, 0.5) 100%),
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(59,130,246,0.1)" stroke-width="1"/></pattern></defs><rect fill="%231e3a8a" width="1200" height="600"/><rect fill="url(%23grid)" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 500px;
}

.gradient-accent {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

/* Hero Section with Different Background Image */
#home.gradient-hero {
    background-color: #0d1453;
    background-image:
        linear-gradient(135deg, rgba(13, 20, 83, 0.75) 0%, rgba(26, 35, 126, 0.65) 50%, rgba(40, 53, 147, 0.55) 100%),
        url('https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(249, 168, 37, 0.2);
    color: #f9a825;
    padding: 8px 22px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(249, 168, 37, 0.4);
    letter-spacing: 0.5px;
}

/* Hero H1 Highlight (gold gradient text) */
.hero-highlight {
    background: linear-gradient(135deg, #f9a825, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Primary Button (gold) */
.hero-btn-primary {
    background: linear-gradient(135deg, #f9a825 0%, #f57f17 100%);
    color: #0d1453;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 168, 37, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(249, 168, 37, 0.55);
}

/* Hero Outline Button */
.hero-btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Hero Glassmorphism Card */
.hero-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Hero Stats Grid inside card */
.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hero-stat-item {
    text-align: center;
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.hero-stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #f9a825;
    display: block;
}

.hero-stat-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: block;
}

/* CTA Section with Different Background Image */
#kontak.gradient-hero {
    background-color: #1e3a8a;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 58, 138, 0.5) 100%),
                      url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1200&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 400px;
}

/* Lazy Loading Images */
img {
    transition: opacity 0.3s ease;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

img.image-loaded {
    animation: fadeInImage 0.5s ease-in;
}

/* Image fallback background */
img {
    background-color: #f3f4f6;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Card Image Container */
.card-hover .relative {
    position: relative;
    overflow: hidden;
    height: 256px;
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}

.card-hover .relative img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Button Primary */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
}

/* Feature Icon */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 16px;
    margin: 0 auto 16px;
}

/* Stats Counter Animation */
.stats-counter {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Underline Animated */
.underline-animated {
    position: relative;
    display: inline-block;
}

.underline-animated::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 2px;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Image Gallery Styling */
.card-hover img {
    transition: transform 0.3s ease;
}

.card-hover:hover img {
    transform: scale(1.1);
}

/* Product Card Shadow */
.card-hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-hover:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Image Container Optimization */
.card-hover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure image containers have proper background while loading */
.card-hover [class*="h-"] {
    background-color: #f3f4f6;
}

/* Button hover animation improvement */
.btn-primary {
    cursor: pointer;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* WhatsApp Link Styling */
a[href*="wa.me"] {
    color: inherit;
    text-decoration: none;
}

a[href*="wa.me"]:hover {
    color: #25D366;
    transition: color 0.3s ease;
}

/* Disable background-attachment: fixed on mobile (iOS Safari fix) */
@media (max-width: 768px) {
    .gradient-hero,
    #home.gradient-hero,
    #kontak.gradient-hero {
        background-attachment: scroll;
    }
}
