:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --bg-dark: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --caption-font: 'Times New Roman', Times, serif;
    --main-font: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--main-font);
    background: var(--bg-gradient);
    color: var(--text-color);
    overflow: hidden;
    height: 100vh;
}

.container {
    height: 100vh;
    height: 100dvh;
    overflow-y: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    transition: opacity 1s ease;
    position: relative;
}

.container.unlocked {
    overflow-y: scroll !important;
}

/* Lock Screen */
.lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.lock-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lock-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.lock-content input {
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    outline: none;
    width: 250px;
    transition: all 0.3s ease;
    font-family: var(--main-font);
    letter-spacing: 2px;
}

.lock-content input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(253, 121, 168, 0.3);
}

.lock-content input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    letter-spacing: 1px;
}

.unlock-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.unlock-btn:hover {
    transform: scale(1.05);
}

.error-msg {
    color: #ff7675;
    font-size: 0.9rem;
    min-height: 40px;
    max-width: 300px;
}

/* Celebration Overlay */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.celebration-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.celebration-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.celebration-text {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fd79a8, #a29bfe, #fd79a8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite, fadeInScale 1s ease-out;
    text-align: center;
    padding: 2rem;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Sections */
.scroll-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    text-align: center;
}

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Section */
.hero-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 90vh;
    padding: 3rem 0 1rem 0;
}

.hero-image-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.hero-img {
    max-width: 280px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--glass-border);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.scroll-indicator {
    opacity: 0.7;
    animation: bounce 2s infinite;
    text-align: center;
}

.scroll-indicator .arrow {
    font-size: 2rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Future List */
.future-list {
    list-style: none;
    text-align: left;
    padding: 0;
}

.future-list li {
    font-size: 1.3rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.future-list li:last-child {
    border-bottom: none;
    color: var(--accent-color);
    font-weight: 600;
}

/* Memory Board */
.memory-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
}

.memory-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
}

.img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 10px;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    background: #fff;
}

.memory-item:nth-child(even) .img-wrapper {
    transform: rotate(2deg);
}

.img-wrapper:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    font-family: var(--caption-font);
    margin-top: 10px;
    font-size: 1.3rem;
    font-style: italic;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

.delay-5 {
    transition-delay: 1.0s;
}

/* Button */
.love-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--main-font);
    font-weight: 600;
}

.love-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-color);
}

.final-msg {
    margin-top: 1rem;
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.final-msg.visible {
    opacity: 1;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    .hero-content {
        height: 90vh;
    }

    .hero-img {
        max-width: 200px;
    }

    .glass-card {
        padding: 1.5rem;
        margin: 1rem;
        max-width: 90%;
    }

    .memory-grid {
        gap: 0.8rem;
    }

    .memory-item {
        width: 140px;
    }

    .img-wrapper {
        height: 140px;
    }

    .caption {
        font-size: 1rem;
    }

    .love-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .lock-content input {
        width: 200px;
        font-size: 1rem;
    }

    .celebration-text {
        font-size: 2rem;
        padding: 1rem;
    }

    .future-list li {
        font-size: 1.1rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    p {
        font-size: 0.9rem;
    }

    .hero-img {
        max-width: 150px;
    }

    .glass-card {
        padding: 1rem;
    }

    .memory-grid {
        gap: 0.5rem;
    }

    .memory-item {
        width: 110px;
    }

    .img-wrapper {
        height: 110px;
    }

    .caption {
        font-size: 0.85rem;
    }

    .lock-content input {
        width: 180px;
        padding: 0.8rem 1rem;
    }

    .unlock-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .celebration-text {
        font-size: 1.5rem;
    }

    .future-list li {
        font-size: 1rem;
        padding: 0.6rem 0;
    }
}