/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #ffd93d;
    --text-light: #ffffff;
    --text-dark: #2c3e50;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-pink: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

/* ===== Stars Background ===== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

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

.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: float-up 15s infinite;
    opacity: 0;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== Main Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* ===== Animations ===== */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-in 0.3s backwards;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s backwards;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-in 0.9s backwards;
}

.fade-in-delay-4 {
    animation: fadeIn 1s ease-in 1.2s backwards;
}

.fade-in-delay-5 {
    animation: fadeIn 1s ease-in 1.5s backwards;
}

.fade-in-delay-6 {
    animation: fadeIn 1s ease-in 1.8s backwards;
}

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

/* ===== Opening Section ===== */
.opening-section {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.sparkle-icon {
    font-size: 60px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(10deg); }
    75% { transform: scale(1.2) rotate(-10deg); }
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin: 20px 0;
    background: linear-gradient(45deg, #fff, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 10px;
    opacity: 0.9;
}

/* ===== Message Section ===== */
.message-section {
    margin: 60px 0;
    display: flex;
    justify-content: center;
}

.message-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.message-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 50px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.message-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.message-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* ===== Qualities Section ===== */
.qualities-section {
    margin: 80px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '✨';
    display: block;
    margin-top: 10px;
    font-size: 2rem;
}

.qualities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.quality-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.quality-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.quality-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.quality-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.quality-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== Timeline / Moments Section ===== */
.moments-section {
    margin: 80px 0;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    font-size: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin: 0 30px;
    flex: 1;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.05);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== Appreciation Section ===== */
.appreciation-section {
    margin: 80px 0;
    display: flex;
    justify-content: center;
}

.appreciation-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 800px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.heart-pulse {
    font-size: 60px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.appreciation-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 20px 0 30px;
}

.appreciation-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.95;
}

/* ===== Interactive Section ===== */
.interactive-section {
    margin: 80px 0;
    text-align: center;
}

.special-button {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    border: none;
    color: white;
    font-size: 1.3rem;
    padding: 20px 50px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.special-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.6);
}

.special-button:active {
    transform: translateY(-2px) scale(1.02);
}

.hidden-message {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin-top 0.5s ease;
    margin-top: 0;
}

.hidden-message.show {
    max-height: 500px;
    margin-top: 40px;
}

.message-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 700px;
    margin: 0 auto;
}

.message-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.message-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.signature {
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 30px;
    opacity: 0.9;
}

/* ===== Secret Love Elements ===== */
.secret-hint {
    margin-top: 30px;
    text-align: center;
}

.secret-heart {
    font-size: 40px;
    cursor: pointer;
    display: inline-block;
    margin-top: 15px;
    animation: heartbeat 1.5s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.secret-heart:hover {
    transform: scale(1.3);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

.love-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.love-message.show {
    opacity: 1;
    pointer-events: all;
}

.love-content {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    border-radius: 30px;
    padding: 60px 50px;
    text-align: center;
    max-width: 500px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.6);
    animation: lovePopIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes lovePopIn {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.love-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: lovePulse 1s ease-in-out infinite;
}

@keyframes lovePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.love-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.love-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: white;
    opacity: 0.95;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-decoration {
    font-size: 1.5rem;
    margin-top: 10px;
}

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

    .subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .message-card h2 {
        font-size: 2rem;
    }

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

    .qualities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
        margin-left: 10px;
    }

    .timeline-content {
        margin-left: 20px;
        margin-right: 0;
    }

    .appreciation-card {
        padding: 40px 25px;
    }

    .appreciation-card h2 {
        font-size: 2rem;
    }

    .appreciation-text {
        font-size: 1rem;
    }

    .special-button {
        font-size: 1.1rem;
        padding: 15px 35px;
    }

    .message-content {
        padding: 30px 20px;
    }

    .message-content h3 {
        font-size: 1.5rem;
    }

    .message-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .sparkle-icon {
        font-size: 40px;
    }

    .opening-section {
        padding: 40px 20px;
    }

    .container {
        padding: 20px 15px;
    }

    .love-content {
        padding: 40px 30px;
        margin: 20px;
    }

    .love-content h2 {
        font-size: 2rem;
    }

    .love-content p {
        font-size: 1.1rem;
    }

    .love-icon {
        font-size: 60px;
    }

    .secret-heart {
        font-size: 35px;
    }
}
