/* ============================================
   GUNUNG MERBABU - MAIN STYLESHEET
   File: assets/css/style.css
   ============================================ */

:root {
    --dark-green: #0d2018;
    --deep-green: #1a3a28;
    --forest-green: #2d5a3d;
    --mid-green: #3d7a52;
    --light-green: #5a9e6f;
    --gold: #c9a227;
    --gold-light: #e8c46a;
    --gold-dark: #a07d10;
    --cream: #f5f0e8;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --navbar-height: 80px;
}

/* ---- BASE ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Lato', sans-serif;
    background: var(--dark-green);
    color: var(--white);
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-green); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ---- NAVBAR ---- */
#mainNav {
    height: var(--navbar-height);
    background: transparent;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

#mainNav.scrolled {
    background: rgba(13, 32, 24, 0.97) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.3);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    height: 68px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--dark-green);
    flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; }
.brand-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    line-height: 1.2;
}
.brand-sub {
    font-size: 0.55rem;
    letter-spacing: 2.5px;
    color: var(--gold);
    font-weight: 300;
}

.nav-link {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.85) !important;
    padding: 8px 14px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold) !important;
}
.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

/* ---- HERO SECTION ---- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark-green);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.55);
    transition: transform 0.3s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,32,24,0.3) 0%,
        rgba(13,32,24,0.15) 40%,
        rgba(13,32,24,0.5) 80%,
        rgba(13,32,24,1) 100%
    );
}

.hero-content { position: relative; z-index: 2; padding-top: var(--navbar-height); }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid rgba(201, 162, 39, 0.5);
    color: var(--gold-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    letter-spacing: 3px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-title .line1 { color: var(--white); display: block; }
.hero-title .line2 {
    color: var(--gold);
    display: block;
    -webkit-text-stroke: 1px var(--gold);
}

.hero-desc {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(201, 162, 39, 0.4);
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.6);
    font-weight: 700;
    margin-top: 4px;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-gold {
    background: var(--gold);
    color: var(--dark-green);
    border: 2px solid var(--gold);
    padding: 12px 28px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
}

.btn-outline-gold {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
    padding: 12px 28px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-gold:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 0.65rem;
    letter-spacing: 3px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.scroll-indicator .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(5px); }
}

/* ---- SECTIONS ---- */
.section-label {
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.section-title span { color: var(--gold); }

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--gold), transparent);
    margin: 1rem 0;
}

/* ---- FEATURES SECTION ---- */
.features-section {
    background: linear-gradient(180deg, var(--dark-green) 0%, var(--deep-green) 100%);
    padding: 100px 0;
}

.feature-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card:hover {
    background: rgba(201, 162, 39, 0.08);
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(201,162,39,0.2), rgba(201,162,39,0.05));
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.feature-card h5 {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---- ABOUT PREVIEW ---- */
.about-preview {
    padding: 100px 0;
    background: var(--deep-green);
}

.about-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.about-img-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
}

.about-img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 130px;
    height: 130px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.about-img-badge .alt-number {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark-green);
    line-height: 1;
}

.about-img-badge .alt-label {
    font-size: 0.55rem;
    letter-spacing: 1px;
    color: var(--dark-green);
    font-weight: 700;
    text-align: center;
}

/* ---- GALLERY PREVIEW ---- */
.gallery-preview {
    padding: 100px 0;
    background: var(--dark-green);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 12px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item:first-child {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:first-child img { min-height: 420px; }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,32,24,0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-text {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---- TESTIMONIAL ---- */
.testimonial-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark-green), var(--deep-green));
}

.testimonial-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(201, 162, 39, 0.4);
    background: rgba(255,255,255,0.06);
}

.testimonial-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 1rem; }

.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--forest-green), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
}

.testimonial-info .name {
    font-weight: 700;
    color: var(--white);
    font-size: 0.9rem;
}

.testimonial-info .origin {
    font-size: 0.75rem;
    color: var(--gold);
}

/* ---- JALUR SECTION ---- */
.jalur-section {
    padding: 100px 0;
    background: var(--dark-green);
}

.jalur-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.jalur-card:hover {
    background: rgba(201, 162, 39, 0.06);
    border-color: var(--gold);
    transform: translateX(4px);
}

.jalur-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.jalur-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.jalur-badge.mudah { background: rgba(46,213,115,0.2); color: #2ed573; }
.jalur-badge.sedang { background: rgba(255,165,2,0.2); color: #ffa502; }
.jalur-badge.sulit { background: rgba(255,71,87,0.2); color: #ff4757; }

/* ---- PAGE HERO ---- */
.page-hero {
    position: relative;
    height: 45vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13,32,24,0.5), rgba(13,32,24,0.8));
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding-top: var(--navbar-height);
}

/* ---- GALLERY PAGE ---- */
.gallery-page { padding: 80px 0; background: var(--dark-green); }

.filter-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark-green);
}

.gallery-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 2rem;
}

.gallery-full-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-full-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-full-item:hover img { transform: scale(1.08); }

.gallery-full-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,32,24,0.9), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-full-item:hover .gallery-full-overlay { opacity: 1; }

/* ---- FORMS ---- */
.content-section {
    padding: 80px 0;
    background: var(--dark-green);
}

.glass-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-label {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: var(--white) !important;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(255,255,255,0.1) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15) !important;
    color: var(--white) !important;
}

.form-control::placeholder { color: rgba(255,255,255,0.35); }

.form-select option { background: var(--deep-green); color: var(--white); }

.star-rating { display: flex; gap: 8px; flex-direction: row-reverse; justify-content: flex-end; }

.star-rating input { display: none; }

.star-rating label {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: var(--gold);
}

/* ---- INFO CARDS ---- */
.info-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(201, 162, 39, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    flex-shrink: 0;
}

.info-card-title {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.info-card-text { color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* ---- BUKU TAMU ENTRIES ---- */
.tamu-entry {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.tamu-entry:hover {
    border-color: rgba(201, 162, 39, 0.3);
    background: rgba(255,255,255,0.06);
}

/* ---- ABOUT PAGE ---- */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--dark-green);
}

/* ---- FOOTER ---- */
.site-footer {
    background: var(--dark-green);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top { padding: 60px 0 40px; }
.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-heading {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-links a:hover { color: var(--gold); }
.footer-links i { font-size: 0.65rem; }

.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
}
.footer-contact i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }

.footer-social { display: flex; gap: 10px; }
.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark-green);
    transform: translateY(-3px);
}

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--gold);
    color: var(--dark-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* ---- ALERTS ---- */
.alert-success-custom {
    background: rgba(46,213,115,0.15);
    border: 1px solid rgba(46,213,115,0.4);
    color: #2ed573;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.alert-danger-custom {
    background: rgba(255,71,87,0.15);
    border: 1px solid rgba(255,71,87,0.4);
    color: #ff4757;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

/* ---- LIGHTBOX ---- */
.lightbox-modal .modal-content {
    background: rgba(10,20,15,0.97);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 12px;
}

.lightbox-modal .modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-stats { gap: 1rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:first-child { grid-row: span 1; }
    .about-img-badge { width: 100px; height: 100px; bottom: -10px; right: -10px; }
}

@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    .btn-gold, .btn-outline-gold { justify-content: center; }
}
