:root {
    --primary-color: #ff4d6d;
    --bg-color: #ffe6ea;
    --text-color: #590d22;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffb3c1, #ffe6ea, #ffccd5);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Typography */
.title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    animation: fadeInDown 1.5s ease-out;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    animation: fadeInUp 1.5s ease-out 0.5s both;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.show-element {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Story Sequence */
.story-idea {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    width: 90%;
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.story-idea.story-show {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Start Screen */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 179, 193, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
    transition: opacity 0.5s ease;
}

.start-content h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 30px;
    transition: opacity 0.3s ease;
}

.glow-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-color);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.glow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--primary-color);
}

/* Layout Sections */
.hero {
    text-align: center;
    padding: 100px 20px 40px;
}

.messages {
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(255, 77, 109, 0.15);
    position: relative;
    animation: zoomIn 1.5s ease-out 1s both;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.3;
    position: absolute;
}

.quote-icon:not(.right) {
    top: 20px;
    left: 20px;
}

.quote-icon.right {
    bottom: 20px;
    right: 20px;
}

.glass-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.highlight-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Gallery */
.gallery {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 80px;
    text-align: center;
}

.gallery-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.gallery-hint {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 30px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.photo-card {
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: rotate(calc(-3deg + 6deg * var(--random)));
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
    position: relative;
    z-index: 1;
}

.photo-card:nth-child(odd) {
    transform: rotate(-3deg);
}

.photo-card:nth-child(even) {
    transform: rotate(3deg);
}

.photo-card:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 15px 30px rgba(255, 77, 109, 0.3);
    z-index: 10;
}

.photo-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 77, 109, 0.1);
    font-size: 0.9rem;
}

/* Floating Hearts Animation */
.heart {
    position: fixed;
    font-size: 20px;
    color: var(--primary-color);
    animation: floatUp 4s ease-in infinite;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

@keyframes bounce {

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

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

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

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) scale(1.5);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .start-content h1 {
        font-size: 2.2rem;
    }

    .glass-card {
        padding: 30px 20px;
    }

    .glass-card p {
        font-size: 1rem;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}