/* ===== RESET & VARIABLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d2b5a;
    --primary-light: #163d7a;
    --red: #cc2222;
    --red-dark: #991111;
    --blue: #0d47a1;
    --white: #ffffff;
    --light: #f4f6f9;
    --gray: #5a6a7a;
    --dark: #091e3f;
    --shadow: 0 4px 20px rgba(13,43,90,0.1);
    --shadow-lg: 0 10px 40px rgba(13,43,90,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    padding: 12px 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu a {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--red);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO VIDEO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.85);
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
}

.hero-logo {
    width: 260px;
    max-width: 70%;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
}

.hero-content h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.text-red { color: var(--red); }
.text-blue { color: #4a9eff; }

.hero-content p {
    color: var(--gray);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #25d366;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-primary:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ===== TENTANG ===== */
.tentang {
    padding: 100px 0;
    background: var(--white);
}

.tentang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    border-radius: 2px;
}

.section-title-light {
    color: var(--white);
    text-align: center;
}

.section-title-light::after {
    left: 50%;
    transform: translateX(-50%);
}

.tentang-desc {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.tentang-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.tentang-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.tentang-feature:hover {
    background: var(--primary);
    color: var(--white);
}

.tentang-feature i {
    color: var(--red);
    font-size: 1.1rem;
}

.tentang-feature:hover i {
    color: var(--red);
}

.tentang-image {
    position: relative;
}

.tentang-foto {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* ===== LAYANAN ===== */
.layanan {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.section-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.7);
    margin-bottom: 50px;
    font-size: 1rem;
}

.section-subtitle-dark {
    text-align: center;
    color: var(--gray);
    margin-bottom: 50px;
    font-size: 1rem;
}

.layanan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.layanan-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.layanan-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--red);
    transform: translateY(-5px);
}

.layanan-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.3rem;
    color: var(--white);
}

.layanan-card h3 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.layanan-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===== GALERI ===== */
.galeri {
    padding: 100px 0;
    background: var(--white);
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.galeri-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.galeri-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.galeri-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.galeri-item:hover img {
    transform: scale(1.05);
}

.galeri-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    background: linear-gradient(transparent, rgba(13,43,90,0.9));
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--red);
    transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--white);
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    padding: 15px 18px;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border-radius: 20px;
}

/* ===== KONTAK ===== */
.kontak {
    padding: 100px 0;
    background: var(--light);
}

.kontak .section-title {
    text-align: center;
}

.kontak .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.kontak-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.kontak-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.kontak-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.kontak-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--white);
}

.wa-icon { background: #25d366; }
.loc-icon { background: var(--red); }
.time-icon { background: var(--blue); }

.kontak-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.kontak-card a {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    transition: var(--transition);
}

.kontak-card a:hover {
    color: #25d366;
}

.kontak-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

.kontak-card small {
    display: block;
    margin-top: 10px;
    color: var(--gray);
    font-size: 0.8rem;
    font-style: italic;
}

.kontak-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.kontak-map iframe {
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    padding: 25px 0;
    text-align: center;
}

.footer p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* ===== FLOATING WHATSAPP ===== */
.wa-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.7rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* Back to Top Button */
.btn-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13,43,90,0.3);
    z-index: 999;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.btn-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-top:hover {
    background: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(204,34,34,0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .tentang-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tentang-image {
        order: -1;
    }

    .layanan-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kontak-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 25px;
        gap: 20px;
        display: none;
        border-top: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .header-logo img {
        height: 42px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-logo {
        width: 200px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .tentang,
    .layanan,
    .galeri,
    .kontak {
        padding: 70px 0;
    }

    .tentang-features {
        grid-template-columns: 1fr;
    }

    .layanan-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    .galeri-grid {
        grid-template-columns: 1fr;
    }

    .galeri-item img {
        height: 200px;
    }

    .kontak-map iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.2rem;
    }

    .hero-logo {
        width: 160px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
