:root {
    --primary-color: #ffb6c1; /* Light Pink */
    --secondary-color: #ffd1dc; /* Pastel Pink */
    --accent-color: #ff6b81; /* Darker Pink/Coral */
    --text-color: #4a4a4a;
    --text-light: #ffffff;
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(255, 182, 193, 0.2);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background: linear-gradient(-45deg, #ffecd2, #fcb69f, #ffdde1, #ee9ca7);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;
    position: relative;
}

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

/* Floating Hearts Background */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart {
    position: absolute;
    color: rgba(255, 107, 129, 0.4);
    animation: floatUp linear infinite;
    font-size: 1.5rem;
}

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

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* Typography */
h1, h2, .greeting, .closing {
    font-family: 'Dancing Script', cursive;
    color: var(--accent-color);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* Sections Setup */
section {
    min-height: 100vh;
    padding: 5rem 10%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section */
.hero {
    align-items: center;
    text-align: center;
}

.hero-content {
    animation: fadeInDown 1.5s ease-out forwards;
}

.title {
    font-size: 6rem;
    margin-bottom: 0.5rem;
    color: #ff4757;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
}

.subtitle {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-color);
    text-transform: uppercase;
}

.scroll-indicator {
    margin-top: 5rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

.arrow {
    width: 20px;
    height: 20px;
    border-bottom: 3px solid var(--accent-color);
    border-right: 3px solid var(--accent-color);
    transform: rotate(45deg);
    margin: 10px auto;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Reasons Section */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 107, 129, 0.3);
}

.card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.card p {
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Memories Section */
.polaroid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    justify-items: center;
}

.polaroid {
    padding: 15px 15px 30px 15px;
    background: #fff; /* Solid white for polaroid feel */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: rotate(calc(-5deg + 10deg * var(--rand, 0.5)));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    max-width: 300px;
}

.polaroid:nth-child(even) {
    transform: rotate(5deg);
}

.polaroid:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    z-index: 10;
}

.polaroid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

.caption {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    text-align: center;
    margin-top: 15px;
    color: #333;
}

/* Surprise Section */
.surprise {
    align-items: center;
}

.reveal-container {
    width: 100%;
    max-width: 800px;
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glow-btn {
    background: linear-gradient(45deg, #ff6b81, #ff4757);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
    transition: all 0.3s ease;
    margin-top: 2rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.glow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 71, 87, 0.8);
}

.letter {
    margin-top: 3rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.8);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
    max-width: 100%;
}

.letter.hidden {
    opacity: 0;
    transform: translateY(50px);
    pointer-events: none;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.letter p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.2rem;
}

.greeting {
    font-size: 2.5rem;
    margin-bottom: 2rem !important;
}

.closing {
    font-size: 2rem;
    text-align: right;
    margin-top: 3rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .title { font-size: 4rem; }
    .subtitle { font-size: 1.5rem; }
    .section-title { font-size: 2.5rem; }
    section { padding: 3rem 5%; }
    .letter { padding: 1.5rem; }
    .polaroid img { height: 200px; }
}
