/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-pink: #ffb6c1;
    --light-pink: #ffe6ea;
    --accent-pink: #ff69b4;
    --dark-pink: #db7093;
    --soft-pink: #ffc0cb;
    --gold: #ffd700;
    --white: #ffffff;
    --text-dark: #555;
    --text-light: #777;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, #ffe6ea 0%, #ffb6c1 100%);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    margin-bottom: 15px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 15px;
}

.highlight {
    color: var(--accent-pink);
    font-weight: 700;
}

.nickname {
    font-family: 'Dancing Script', cursive;
    color: var(--dark-pink);
    font-size: 2.2rem;
    font-weight: 700;
}

.highlight-text {
    color: var(--accent-pink);
    font-weight: 600;
}

/* Background Animations */
.background-animations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-hearts, .floating-flowers {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Floating Hearts */
.floating-hearts::before,
.floating-hearts::after {
    content: '❤️';
    position: absolute;
    font-size: 24px;
    opacity: 0.7;
    animation: floatUp 25s infinite linear;
}

.floating-hearts::before {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-hearts::after {
    top: 20%;
    right: 10%;
    animation-delay: 5s;
    animation-direction: reverse;
}

/* Floating Flowers */
.floating-flowers::before,
.floating-flowers::after {
    content: '🌸';
    position: absolute;
    font-size: 28px;
    opacity: 0.6;
    animation: floatUp 30s infinite linear;
}

.floating-flowers::before {
    bottom: 15%;
    left: 8%;
    animation-delay: 2s;
}

.floating-flowers::after {
    bottom: 25%;
    right: 5%;
    animation-delay: 8s;
    animation-direction: reverse;
}

/* Floating Frames (for gallery) */
.floating-frame {
    position: absolute;
    font-size: 20px;
    opacity: 0.5;
    animation: floatUp 20s infinite linear;
}

/* Sparkles */
.sparkle-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 50%;
    animation: sparkle 2s infinite;
    box-shadow: 0 0 10px var(--gold);
}

/* Balloons */
.balloon-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.balloon {
    position: absolute;
    font-size: 24px;
    animation: floatUp 15s infinite linear;
    cursor: pointer;
}

.balloon:hover {
    transform: scale(1.2);
}

/* Party Elements */
.party-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-party-element {
    position: absolute;
    font-size: 20px;
    opacity: 0.6;
    animation: floatUp 25s infinite linear;
}

/* Animations */
@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

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

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

@keyframes flicker {
    0%, 100% {
        opacity: 0.8;
        filter: brightness(1) blur(0.5px);
    }
    50% {
        opacity: 1;
        filter: brightness(1.3) blur(0px);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes floatUpFast {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Page Container */
.page-container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Page Header */
.page-header {
    padding: 30px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--accent-pink);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-pink);
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.2rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-section {
    margin-bottom: 80px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--soft-pink);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-pink), var(--gold), var(--accent-pink));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Section Titles */
.main-title {
    text-align: center;
    font-size: 3.5rem;
    color: var(--dark-pink);
    margin-bottom: 10px;
    font-family: 'Dancing Script', cursive;
}

.subtitle {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.birthday-date {
    text-align: center;
    font-size: 2rem;
    color: var(--accent-pink);
    font-weight: 600;
    margin-bottom: 40px;
}

/* Birthday Cake */
.birthday-cake {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    position: relative;
}

.cake {
    position: relative;
    width: 200px;
    height: 150px;
    animation: bounce 2s infinite;
}

.cake-top, .cake-middle, .cake-bottom {
    position: absolute;
    border-radius: 10px;
}

.cake-bottom {
    width: 180px;
    height: 50px;
    background: linear-gradient(to bottom, #8B4513, #A0522D);
    bottom: 0;
    left: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cake-middle {
    width: 150px;
    height: 40px;
    background: linear-gradient(to bottom, var(--soft-pink), var(--accent-pink));
    bottom: 45px;
    left: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.cake-top {
    width: 120px;
    height: 30px;
    background: linear-gradient(to bottom, var(--light-pink), var(--dark-pink));
    bottom: 80px;
    left: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.candle {
    position: absolute;
    width: 10px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), #FFA500);
    border-radius: 5px;
    bottom: 80px;
}

.candle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 25px;
    background: linear-gradient(to bottom, #FF4500, var(--gold));
    border-radius: 50% 50% 20% 20%;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center bottom;
    animation: flicker 0.5s infinite alternate;
}

.candle-1 {
    left: 50%;
    transform: translateX(-50%); /* Perfect center */
}

/* Message Box */
.message-box {
    background: var(--light-pink);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-pink);
    margin-bottom: 40px;
    position: relative;
}

.message-icon {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--accent-pink);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.quality-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
}

.quality-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-pink);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.quality-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--accent-pink), var(--soft-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.quality-card h4 {
    color: var(--dark-pink);
    margin-bottom: 10px;
}

/* Heart Animation */
.heart-animation-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.heart-animation {
    position: relative;
    width: 100px;
    height: 100px;
}

.main-heart {
    position: absolute;
    font-size: 4rem;
    color: var(--accent-pink);
    animation: pulse 1.5s infinite;
}

.heart-1, .heart-2, .heart-3, .heart-4 {
    position: absolute;
    font-size: 1.5rem;
    color: var(--dark-pink);
    animation: floatUp 3s infinite linear;
}

.heart-1 {
    top: -20px;
    left: 20px;
    animation-delay: 0s;
}

.heart-2 {
    top: 10px;
    right: -10px;
    animation-delay: 0.5s;
}

.heart-3 {
    bottom: -20px;
    left: 40px;
    animation-delay: 1s;
}

.heart-4 {
    bottom: 10px;
    right: 20px;
    animation-delay: 1.5s;
}

/* Special Message */
.special-message {
    text-align: center;
    margin-top: 40px;
}

.message-bubble {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--soft-pink);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.message-bubble::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent var(--soft-pink) transparent;
}

.message-signature {
    text-align: right;
    font-style: italic;
    color: var(--dark-pink);
    margin-top: 20px;
    font-weight: 600;
}

/* Navigation Card */
.navigation-card {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--light-pink), white);
    border-radius: 20px;
    border: 3px dashed var(--accent-pink);
}

.nav-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.next-page-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin: 30px auto;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.next-page-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.preview-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--accent-pink), var(--soft-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.fun-preview {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
}

.preview-text {
    flex: 1;
    text-align: left;
}

.preview-text h4 {
    color: var(--dark-pink);
    margin-bottom: 5px;
}

.next-page-btn {
    background: linear-gradient(45deg, var(--accent-pink), var(--dark-pink));
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(219, 112, 147, 0.3);
}

.next-page-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(219, 112, 147, 0.4);
}

.btn-text {
    letter-spacing: 1px;
}

.btn-icon {
    font-size: 1.5rem;
    animation: bounce 1s infinite;
}

/* Page Indicator */
.page-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--soft-pink);
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--light-pink);
    border: 2px solid var(--soft-pink);
    transition: var(--transition);
}

.indicator.active {
    background: var(--accent-pink);
    border-color: var(--dark-pink);
    transform: scale(1.2);
}

.page-indicator p {
    margin: 0 0 0 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Flower Animation */
.flower-animation {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    animation: bounce 2s infinite;
    color: var(--accent-pink);
    z-index: 100;
}

.camera-animation {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    animation: wiggle 3s infinite;
    color: var(--dark-pink);
    z-index: 100;
}

/* Audio Player */
.audio-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
}

.music-btn {
    background: var(--accent-pink);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.music-btn:hover {
    background: var(--dark-pink);
    transform: scale(1.05);
}

/* Gallery Styles */
.gallery-intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.polaroid-frame {
    background: white;
    padding: 15px 15px 40px;
    border-radius: 2px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: rotate(-5deg);
    transition: var(--transition);
    min-width: 250px;
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.05);
}

.polaroid-image {
    width: 220px;
    height: 220px;
    background: linear-gradient(45deg, var(--light-pink), var(--soft-pink));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark-pink);
    font-size: 3rem;
    margin-bottom: 15px;
}

.polaroid-caption {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--dark-pink);
}

.date {
    font-size: 1rem;
    color: var(--text-light);
}

.intro-text {
    flex: 1;
}

.intro-text h3 {
    color: var(--dark-pink);
    margin-bottom: 15px;
}

/* Gallery Viewer */
.gallery-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
    padding: 0 20px;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--accent-pink);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-btn:hover {
    background: var(--accent-pink);
    color: white;
    transform: scale(1.1);
}

.gallery-viewer {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.photo-display {
    height: 400px;
    position: relative;
}

.photo-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
}

.photo-frame.active {
    opacity: 1;
}

.photo-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--light-pink), var(--soft-pink));
    padding: 20px;
}

.photo-placeholder {
    text-align: center;
    color: var(--dark-pink);
}

.photo-placeholder i {
    font-size: 5rem;
    margin-bottom: 20px;
}

.photo-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
    font-style: italic;
}

.photo-info {
    background: white;
    padding: 20px;
    border-top: 2px solid var(--soft-pink);
}

.photo-info h4 {
    color: var(--dark-pink);
    margin-bottom: 10px;
}

.photo-tags {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.tag {
    background: var(--light-pink);
    color: var(--dark-pink);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.photo-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid var(--soft-pink);
}

.thumbnail {
    width: 50px;
    height: 50px;
    background: var(--light-pink);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail:hover {
    background: var(--soft-pink);
    transform: translateY(-5px);
}

.thumbnail.active {
    background: var(--accent-pink);
    color: white;
    border-color: var(--dark-pink);
    transform: translateY(-5px);
}

.thumb-content {
    font-weight: 600;
}

/* Gallery Stats */
.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--light-pink), white);
    border-radius: 15px;
    border: 2px solid var(--soft-pink);
}

.stat {
    text-align: center;
}

.stat i {
    font-size: 2.5rem;
    color: var(--accent-pink);
    margin-bottom: 10px;
}

.stat span {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-pink);
    margin-bottom: 5px;
}

.stat p {
    color: var(--text-light);
    margin: 0;
}

/* Memory Wall */
.memory-wall-container {
    margin-top: 30px;
}

.wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.memory-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.memory-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-pink);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.memory-content i {
    font-size: 2.5rem;
    color: var(--accent-pink);
    margin-bottom: 15px;
}

.memory-content p {
    color: var(--dark-pink);
    font-weight: 600;
    margin: 0;
}

.add-memory {
    background: var(--light-pink);
    padding: 30px;
    border-radius: 15px;
    border: 2px dashed var(--accent-pink);
}

.add-memory h4 {
    text-align: center;
    color: var(--dark-pink);
    margin-bottom: 20px;
}

.memory-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.memory-option {
    background: white;
    border: 2px solid var(--soft-pink);
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--dark-pink);
    transition: var(--transition);
}

.memory-option:hover {
    background: var(--accent-pink);
    color: white;
    transform: translateY(-5px);
    border-color: var(--accent-pink);
}

.memory-option i {
    font-size: 1.2rem;
}

.memory-display {
    min-height: 100px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid var(--soft-pink);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.added-memory {
    background: var(--light-pink);
    padding: 10px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.5s ease;
}

.added-memory i {
    color: var(--accent-pink);
}

.added-memory span {
    color: var(--dark-pink);
    font-weight: 500;
}

/* Fun Zone Styles */
.fun-intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.party-hat-container {
    min-width: 200px;
    display: flex;
    justify-content: center;
}

.party-hat {
    position: relative;
    width: 150px;
    height: 120px;
    animation: bounce 2s infinite;
}

.hat-top {
    position: absolute;
    top: 0;
    left: 25px;
    width: 100px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.hat-brim {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 30px;
    background: linear-gradient(45deg, #ffa500, #ff6b6b);
    border-radius: 50%;
}

.fun-message {
    flex: 1;
    text-align: left;
}

.fun-message h3 {
    color: var(--dark-pink);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.fun-message p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Games Container */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--soft-pink);
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.game-header {
    background: linear-gradient(45deg, var(--accent-pink), var(--dark-pink));
    padding: 20px;
    text-align: center;
    color: white;
}

.game-header i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.game-header h4 {
    margin: 0;
    font-size: 1.5rem;
}

.game-description {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--soft-pink);
}

.game-description p {
    margin: 0;
    color: var(--text-light);
}

.game-controls {
    padding: 25px;
}

/* Cake Game */
.cake-preview {
    width: 200px;
    height: 150px;
    background: #f5e6d3;
    border-radius: 10px;
    margin: 0 auto 20px;
    position: relative;
    border: 2px solid #e0c9a6;
    overflow: hidden;
}

.base-cake {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 160px;
    height: 100px;
    background: #8B4513;
    border-radius: 10px;
}

.decoration {
    position: absolute;
    border-radius: 50%;
}

.icing {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 20px;
    background: var(--accent-pink);
}

.sprinkles {
    top: 30px;
    left: 30px;
    width: 140px;
    height: 140px;
    background: conic-gradient(var(--gold) 0deg 90deg, 
                              var(--accent-pink) 90deg 180deg,
                              #87ceeb 180deg 270deg,
                              #98fb98 270deg 360deg);
    opacity: 0.7;
}

.candle {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 30px;
    background: var(--gold);
}

.decorations {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.decor-btn {
    background: var(--light-pink);
    border: 2px solid var(--soft-pink);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark-pink);
    transition: var(--transition);
}

.decor-btn:hover {
    background: var(--accent-pink);
    color: white;
    transform: translateY(-3px);
}

.reset-btn {
    background: #ffebee;
    border-color: #ffcdd2;
}

.reset-btn:hover {
    background: #ff5252;
}

.game-message {
    margin-top: 15px;
    padding: 10px;
    background: var(--light-pink);
    border-radius: 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.game-message.show {
    opacity: 1;
    transform: translateY(0);
}

.game-message i {
    margin-right: 8px;
}

/* Wish Game */
.wish-display {
    min-height: 120px;
    background: var(--light-pink);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed var(--soft-pink);
    transition: var(--transition);
}

.wish-display.wish-generated {
    background: linear-gradient(45deg, var(--light-pink), white);
    border-color: var(--accent-pink);
    transform: scale(1.02);
}

.wish-animation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wish-animation i {
    color: var(--gold);
    font-size: 1.5rem;
    animation: sparkle 1.5s infinite;
}

.generated-wish {
    color: var(--dark-pink);
    font-weight: 500;
    font-style: italic;
    margin: 0;
}

.generate-btn, .copy-btn {
    background: linear-gradient(45deg, var(--accent-pink), var(--dark-pink));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    margin-right: 10px;
}

.generate-btn:hover, .copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.copy-btn {
    background: linear-gradient(45deg, #87ceeb, #4682b4);
}

/* Gift Game */
.gift-box {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    position: relative;
    perspective: 1000px;
    cursor: pointer;
}

.box-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 50px;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    border-radius: 10px 10px 0 0;
    transform-origin: top;
    transition: transform 0.5s ease;
    z-index: 2;
}

.box-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 150px;
    background: linear-gradient(45deg, #ffa500, #ff6b6b);
    border-radius: 0 0 10px 10px;
}

.ribbon {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
}

.ribbon-vertical {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 100%;
    background: var(--gold);
}

.ribbon-horizontal {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 10px;
    background: var(--gold);
}

.gift-box.opening .box-lid {
    transform: rotateX(-120deg);
}

.gift-box.opened .box-lid {
    transform: rotateX(-120deg);
}

.gift-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.revealed-gift {
    font-size: 3rem;
    animation: bounce 1s infinite;
}

.revealed-gift p {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.open-gift-btn {
    background: linear-gradient(45deg, #ffa500, #ff6b6b);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    transition: var(--transition);
}

.open-gift-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gift-counter {
    text-align: center;
    margin-top: 15px;
    color: var(--dark-pink);
    font-weight: 600;
}

/* Virtual Party */
.party-controls {
    margin-top: 30px;
}

.party-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.party-btn {
    background: linear-gradient(45deg, var(--accent-pink), var(--dark-pink));
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.party-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.party-btn:nth-child(2) {
    background: linear-gradient(45deg, #ffd700, #ffa500);
}

.party-btn:nth-child(3) {
    background: linear-gradient(45deg, #ff6b6b, #ff4500);
}

.party-btn:nth-child(4) {
    background: linear-gradient(45deg, #9370db, #8a2be2);
}

.party-display {
    min-height: 200px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid var(--soft-pink);
    position: relative;
    overflow: hidden;
}

.virtual-balloon, .virtual-confetti, .horn-effect, .firework, .firework-particle, .mini-confetti, .celebration-confetti {
    position: absolute;
    pointer-events: none;
}

.virtual-balloon {
    animation: floatUpFast 3s linear forwards;
}

.virtual-confetti {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: fall 2s linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(200px) rotate(360deg);
        opacity: 0;
    }
}

.horn-effect {
    font-size: 4rem;
    animation: pulse 0.5s ease-out;
    z-index: 10;
}

.firework {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: rise 0.8s ease-out forwards;
}

@keyframes rise {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px);
        opacity: 1;
    }
}

.firework-particle {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
}

.mini-confetti, .celebration-confetti {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.party-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: linear-gradient(135deg, var(--light-pink), white);
    border-radius: 15px;
    border: 2px solid var(--soft-pink);
}

.party-stat {
    text-align: center;
}

.party-stat i {
    font-size: 2rem;
    color: var(--accent-pink);
    margin-bottom: 10px;
}

.party-stat span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-pink);
    margin-bottom: 5px;
}

.party-stat p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Final Celebration */
.celebration-container {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--light-pink), white);
    border-radius: 20px;
    border: 3px solid var(--accent-pink);
    position: relative;
    overflow: hidden;
}

.celebration-container h3 {
    font-size: 2.5rem;
    color: var(--dark-pink);
    margin-bottom: 30px;
}

.celebration-message {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.birthday-wish-final {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border: 2px solid var(--soft-pink);
}

.birthday-wish-final i {
    font-size: 2rem;
    color: var(--accent-pink);
    animation: pulse 1.5s infinite;
}

.final-wish {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-pink);
    margin: 0;
    font-style: italic;
}

.celebration-animation {
    height: 100px;
    position: relative;
    margin: 30px 0;
}

.celebration-sparkles, .celebration-flowers {
    position: absolute;
    width: 100%;
    height: 100%;
}

.final-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.celebration-btn, .share-btn {
    padding: 18px 35px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.celebration-btn {
    background: linear-gradient(45deg, var(--accent-pink), var(--dark-pink));
    color: white;
}

.share-btn {
    background: linear-gradient(45deg, #87ceeb, #4682b4);
    color: white;
}

.celebration-btn:hover, .share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.page-navigation-final {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--soft-pink);
}

.page-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.page-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: white;
    border-radius: 25px;
    text-decoration: none;
    color: var(--dark-pink);
    font-weight: 600;
    border: 2px solid var(--soft-pink);
    transition: var(--transition);
}

.page-link:hover {
    background: var(--accent-pink);
    color: white;
    transform: translateY(-5px);
    border-color: var(--accent-pink);
}

.page-link i {
    font-size: 1.2rem;
}

/* Button Group for Navigation */
.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.nav-btn {
    padding: 15px 30px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.primary-btn {
    background: linear-gradient(45deg, var(--accent-pink), var(--dark-pink));
    color: white;
}

.secondary-btn {
    background: white;
    color: var(--dark-pink);
    border: 2px solid var(--soft-pink);
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(219, 112, 147, 0.3);
}

.secondary-btn:hover {
    background: var(--light-pink);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .birthday-date {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 25px;
        margin-bottom: 50px;
    }
    
    .qualities {
        grid-template-columns: 1fr;
    }
    
    .gallery-intro-content {
        flex-direction: column;
        text-align: center;
    }
    
    .polaroid-frame {
        transform: rotate(0);
    }
    
    .fun-intro-content {
        flex-direction: column;
        text-align: center;
    }
    
    .games-container {
        grid-template-columns: 1fr;
    }
    
    .party-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .party-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .next-page-preview {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .preview-text {
        text-align: center;
    }
    
    .page-links {
        flex-direction: column;
        align-items: center;
    }
    
    .page-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo i {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .birthday-cake .cake {
        transform: scale(0.8);
    }
    
    .message-bubble {
        padding: 20px;
    }
    
    .navigation-card {
        padding: 25px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .background-animations,
    .flower-animation,
    .camera-animation,
    .audio-player,
    .next-page-btn,
    .nav-btn,
    .party-btn,
    .decor-btn,
    .generate-btn,
    .copy-btn,
    .open-gift-btn,
    .celebration-btn,
    .share-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .content-section {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
}
/* Birthday Card Page Styles */
.card-page .content-section {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Card Introduction */
.card-intro-message {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, var(--light-pink), white);
    border-radius: 20px;
    border: 2px solid var(--soft-pink);
}

.envelope-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--accent-pink), var(--dark-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    animation: bounce 2s infinite;
}

.intro-text h3 {
    color: var(--dark-pink);
    margin-bottom: 15px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Interactive Birthday Card */
.card-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.birthday-card {
    width: 100%;
    height: 500px;
    position: relative;
    perspective: 1000px;
    margin-bottom: 30px;
}

.card-front, .card-inside {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-front {
    background: linear-gradient(135deg, #ffb6c1, #ff69b4);
    transform: rotateY(0deg);
    z-index: 2;
}

.card-inside {
    background: linear-gradient(135deg, #ffffff, #ffe6ea);
    transform: rotateY(180deg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.birthday-card.open .card-front {
    transform: rotateY(-180deg);
}

.birthday-card.open .card-inside {
    transform: rotateY(0deg);
}

/* Card Cover */
.card-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cover-design {
    text-align: center;
    color: white;
    padding: 40px;
}

.cover-title h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: 'Dancing Script', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cover-title p {
    font-size: 1.5rem;
    opacity: 0.9;
}

.cover-decoration {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

.cover-decoration i {
    animation: bounce 3s infinite;
}

.cover-decoration i:nth-child(2) {
    animation-delay: 0.5s;
}

.cover-decoration i:nth-child(3) {
    animation-delay: 1s;
}

.open-hint {
    margin-top: 40px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.open-hint p {
    margin: 0;
    font-weight: 600;
}

.open-hint i {
    font-size: 1.5rem;
    animation: bounce 1s infinite;
}

/* Card Inside Content */
.inside-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--soft-pink);
}

.card-header h3 {
    font-size: 2.2rem;
    color: var(--dark-pink);
    margin-bottom: 10px;
}

.card-date {
    font-size: 1.3rem;
    color: var(--accent-pink);
    font-weight: 600;
}

.card-message {
    flex: 1;
    overflow-y: auto;
    padding-right: 20px;
    line-height: 1.8;
}

.card-message p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.wishes-list {
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.wish-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--light-pink);
    border-radius: 10px;
    border-left: 4px solid var(--accent-pink);
}

.wish-item i {
    color: var(--accent-pink);
    font-size: 1.2rem;
}

.wish-item span {
    color: var(--dark-pink);
    font-weight: 500;
}

.closing-message {
    font-style: italic;
    color: var(--dark-pink);
    font-weight: 500;
    margin: 30px 0 !important;
    text-align: center;
}

.signature {
    text-align: right;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed var(--soft-pink);
}

.signature-name {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--accent-pink);
    margin-top: 10px !important;
}

.card-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid var(--soft-pink);
}

.birthday-stamp {
    display: inline-block;
    margin-bottom: 15px;
}

.stamp-circle {
    width: 80px;
    height: 80px;
    border: 3px dashed var(--accent-pink);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(-15deg);
    background: white;
}

.stamp-circle span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-pink);
    line-height: 1.2;
}

.footer-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Card Controls */
.card-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.card-btn {
    padding: 15px 25px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 150px;
    justify-content: center;
}

.open-btn {
    background: linear-gradient(45deg, var(--accent-pink), var(--dark-pink));
    color: white;
}

.close-btn {
    background: white;
    color: var(--dark-pink);
    border: 2px solid var(--soft-pink);
}

.add-flower-btn {
    background: linear-gradient(45deg, #98fb98, #32cd32);
    color: white;
}

.play-music-btn {
    background: linear-gradient(45deg, #87ceeb, #4682b4);
    color: white;
}

.card-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Card Stats */
.card-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 25px;
    background: linear-gradient(135deg, var(--light-pink), white);
    border-radius: 15px;
    border: 2px solid var(--soft-pink);
    margin-bottom: 40px;
}

.card-stat {
    text-align: center;
}

.card-stat i {
    font-size: 2rem;
    color: var(--accent-pink);
    margin-bottom: 10px;
}

.card-stat span {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-pink);
    margin-bottom: 5px;
}

.card-stat p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Virtual Gifts */
.gifts-container {
    margin-top: 30px;
}

.gift-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gift-option {
    background: white;
    border: 2px solid var(--soft-pink);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.gift-option:hover {
    background: var(--light-pink);
    transform: translateY(-5px);
    border-color: var(--accent-pink);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gift-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-pink), var(--soft-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.gift-option span {
    font-weight: 600;
    color: var(--dark-pink);
}

.gifts-display {
    min-height: 150px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px dashed var(--soft-pink);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

.gift-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--soft-pink);
    animation: slideInUp 0.5s ease;
}

.gift-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.gift-item-content i {
    font-size: 2rem;
}

.gift-item-content p {
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

.message-card {
    background: linear-gradient(135deg, #fff9e6, #fff0f5);
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-pink);
    max-width: 300px;
    animation: slideInUp 0.5s ease;
}

.message-card-content {
    position: relative;
}

.message-card-content i:first-child {
    position: absolute;
    top: -10px;
    left: -10px;
    color: var(--accent-pink);
}

.message-card-content i:last-child {
    position: absolute;
    bottom: -10px;
    right: -10px;
    color: var(--accent-pink);
}

.message-card-content p {
    margin: 0;
    font-style: italic;
    line-height: 1.6;
}

.gift-message {
    margin-top: 30px;
}

.gift-message textarea {
    width: 100%;
    height: 120px;
    padding: 20px;
    border: 2px solid var(--soft-pink);
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.gift-message textarea:focus {
    outline: none;
    border-color: var(--accent-pink);
}

.send-message-btn {
    background: linear-gradient(45deg, var(--accent-pink), var(--dark-pink));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.send-message-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(219, 112, 147, 0.3);
}

/* Final Wishes */
.final-celebration {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--light-pink), white);
    border-radius: 20px;
    border: 3px solid var(--accent-pink);
}

.celebration-message {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.special-wish {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    border: 2px solid var(--soft-pink);
    max-width: 600px;
}

.special-wish i {
    color: var(--accent-pink);
    font-size: 2rem;
    flex-shrink: 0;
}

.wish-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--dark-pink);
    margin: 0 !important;
    line-height: 1.6;
}

.birthday-toast {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.toast-glass {
    position: relative;
    width: 60px;
    height: 100px;
}

.glass-top {
    position: absolute;
    top: 0;
    left: 10px;
    width: 40px;
    height: 60px;
    background: linear-gradient(45deg, #ffd700, #ffa500);
    border-radius: 0 0 20px 20px;
    animation: pulse 2s infinite;
}

.glass-stem {
    position: absolute;
    top: 60px;
    left: 29px;
    width: 2px;
    height: 30px;
    background: #d4af37;
}

.glass-base {
    position: absolute;
    top: 90px;
    left: 25px;
    width: 10px;
    height: 10px;
    background: #d4af37;
    border-radius: 50%;
}

.toast-text {
    font-size: 1.5rem;
    color: var(--dark-pink);
    font-weight: 600;
    margin: 0 !important;
}

.final-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.celebration-btn, .share-card-btn {
    padding: 18px 35px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.celebration-btn {
    background: linear-gradient(45deg, var(--accent-pink), var(--dark-pink));
    color: white;
}

.share-card-btn {
    background: linear-gradient(45deg, #87ceeb, #4682b4);
    color: white;
}

.celebration-btn:hover, .share-card-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Animations for Card Page */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.floating-card-element {
    position: absolute;
    font-size: 20px;
    opacity: 0.5;
    animation: floatUp 25s infinite linear;
}

.virtual-flower, .floating-heart, .celebration-heart {
    position: absolute;
    pointer-events: none;
    z-index: 100;
}

.gift-particle, .firework-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
}

.firework-shell {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: rise 0.8s ease-out forwards;
    pointer-events: none;
}

.card-message-alert {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    animation: slideInRight 0.5s ease;
    border-left: 4px solid var(--accent-pink);
    max-width: 400px;
}

.card-message-alert.error {
    border-left-color: #ff6b6b;
    background: #ffe6e6;
}

.card-message-alert.celebration {
    border-left-color: #ffd700;
    background: #fff9e6;
}

.card-message-alert.hint {
    border-left-color: #87ceeb;
    background: #e6f7ff;
}

.card-message-alert i {
    font-size: 1.2rem;
    color: var(--accent-pink);
}

.card-message-alert.error i {
    color: #ff6b6b;
}

.card-message-alert.celebration i {
    color: #ffd700;
}

.card-message-alert.hint i {
    color: #87ceeb;
}

.card-message-alert span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Card Elements Animation */
.card-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Update Music Player in all pages */
.music-btn {
    background: var(--accent-pink);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.music-btn:hover {
    background: var(--dark-pink);
    transform: scale(1.05);
}

.music-btn.playing {
    background: var(--dark-pink);
    animation: pulse 2s infinite;
}

/* Update audio elements in all pages */
audio {
    display: none;
}

/* Update navigation in gallery.html to point to birthday-card.html */
/* In gallery.html, change the button link from fun.html to birthday-card.html */
/* Simple Birthday Card Styles */
.card-only-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.card-container-simple {
    text-align: center;
    margin-top: 30px;
}

/* Simple Birthday Card */
.birthday-card-simple {
    width: 100%;
    max-width: 600px;
    height: 900px;
    margin: 0 auto 40px;
    position: relative;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-front-simple, .card-inside-simple {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-front-simple {
    background: linear-gradient(135deg, #ffb6c1, #ff69b4);
    transform: rotateY(0deg);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.3);
}

.card-inside-simple {
    background: linear-gradient(135deg, #ffffff, #fff5f7);
    transform: rotateY(180deg);
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid #ffb6c1;
}

.birthday-card-simple.open .card-front-simple {
    transform: rotateY(-180deg);
}

.birthday-card-simple.open .card-inside-simple {
    transform: rotateY(0deg);
}

/* Card Front */
.card-cover-simple {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cover-design-simple {
    text-align: center;
    color: white;
    padding: 30px;
}

.cover-title-simple h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 400;
}

.cover-title-simple h1 {
    font-size: 3.5rem;
    margin-bottom: 5px;
    font-family: 'Dancing Script', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nickname-display {
    font-size: 1.3rem;
    opacity: 0.9;
    font-style: italic;
    margin-bottom: 30px;
}

.cover-decoration-simple {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    font-size: 2.5rem;
}

.cover-decoration-simple i {
    animation: float 3s infinite ease-in-out;
}

.cover-decoration-simple .heart-1 {
    animation-delay: 0s;
    color: #ffebee;
}

.cover-decoration-simple .heart-2 {
    animation-delay: 1s;
    color: #ffcdd2;
}

.cover-decoration-simple .fa-birthday-cake {
    animation-delay: 0.5s;
    color: #ffd700;
}

.cover-decoration-simple .fa-star {
    animation-delay: 1.5s;
    color: #ffecb3;
}

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

.cover-hint-simple {
    margin-top: 40px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cover-hint-simple i {
    font-size: 1.3rem;
    animation: bounce 1s infinite;
}

.cover-hint-simple p {
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Card Inside */
.inside-content-simple {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}

.card-header-simple {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #ffb6c1;
    position: relative;
}

.envelope-flap {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: #ff69b4;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

.card-header-simple h1 {
    font-size: 2.5rem;
    color: #ff69b4;
    margin-bottom: 5px;
    font-family: 'Dancing Script', cursive;
}

.card-header-simple h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 5px;
}

.card-date {
    font-size: 1.1rem;
    color: #ff69b4;
    font-weight: 600;
}

.card-message-simple {
    flex: 1;
    text-align: left;
    line-height: 1.6;
    font-size: 0.95rem;
}

.message-content p {
    margin-bottom: 15px;
}

.special-wish-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    padding: 15px;
    background: linear-gradient(to right, #fff5f7, #ffeef1);
    border-radius: 10px;
    border-left: 4px solid #ff69b4;
}

.wish-icon {
    color: #ff69b4;
    font-size: 1.3rem;
}

.special-wish-text {
    flex: 1;
    margin: 0 !important;
    font-style: italic;
    color: #333;
    font-weight: 500;
}

.closing-line {
    text-align: right;
    margin: 25px 0 10px !important;
    font-weight: 500;
}

.signature-box {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ffb6c1;
}

.signature-name {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #ff69b4;
    margin: 0 !important;
}

.signature-heart {
    color: #ff69b4;
    font-size: 1.5rem;
    animation: pulse 1.5s infinite;
}

.card-footer-simple {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #ffb6c1;
}

.birthday-stamp-simple {
    display: inline-block;
    margin-bottom: 10px;
}

.stamp-circle-simple {
    width: 70px;
    height: 70px;
    border: 2px dashed #ff69b4;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(-10deg);
    background: white;
}

.stamp-circle-simple span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff69b4;
    line-height: 1.2;
}

.footer-note-simple {
    font-size: 0.85rem;
    color: #666;
    margin: 0 !important;
}

/* Simple Controls */
.simple-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.open-card-btn {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
}

.close-card-btn {
    background: white;
    color: #ff69b4;
    border: 2px solid #ffb6c1;
}

.add-flower-btn {
    background: linear-gradient(45deg, #98fb98, #32cd32);
    color: white;
}

.music-btn {
    background: linear-gradient(45deg, #87ceeb, #4682b4);
    color: white;
}

.control-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.control-btn:active {
    transform: translateY(-1px);
}

/* Flower Counter */
.flower-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #fff5f7;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid #ffb6c1;
}

.flower-counter i {
    color: #ff69b4;
    font-size: 1.2rem;
}

.flower-counter span {
    color: #333;
    font-weight: 500;
}

#flowerCount {
    color: #ff1493;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.nav-button {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.back-button {
    background: white;
    color: #ff69b4;
    border: 2px solid #ffb6c1;
}

.home-button {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Simple Footer */
.simple-footer {
    text-align: center;
    padding: 25px;
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 2px solid #ffb6c1;
}

.simple-footer p {
    margin: 5px 0;
    color: #666;
}

.footer-heart {
    font-size: 1.5rem;
    color: #ff69b4;
    animation: pulse 2s infinite;
}

/* Message Alert */
.card-message-alert {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
    border-left: 4px solid #ff69b4;
    min-width: 250px;
    opacity: 1;
    transition: all 0.3s ease;
}

.card-message-alert.success {
    border-left-color: #32cd32;
}

.card-message-alert.error {
    border-left-color: #ff6b6b;
}

.card-message-alert.hint {
    border-left-color: #87ceeb;
}

.card-message-alert i {
    font-size: 1rem;
    color: #ff69b4;
}

.card-message-alert.success i {
    color: #32cd32;
}

.card-message-alert.error i {
    color: #ff6b6b;
}

.card-message-alert.hint i {
    color: #87ceeb;
}

.card-message-alert span {
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Flower Animation */
.flower-animation {
    position: fixed !important;
    font-size: 30px !important;
    z-index: 1000 !important;
    pointer-events: none !important;
}

/* Music Player */
.music-player {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .birthday-card-simple {
        height: 350px;
        max-width: 500px;
    }
    
    .cover-title-simple h1 {
        font-size: 2.8rem;
    }
    
    .cover-title-simple h3 {
        font-size: 1.3rem;
    }
    
    .nickname-display {
        font-size: 1.1rem;
    }
    
    .cover-decoration-simple {
        font-size: 2rem;
        gap: 20px;
    }
    
    .inside-content-simple {
        padding: 20px;
    }
    
    .card-header-simple h1 {
        font-size: 2rem;
    }
    
    .card-header-simple h3 {
        font-size: 1.3rem;
    }
    
    .simple-controls {
        gap: 10px;
    }
    
    .control-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .nav-button {
        min-width: 150px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .birthday-card-simple {
        height: 300px;
        max-width: 400px;
    }
    
    .cover-title-simple h1 {
        font-size: 2.2rem;
    }
    
    .cover-title-simple h3 {
        font-size: 1.1rem;
    }
    
    .cover-decoration-simple {
        font-size: 1.5rem;
        gap: 15px;
    }
    
    .simple-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 200px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-button {
        width: 200px;
    }
}
/* ===== MEMORY GALLERY GRID ===== */

/* Polaroid Grid Layout for 4-5 Pictures */
.polaroid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0 50px;
    padding: 20px;
}

.polaroid-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 3px solid transparent;
}

.polaroid-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-pink);
}

/* Photo Frame with Gradient Border */
.photo-frame {
    padding: 12px;
    background: linear-gradient(135deg, var(--soft-pink), var(--accent-pink));
    border-radius: 12px 12px 0 0;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        #ff6b6b, #ffa500, #ffd700, #98fb98, #87ceeb, #9370db, #ff69b4);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

.memory-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.6s ease;
    border: 2px solid white;
}

.polaroid-card:hover .memory-photo {
    transform: scale(1.08);
}

/* Photo Label */
.photo-label {
    padding: 20px;
    background: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.photo-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-pink);
    display: block;
    margin-bottom: 5px;
}

.photo-desc {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    display: block;
    min-height: 40px;
}

/* Optional Polaroid Effect */
.polaroid-card::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.polaroid-card:hover::after {
    opacity: 1;
}

/* Heart Animation on Hover */
.polaroid-card::before {
    content: '❤️';
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    font-size: 1.5rem;
    transform: scale(0);
}

.polaroid-card:hover::before {
    opacity: 1;
    transform: scale(1);
    animation: float 1.5s ease-in-out infinite;
}

/* Date Badge */
.date-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-pink);
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 182, 193, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */

/* 4 pictures: 2x2 on desktop */
@media (min-width: 1200px) {
    .polaroid-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 5 pictures: 3 on top, 2 on bottom */
.polaroid-grid.five-items {
    grid-template-columns: repeat(3, 1fr);
}

.polaroid-grid.five-items .polaroid-card:last-child {
    grid-column: 2 / 3;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .polaroid-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .polaroid-grid.five-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .polaroid-grid.five-items .polaroid-card:last-child {
        grid-column: auto;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .polaroid-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .polaroid-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        gap: 25px;
    }
    
    .photo-title {
        font-size: 1.6rem;
    }
    
    .memory-photo {
        height: 200px;
    }
}

/* Animation for new photos */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.polaroid-card {
    animation: slideInUp 0.6s ease;
}

.polaroid-card:nth-child(2) { animation-delay: 0.1s; }
.polaroid-card:nth-child(3) { animation-delay: 0.2s; }
.polaroid-card:nth-child(4) { animation-delay: 0.3s; }
.polaroid-card:nth-child(5) { animation-delay: 0.4s; }
/* ===== 8-PICTURE POLAROID WALL ===== */

.polaroid-wall.eight-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0 50px;
    padding: 20px;
    position: relative;
}

.polaroid-item {
    width: 100%;
    max-width: 200px;
    background: white;
    padding: 12px 12px 35px;
    border-radius: 2px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    cursor: pointer;
    justify-self: center;
    
}

/* Random rotation for casual look */
.polaroid-wall.eight-items .polaroid-item:nth-child(1) { transform: rotate(-4deg); }
.polaroid-wall.eight-items .polaroid-item:nth-child(2) { transform: rotate(3deg); }
.polaroid-wall.eight-items .polaroid-item:nth-child(3) { transform: rotate(-2deg); }
.polaroid-wall.eight-items .polaroid-item:nth-child(4) { transform: rotate(5deg); }
.polaroid-wall.eight-items .polaroid-item:nth-child(5) { transform: rotate(-3deg); }
.polaroid-wall.eight-items .polaroid-item:nth-child(6) { transform: rotate(2deg); }
.polaroid-wall.eight-items .polaroid-item:nth-child(7) { transform: rotate(-1deg); }
.polaroid-wall.eight-items .polaroid-item:nth-child(8) { transform: rotate(4deg); }

/* Tape effect */
.polaroid-item::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

.polaroid-item:hover {
    transform: rotate(0deg) scale(1.1) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.polaroid-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: 12px;
    border: 2px solid #f8f8f8;
}

.polaroid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.polaroid-item:hover .polaroid-img img {
    transform: scale(1.12);
}

.polaroid-label {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    padding: 0 8px;
}

.photo-title {
    font-size: 1.3rem;
    color: var(--dark-pink);
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.photo-date {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Heart pop-up */
.polaroid-item::after {
    content: '❤️';
    position: absolute;
    top: -18px;
    right: -12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    font-size: 1.5rem;
    z-index: 20;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15));
}

.polaroid-item:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: floatHeart 1.5s ease-in-out infinite;
}

@keyframes floatHeart {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.08) translateY(-6px); }
}

/* Different tape colors for variety */
.polaroid-item:nth-child(odd)::before {
    background: rgba(255, 182, 193, 0.7); /* Pink tape */
}

.polaroid-item:nth-child(even)::before {
    background: rgba(255, 215, 0, 0.7); /* Gold tape */
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop: 4 columns */
@media (min-width: 1200px) {
    .polaroid-wall.eight-items {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .polaroid-item {
        max-width: 180px;
    }
}

/* Large Tablet: 3 columns */
@media (min-width: 992px) and (max-width: 1199px) {
    .polaroid-wall.eight-items {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .polaroid-item {
        max-width: 190px;
    }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .polaroid-wall.eight-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .polaroid-item {
        max-width: 200px;
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .polaroid-wall.eight-items {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .polaroid-item {
        max-width: 250px;
        transform: rotate(0deg) !important;
    }
    
    .polaroid-item:hover {
        transform: scale(1.05) !important;
    }
    
    .polaroid-img {
        height: 220px;
    }
}

/* Intro Text Styling */
.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 2px dashed var(--soft-pink);
    position: relative;
}

.intro-text::before {
    content: '📸';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background: white;
    padding: 0 20px;
}

/* Staggered animation for items */
.polaroid-item {
    animation: slideInUp 0.5s ease backwards;
}

.polaroid-item:nth-child(1) { animation-delay: 0.1s; }
.polaroid-item:nth-child(2) { animation-delay: 0.2s; }
.polaroid-item:nth-child(3) { animation-delay: 0.3s; }
.polaroid-item:nth-child(4) { animation-delay: 0.4s; }
.polaroid-item:nth-child(5) { animation-delay: 0.5s; }
.polaroid-item:nth-child(6) { animation-delay: 0.6s; }
.polaroid-item:nth-child(7) { animation-delay: 0.7s; }
.polaroid-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(0deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(var(--rotation));
    }
}
/* Remove all balloons */
.balloon-container, .balloon { display: none !important; }