@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary: #ff4d6d;
    --secondary: #ff758f;
    --accent: #ffd166;
    --bg: #0a0a0a;
    --bg-soft: #1a1a1a;
    --text: #ffffff;
    --text-dim: #cccccc;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

body.locked {
    overflow: hidden;
}

/* PIN Overlay Styles */
.pin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.pin-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.6;
}

.shape-1 {
    width: 40vw;
    height: 40vw;
    background: var(--primary);
    top: -10vw;
    right: -10vw;
    animation: blob 20s infinite alternate;
}

.shape-2 {
    width: 50vw;
    height: 50vw;
    background: #3d0a21;
    bottom: -15vw;
    left: -15vw;
    animation: blob 30s infinite alternate-reverse;
}

@keyframes blob {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(10vw, 5vw) scale(1.1);
    }
}

.pin-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
    border-radius: 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    animation: slideInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.lock-heart {
    font-size: 3.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary));
    animation: pulse 2s infinite;
    margin-bottom: 25px;
}

.pin-hint {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 10px;
}

#pinInput {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 2.2rem;
    text-align: center;
    width: 100%;
    letter-spacing: 12px;
    outline: none;
    margin: 30px 0;
    transition: all 0.3s;
}

#pinInput:focus {
    border-color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.error-msg {
    color: var(--primary);
    margin-bottom: 20px;
    display: none;
    font-size: 0.9rem;
    font-style: italic;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

.dancing {
    font-family: 'Dancing Script', cursive;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at top right, #3d0a21, #0a0a0a 60%);
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.petal {
    position: absolute;
    background: var(--primary);
    opacity: 0.3;
    border-radius: 50% 0 50% 0;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* Section Styling */
section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1000px;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 50%, transparent);
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: floatTitle 3s ease-in-out infinite;
}

@keyframes floatTitle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-dim);
    font-style: italic;
}

/* Timeline / Moments Card */
.moment-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    gap: 30px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.moment-card:hover {
    transform: scale(1.02);
    border-borderColor: var(--primary);
}

.moment-date {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--primary);
    min-width: 150px;
    text-align: right;
}

.moment-content {
    flex-grow: 1;
}

.moment-msg {
    font-size: 1.2rem;
    margin-bottom: 10px;
    position: relative;
}

.moment-msg i {
    color: var(--accent);
    font-size: 0.9rem;
}

.moment-speaker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
}

/* Quotes Grid */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.quote-box {
    background: rgba(255, 77, 109, 0.1);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 15px 15px 0;
    font-style: italic;
    font-size: 1.1rem;
}

/* Footer / Gift Box */
.gift-box {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.2), rgba(255, 209, 102, 0.1));
    border-radius: 30px;
}

.gift-box h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.heart-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 77, 109, 0.4);
}

.heart-btn:hover {
    transform: scale(1.1);
    background: #ff758f;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .moment-card {
        flex-direction: column;
        text-align: center;
    }

    .moment-date {
        text-align: center;
        min-width: auto;
    }
}