@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Quicksand:wght@400;500;600;700&family=Amiri:ital@1&display=swap');

/* ==========================================
   1. CORE TYPOGRAPHY & SETUP
   ========================================== */
.font-cute { font-family: 'Dancing Script', cursive; }
.font-sans-rounded { font-family: 'Quicksand', sans-serif; }
.font-arabic { font-family: 'Amiri', serif; line-height: 1.8; }

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: #1e3a8a; /* Deep Blue Text */
    background-color: #e0f2fe;
    
    /* Layer 1: Moving Sky Blue Gradient */
    /* Layer 2: Abstract Floral Pattern (Seamless SVG Data URI) yang samar-samar */
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 25 C40 10, 10 40, 25 50 C10 60, 40 90, 50 75 C60 90, 90 60, 75 50 C90 40, 60 10, 50 25 Z' fill='%23ffffff' fill-opacity='0.25'/%3E%3Ccircle cx='50' cy='50' r='5' fill='%23ffffff' fill-opacity='0.3'/%3E%3C/svg%3E"),
        linear-gradient(-45deg, #e0f2fe, #bae6fd, #e0e7ff, #f0fdf4);
    
    background-size: 150px 150px, 400% 400%;
    background-blend-mode: soft-light;
    animation: skyFlow 15s ease infinite;
}

@keyframes skyFlow {
    0% { background-position: 0 0, 0% 50%; }
    50% { background-position: 75px 75px, 100% 50%; }
    100% { background-position: 150px 150px, 0% 50%; }
}

/* ==========================================
   2. SLIDE & GLASSMORPHISM MECHANICS
   ========================================== */
.slide-section {
    height: 100svh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

/* Bingkai Ornamen Layar */
.slide-frame {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    pointer-events: none;
    border-radius: 2.5rem;
    z-index: 10;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Kartu Premium Transparan */
.glass-card-premium {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.08), 
                inset 0 2px 10px rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    position: relative;
    color: #1e3a8a;
    z-index: 20;
}

/* ==========================================
   3. SPECIAL EFFECTS: MALE BLUE LIGHT & AVATARS
   ========================================== */
/* Efek Cahaya Biru Berjalan (Scanner) pada Card Laki-laki */
.sweep-light-blue {
    position: relative;
    overflow: hidden;
}
.sweep-light-blue::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(56, 189, 248, 0.5) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: sweepMotion 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 30;
}

@keyframes sweepMotion {
    0% { left: -100%; }
    40% { left: 200%; }
    100% { left: 200%; }
}

/* Lingkaran Avatar Bercahaya */
.avatar-glow-ring {
    position: relative;
}
.avatar-glow-ring::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(45deg, #38bdf8, #818cf8, #c084fc, #38bdf8);
    z-index: -1;
    background-size: 300%;
    animation: spinGlow 4s linear infinite;
    opacity: 0.6;
}

@keyframes spinGlow {
    0% { background-position: 0% 50%; transform: rotate(0deg); }
    100% { background-position: 100% 50%; transform: rotate(360deg); }
}

/* ==========================================
   4. MAGICAL PARTICLES: HEARTS & BUTTERFLIES
   ========================================== */
/* Hujan Love Pink (Samar & Lembut) */
@keyframes fallingHeart {
    0% { transform: translateY(-10vh) translateX(0) scale(0.5); opacity: 0; }
    20% { opacity: 0.4; } /* Opacity rendah agar tidak menutupi teks */
    50% { transform: translateY(50vh) translateX(20px) scale(1); opacity: 0.6; }
    80% { opacity: 0.4; }
    100% { transform: translateY(110vh) translateX(-20px) scale(0.8); opacity: 0; }
}

.particle-heart {
    position: absolute;
    color: #f472b6; /* Pink-400 */
    font-size: 1.2rem;
    animation: fallingHeart linear infinite;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(244,114,182,0.3));
}

/* Kupu-kupu Berterbangan Random di Background */
@keyframes floatingButterfly {
    0% { transform: translate(0, 0) rotate(-10deg) scale(0.8); opacity: 0; }
    15% { opacity: 0.8; }
    50% { transform: translate(40vw, -30vh) rotate(15deg) scale(1.2); }
    85% { opacity: 0.8; }
    100% { transform: translate(-20vw, -70vh) rotate(-5deg) scale(0.9); opacity: 0; }
}

@keyframes quickFlap {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(0.1) skewY(15deg); }
}

.particle-butterfly {
    position: absolute;
    color: rgba(255, 255, 255, 0.9);
    animation: floatingButterfly 14s ease-in-out infinite;
    z-index: 6;
    pointer-events: none;
}
.p-wing-l { transform-origin: right center; animation: quickFlap 0.2s infinite; }
.p-wing-r { transform-origin: left center; animation: quickFlap 0.2s infinite; }

/* ==========================================
   5. COVER & NAVIGATION
   ========================================== */
#cover-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    z-index: 999;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
#cover-screen.slide-up {
    transform: translateY(-100%);
}

.nav-active {
    color: #0284c7 !important;
    transform: scale(1.2) translateY(-2px);
    text-shadow: 0 4px 8px rgba(2, 132, 199, 0.3);
}

::-webkit-scrollbar { display: none; }
html, body { -ms-overflow-style: none; scrollbar-width: none; }