/* ==========================================================================
   RESET & FONDASI DASAR (THEME PREMIUM)
   ========================================================================== */
:root {
    --primary: #cda250;       /* Gold Premium Muted */
    --primary-dark: #b68b3a;  /* Dark Gold Accent */
    --bg-dark: #0f141c;       /* Deep Luxury Blue-Black */
    --bg-card: #161f2b;       /* Soft Contrast Dark Card */
    --text-light: #f4f6f9;    /* Clean White */
    --text-muted: #a0aec0;    /* Premium Slate Gray Text */
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4, .logo, .section-subtitle {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #111;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(205, 162, 80, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

/* SECTION GLOBAL TITLES */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    width: 60px;
    height: 2px;
    background: var(--primary);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================================================
   1. SPLASH SCREEN (ELEGANT UPWARDS ANIMATION)
   ========================================================================== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #090d13;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

#splash-screen.hide {
    transform: translateY(-100%);
}

.splash-content {
    text-align: center;
}

.splash-logo {
    font-size: 5rem;
    color: var(--primary);
    animation: rotatePulse 2.5s infinite ease-in-out;
}

.splash-content h1 {
    font-size: 2.5rem;
    letter-spacing: 6px;
    margin-top: 20px;
    color: var(--text-light);
}

.loading-bar {
    width: 180px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loading-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--primary);
    animation: fillBar 2.2s ease-in-out forwards;
}

.splash-content p {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

@keyframes rotatePulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.1) rotate(15deg); opacity: 1; }
}

@keyframes fillBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ==========================================================================
   2. STICKY NAVBAR
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 25px 0;
    background: transparent;
}

header.scrolled {
    background: rgba(15, 20, 28, 0.95);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   3. HERO SECTION (FULLSCREEN MOUNTAIN BACKDROP)
   ========================================================================== */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1454496522488-7a8e488e8606?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15,24,36,0.4) 0%, rgba(15,20,28,1) 95%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding-top: 60px;
}

.tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--primary);
    display: block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

/* HERO STATS */
.hero-stats {
    display: flex;
    gap: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   4. ABOUT US SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    padding: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.img-badge i {
    font-size: 2rem;
    color: var(--primary);
}

.img-badge span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.vm-box {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 6px;
}

.vm-box h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vm-box p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.perks {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.perk-item {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perk-item i {
    color: var(--primary);
}

/* ==========================================================================
   5. TOUR PACKAGES SECTION
   ========================================================================== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.package-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.02);
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: rgba(205, 162, 80, 0.2);
}

.card-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-img img {
    height: 100%;
    transition: var(--transition-smooth);
}

.package-card:hover .card-img img {
    transform: scale(1.1);
}

.card-img .duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(15, 20, 28, 0.85);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.card-img .duration i {
    color: var(--primary);
    margin-right: 4px;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    height: 65px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}

.card-footer .price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.card-footer .price small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.btn-book {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-book:hover {
    background: var(--primary);
    color: #111;
}

/* ==========================================================================
   6. GALLERY SECTION WITH LIGHTBOX MASONRY MOCK
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    height: 100%;
    transition: var(--transition-smooth);
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(22, 31, 43, 0.7);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; color: var(--primary);
    opacity: 0; transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* LIGHTBOX MODAL */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(9, 13, 19, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 80%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 30px; right: 40px;
    color: var(--text-light);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--primary);
}

#lightbox-caption {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   7. TESTIMONIAL CAROUSEL/SLIDER (JS POWERED AUTO)
   ========================================================================== */
.slider-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: max-content;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 6px;
    width: 380px; /* Fixed card width for reliable infinite calc */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.01);
}

.testimonial-card .stars {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-info h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 2px;
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   8. BLOG SECTION
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    height: 220px;
}

.blog-body {
    padding: 25px;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.blog-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.blog-link i {
    font-size: 0.75rem;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-link {
    color: var(--primary);
}

.blog-card:hover .blog-link i {
    transform: translateX(5px);
}

/* ==========================================================================
   9. CONTACT SECTION & FORMS
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3, .contact-form-box h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 5px;
}

.info-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.info-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.map-container {
    margin-top: 35px;
    border-radius: 6px;
    overflow: hidden;
    height: 230px;
    border: 1px solid rgba(255,255,255,0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* INPUT FORM ELEMENTS */
.contact-form-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 16px;
    color: var(--text-light);
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
footer {
    background: #090d13;
    padding: 70px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.02);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    max-width: 320px;
}

.social-medias {
    display: flex;
    gap: 15px;
}

.social-medias a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-medias a:hover {
    background: var(--primary);
    color: #111;
    transform: translateY(-3px);
}

.footer-links h4, .footer-newsletter h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
}

.input-group input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    color: var(--text-light);
    border-radius: 4px 0 0 4px;
    outline: none;
}

.input-group button {
    background: var(--primary);
    border: none;
    padding: 0 18px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.input-group button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SCROLL FADE-IN ANIMATION LAYERS (INTERSECTION OBSERVER)
   ========================================================================== */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE FIRST OVERRIDES)
   ========================================================================== */
@media (max-width: 992px) {
    .packages-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active {
        right: 0;
    }
    .about-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .packages-grid, .blog-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    .hero-stats {
        gap: 25px;
    }
    .img-badge {
        right: 10px;
    }
    .contact-form-box {
        padding: 25px;
    }
}