body {
    margin: 0;
    background: linear-gradient(to bottom, #fffdf5, #fdf6e3);
    font-family: 'Playfair Display', serif;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: block; /* ← this is key */
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    color: #d4af37;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in;
}

.family-photo {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    animation: fadeIn 2s ease-in;
}

.fam-photo {
    text-align: center;
    margin-bottom: 20px;
}

.fam-photo img {
    width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


.countdown {
    font-size: 2rem;
    background: linear-gradient(135deg, #d4af37, #c5a228);
    background-size: 200% 200%;
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: inline-block;
    animation: shimmer 3s infinite, fadeIn 2.5s ease-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

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

.fade-in {
    animation: fadeIn 2s ease-in;
}

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

.timeline img {
    max-width: 100%;
    max-height: 400px;
    height: auto;
    display: block;
    margin-top: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 0;
}

.star {
    width: 10px;
    height: 10px;
    background: gold;
    border-radius: 50%;
    position: absolute;
    top: 100%;
    animation: floatUp 10s linear infinite;
    opacity: 0.7;
}

.star:nth-child(1) {
    left: 20%;
    animation-delay: 1s;
}
.star:nth-child(2) {
    left: 50%;
    animation-delay: 2s;
}
.star:nth-child(3) {
    left: 80%;
    animation-delay: 3s;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-120vh);
        opacity: 0;
    }
}

.clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.cloud {
    background: url('../assets/cloud.png') no-repeat center;
    background-size: contain;
    position: absolute;
    width: 200px;
    height: 120px;
    opacity: 0.4;
    animation: moveClouds 30s linear infinite;
}

.cloud1 {
    top: 10%;
    left: -200px;
    animation-delay: 0s;
}

.cloud2 {
    top: 40%;
    left: -300px;
    animation-delay: 10s;
}

.cloud3 {
    top: 60%;
    left: -250px;
    animation-delay: 20s;
    opacity: 0.3;
}

.cloud4 {
    top: 20%;
    left: -400px;
    animation-delay: 30s;
    opacity: 0.5;
}

@keyframes moveClouds {
    0% { transform: translateX(0); }
    100% { transform: translateX(140vw); }
}

/* Message Wall Container */
.message-wall {
    margin: 80px auto;
    max-width: 600px;
    padding: 0 20px;
    text-align: center;
}

/* Title */
.message-wall h2 {
    font-size: 2.2rem;
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

/* Form Style */
#messageForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

/* Emoji Row */
.emoji-picker {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 1.4rem;
    cursor: pointer;
}

.emoji {
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}

.emoji:hover {
    background: #fff3d6;
}

/* Inputs */
#messageForm input,
#messageForm textarea {
    padding: 14px;
    border: 2px solid #f5d982;
    border-radius: 14px;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    background-color: #fffdf5;
}

/* Button */
#messageForm button {
    background: linear-gradient(to right, #f5c048, #d4af37);
    color: white;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

#messageForm button:hover {
    background: #b9962f;
}

/* Messages Container */
#messagesContainer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

/* Individual Message Bubble */
.message {
    background: #fff8e1;
    border: 1px solid #f5d982;
    padding: 14px 18px;
    border-radius: 18px 18px 18px 6px;
    width: fit-content;
    max-width: 100%;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.05);
    font-family: 'Quicksand', sans-serif;
    text-align: left;
    position: relative;
    margin-left: 10px;
}

.message strong {
    color: #7d5a00;
    display: block;
    margin-bottom: 6px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 10px;
}

.menu-wrapper {
    position: relative;
    margin-left: 10px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #888;
    padding: 4px;
    border-radius: 6px;
}

.menu-toggle:hover {
    background-color: #fdf1c7;
    color: #555;
}

.menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff8e1;
    border: 1px solid #f5d982;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.menu button {
    background: none;
    border: none;
    padding: 10px 14px;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    color: #b73a3a;
}

.menu button:hover {
    background-color: #ffe7b8;
}

.hidden {
    display: none;
}

.message-text {
    margin: 8px 0 0 0;
}

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

.message.animate-in {
    animation: popIn 0.5s ease-out;
}

.timeline {
    list-style: none;
    padding-left: 0;
    margin-top: 40px;
    border-left: 3px solid #f5d982;
    position: relative;
}

.timeline li {
    position: relative;
    margin: 30px 0;
    padding-left: 20px;
}

.timeline li::before {
    content: "🌟";
    position: absolute;
    left: -14px;
    top: 0;
    background: #fffdf5;
    border: 2px solid #f5d982;
    border-radius: 50%;
    font-size: 0.9rem;
    padding: 4px;
}

.timeline .date {
    font-weight: bold;
    color: #d4af37;
    font-size: 1rem;
}

.timeline .event {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    margin-top: 4px;
    color: #333;
}

.navbar {
    width: 100%;
    background: #fff8e1;
    border-bottom: 2px solid #f5d982;
    padding: 10px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #d4af37;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-title::before {
    content: "👶";
    font-size: 1.4rem;
}

.nav-links a {
    margin-left: 20px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: #444;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links .active {
    color: #d4af37;
    font-weight: bold;
}

.milestone-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
}

.coming-soon {
    margin-top: 60px;
    background: #fffdf5;
    border-left: 4px solid #f5d982;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.coming-soon h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 12px;
}

.coming-soon ul {
    list-style: none;
    padding-left: 0;
}

.coming-soon li {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
    position: relative;
    padding-left: 0;
}

.milestone-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 40px;
    margin-top: 40px;
}

.timeline {
    flex: 1;
    max-width: 600px;
    margin: 0 auto; /* 👈 centers it inside the flex space */
}


.coming-soon {
    flex-shrink: 0;
    width: 320px;
    margin-left: auto; /* 👈 THIS pushes it to the far right */
}


@media (max-width: 768px) {
    .milestone-row {
        flex-direction: column;
    }

    .coming-soon {
        margin-top: 40px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 40px 16px;
    }

    .title {
        font-size: 3.2rem;
    }

    .countdown {
        font-size: 1.4rem;
        padding: 14px 20px;
    }

    .message-wall h2 {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    #messageForm input,
    #messageForm textarea {
        font-size: 0.95rem;
        padding: 12px;
    }

    #messageForm button {
        padding: 10px;
        font-size: 1rem;
    }

    .emoji-picker {
        font-size: 1.2rem;
        gap: 8px;
    }

    .fam-photo img {
        width: 150px;
        border-radius: 10px;
    }

    .timeline {
        margin-top: 30px;
        padding-left: 10px;
        border-left-width: 2px;
    }

    .timeline li {
        margin: 20px 0;
        padding-left: 14px;
    }

    .timeline .date {
        font-size: 0.9rem;
    }

    .timeline .event {
        font-size: 1rem;
    }

    .timeline img {
        max-height: 220px;
        border-radius: 10px;
    }

    .navbar {
        padding: 10px 20px;
    }

    .nav-title {
        font-size: 1.6rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        margin-left: 14px;
    }

    .coming-soon {
        width: 100%;
        margin: 40px auto 0;
        max-width: 100%;
        padding: 20px;
    }

    .milestone-row {
        flex-direction: column;
        gap: 24px;
        margin-top: 30px;
    }

    .cloud {
        width: 140px;
        height: 80px;
        opacity: 0.3;
    }

    .star {
        width: 6px;
        height: 6px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
}



.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.title-gold {
    color: #d4af37;
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    text-align: center;
    margin-top: 40px;
    animation: fadeIn 2s ease-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 40px 20px;
    box-sizing: border-box;
}


.lightbox.hidden {
    display: none;
}
/*
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
} */

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.caption {
    color: white;
    font-size: 1.2rem;
    margin-top: 12px;
    text-align: center;
    font-family: 'Pacifico', cursive;
}

/* === INSTALL PAGE STYLES === */

.install-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    min-height: 80vh;
    position: relative;
    z-index: 10;
}

.install-card {
    background: #fffdf5;
    border: 2px solid #f5d982;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 40px 30px;
    border-radius: 24px;
    max-width: 600px;
    text-align: center;
    animation: fadeIn 2s ease-in;
}

.install-title {
    font-size: 3.2rem;
    font-family: 'Dancing Script', cursive;
    color: #d4af37;
    margin-bottom: 10px;
}

.install-subtitle {
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    color: #555;
    margin-bottom: 30px;
}

.install-btn {
    padding: 14px 30px;
    font-size: 1.1rem;
    background: linear-gradient(to right, #f5c048, #d4af37);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: none;
}

.install-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.install-ios {
    margin-top: 40px;
    background: #fff8e1;
    padding: 20px 24px;
    border-left: 4px solid #f5d982;
    border-radius: 16px;
    text-align: left;
    display: none;
}

.install-ios h2 {
    font-family: 'Dancing Script', cursive;
    color: #d4af37;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.install-ios ol {
    padding-left: 0;
    list-style: none;
}

.install-ios li {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    .install-card {
        padding: 30px 20px;
    }

    .install-title {
        font-size: 2.4rem;
    }

    .install-subtitle {
        font-size: 1.05rem;
    }

    .install-btn {
        width: 100%;
        font-size: 1rem;
    }

    .install-ios h2 {
        font-size: 1.5rem;
    }
}

.audio-player {
    margin-top: 10px;
}

.audio-btn {
    background: linear-gradient(to right, #f5c048, #d4af37);
    color: white;
    font-family: 'Quicksand', sans-serif;
    border: none;
    border-radius: 14px;
    padding: 8px 18px;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.2s ease;
}

.audio-btn:hover {
    background: #b9962f;
    transform: scale(1.05);
}
