/* ROOT COLORS */
:root {
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #00BFFF, #8A2BE2);
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* BACKGROUND LAYERS */
.bg-main {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -5;
    transition: opacity 1.5s ease-in-out;
}

.bg-scroll {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #00BFFF, #8A2BE2);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: -4;
}

/* BACKGROUND CAROUSEL */
.bg-carousel {
    position: fixed;
    inset: 0;
    z-index: -3;
}

.bg-carousel img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fade 18s infinite;
    opacity: 0;
}

@keyframes fade {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    43% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* ORBS */
.orb {
    position: fixed;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(15, 166, 248, 0.4), transparent);
    filter: blur(120px);
    animation: float 10s infinite alternate ease-in-out;
    z-index: -2;
}

.orb:nth-child(1) {
    top: -120px;
    left: -120px;
}

.orb:nth-child(2) {
    bottom: -150px;
    right: -150px;
    animation-duration: 14s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(80px);
    }
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 9999;
    box-sizing: border-box;
}

.nav-logo {
    font-size: 20px;
    font-weight: 600;
    color: black;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    padding-right: 0 !important;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00eaff;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: black;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* MOBILE NAV */
.nav-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: black;
}

@media(max-width: 768px) {
    .navbar {
        padding: 10px 12px !important;
    }

    .nav-logo {
        font-size: 16px !important;
        max-width: 65%;
    }

    .nav-toggle {
        display: block;
        font-size: 26px !important;
        margin-left: auto;
    }

    .nav-links {
        position: fixed !important;
        top: 75px;
        right: 12px !important;
        width: 180px !important;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(12px);
        padding: 20px 16px !important;
        border-radius: 18px;
        display: none;
        flex-direction: column;
        gap: 14px !important;
        z-index: 99999;
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .nav-links.show {
        display: flex !important;
    }

    .nav-links a {
        font-size: 14px !important;
    }

    .lang-switch {
        text-align: center;
        background: rgba(255, 255, 255, 0.15);
    }
}

@media(max-width: 480px) {
    .nav-logo {
        font-size: 15px !important;
    }

    .nav-toggle {
        font-size: 24px !important;
    }
}

/* HERO */
.hero {
    text-align: center;
    padding: 200px 20px 120px;
}

.hero-logo {
    width: 260px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 25px white) drop-shadow(0 0 45px white);
    animation: glow 3s infinite alternate ease-in-out;
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 20px white) drop-shadow(0 0 40px white);
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 0 35px white) drop-shadow(0 0 60px white);
        transform: scale(1.05);
    }
}

.hero h1 {
    font-size: 58px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--white), #dff);
    -webkit-background-clip: text;
    color: transparent;
}

@media(max-width: 480px) {
    .hero {
        padding-top: 150px !important;
    }

    .hero-logo {
        width: 180px !important;
    }

    .hero h1 {
        font-size: 34px !important;
    }
}

/* GLASS */
.glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 35px rgba(15, 166, 248, 0.25);
    backdrop-filter: blur(16px);
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 1000px;
    margin: 60px auto;
    transition: 0.8s ease;
    opacity: 0;
    transform: translateY(40px);
}

/* FIX GLASS MOBILE */
@media(max-width: 768px) {
    .glass {
        width: calc(100% - 30px) !important;
        margin: 40px auto !important;
        padding: 22px !important;
        box-sizing: border-box !important;
    }
}

@media(max-width: 480px) {
    .glass {
        width: calc(100% - 24px) !important;
        padding: 18px !important;
    }
}

.glass.visible {
    opacity: 1;
    transform: translateY(0);
}

/* SERVICES */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service {
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s ease;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(15, 166, 248, 0.25);
}

/* GALLERY */
.gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.15);
    transition: .35s ease;
    text-decoration: none;
    color: inherit;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 26px rgba(0, 255, 255, 0.38);
    border-color: rgba(0, 255, 255, 0.45);
}

.gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: .4s ease;
}

.gallery-card:hover img {
    transform: scale(1.12);
    filter: brightness(1.15);
}

/* TITLE BAR GLASS */
.gallery-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    font-size: 16px;
    color: white;
    font-weight: 500;
}

/* FOOTER */
footer {
    background: #002f6c;
    color: white;
    padding: 45px 20px;
    text-align: center;
    margin-top: 80px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

footer p {
    margin: 8px 0;
    font-size: 15px;
}

footer .footer-company {
    font-size: 18px;
    font-weight: 600;
}

footer .footer-credit {
    opacity: 0.75;
    font-size: 14px;
}

.footer-socials {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-socials a {
    font-size: 26px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-socials a:hover {
    opacity: 0.7;
}

/* FOOTER MOBILE */
@media(max-width: 768px) {
    footer {
        padding: 35px 15px !important;
    }

    footer p {
        font-size: 14px !important;
        line-height: 1.5;
    }

    .footer-company {
        font-size: 16px !important;
    }

    .footer-socials a {
        font-size: 22px !important;
    }
}

@media(max-width: 480px) {
    footer {
        padding: 28px 12px !important;
    }

    .footer-company {
        font-size: 15px !important;
    }
}

/* WHATSAPP FLOAT */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 25px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
    z-index: 999;
    transition: .3s;
}

.wa-float:hover {
    transform: scale(1.1);
}

/* Popup Background */
.wa-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: black;
}

/* Box */
.wa-box {
    background: #fff;
    padding: 22px;
    width: 300px;
    border-radius: 15px;
    text-align: center;
    animation: fadeIn .3s ease;
}

.wa-box h3 {
    margin-bottom: 15px;
}

.wa-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f4f4f4;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #111;
    transition: .2s;
}

.wa-option img {
    width: 28px;
}

.wa-option:hover {
    background: #e0e0e0;
}

.wa-close {
    margin-top: 10px;
    padding: 8px 12px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@media(max-width: 768px) {
    .nav-links a {
        color: #f5f5dc !important;
    }

    .nav-links a:hover {
        color: #00eaff !important;
    }
}

/* Simple Show More */
.about-collapsible {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-collapsible.expanded {
    max-height: 5000px;
    /* Very large value untuk accommodate semua content */
}

.about-collapsible::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.1));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.about-collapsible.expanded::after {
    opacity: 0;
}

.about-text-content {
    line-height: 1.6;
}

.about-text-content br {
    margin-bottom: 10px;
    display: block;
}

/* Force text to wrap properly */
.about-text-content {
    word-break: break-word;
    hyphens: auto;
}

.toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 0;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.toggle-btn .icon {
    transition: transform 0.3s ease;
}

.toggle-btn.expanded .icon {
    transform: rotate(180deg);
}

/* Mobile fixes */
@media (max-width: 768px) {
    .about-collapsible {
        max-height: 150px;
        /* Lebih pendek di mobile */
    }

    .glass {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Pastikan text tidak overflow */
    .about-collapsible br {
        display: block;
        content: "";
        margin-bottom: 8px;
    }
}

/* EVENTS STYLES */
.events-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.event-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(14px);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.15);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 26px rgba(0, 255, 255, 0.38);
    border-color: rgba(0, 255, 255, 0.45);
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.event-info {
    padding: 20px;
}

.event-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
}

.event-info p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.read-more {
    color: #00eaff;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.event-card:hover .read-more {
    color: #ffffff;
}

/* PAGINATION */
.events-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-arrow,
.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

.pagination-number.active {
    background: rgba(0, 234, 255, 0.3);
    border-color: #00eaff;
    color: #00eaff;
}

.pagination-arrow:hover,
.pagination-number:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.pagination-arrow {
    font-size: 18px;
    font-weight: bold;
}

/* NO EVENTS */
.no-events {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .events-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-image {
        height: 180px;
    }

    .event-info {
        padding: 15px;
    }

    .event-info h3 {
        font-size: 16px;
    }

    .event-info p {
        font-size: 13px;
    }

    .events-pagination {
        gap: 6px;
    }

    .pagination-arrow,
    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Photo Count Badge */
.photo-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Gallery Grid untuk multiple photos */
.event-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.event-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 150px;
}

.event-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-gallery-item:hover img {
    transform: scale(1.05);
}