/* Apple-like style – clean, modern, large corner radius, soft shadows */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    position: relative;
    overflow-x: hidden;
}

/* Card styling */
.card {
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.1);
}

/* ========== NATIVE DETAILS ACCORDION (stabil) ========== */
details {
    background: white;
    border-bottom: 1px solid #e9e9ef;
}
details summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 0;
    font-weight: 500;
    color: #1d1d1f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
details summary::-webkit-details-marker {
    display: none;
}
details summary::after {
    content: "▼";
    font-size: 0.7rem;
    color: #86868b;
    transition: transform 0.2s ease;
}
details[open] summary::after {
    transform: rotate(180deg);
}
details .answer {
    padding-bottom: 1.25rem;
    color: #515154;
    line-height: 1.5;
    font-size: 0.95rem;
}
details .answer p {
    margin: 0;
}

/* Hero section */
.hero-gradient {
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
}

/* Tombol */
.btn-apple {
    background-color: #0071e3;
    border-radius: 980px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-apple:hover {
    background-color: #0077ed;
    transform: scale(1.02);
}

/* Galeri hover */
.gallery-img {
    transition: transform 0.3s ease, box-shadow 0.3s;
}
.gallery-img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -12px rgba(0,0,0,0.15);
}

/* Iframe loader */
.iframe-loader {
    position: relative;
    background: #f0f0f2;
    border-radius: 1rem;
    overflow: hidden;
}
.iframe-loader iframe {
    opacity: 0;
    transition: opacity 0.3s;
}
.iframe-loader.loaded iframe {
    opacity: 1;
}
.iframe-loader::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #e5e5ea;
    border-top-color: #0071e3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1;
}
.iframe-loader.loaded::before {
    display: none;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== ANIMASI FALLING DOTS ========== */
.falling-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.dot {
    position: absolute;
    background: rgba(0,113,227,0.15);
    border-radius: 50%;
    animation: fall linear infinite;
    pointer-events: none;
}
@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* Fade-in untuk konten utama */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal image transition */
#imageModal {
    transition: opacity 0.2s;
}
#imageModal img {
    max-height: 80vh;
    object-fit: contain;
}
