/* GAYA DASAR & FONT */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Handlee&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --pink-50: #fff1f7;
    --pink-100: #ffd6e8;
    --pink-300: #ff8fbd;
    --pink-500: #ff4f9a;
    --rose-600: #d61f69;
    --purple-700: #6d2c91;
    --ink: #4a2236;
    --muted: #7a5b68;
    --glass: rgba(255, 255, 255, 0.72);
    --shadow: 0 24px 70px rgba(214, 31, 105, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Handlee', cursive, sans-serif;
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    text-align: center;
    line-height: 1.7;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 143, 189, 0.55), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(199, 125, 255, 0.38), transparent 30%),
        radial-gradient(circle at 50% 90%, rgba(255, 212, 121, 0.34), transparent 32%),
        linear-gradient(135deg, #fff5fa 0%, #ffe0ef 45%, #f9ddff 100%);
}

body::before,
body::after {
    content: "💕 ✨ 💖";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    font-size: 2rem;
    opacity: 0.28;
    filter: blur(0.2px);
    animation: floatHearts 9s ease-in-out infinite;
}

body::before {
    top: 10%;
    left: 5%;
}

body::after {
    right: 6%;
    bottom: 12%;
    animation-delay: -4s;
}

h1, h2 {
    font-family: 'Pacifico', cursive;
    color: var(--rose-600);
    margin-top: 0;
    letter-spacing: 0.3px;
    text-shadow: 0 6px 24px rgba(255, 79, 154, 0.22);
}

h1 {
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    margin-bottom: 10px;
    background: linear-gradient(90deg, #d61f69, #ff4f9a, #8a3ffc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 16px;
}

main {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 34px auto;
    padding: clamp(22px, 4vw, 52px);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 38px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 240, 247, 0.62));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    animation: pageEnter 900ms ease both;
}

main::before {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: -1;
    border-radius: 30px;
    border: 1px dashed rgba(255, 79, 154, 0.28);
}

header {
    position: relative;
    padding: clamp(26px, 5vw, 64px) 14px 34px;
}

header::after {
    content: "Untuk Nazwa Natasya Rukmana";
    display: inline-flex;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    color: white;
    font-weight: 800;
    letter-spacing: 0.4px;
    background: linear-gradient(90deg, var(--rose-600), var(--pink-500), #9b5cff);
    box-shadow: 0 12px 34px rgba(255, 79, 154, 0.34);
}

header p,
#galeri-foto > p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

section {
    margin-top: 36px;
    padding: clamp(22px, 4vw, 38px);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: 0 14px 46px rgba(109, 44, 145, 0.08);
}

#tentang p {
    max-width: 800px;
    margin: 15px auto;
    font-size: clamp(1.05rem, 2vw, 1.24rem);
    color: #604052;
}

.quote {
    position: relative;
    overflow: hidden;
    font-family: 'Handlee', cursive;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem) !important;
    color: #7c2c55 !important;
    margin-top: 28px !important;
    padding: 28px 26px !important;
    background: linear-gradient(135deg, rgba(255, 241, 247, 0.94), rgba(255, 255, 255, 0.76));
    border: 1px solid rgba(255, 143, 189, 0.42);
    border-left: 8px solid var(--pink-500);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(255, 79, 154, 0.15);
}

.quote::before {
    content: "❝";
    position: absolute;
    top: -22px;
    left: 16px;
    color: rgba(255, 79, 154, 0.2);
    font-size: 7rem;
    line-height: 1;
}

hr {
    width: min(520px, 86%);
    height: 3px;
    margin: 44px auto 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--pink-500), #9b5cff, transparent);
}

/* ANIMASI SPLASH SCREEN (index.html) */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6fae 0%, #ffc1d8 50%, #a368ff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1000;
    animation: fadeOut 1s ease-in-out 4s forwards;
}

.lucu-gif {
    width: 250px;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(255, 255, 255, 0.55);
    animation: zoomIn 1s ease-out;
}

.teks-bawah-gif {
    margin-top: 20px;
    font-size: 2.5em;
    font-family: 'Pacifico', cursive;
    text-shadow: 2px 2px 18px rgba(0, 0, 0, 0.28);
    animation: slideInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

/* HALAMAN KATA SANDI (password.html) */
.password-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.password-container {
    background: var(--glass);
    padding: 42px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    max-width: 420px;
    width: 90%;
}

.password-container h1 {
    font-size: 2.4em;
}

#passwordInput {
    width: 100%;
    padding: 14px 16px;
    margin: 20px 0;
    border: 2px solid rgba(255, 143, 189, 0.8);
    border-radius: 16px;
    font-size: 1.1em;
    text-align: center;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

#passwordInput:focus {
    border-color: var(--pink-500);
    box-shadow: 0 0 0 6px rgba(255, 79, 154, 0.12);
    outline: none;
}

#submitPassword {
    background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
    color: white;
    border: none;
    padding: 13px 28px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(255, 79, 154, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#submitPassword:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 40px rgba(255, 79, 154, 0.42);
}

.error-message {
    color: #ff3366;
    margin-top: 15px;
    font-weight: bold;
    opacity: 0;
    animation: shake 0.5s ease-in-out;
}

/* GALERI FOTO ROMANTIS */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    padding: 30px 0 6px;
    perspective: 1200px;
}

.galeri-grid img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-radius: 28px;
    border: 8px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 40px rgba(74, 34, 54, 0.20);
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s ease, filter 0.45s ease;
    filter: saturate(1.08) contrast(1.03);
}

.galeri-grid img:nth-child(odd) {
    transform: rotate(-1.6deg);
}

.galeri-grid img:nth-child(even) {
    transform: rotate(1.6deg);
}

.galeri-grid img:hover {
    transform: translateY(-12px) rotate(0deg) scale(1.045);
    box-shadow: 0 30px 70px rgba(255, 79, 154, 0.38);
    filter: saturate(1.22) contrast(1.08) brightness(1.03);
}

footer p {
    display: inline-block;
    margin-top: 44px;
    padding: 16px 22px;
    border-radius: 999px;
    font-size: 1rem;
    color: #7b3a5a;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 14px 34px rgba(255, 79, 154, 0.12);
}

/* ANIMASI */
.heartbeat {
    animation: heartbeat 1.6s infinite alternate;
}

.fade-in {
    animation: fadeIn 1.3s ease-out forwards;
    opacity: 0;
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(26px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatHearts {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50% { transform: translateY(-24px) rotate(8deg); }
}

@keyframes zoomIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

@keyframes heartbeat {
    from { transform: scale(1); }
    to { transform: scale(1.045); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
    main {
        margin: 14px;
        border-radius: 28px;
    }

    section {
        padding: 22px 16px;
    }

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

    .galeri-grid img {
        height: 360px;
    }

    footer p {
        border-radius: 22px;
    }
}
/* PASSWORD HINT & CONFETTI */
.password-hint {
    display: inline-block;
    margin: 10px 0 4px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #8a315e;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 24px rgba(255, 79, 154, 0.14);
}

.input-error {
    animation: shake 0.45s ease-in-out;
}

#confetti-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2000;
}

.confetti-piece {
    position: absolute;
    top: -16px;
    width: 10px;
    height: 18px;
    border-radius: 4px;
    animation: confettiFall 1.4s ease-in forwards;
}

/* LIGHTBOX GALERI */
.no-scroll {
    overflow: hidden;
}

.galeri-grid img {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(42, 12, 31, 0.78);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: min(86vw, 980px);
    max-height: 78vh;
    object-fit: contain;
    border-radius: 28px;
    border: 8px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    animation: lightboxPop 0.3s ease both;
}

.lightbox-close,
.lightbox-nav,
.back-to-start {
    border: 0;
    color: white;
    background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
    box-shadow: 0 14px 36px rgba(255, 79, 154, 0.34);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.back-to-start:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 20px 44px rgba(255, 79, 154, 0.44);
}

.lightbox-close {
    position: fixed;
    top: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 2.4rem;
    line-height: 1;
}

.lightbox-prev {
    left: 22px;
}

.lightbox-next {
    right: 22px;
}

#lightboxCaption {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 10px 18px;
    border-radius: 999px;
    color: #7b2c55;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.86);
}

.back-to-start {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 20;
    padding: 11px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

@keyframes confettiFall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(105vh) rotate(520deg); opacity: 0; }
}

@keyframes lightboxPop {
    from { transform: scale(0.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 720px) {
    .back-to-start {
        position: static;
        display: inline-block;
        margin: 14px auto 0;
    }

    .lightbox {
        padding: 18px;
    }

    .lightbox img {
        max-width: 92vw;
        max-height: 68vh;
        border-width: 5px;
        border-radius: 22px;
    }

    .lightbox-nav {
        top: auto;
        bottom: 78px;
        width: 48px;
        height: 48px;
    }
}
