:root {
    --bg-color: #020b1f;
    /* Midnight Blue */
    --text-gold: #f2d06b;
    --text-pink: #ffc4d6;
    --text-white: #f0f0f0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-main: 'Poppins', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-cursive: 'Dancing Script', cursive;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow: hidden;
    /* No scrolling */
    height: 100vh;
    width: 100vw;
}

/* Canvas for background effects */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Start Screen */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1s ease;
}

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

.start-content {
    text-align: center;
    animation: fadeIn 2s ease;
}

/* Sections as Full Screen Pages */
.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    /* Prevent clicking when hidden */
    transition: opacity 1.5s ease-in-out, transform 1.5s ease;
    transform: scale(1.05);
    /* Slight zoom out effect on exit */
    z-index: 1;
}

.section.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 10;
}

.content-wrapper {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Images & Click Interaction */
.photo-frame {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.photo-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(242, 208, 107, 0.2);
}

.photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Click Hint Overlay */
.click-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.photo-frame:hover .click-hint {
    opacity: 1;
}

.hint-icon {
    width: 40px;
    height: 40px;
    fill: var(--text-white);
    animation: pulse 1.5s infinite;
}

.hint-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.photo-frame:hover .hint-text {
    opacity: 1;
}

/* Page 1: Hero */
.hero-section {
    background: radial-gradient(circle at center, rgba(10, 25, 53, 0.8) 0%, rgba(2, 11, 31, 0.9) 100%);
}

.glow-frame {
    box-shadow: 0 0 20px rgba(242, 208, 107, 0.3);
    border: 1px solid rgba(242, 208, 107, 0.2);
}

.title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--text-gold);
    text-shadow: 0 0 10px rgba(242, 208, 107, 0.5);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards 0.5s;
}

.subtitle {
    font-family: var(--font-cursive);
    font-size: 2rem;
    color: var(--text-pink);
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards 1s;
}

/* Page 2: Smile */
.text-container p {
    font-size: 1.5rem;
    margin: 10px 0;
    font-weight: 300;
}

.fade-line {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.section.active .fade-line {
    opacity: 1;
    transform: translateY(0);
}

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

/* Page 3: Shayari (Glassmorphism) */
.shayari-section {
    perspective: 1000px;
}

.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: 30px;
    max-width: 600px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transform: rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-card:hover {
    transform: rotateX(0deg) scale(1.02);
}

.circle-frame {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 2rem;
    border: 2px solid var(--text-gold);
    overflow: hidden;
}

.shayari-text {
    font-family: var(--font-cursive);
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Page 4: Quiet Moment */
.quiet-section {
    background: linear-gradient(to bottom, rgba(2, 11, 31, 0.9), rgba(0, 0, 0, 0.95));
}

.cinematic-frame {
    max-width: 350px;
    filter: brightness(0.8) contrast(1.1);
}

.minimal-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2rem;
}

/* Page 5: Celebration */
.gold-glow-frame {
    box-shadow: 0 0 40px rgba(242, 208, 107, 0.4);
    border: 2px solid var(--text-gold);
}

.emotional-message {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-white);
    margin-bottom: 2rem;
}

.glow-button {
    padding: 15px 40px;
    font-size: 1.2rem;
    background: transparent;
    border: 2px solid var(--text-gold);
    color: var(--text-gold);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(242, 208, 107, 0.2);
}

.glow-button:hover {
    background: var(--text-gold);
    color: #000;
    box-shadow: 0 0 30px rgba(242, 208, 107, 0.6);
    transform: scale(1.05);
}

/* Page 6: Ending */
.blur-frame {
    filter: blur(1px);
    box-shadow: 0 0 50px rgba(255, 196, 214, 0.3);
}

.final-text {
    font-family: var(--font-cursive);
    font-size: 2.5rem;
    color: var(--text-pink);
    margin-top: 2rem;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

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

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

    .subtitle {
        font-size: 1.5rem;
    }

    .photo-frame {
        max-width: 300px;
    }

    .shayari-text {
        font-size: 1.4rem;
    }

    .emotional-message {
        font-size: 1.2rem;
    }
}
