html { scroll-behavior: smooth; }

:root {
    /* Palet Warna Corporate */
    --primary-color: #00235B; /* Navy */
    --highlight: #00A8CC;     /* Cyan */
    --accent-red: #E63946;    
    
    /* Background & Text */
    --bg-body: #FFFFFF;
    --bg-section: #F8F9FA;
    --text-main: #666666;
    --text-dark: #1A1A1A;
    
    --border-radius: 8px;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7; color: var(--text-main);
    background-color: var(--bg-body);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3 { color: var(--primary-color); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2.5rem; position: relative; padding-bottom: 1rem; }
h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background-color: var(--highlight); border-radius: 2px; }
h3 { font-size: 1.25rem; }
a { text-decoration: none; color: var(--highlight); transition: 0.3s; }
section { padding: 6rem 0; position: relative; overflow: hidden; }
#hero, #media, #layanan, #tentang, #kontak { scroll-margin-top: 80px; }

/* =========================================
   3. NAVBAR
   ========================================= */
.navbar {
    background-color: #fff; padding: 1rem 0; position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: background-color 0.3s ease;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; 
    color: var(--primary-color); text-transform: uppercase; letter-spacing: -0.5px;
}
.logo img { height: 40px; width: auto; object-fit: contain; }
.logo span { color: var(--highlight); font-weight: 600; font-size: 0.8em; }

.nav-links { display: flex; list-style: none; align-items: center; gap: 2rem; }
.nav-links a {
    font-weight: 600; color: var(--primary-color); font-size: 0.9rem; 
    text-transform: uppercase; letter-spacing: 0.5px; position: relative;
}
.nav-links a:hover { color: var(--highlight); }
.nav-links a::before {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--highlight); transition: width 0.3s ease;
}
.nav-links a:hover::before { width: 100%; }

.toggle-btn {
    background: transparent; border: 1px solid rgba(0,0,0,0.1); cursor: pointer; 
    width: 40px; height: 40px; border-radius: 50%; color: var(--primary-color);
    display: flex; align-items: center; justify-content: center; transition: 0.3s; font-size: 1.2rem;
}
.toggle-btn:hover { background: var(--highlight); color: #fff; border-color: var(--highlight); }

.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1001; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--primary-color); border-radius: 3px; transition: 0.3s; }

/* =========================================
   4. HERO SECTION (7 GAMBAR)
   ========================================= */
.hero { position: relative; padding: 0; height: 85vh; display: flex; align-items: center; justify-content: center; color: #fff; background-color: var(--primary-color); }
.slideshow-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slide {
    position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center;
    opacity: 0; animation: crossfade 56s infinite ease-in-out;
}
.slideshow-background::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 35, 91, 0.9) 0%, rgba(0, 35, 91, 0.6) 100%); }

/* Delay 7 Slide */
.slide:nth-child(1){animation-delay:0s}.slide:nth-child(2){animation-delay:8s}.slide:nth-child(3){animation-delay:16s}
.slide:nth-child(4){animation-delay:24s}.slide:nth-child(5){animation-delay:32s}.slide:nth-child(6){animation-delay:40s}
.slide:nth-child(7){animation-delay:48s}

.hero .container { position: relative; z-index: 2; text-align: left; width: 100%; }
.hero h1 { color: #fff !important; font-size: 3.5rem; font-weight: 800; margin-bottom: 1.5rem; max-width: 800px; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 2.5rem; max-width: 600px; border-left: 4px solid var(--highlight); padding-left: 1.5rem; }

/* =========================================
   5. GALERI MEDIA (SCROLL + LIGHTBOX)
   ========================================= */
.simple-gallery { background-color: var(--bg-body); padding-bottom: 2rem; }
.gallery-wrapper { position: relative; display: flex; align-items: center; }

.gallery-scroller {
    display: flex; gap: 1rem; overflow-x: auto; padding: 1rem 0;
    scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; width: 100%;
}
.gallery-scroller::-webkit-scrollbar { display: none; }
.gallery-scroller img {
    height: 250px; width: auto; border-radius: var(--border-radius);
    box-shadow: var(--box-shadow); flex-shrink: 0; transition: transform 0.3s ease; cursor: zoom-in;
}
.gallery-scroller img:hover { transform: scale(1.03); }

/* Tombol Galeri */
.gallery-btn {
    background-color: var(--primary-color); color: #fff; border: none; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; position: absolute; z-index: 10;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.prev-btn { left: -20px; } .next-btn { right: -20px; }

/* Lightbox Styling */
.lightbox {
    display: none; position: fixed; z-index: 9999; padding-top: 60px; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.9); backdrop-filter: blur(5px);
}
.lightbox-content {
    margin: auto; display: block; width: 80%; max-width: 900px; max-height: 80vh;
    object-fit: contain; border-radius: 8px; animation: zoomIn 0.3s;
}
.close-lightbox {
    position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px;
    font-weight: bold; cursor: pointer; transition: 0.3s;
}
.close-lightbox:hover { color: var(--highlight); }

/* =========================================
   6. LAYANAN & LAINNYA
   ========================================= */
.services { background-color: var(--bg-section); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-card {
    background: #fff; padding: 3rem 2rem; border-radius: var(--border-radius);
    box-shadow: var(--box-shadow); transition: all 0.4s ease; border: 1px solid rgba(0,0,0,0.02);
    border-bottom: 3px solid transparent; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-10px); border-bottom-color: var(--highlight); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }
.service-card h3 { font-size: 1.4rem; display: flex; align-items: center; }
.service-card h3::before {
    content: ''; display: inline-block; width: 6px; height: 24px;
    background-color: var(--highlight); margin-right: 12px; border-radius: 2px;
}
.service-card p { color: var(--text-main); font-size: 0.95rem; margin-bottom: 1rem; }
.service-card p:last-child { margin-bottom: 0; }

.about { background-color: var(--bg-body); text-align: center; }
.about p { font-size: 1.1rem; max-width: 800px; margin: 0 auto; }

.contact { background-color: var(--primary-color); text-align: center; }
.contact h2 { color: #fff !important; } .contact h2::after { background-color: #fff; }
.contact p { color: rgba(255,255,255,0.85); }

.social-icons { display: flex; justify-content: center; gap: 1rem; margin-top: 3rem; flex-wrap: wrap; }
.social-icon {
    width: 60px; height: 60px; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2); border-radius: var(--border-radius);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; transition: all 0.3s ease;
}
.social-icon:hover { background: #fff; color: var(--primary-color); transform: translateY(-5px); }

.btn {
    display: inline-block; padding: 1rem 2.5rem; border-radius: 50px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.3s ease; border: none; cursor: pointer;
}
.btn-primary { background-color: var(--highlight); color: #fff; }
.btn-primary:hover { background-color: #008cba; transform: translateY(-2px); }
.nav-links .btn-primary { padding: 0.7rem 1.5rem; font-size: 0.8rem; color: #fff !important; }

.footer { background-color: #111827; color: #888; text-align: center; padding: 3rem 0; border-top: 4px solid var(--highlight); }
.footer p { margin: 5px 0; font-size: 0.9rem; } .credits { opacity: 0.6; font-size: 0.8rem; text-transform: uppercase; }

/* =========================================
   7. DARK MODE FIX
   ========================================= */
body.dark-mode { --bg-body: #111827; --bg-section: #1f2937; --text-main: #9ca3af; }
body.dark-mode .navbar { background-color: #111827; border-bottom: 1px solid rgba(255,255,255,0.05); }
body.dark-mode .logo { color: #fff; }
body.dark-mode .nav-links a { color: #e2e8f0; } body.dark-mode .nav-links a:hover { color: var(--highlight); }
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 { color: #ffffff !important; }
body.dark-mode .service-card { background-color: #1f2937; border-color: rgba(255,255,255,0.05); }
body.dark-mode .service-card p { color: #d1d5db; }
body.dark-mode .toggle-btn { color: #fbbf24; border-color: rgba(255,255,255,0.2); }
body.dark-mode .hamburger span { background: #fff; }
body.dark-mode .nav-menu { background-color: rgba(17, 24, 39, 0.98); }

/* =========================================
   8. MOBILE RESPONSIVE (APP STYLE)
   ========================================= */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar { padding: 0.5rem 0; min-height: 60px; }
    .navbar .container { padding: 0 1rem; }
    .logo { font-size: 1.1rem; gap: 8px; flex: 1; }
    .logo img { height: 32px; }
    .hamburger { display: flex; margin-left: 15px; }
    .toggle-btn { width: 35px; height: 35px; font-size: 1rem; }

    /* Menu Full Screen */
    .nav-menu {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
        display: flex; justify-content: center; align-items: center;
        opacity: 0; pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease;
        transform: translateY(-20px); z-index: 999; padding: 0;
    }
    .nav-menu.active { opacity: 1; pointer-events: auto; transform: translateY(0); right: 0; }
    .nav-links { flex-direction: column; width: 100%; gap: 1.5rem; }
    .nav-links a { font-size: 1.4rem; font-weight: 700; }
    .nav-links .btn-primary { margin-top: 1rem; width: 80%; text-align: center; }
    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Hero Mobile */
    .hero { height: auto; min-height: 80vh; padding: 6rem 0 4rem 0; }
    .hero .container { text-align: center; padding: 0 1.5rem; }
    .hero h1 { font-size: 2rem !important; line-height: 1.3; margin: 0 auto 1rem auto; }
    .hero p { font-size: 1rem !important; text-align: center; border: none; padding: 0; margin: 0 auto 2rem auto; }
    .hero .btn { width: 100%; max-width: 280px; margin: 0 auto; display: block; }

    /* Galeri & Layanan Swipe */
    .gallery-btn { display: none; }
    .gallery-scroller img { height: 180px; }
    .service-grid {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        gap: 1rem; padding-bottom: 2rem; -ms-overflow-style: none; scrollbar-width: none;
    }
    .service-grid::-webkit-scrollbar { display: none; }
    .service-card { min-width: 85vw; scroll-snap-align: center; margin-right: 0; }
    #layanan .container { padding-right: 0; }
}

/* Animasi */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes crossfade { 0%{opacity:0} 2%{opacity:1} 14%{opacity:1} 16%{opacity:0} 100%{opacity:0} }

@keyframes zoomIn { from{transform:scale(0)} to{transform:scale(1)} }
