/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-orange: #f97316;
    --dark-orange: #ea580c;
    --warm-brown: #7c2d12;
    --soft-cream: #fff7ed;
    --accent-red: #dc2626;
    --accent-yellow: #f59e0b;
    --accent-orange: #d97706; /* Ditambahkan untuk clean code */
    --glass-white: rgba(255, 255, 255, 0.88);
    --transition-standard: all 0.3s ease;

    --bs-pagination-color: #7c5a3a;
    --bs-pagination-bg: #fff7ed;
    --bs-pagination-border-color: #fed7aa;

    --bs-pagination-hover-color: #5a3e2b;
    --bs-pagination-hover-bg: #fde68a;
    --bs-pagination-hover-border-color: #fdba74;

    --bs-pagination-active-color: #ffffff;
    --bs-pagination-active-bg: #7c5a3a;
    --bs-pagination-active-border-color: #7c5a3a;
}



body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 50%, #fdba74 100%);
    background-size: cover;
    background-attachment: fixed;
    color: #1f2937;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Layers */
body::before, 
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::after {
    background: url('/assets/img/pattern.png') center/cover;
    opacity: 0.07;
    z-index: -3;
}

body::before {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.85), rgba(253, 186, 116, 0.85));
    z-index: -2;
}

/* Container */
.navbar-toggler {
    width: 30px;
    height: 24px;
    position: relative;
}

/* Garis */
.toggler-icon {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #000;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Posisi awal */
.top-bar {
    top: 0;
}

.middle-bar {
    top: 50%;
    transform: translateY(-50%);
}

.bottom-bar {
    bottom: 0;
}

.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
}

/* Hilangkan efek saat diklik / focus */
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler[aria-expanded="true"] {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* === SAAT TERBUKA (JADI X) === */
.navbar-toggler[aria-expanded="true"] .top-bar {
    transform: rotate(45deg);
    top: 10px;
}

.navbar-toggler[aria-expanded="true"] .middle-bar {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .bottom-bar {
    transform: rotate(-45deg);
    bottom: 10px;
}

/* ==========================================================================
   LAYOUT & SECTIONS
   ========================================================================== */
.section { padding: 120px 0; }
.pt-section { padding-top: 120px; }
.pt-section-1 { margin-top: -50px; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    transition: var(--transition-standard);
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    transition: var(--transition-standard);
    z-index: -1;
}

.navbar.scrolled::before {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.navbar .nav-link {
    transition: all 0.2s ease;
    border-radius: 10px;
}

.navbar .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   LOCATION MAP & PINS
   ========================================================================== */
.location-map {
    height: 500px;
    background: linear-gradient(135deg, var(--warm-brown) 0%, #c2410c 50%, #fb923c 100%);
    position: relative;
    overflow: hidden;
}

.location-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/img/map-pattern.jpg') center/cover repeat;
    opacity: 0.08;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.pins-container {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 2rem;
}

.location-pin {
    position: absolute;
    cursor: pointer;
    transition: var(--transition-standard);
    text-decoration: none;
}

/* Pin Positioning */
.pin-1 { top: 35%; left: 35%; }
.pin-2 { top: 40%; right: 35%; }
.pin-3 { bottom: 25%; left: 20%; }
.pin-4 { top: 55%; right: 25%; }

/* Pin Element */
.pin {
    width: clamp(36px, 5vw, 50px);
    height: clamp(36px, 5vw, 50px);
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--soft-cream);
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    position: relative;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.45);
    z-index: 3;
    transition: var(--transition-standard);
}

.location-pin:hover .pin { transform: scale(1.15); }

/* Pin Info Card */
.pin-info {
    position: absolute;
    top: -80px;
    left: 60px;
    background: linear-gradient(135deg, var(--soft-cream), #ffedd5);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(124, 45, 18, 0.2);
    min-width: 160px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-standard);
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.pin-info h6 { 
    margin: 0 0 4px 0; 
    font-size: 0.95rem; 
    color: var(--warm-brown); 
}

.pin-info p { 
    margin: 0; 
    font-size: 0.8rem; 
    color: #9a3412; 
}

.location-pin:hover .pin-info,
.location-pin.active .pin-info {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   HERO ANIMATIONS & ELEMENTS
   ========================================================================== */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Core Hero Parts Shared Style */
.hero-frame-static, 
.hero-bg, 
.hero-mc, 
.hero-bg-bottom {
    width: 100%;
    max-width: 500px;
}

.hero-frame-static {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    animation: fadeInUpSmooth 0.2s ease-out forwards;
}

.hero-bg {
    opacity: 0;
    position: relative;
    z-index: 2;
    animation: showBg 0.25s ease 0.35s forwards;
    filter: contrast(1.05) brightness(1.05);
}

.hero-mc {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 4;
    animation: fadeIn 0.8s ease 1s forwards;
}

.hero-bg-bottom {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: 1;
    animation: spinIn 1.2s ease 1.7s forwards;
}

/* Camera Flash */
.hero-flash {
    position: absolute;
    top: 50%; left: 50%;
    width: 50%;
    aspect-ratio: 1/1;
    transform: translate(-50%, -50%);
    background: white;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-flash.active { animation: flash 0.5s ease; }

/* ==========================================================================
   COMPONENTS (CARDS, BUTTONS, TEXT)
   ========================================================================== */
.light-glass {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red), var(--accent-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: textGlow 3s ease-in-out infinite alternate;
}

.btn-custom {
    padding: 16px 32px;
    border-radius: 20px;
    font-weight: 600;
    transition: 0.4s;
    border: none;
}

.btn-outline-dark {
    border: 1px solid #000;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: #fff;
}

.btn-primary-custom:hover {
    color: #fff !important; /* Memastikan teks tetap putih saat dihover */
    opacity: 0.9; /* Opsional: memberikan sedikit efek visual saat ditekan */
}

.card-custom {
    border-radius: 24px;
    transition: 0.4s;
}

.card-custom:hover { transform: translateY(-10px); }

/* ==========================================================================
   FLOATING ORNAMENTS
   ========================================================================== */
.floating-ornament {
    position: fixed;
    font-size: 2rem;
    opacity: 0.2;
    z-index: -1;
}

/* Safe Top */
.ornament-1 { top: 25%; left: 33%; color: var(--accent-orange); animation: floatRotate 15s linear infinite; }
.ornament-2 { top: 28%; right: 8%; color: var(--accent-red); animation: floatRotate 20s linear infinite reverse; }
.ornament-10 { top: 32%; left: 50%; transform: translateX(-50%) scale(0.8); color: var(--accent-yellow); animation: floatRotate 18s linear infinite; }

/* Upper Mid */
.ornament-3 { top: 45%; left: 9%; color: var(--accent-yellow); animation: floatRotate 18s linear infinite; }
.ornament-4 { top: 48%; right: 12%; color: var(--accent-orange); animation: floatRotate 22s linear infinite reverse; }

/* Center Cluster */
.ornament-5 { top: 58%; left: 50%; transform: translate(-50%, -50%) scale(1.2); color: var(--accent-red); animation: floatRotate 16s linear infinite; }
.ornament-6 { top: 56%; left: 38%; transform: translate(-50%, -50%) scale(0.9); color: var(--accent-yellow); animation: floatRotate 19s linear infinite reverse; }
.ornament-9 { top: 60%; left: 62%; transform: translate(-50%, -50%) scale(0.8); color: var(--accent-orange); animation: floatRotate 14s linear infinite; }
.ornament-12 { top: 68%; left: 50%; transform: translateX(-50%) scale(0.7); color: var(--accent-yellow); animation: floatRotate 17s linear infinite reverse; }

/* Lower Mid */
.ornament-7 { bottom: 22%; left: 12%; color: var(--accent-orange); animation: floatRotate 17s linear infinite; }
.ornament-8 { bottom: 20%; right: 12%; color: var(--accent-red); animation: floatRotate 21s linear infinite; }

/* Bottom */
.ornament-11 { bottom: 8%; left: 50%; transform: translateX(-50%) scale(0.9); color: var(--accent-orange); animation: floatRotate 20s linear infinite; }



/* ==========================================================================
   KEYFRAMES (ANIMATIONS)
   ========================================================================== */
.pulse-ring {
    position: absolute;
    border: 2px solid rgba(251, 146, 60, 0.5);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    animation: pulse 2s infinite;
}

.carousel-card {
    transition: all 0.3s ease;
}

.carousel-img {
    width: 100%;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

/* Hover zoom */
.carousel-card:hover .carousel-img {
    transform: scale(1.05);
}

/* Control lebih clean */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    opacity: 0.7;
}

/* Hilangin background default */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

@keyframes fadeInUpSmooth {
    from { opacity: 0; transform: translate(-50%, -30%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes showBg { to { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes spinIn {
    from { transform: translate(-50%, -50%) scale(0) rotate(-180deg); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
}

@keyframes flash {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes textGlow {
    0% { filter: drop-shadow(0 0 2px rgba(217, 119, 6, 0.4)); }
    100% { filter: drop-shadow(0 0 16px rgba(220, 38, 38, 0.85)); }
}

@keyframes floatRotate {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-15px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .location-map { height: 420px; }
    .pin-info { min-width: 140px; }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        border-radius: 16px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        transition: var(--transition-standard);
    }

    .navbar.scrolled .navbar-collapse {
        margin-top: 10px;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar .nav-link {
        margin-bottom: 8px;
    }
}

@media (max-width: 768px) {
    .section { padding: 0; }
    .pt-section { padding-top: 50px; }
    .pt-section-1 { margin-top: 40px; }
    
    .location-map { height: 320px; }
    
    .hero-frame-static, 
    .hero-bg, 
    .hero-mc, 
    .hero-bg-bottom {
        max-width: 300px;
    }

    /* Mobile Pin Info Behavior */
    .pin-info {
        top: -70px;
        left: 50%;
        transform: translate(-50%, 0) !important;
        opacity: 1;
        text-align: center;
        min-width: 120px;
    }

    .location-pin.active .pin-info {
        opacity: 0 !important;
    }
}

@media (hover: none) {
    .location-pin:hover .pin { transform: none; }
}


/* ==========================================================================
   HERO ROW SHINING EFFECT (Diagonal Top-Left → Bottom-Right)
   ========================================================================== */
.shine-hero-row {
    position: relative;
    overflow: hidden;
}

/* Shine Sweep - Diagonal Clean */
.shine-hero-row::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 30%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.2) 70%,
        transparent 100%
    );
    transform: rotate(0deg);
    animation: heroShineSweep 6s linear infinite;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

/* Sparkle Effect */
.shine-hero-row::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: heroSparkleFloat 10s linear infinite;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* Side Shine Layers */
.shine-hero-row > .col-md-5::before,
.shine-hero-row > .col-md-6::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 140, 0, 0.15) 50%,
        transparent 100%
    );
    animation: heroSideShine 5s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.shine-hero-row > .col-md-6::before {
    animation-duration: 6s;
    background: linear-gradient(
        -90deg,
        transparent 0%,
        rgba(255, 180, 100, 0.2) 50%,
        transparent 100%
    );
}

/* =========================
   ANIMATIONS
   ========================= */

/* FIXED: diagonal straight path */
@keyframes heroShineSweep {
    0% {
        transform: translate(-50%, -50%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        transform: translate(0%, 0%);
        opacity: 1;
    }
    80% {
        opacity: 0.5;
    }
    100% {
        transform: translate(50%, 50%);
        opacity: 0;
    }
}

@keyframes heroSparkleFloat {
    0% {
        transform: translateY(0px);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px);
        opacity: 0.3;
    }
    100% {
        transform: translateY(0px);
        opacity: 0.1;
    }
}

@keyframes heroSideShine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    60% {
        transform: translateX(100%);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Hover Enhancement */
.shine-hero-row:hover::before {
    animation-duration: 3s;
}

.shine-hero-row:hover::after {
    animation-duration: 5s;
}


.active>.page-link, .page-link.active {
    background-color: #7c5a3a;
    border-color: #7c5a3a;
}
.page-link {
    color: #7c5a3a;
}

.accordion-button:not(.collapsed) {
    background-color: transparent
}