/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors */
    --color-primary: #001f3f;
    --color-secondary: #002a66;
    --color-light: #f0f8ff;
    --color-success: #c8ff00;
    --color-success-hover: #a5d800;
    --color-danger: #b71c1c;

    /* Text Colors */
    --color-text: #ffffff;
    --color-text-muted: #b8c5d6;
    --color-text-dark: #2c3e50;
    --color-text-medium: #495057;
    --color-text-light: #6c757d;

    /* Background Colors */
    --color-bg-alt: #1e90ff;
    --color-accent: #ffd700;
    --color-border: #c0ff00;
    --bg-success-transparent: rgba(173, 255, 28, 0.1);
    --bg-title-transparent: #001f3f23;
    --bg-card-light: #fdfeff;

    /* Shadows & Effects */
    --shadow-light: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 1rem 2rem rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 1rem 2.5rem rgba(0, 31, 63, 0.1);
    --backdrop-blur: blur(10px);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-cubic: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */
body,
html {
    margin: 0;
    padding: 0;
    font-family: "Figtree", sans-serif !important;
    background-color: var(--color-light);
    max-width: 100%;
    overflow-x: hidden;
    color: var(--color-text-dark);
}

/* Typography */
h2 {
    font-size: 1.45rem;
    font-weight: 700;
}
h3 {
    font-size: 1.2rem;
    font-weight: 700;
}
h4 {
    font-size: 1.125rem;
    font-weight: 700;
}
h5,
h6 {
    font-size: 1rem;
    font-weight: 700;
}

.fs-7 {
    font-size: 0.875rem;
}

.h2-title-content {
    font-size: 44px;
    font-weight: 600;
    line-height: 52px;
    letter-spacing: 0.2px;
    margin-bottom: 0.25rem;
}

.h3-sub-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
}

/* ===== UTILITY CLASSES ===== */
/* Text Colors */
.text-secondary {
    color: var(--color-secondary);
}
.text-light {
    color: var(--color-light);
}
.text-accent {
    color: var(--color-accent);
}
.text-custom-success {
    color: var(--color-success) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.text-hero-accent {
    color: var(--color-success);
}
.text-dark-readable {
    color: var(--color-text-dark);
}
.text-medium-readable {
    color: var(--color-text-medium);
}
.text-light-readable {
    color: var(--color-text-light);
}
.text-hero-readable {
    color: var(--color-text);
}
.text-hero-muted {
    color: var(--color-text-muted);
}

/* Background Colors */
.bg-alt-primary {
    background-color: var(--color-primary) !important;
}
.bg-alt-light {
    background-color: var(--color-light);
}
.bg-white,
.btn-light,
.bg-light,
.card {
    background-color: var(--bg-card-light);
}

/* Effects */
.backdrop-blur {
    -webkit-backdrop-filter: var(--backdrop-blur);
    backdrop-filter: var(--backdrop-blur);
}

.hover-scale {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-scale:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.hover-shadow:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
    transition: all var(--transition-normal);
}

.hover-bg-light:hover {
    background-color: var(--bg-card-light) !important;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    position: absolute;
    width: 100%;
    z-index: 1000;
    background: transparent;
    top: 0;
    padding: 1rem 0;
}

.navbar .nav-link,
.navbar .navbar-brand {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: color var(--transition-normal);
    position: relative;
    padding: 0.5rem;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-success);
    transition: width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--color-light) !important;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 50%;
}

.navbar-toggler {
    --bs-navbar-toggler-border-color: var(--color-success);
}

.navbar-toggler-icon {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c8ff00' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.logo-navbar {
    height: auto;
    max-height: 2.5rem;
}

/* Desktop navbar alignment */
@media (min-width: 992px) {
    .navbar .offcanvas-body {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .navbar .navbar-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
    }

    .navbar .nav-item {
        display: flex;
        align-items: center;
    }

    .navbar .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 48px;
        padding: 0.5rem 1rem;
    }

    .navbar .btn-custom {
        margin-left: auto !important;
    }
}

/* Offcanvas mobile styling */
.offcanvas {
    background: var(--color-primary);
    color: var(--color-light);
}

.offcanvas .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
    color: var(--color-light) !important;
}

.offcanvas .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
}

/* Desktop offcanvas reset */
@media (min-width: 992px) {
    .offcanvas-lg {
        background: transparent !important;
        box-shadow: none !important;
    }

    .offcanvas-lg .offcanvas-header {
        display: none !important;
    }
}

/* ===== HERO SECTION ===== */
/*
  Z-Index Hierarchy untuk Hero Section:
  - navbar: z-index: 1000 (tertinggi, selalu di atas)
  - hero .content: z-index: 10 (konten utama)
  - hero-image: z-index: 5 (gambar hero)
  - hero::before & .decor-circle: z-index: 1 (elemen dekoratif)
  - background: z-index: 0 (default)
*/
.hero {
    background: var(--color-primary);
    color: var(--color-text);
    position: relative;
    overflow: hidden;
    display: flex;
}

.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    z-index: 1;
    animation: decorRotate 20s linear infinite;
    opacity: 0.5;
    transform-origin: center;
}

.hero-section {
    padding-top: 5.5rem;
}

.hero .content {
    position: relative;
    z-index: 10;
    color: var(--color-text);
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-text);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero p {
    margin: 1rem 0 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--color-text-muted);
}

/* Hero Typography Animation */
.typing-text {
    white-space: wrap;
    overflow: hidden;
    width: fit-content;
}

.typing-text.done {
    border-right: none;
}

/* Hero Decorative Elements */
.hero .decor-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    z-index: 1;
    animation: decorFloat 12s ease-in-out infinite;
    opacity: 0.6;
    transition: opacity var(--transition-slow);
}

.hero:hover .decor-circle {
    opacity: 0.8;
    animation-duration: 8s;
}

.decor-circle.circle-1 {
    top: -100px;
    left: -80px;
    animation-delay: 0s;
    animation-duration: 12s;
}

.hero-image {
    max-width: 100%;
    height: auto;
    width: 480px;
    z-index: 5;
    position: relative;
    object-fit: contain;
}

.hero-img {
    max-width: 100%;
    height: auto;
}

/* Hero Enhanced Styles */
.hero-badge .badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
}

.hero-badge .badge-custom-success {
    background: var(--bg-success-transparent);
    color: var(--color-success);
    border: 1px solid var(--color-success);
    box-shadow: 0 4px 15px rgba(200, 255, 0, 0.25);
}

.hero-badge .badge:hover {
    transform: translateY(-2px);
}

.hero-badge .badge-custom-success:hover {
    box-shadow: 0 8px 25px rgba(200, 255, 0, 0.35);
}

.hero-title h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-title .text-custom-success {
    position: relative;
    display: inline-block;
}

.hero-title .text-custom-success::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-success), #a5d800);
    border-radius: 2px;
    animation: underlineSlide 2s ease-out 1s both;
}

.hero-description .lead {
    font-weight: 500;
    line-height: 1.7;
}

.hero-features .feature-icon {
    transition: transform var(--transition-normal);
}

.hero-features .d-flex:hover .feature-icon {
    transform: scale(1.1);
}

.hero-features h6 {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.hero-features small {
    font-size: 0.75rem;
}

/* Hero Trust Indicators */
.hero-trust h5.text-custom-success {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-trust .col-4:hover h5 {
    transform: scale(1.1);
    transition: transform var(--transition-normal);
}

.trust-item {
    transition: transform var(--transition-normal);
}

.trust-item:hover {
    transform: translateY(-2px);
}

.trust-item small {
    display: block;
    line-height: 1.2;
}

/* Hero Image Enhancements */
.hero-image-container {
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 5;
}

.hero-image-container:hover {
    transform: translateY(-8px);
}

.certification-badge {
    transition: transform var(--transition-fast);
}

.certification-badge:hover {
    transform: translateY(-2px);
}

/* Better text contrast for hero */
.hero .badge:not(.badge-custom-success):not(.text-bg-custom) {
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.95);
}

.hero-trust h5 {
    color: var(--color-text);
}

.hero-trust small {
    color: var(--color-text-muted);
}

/* ===== BUTTON STYLES ===== */
/* Base Button Styles */
.btn-custom {
    background-color: var(--color-success);
    color: var(--color-primary);
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
}

.btn-custom:hover {
    background-color: var(--color-success-hover);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced Button System */
.btn.primary,
.btn.secondary {
    border-radius: 9999px;
    padding: 0.8rem 1.25rem;
    font-weight: 700;
    line-height: 1.25rem;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
    position: relative;
    overflow: hidden;
}

/* Primary Button (filled) */
.btn.primary {
    background-image: linear-gradient(180deg, var(--color-success), var(--color-success-hover));
    color: var(--color-primary);
    border: 2px solid transparent;
    box-shadow: 0 6px 14px -8px rgba(173, 255, 28, 0.55), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(173, 255, 28, 0.6), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px -6px rgba(173, 255, 28, 0.55) inset, 0 4px 10px -8px rgba(0, 0, 0, 0.4);
}

/* Secondary Button (outline) */
.btn.secondary {
    background: transparent;
    border: 2px solid var(--color-success);
    color: var(--color-success);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.btn.secondary:hover {
    background: var(--bg-success-transparent);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -8px rgba(173, 255, 28, 0.35);
}

.btn.secondary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px -8px rgba(173, 255, 28, 0.25);
}

/* Custom Success Buttons */
.btn-custom-success {
    background: linear-gradient(135deg, var(--color-success), #a5d800);
    color: #000;
    border: 1px solid var(--color-success);
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(200, 255, 0, 0.2);
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-custom-success:hover {
    background: linear-gradient(135deg, #a5d800, #8cb300);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 255, 0, 0.3);
    border-color: #a5d800;
}

.btn-custom-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(200, 255, 0, 0.2);
}

.btn-custom-success:focus {
    box-shadow: 0 0 0 0.2rem rgba(200, 255, 0, 0.25);
    outline: none;
}

.btn-custom-success i {
    font-size: 0.85rem;
    line-height: 1;
}

.btn-outline-custom-success {
    background: transparent;
    color: var(--color-success);
    border: 2px solid var(--color-success);
    font-weight: 600;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-custom-success:hover {
    background: var(--color-success);
    color: #000;
    border-color: var(--color-success);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 255, 0, 0.3);
}

.btn-outline-custom-success:focus {
    box-shadow: 0 0 0 0.2rem rgba(200, 255, 0, 0.25);
    outline: none;
}

.btn-outline-custom-success i {
    font-size: 0.85rem;
    line-height: 1;
}

/* Badge Styles */
.badge-custom-success {
    background: linear-gradient(135deg, var(--color-success), #a5d800);
    color: #000;
    font-weight: 600;
    border: 1px solid rgba(200, 255, 0, 0.3);
    box-shadow: 0 1px 4px rgba(200, 255, 0, 0.2);
    text-shadow: none;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.badge-custom-success i {
    font-size: 0.8rem;
    line-height: 1;
}

/* Specialized Button Types */
.btn.btn-bg-secondary {
    border-radius: 9999px;
    padding: 0.8rem 1.25rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    background-image: linear-gradient(180deg, var(--color-secondary), var(--color-primary));
    color: var(--color-success);
    border: 2px solid transparent;
    box-shadow: 0 6px 14px -8px rgba(0, 31, 63, 0.55), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
    position: relative;
    overflow: hidden;
}

.btn.btn-bg-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(0, 31, 63, 0.6), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.btn.btn-bg-secondary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px -6px rgba(0, 31, 63, 0.5) inset, 0 4px 10px -8px rgba(0, 0, 0, 0.4);
}

/* Alternative Button Styles */
.btn.alt-primary {
    background: var(--color-primary);
    color: var(--color-success);
}

.btn.alt-secondary {
    background: var(--color-success);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

/* Focus States */
.btn.primary:focus-visible,
.btn.secondary:focus-visible,
.btn.btn-bg-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(173, 255, 28, 0.35), 0 8px 18px -8px rgba(0, 0, 0, 0.35);
}

/* Shine Effect */
.btn.primary::after,
.btn.btn-bg-secondary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.14) 20%, transparent 40%);
    transform: translateX(-100%);
    transition: transform 450ms ease;
    pointer-events: none;
}

.btn.primary:hover::after,
.btn.btn-bg-secondary:hover::after {
    transform: translateX(100%);
}

/* Enhanced Hover State */
.btn:hover {
    transition: all var(--transition-normal);
}

.hero-cta .btn-custom-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(200, 255, 0, 0.4) !important;
}

.hero-cta .btn-outline-custom-success:hover {
    transform: translateY(-2px);
    background: var(--color-success);
    border-color: var(--color-success);
    color: #000;
    box-shadow: 0 8px 25px rgba(200, 255, 0, 0.3);
}

/* ===== UTILITY COMPONENTS ===== */
.text-bg-custom {
    background: var(--bg-success-transparent);
    color: var(--color-success);
    padding: 0.5rem;
}

.text-bg-title {
    background: var(--bg-title-transparent);
    color: var(--color-primary);
    font-weight: normal;
    border-radius: 2rem;
    padding: 0.6rem 1rem;
}

.badge.text-bg-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn.primary,
    .btn.secondary,
    .btn.btn-bg-secondary {
        transition: none;
    }
    .btn.primary::after,
    .btn.btn-bg-secondary::after {
        display: none;
    }
}

/* ===== ICON & FEATURE STYLES ===== */
.icon-feature {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.icon-feature:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #0a58ca, #0d6efd);
}

#why-us .rounded {
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

#why-us .rounded:hover {
    transform: translateY(-5px);
}

#why-us i {
    display: inline-block;
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-6px);
    box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.15);
}

.hover-shadow:hover {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Modern section polish */
section[id] {
    scroll-margin-top: 90px; /* anchor offset for fixed/absolute navbar */
}

.h2-title-content {
    letter-spacing: 0.2px;
    margin-bottom: 0.25rem;
}

.badge.text-bg-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* Social Proof chips */
#clients-cert .badge.bg-white {
    border-color: #e9ecef !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
#clients-cert .badge.bg-primary-subtle {
    border: 1px solid rgba(13, 110, 253, 0.15);
}
#clients-cert .carousel .card {
    border-radius: 1rem;
}
#clients-cert .carousel-control-prev-icon,
#clients-cert .carousel-control-next-icon {
    filter: invert(1) grayscale(100%);
}

/* Tentang Kami */
#tentang-kami .img-fluid {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08) !important;
}
#tentang-kami .list-unstyled li {
    font-weight: 500;
}

/* Keunggulan Kami cards */
#why-us .border {
    border-color: #e9ecef !important;
}
#why-us .p-4 {
    background: #fff;
    border-radius: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#why-us .p-4:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
}

/* Readability fixes for 'Keunggulan & Nilai Kami' */
#why-us .rating-card .rating-bg {
    z-index: 0;
}
#why-us .rating-card .position-relative {
    z-index: 1;
}

/* Specific cards: Kecepatan Layanan (delay 200) and Integritas (delay 600) */
#why-us [data-aos-delay="200"] .rating-bg,
#why-us [data-aos-delay="600"] .rating-bg {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88));
    opacity: 1; /* override opacity-10 for clearer background */
}

#why-us .rating-card .rating-score h3 {
    color: var(--color-primary); /* was text-light on white bg */
    text-shadow: none;
}
#why-us .rating-card h4 {
    color: var(--color-text-dark);
}
#why-us .rating-card p {
    color: var(--color-text-medium);
}

/* Produk Section v2 (Image-based) */
#produk .card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

#produk .product-card-v2 {
    border-radius: 1rem;
    border: 1px solid #e9ecef;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease-in-out;
    position: relative;
}

#produk .product-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2.5rem rgba(0, 31, 63, 0.1);
}

#produk .product-card-v2 .product-image-wrapper {
    overflow: hidden;
    border-bottom: 1px solid #e9ecef;
    aspect-ratio: 16/10;
}

#produk .product-card-v2 .card-img-top {
    transition: transform 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#produk .product-card-v2:hover .card-img-top {
    transform: scale(1.05);
}

#produk .product-card-v2 .card-body {
    padding: 1.5rem;
}

#produk .product-card-v2 .card-title {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

#produk .product-card-v2 .card-text {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Klasifikasi Kebakaran Section */
#klasifikasi-kebakaran .classification-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 1.5rem 1rem;
}

#klasifikasi-kebakaran .classification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

#klasifikasi-kebakaran .classification-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#klasifikasi-kebakaran .classification-card .icon-wrapper i {
    font-size: 2.5rem;
}

#klasifikasi-kebakaran .classification-card .card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

#produk .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 31, 63, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 1rem;
}

#produk .product-card-v2:hover .card-overlay {
    opacity: 1;
}

/* Enhanced Product Cards (Modernized Version) */
.product-card-modern {
    content-visibility: auto;
    contain-intrinsic-size: 500px; /* Perkiraan tinggi kartu produk */
}

.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 0;
    background: white;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.product-card:hover .product-overlay {
    opacity: 1 !important;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}

.product-image-container img {
    transition: transform 0.3s ease;
    width: 100%;
    object-fit: cover;
}

.product-overlay {
    transition: all 0.3s ease;
    border-radius: 1rem 1rem 0 0;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* Product Card Hover Group Effect */
.group:hover .pattern-icon {
    transform: rotate(5deg) scale(1.1);
    transition: all 0.3s ease;
}

/* Product Features Badges */
.product-features .badge {
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
}

/* Enhanced Button Hover States */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Background Pattern Responsive Positioning */
@media (max-width: 768px) {
    .pattern-icon {
        right: -10px !important;
        top: -10px !important;
    }

    .pattern-icon i {
        font-size: 4rem !important;
    }
}

/* Product Card Content Alignment */
.product-icon {
    margin-bottom: 1rem;
}

.product-features {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Shadow Effects */
.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Smooth Background Pattern Animation */
.pattern-icon {
    transition: all 0.3s ease;
}

/* CTA Section Enhancement */
.bg-white.shadow-lg.border {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Services */
#services .card {
    border-radius: 1rem;
    border: 1px solid #e9ecef;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#services .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
}
#services .card i {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(0, 31, 63, 0.06);
}

/* Product Finder */
#product-finder .form-label {
    font-weight: 700;
    color: var(--color-primary);
}
#product-finder .form-select {
    border-radius: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-color: #dee2e6;
}
#product-finder .form-select:focus {
    border-color: var(--color-success);
    box-shadow: 0 0 0 0.25rem rgba(173, 255, 28, 0.25);
}
#product-finder .btn {
    padding: 0.75rem 1.25rem;
}

/* FAQ */
#faq .accordion-item {
    border: 0;
    margin-bottom: 0.75rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}
#faq .accordion-button {
    font-weight: 700;
}
#faq .accordion-button:not(.collapsed) {
    background: rgba(0, 31, 63, 0.04);
    color: var(--color-primary);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}
#faq .accordion-button:focus {
    border-color: var(--color-success);
    box-shadow: 0 0 0 0.25rem rgba(173, 255, 28, 0.25);
}

/* Kontak */
#hubungi .card {
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
}
#hubungi .bg-primary {
    background: linear-gradient(180deg, var(--color-primary), #002a66) !important;
}

/* Hapus style yang tidak terpakai */
.arrow-icon {
    display: none;
}

@media (max-width: 768px) {
    /* .hero {
                    padding: 120px 0 60px;
                    text-align: center;
                } */

    .hero h1 {
        font-size: 2.3rem;
        font-weight: bold;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* Profile Hero Badge Mobile */
    .hero-badge .badge {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }

    .hero-badge .badge i {
        font-size: 0.85rem !important;
        margin-right: 0.3rem !important;
    }

    .hero-btn-group {
        /* justify-content: center !important; */
        display: flex;
        flex-wrap: nowrap;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .navbar-collapse {
        margin: 0px;
        background: #001f3f;
        padding: 1rem;
        margin-top: 0.5rem;
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    .h2-title-content {
        font-size: 30px;
        line-height: 40px;
    }
    .h3-sub-title {
        font-size: 28px;
    }

    /* Mobile responsive decor circles with reduced animation */
    .hero .decor-circle {
        animation-duration: 15s;
        opacity: 0.4;
    }

    .hero .decor-circle.circle-1 {
        width: 200px;
        height: 200px;
        top: -50px;
        left: -50px;
    }

    .hero::before {
        width: 250px;
        height: 250px;
        right: -75px;
        animation-duration: 18s;
        opacity: 0.3;
    }

    /* Profile Hero Mobile Layout Improvements */

    .hero.hero-section .min-vh-50 {
        min-height: 0 !important;
    }

    /* Improve mobile spacing for profile hero elements */
    .hero-badge {
        margin-bottom: 1.5rem !important;
    }

    .hero-title {
        margin-bottom: 1.5rem !important;
    }

    .hero-description {
        margin-bottom: 1.5rem !important;
    }

    .hero-certifications {
        margin-bottom: 1.5rem !important;
    }

    .hero-stats {
        margin-bottom: 0 !important;
    }
}

/* Profile Hero Certifications & Stats Responsive Styles */
.hero-certifications .certification-badge {
    transition: transform var(--transition-fast);
}

.hero-certifications .certification-badge:hover {
    transform: translateY(-2px);
}

.hero-stats .stat-item {
    transition: all var(--transition-normal);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-stats .stat-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Mobile responsive styles for profile hero sections */
@media (max-width: 991.98px) {
    .hero-certifications .d-flex {
        justify-content: center !important;
    }

    .hero-stats .stat-number {
        font-size: 1.1rem !important;
    }

    .hero-stats .stat-label {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 767.98px) {
    .hero-certifications .certification-badge {
        flex: 1 1 auto;
        min-width: 120px;
        max-width: 160px;
    }

    .hero-certifications .badge {
        width: 100%;
        justify-content: center !important;
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
    }

    .hero-certifications .badge i {
        font-size: 0.9rem !important;
    }

    .hero-stats .stat-item {
        padding: 0.75rem 0.5rem !important;
        min-height: 80px;
    }

    .hero-stats .stat-number {
        font-size: 1.2rem !important;
    }

    .hero-stats .stat-label {
        font-size: 0.7rem !important;
        line-height: 1.2;
    }
}
@media (max-width: 575.98px) {
    .hero-certifications .d-flex {
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 0.4rem !important;
        justify-content: center !important;
    }

    .hero-certifications .certification-badge {
        flex: 1 1 calc(33.33% - 0.3rem);
        min-width: 100px;
        max-width: none;
    }

    .hero-stats .col-4 {
        margin-bottom: 0.5rem;
    }

    .hero-stats .stat-item {
        padding: 0.6rem 0.4rem !important;
        min-height: 70px;
    }

    .hero-stats .stat-number {
        font-size: 1.1rem !important;
        margin-bottom: 0.25rem !important;
    }

    .hero-stats .stat-label {
        font-size: 0.65rem !important;
    }
}

/* Enhanced Hero Section Styles */
.hero-badge .badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-badge .badge-custom-success {
    background: var(--bg-success-transparant);
    color: var(--color-success);
    border: 1px solid var(--color-success);
    box-shadow: 0 4px 15px rgba(200, 255, 0, 0.25);
}

.hero-badge .badge:hover {
    transform: translateY(-2px);
}

.hero-badge .badge-custom-success:hover {
    box-shadow: 0 8px 25px rgba(200, 255, 0, 0.35);
}

.hero-title h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-title .text-custom-success {
    position: relative;
    display: inline-block;
}

.hero-title .text-custom-success::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-success), #a5d800);
    border-radius: 2px;
    animation: underlineSlide 2s ease-out 1s both;
}

.hero-description .lead {
    font-weight: 500;
    line-height: 1.7;
}

.hero-features .feature-icon {
    transition: transform 0.3s ease;
}

.hero-features .d-flex:hover .feature-icon {
    transform: scale(1.1);
}

.hero-features h6 {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.hero-features small {
    font-size: 0.75rem;
}

/* Enhanced CTA Buttons */
.hero-cta .btn-custom-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(200, 255, 0, 0.4) !important;
}

.hero-cta .btn-outline-custom-success:hover {
    transform: translateY(-2px);
    background: var(--color-success);
    border-color: var(--color-success);
    color: #000;
    box-shadow: 0 8px 25px rgba(200, 255, 0, 0.3);
}

/* Hero Trust Indicators */
.hero-trust h5.text-custom-success {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-trust .col-4:hover h5 {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.trust-item {
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
}

.trust-item small {
    display: block;
    line-height: 1.2;
}

/* Responsive Hero Enhancements */
@media (max-width: 991.98px) {
    .hero-title h1 {
        font-size: 2.5rem;
    }

    .hero-features .col-6 {
        margin-bottom: 1rem;
    }

    .hero-cta .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    /* Profile Page Hero Mobile Specific Styles */
    .hero-title .display-4 {
        font-size: 2.2rem !important;
        line-height: 1.15 !important;
        margin-bottom: 1rem !important;
    }

    .hero-title .h4 {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }

    .hero-description .lead {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-features .row {
        row-gap: 1rem;
    }

    .hero-trust .d-flex {
        flex-direction: column;
        gap: 1rem !important;
        align-items: flex-start !important;
    }

    .trust-item {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .hero-cta .d-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    /* Profile Hero Very Small Screens */
    .hero-title .display-4 {
        font-size: 1.8rem !important;
        line-height: 1.1 !important;
    }

    .hero-title .h4 {
        font-size: 1rem !important;
    }

    .hero-description .lead {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    .hero-badge .badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

/* Enhanced Text Readability */
.hero-title h1 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: var(--color-text);
}

.hero-description p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--color-text-muted);
}

/* Improved contrast for hero section */
/* Better text contrast against dark backgrounds
   Exclude custom-styled badges to prevent override conflicts */
.hero .badge:not(.badge-custom-success):not(.text-bg-custom) {
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Use dedicated class for green accent text instead of overriding Bootstrap primary */
.text-hero-accent {
    color: var(--color-success);
}

/* Trust indicators in hero */
.hero-trust h5 {
    color: var(--color-text);
}

.hero-trust small {
    color: var(--color-text-muted);
}

/* Footer styles */
.site-footer {
    background: linear-gradient(180deg, var(--color-primary), #002a66);
    color: var(--color-text);
}
.site-footer .footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}
.site-footer .footer-text {
    color: var(--color-text-muted);
}
.site-footer .footer-link {
    color: var(--color-text);
    text-decoration: none;
}
.site-footer .footer-link:hover {
    color: var(--color-success);
    text-decoration: underline;
}
.site-footer .badge.text-bg-title {
    background: var(--bg-success-transparant);
    color: var(--color-success);
    border: 1px solid rgba(200, 255, 0, 0.25);
    border-radius: 9999px;
}
.site-footer .social-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}
.site-footer .social-link:hover {
    background: var(--bg-success-transparant);
    color: var(--color-success);
    border-color: var(--color-success);
    transform: translateY(-2px);
}
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Enhanced readability classes for different backgrounds */
.text-dark-readable {
    color: var(--color-text-dark);
}

.text-medium-readable {
    color: var(--color-text-medium);
}

.text-light-readable {
    color: var(--color-text-light);
}

.text-hero-readable {
    color: var(--color-text);
}

.text-hero-muted {
    color: var(--color-text-muted);
}

/* Modern Hero Profile Enhancements */

.certification-badge {
    transition: transform 0.2s ease;
}

.certification-badge:hover {
    transform: translateY(-2px);
}

/* Mobile responsiveness for certification badges */
@media (max-width: 767.98px) {
    .hero-certifications .certification-badge .badge {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.7rem !important;
    }

    .hero-certifications .certification-badge .badge i {
        font-size: 0.9rem !important;
        margin-right: 0.3rem !important;
    }

    .hero-certifications .d-flex {
        gap: 0.4rem !important;
    }

    .hero-certifications .certification-badge .badge span {
        font-size: 0.65rem !important;
    }
}

/* Company Identity Logo Circle Fix */
.rounded-circle {
    border-radius: 50% !important;
}

/* Ensure perfect circle for company logo container */
.d-flex .rounded-circle {
    min-width: 56px;
    min-height: 56px;
    flex-shrink: 0;
    border-radius: 50% !important;
    aspect-ratio: 1/1;
}

/* Mobile specific fixes for logo circle */
@media (max-width: 767.98px) {
    .d-flex .rounded-circle {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }

    .d-flex .rounded-circle img {
        max-height: 28px !important;
        max-width: 28px !important;
    }
}

/* Contact Page Enhancements */
.contact-method-card {
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.contact-method-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2) !important;
}

.contact-info-card .contact-item {
    transition: all 0.2s ease;
}

.contact-info-card .contact-item:hover {
    transform: translateX(5px);
}

.contact-info-card .hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Contact Information Card Icon Fixes */
.contact-info-card .contact-icon-wrapper .rounded-circle {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.contact-info-card .contact-icon-wrapper .rounded-circle i {
    color: #ffffff !important;
    font-size: 1.2rem;
}

.contact-info-card .contact-item:hover .contact-icon-wrapper .rounded-circle {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Company Header Logo Fix */
.contact-info-card .company-header .rounded-circle {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-info-card .company-header .rounded-circle:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.info-card {
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.map-container {
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: translateY(-2px);
}

/* Mobile responsiveness for contact info card */
@media (max-width: 767.98px) {
    .contact-info-card .contact-icon-wrapper .rounded-circle {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    .contact-info-card .contact-icon-wrapper .rounded-circle i {
        font-size: 1rem !important;
    }

    .contact-info-card .company-header .rounded-circle {
        width: 56px !important;
        height: 56px !important;
    }

    .contact-info-card .company-header .rounded-circle img {
        max-height: 32px !important;
    }

    .contact-info-card .contact-item {
        margin-bottom: 1.5rem !important;
    }

    .contact-info-card h6 {
        font-size: 0.9rem !important;
    }

    /* Contact Hero Compact on Mobile */

    .hero.hero-section .display-5 {
        font-size: 1.8rem !important;
    }

    .hero.hero-section .h5 {
        font-size: 1rem !important;
    }

    .hero-contact-methods .contact-method-card {
        padding: 1rem !important;
    }

    .hero-promise .d-flex {
        padding: 1rem !important;
    }
}
.stat-item {
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2) !important;
}

.quick-contact-card {
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.quick-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.backdrop-blur {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.min-vh-50 {
    min-height: 50vh;
}

/* Animated underline for hero subtitle */
.hero-title .position-relative .border-bottom {
    animation: slideIn 1.2s ease-out 0.8s forwards;
    transform-origin: left;
}

/* Table of Contents hover effect utility */
.hover-bg-light:hover {
    background-color: var(--bg-card-light) !important;
}

/* Privacy Policy enhancements */
.privacy-section-card {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.privacy-section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-number {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    font-size: 1rem;
    font-weight: 700;
    min-width: 40px;
    min-height: 40px;
}

.toc-progress-indicator {
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #e9ecef 0%, var(--color-primary) 50%, #e9ecef 100%);
    border-radius: 1px;
    z-index: -1;
}

/* ===== ANIMATIONS ===== */
/* AOS-like animations */
[data-aos] {
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    opacity: 0;
}

[data-aos].aos-in-view {
    opacity: 1;
    transform: none !important;
}

/* Fade animations */
[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

/* Zoom animations */
[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-out"] {
    transform: scale(1.1);
}

/* Custom keyframes for hero elements */
@keyframes underlineSlide {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 0.75;
    }
}

@keyframes pulseShadow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

@keyframes decorFloat {
    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translateY(-10px) scale(1.05);
        opacity: 0.8;
    }
    66% {
        transform: translateY(5px) scale(0.95);
        opacity: 0.4;
    }
}

@keyframes decorRotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.5;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */
/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .btn.primary,
    .btn.secondary,
    .btn.btn-bg-secondary {
        transition: none;
    }

    .btn.primary::after,
    .btn.btn-bg-secondary::after {
        display: none;
    }

    .decor-circle,
    .hero::before {
        animation: none;
        opacity: 0.2;
        transform: none;
    }
}

/* Performance optimizations */
.pattern-icon {
    transition: all var(--transition-normal);
    will-change: transform;
}

/* GPU acceleration for animations */
.hover-scale,
.trust-item,
.hero-image-container,
.certification-badge,
.decor-circle,
.hero::before {
    will-change: transform;
    transform: translateZ(0);
}

/* ===== MODERN PRODUCT CARDS ===== */
.product-card {
    transition: all var(--transition-normal);
    border: 0 !important;
    overflow: hidden;
    background: var(--bg-card-light);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-card .product-image {
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-card .product-overlay {
    transition: opacity var(--transition-normal);
}

.product-card:hover .product-overlay {
    opacity: 1 !important;
}

.product-card .feature-item {
    transition: all var(--transition-fast);
}

.product-card .feature-item:hover {
    background: var(--color-primary) !important;
    color: white;
    transform: scale(1.05);
}

.product-card .feature-item:hover i {
    color: white !important;
}

.product-card .capacity-section .badge {
    transition: all var(--transition-fast);
}

.product-card .capacity-section .badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Category Headers */
.category-header {
    position: relative;
}

.category-header::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

/* Enhanced Button Styles */
.btn.rounded-pill {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    border-width: 2px;
}

.btn.rounded-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary.rounded-pill:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-success.rounded-pill:hover {
    background: #198754;
    border-color: #198754;
    transform: translateY(-2px) scale(1.02);
}

/* Search & Filter Enhancements */
.input-group-lg .form-control {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

.category-btn {
    transition: all var(--transition-normal);
    font-weight: 600;
    border-width: 2px !important;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

/* Pattern Overlay Animation */
.pattern-overlay {
    animation: floatPattern 20s linear infinite;
}

@keyframes floatPattern {
    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
    }
    75% {
        transform: translateY(-15px) translateX(3px);
    }
}

/* Responsive Enhancements */
@media (max-width: 767.98px) {
    .product-card:hover {
        transform: translateY(-6px);
    }

    .category-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem !important;
    }

    .hero .display-4 {
        font-size: 2rem !important;
    }
}

/* ===== MOBILE PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 767.98px) {
    /* 
      Kurangi kompleksitas kartu dan nonaktifkan efek hover di perangkat mobile 
      untuk mencegah scroll yang patah-patah (jank).
    */
    .product-card-modern:hover,
    .card.product-card:hover,
    .hover-scale:hover,
    .hover-shadow:hover,
    #why-us .p-4:hover,
    #services .card:hover,
    #klasifikasi-kebakaran .classification-card:hover,
    .contact-method-card:hover,
    .stat-item:hover,
    .quick-contact-card:hover,
    .info-card:hover,
    .category-preview-card:hover,
    .category-btn:hover {
        transform: none !important;
        box-shadow: var(--shadow-light) !important; /* Gunakan shadow yang lebih ringan & statis */
    }

    /* Nonaktifkan overlay gradien yang berat di mobile */
    .product-card-modern .gradient-overlay {
        display: none !important;
    }

    /* Nonaktifkan overlay hover pada kartu produk di mobile */
    .product-card-modern:hover .quick-view-overlay,
    .product-card:hover .product-overlay {
        opacity: 0 !important;
    }

    /* Nonaktifkan zoom gambar dan transisi lain saat hover di mobile */
    .product-card-modern .image-container img,
    .product-card .product-image,
    .product-card-modern:hover .image-container img,
    .product-card:hover .product-image {
        transition: none !important;
        transform: none !important;
    }

    /* Nonaktifkan efek blur yang sangat berat di mobile */
    .backdrop-blur {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    /* Nonaktifkan animasi dekoratif di hero section untuk performa */
    .hero::before,
    .hero .decor-circle {
        animation: none;
        opacity: 0.2; /* Tetap tampilkan sebagai dekorasi statis */
    }
}

/* ===== PRODUCT PAGE STYLES ===== */

/* Product Catalog Hero Section */
.product-catalog-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #5761a8 100%);
    position: relative;
}

.product-hero-bg {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>')
        repeat;
}

.product-hero-overlay {
    background: rgba(30, 60, 114, 0.2);
}

.product-hero-decoration-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.product-hero-decoration-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
}

/* Product Category Cards */
.product-category-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.product-category-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.category-icon-wrapper {
    margin-bottom: 1.5rem;
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.category-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.9;
    border-radius: inherit;
}

.category-icon i {
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

/* Hero Stats Cards Modern */
.hero-stat-card-modern {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-stat-card-modern:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffc107;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* Breadcrumb Style */
.product-hero-breadcrumb {
    margin-bottom: 2rem;
}

.product-hero-breadcrumb .badge {
    font-size: 0.875rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-catalog-hero {
        min-height: 90vh;
        padding: 3rem 0;
    }

    .product-category-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .category-icon {
        width: 60px;
        height: 60px;
    }

    .category-icon i {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero-stat-card-modern {
        padding: 1rem 0.5rem;
    }
}

/* Product Page Specific */

/* Product Categories Preview for Hero Section */
.product-categories-preview {
    max-width: 500px;
    margin: 0 auto;
}

.category-preview-card {
    transition: all 0.3s ease;
}

.category-preview-card:hover {
    transform: translateX(10px);
}

.category-preview-card .bg-white:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.category-icon-small {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Floating Badge */
.floating-badge {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive for Product Categories Preview */
@media (max-width: 768px) {
    .category-preview-card .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .category-preview-card .me-3 {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }

    .floating-badge {
        position: relative !important;
        margin-top: 2rem;
    }
}

.product-image-modern {
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-overlay-gradient {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(102, 16, 242, 0.9));
    transition: opacity 0.3s ease;
}

/* ===== MOBILE PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 767.98px) {
    /* Reduce complexity of cards and disable hover effects on mobile */
    .product-card-modern:hover,
    .product-card:hover,
    .hover-scale:hover,
    .hover-shadow:hover,
    #why-us .p-4:hover,
    #services .card:hover,
    #klasifikasi-kebakaran .classification-card:hover,
    .contact-method-card:hover,
    .stat-item:hover,
    .quick-contact-card:hover,
    .info-card:hover,
    .category-preview-card:hover,
    .category-btn:hover {
        transform: none !important;
        box-shadow: var(--shadow-light) !important; /* Use a light, static shadow */
    }

    /* Hide decorative gradient overlay on mobile to save rendering power */
    .product-card-modern .gradient-overlay {
        display: none !important;
    }

    /* Disable hover overlays on product cards for mobile */
    .product-card-modern:hover .quick-view-overlay,
    .product-card:hover .product-overlay {
        opacity: 0 !important;
    }

    /* Disable image zoom and other transitions on hover for mobile */
    .product-card-modern .image-container img,
    .product-card .product-image,
    .product-card-modern:hover .image-container img,
    .product-card:hover .product-image {
        transition: none !important;
        transform: none !important;
    }

    /* Disable hero animations on mobile for performance */
    .hero::before,
    .hero .decor-circle {
        animation: none;
        opacity: 0.2; /* Keep a subtle decoration without movement */
    }
}
