* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fad0c4, #fbc2eb);
    min-height: 100vh;
    overflow-x: hidden;
}


/* Hero Section */

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 75px;
    text-shadow: 3px 3px 10px black;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 22px;
    margin-bottom: 35px;
    line-height: 1.8;
}

button {
    background: #ff4081;
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: .4s;
}

button:hover {
    background: #e91e63;
    transform: scale(1.08);
}

#letter {
    display: none;
    padding: 70px 20px;
}

.letter-box {
    max-width: 900px;
    margin: auto;
    padding: 60px;
    background: #f7e7c6;
    border-radius: 10px;
    border: 2px solid #c49a6c;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), inset 0 0 50px rgba(139, 69, 19, 0.25);
    position: relative;
    overflow: hidden;
}


/* Old paper texture effect */

.letter-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, .5), transparent 40%), radial-gradient(circle at bottom right, rgba(139, 69, 19, .15), transparent 50%);
    pointer-events: none;
}


/* Paper edges */

.letter-box::after {
    content: "✦";
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: #b8860b;
}

.letter-box h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 55px;
    text-align: center;
    color: #8b4513;
    margin-bottom: 30px;
}

.letter-box p {
    font-family: 'Dancing Script', cursive;
    font-size: 25px;
    line-height: 2;
    color: #4b2e15;
    text-align: justify;
}


/* Photo Gallery */

.gallery {
    padding: 80px 20px;
    text-align: center;
}

.gallery h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 55px;
    color: white;
    margin-bottom: 40px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.gallery-container img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .3);
    transition: .4s;
}

.gallery-container img:hover {
    transform: scale(1.05);
}


/* Countdown */

.countdown {
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.countdown h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 60px;
    margin-bottom: 30px;
}

.count-box {
    width: 250px;
    height: 250px;
    margin: auto;
    border-radius: 50%;
    background: white;
    color: #ff4081;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.count-box h1 {
    font-size: 90px;
}

.count-box p {
    font-size: 28px;
    font-weight: bold;
}

.countdown h3 {
    margin-top: 40px;
    font-size: 28px;
    font-weight: 400;
}


/* Birthday Cake */

.cake-section {
    text-align: center;
    padding: 80px 20px;
    color: white;
}

.cake-section h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 60px;
    margin-bottom: 30px;
}

.cake {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.cake-body {
    font-size: 150px;
}

.candle {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.flame {
    width: 22px;
    height: 35px;
    background: radial-gradient(circle, #fff 10%, #ffd700 40%, #ff6600 80%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    animation: flicker .5s infinite alternate;
    box-shadow: 0 0 20px gold, 0 0 40px orange;
    position: relative;
}


/* Flame movement */

@keyframes flicker {
    0% {
        transform: rotate(-45deg) scale(1);
    }
    50% {
        transform: rotate(-40deg) scale(1.15);
    }
    100% {
        transform: rotate(-50deg) scale(0.9);
    }
}

.flame::before,
.flame::after {
    content: "✨";
    position: absolute;
    font-size: 18px;
    animation: sparkle 1s infinite;
}

.flame::before {
    top: -25px;
    left: -15px;
}

.flame::after {
    top: -35px;
    right: -15px;
    animation-delay: .5s;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(.3);
    }
}

.cake-section h3 {
    margin-top: 20px;
    font-size: 36px;
}

.cake-section p {
    max-width: 700px;
    margin: 20px auto;
    font-size: 20px;
    line-height: 1.8;
}


/* Loading Screen */

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff4e8a, #ffb6c1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-content h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 70px;
}

.loader-content p {
    font-size: 24px;
    margin-top: 20px;
}


/* Floating Balloons */

.balloons {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.balloons span {
    position: absolute;
    bottom: -100px;
    font-size: 45px;
    animation: floatUp 10s linear infinite;
}

.balloons span:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
}

.balloons span:nth-child(2) {
    left: 25%;
    animation-duration: 10s;
}

.balloons span:nth-child(3) {
    left: 40%;
    animation-duration: 12s;
}

.balloons span:nth-child(4) {
    left: 55%;
    animation-duration: 9s;
}

.balloons span:nth-child(5) {
    left: 70%;
    animation-duration: 11s;
}

.balloons span:nth-child(6) {
    left: 85%;
    animation-duration: 8s;
}

.balloons span:nth-child(7) {
    left: 95%;
    animation-duration: 13s;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh);
        opacity: 0;
    }
}