* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ff758c, #ff7eb3, #a18cd1);
    color: white;
    overflow-x: hidden;
}
button {
    font-family: inherit;
}
#decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}
.floating {
    position: absolute;
    bottom: -60px;
    animation: floatUp linear forwards;
    opacity: 0.85;
}

@keyframes floatUp {
    to {
        transform: translateY(-115vh) rotate(360deg);
        opacity: 0;
    }
}
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 40px 20px;
}
.hero-content {
    animation: fadeUp 1.5s ease;
}
.small-heading {
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 20px;
}
.birthday-title {
    font-size: clamp(35px, 7vw, 65px);
    font-family: 'Pacifico', cursive;
    text-shadow: 0 0 20px #fff;
}
.name {
    font-family: 'Pacifico', cursive;
    font-size: clamp(65px, 13vw, 120px);
    color: #fff5c7;
    text-shadow:
        0 0 10px #fff,
        0 0 25px #ffb6d9,
        0 0 45px #ff1493;
    animation: nameGlow 2s infinite alternate;
}

@keyframes nameGlow {
    from {
        transform: scale(1);
        text-shadow: 0 0 10px white;
    }
    to {
        transform: scale(1.07);
        text-shadow: 0 0 35px #fff, 0 0 50px #ff1493;
    }
}
.crown {
    font-size: 55px;
    animation: bounce 2s infinite;
}
.hero-message {
    font-size: 17px;
    margin: 25px auto;
    max-width: 500px;
    line-height: 1.8;
}
.scroll-text {
    position: absolute;
    bottom: 25px;
    font-size: 12px;
    letter-spacing: 3px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    50% {
        transform: translateY(-10px);
    }
}
.main-btn {
    display: inline-block;
    background: white;
    color: #ed4b91;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px #9b306a55;
    transition: 0.3s;
}
.main-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: #ffe2ef;
}
.section {
    min-height: 75vh;
    padding: 90px 20px;
    text-align: center;
}
.section h2,
.final-section h2 {
    font-family: 'Pacifico', cursive;
    font-size: clamp(27px, 5vw, 42px);
    margin-bottom: 25px;
    text-shadow: 0 3px 10px #8c306d55;
}
.section-subtitle {
    margin: 15px auto;
    line-height: 1.8;
}
.journey-card {
    max-width: 600px;
    margin: 40px auto;
    padding: 35px 20px;
    border-radius: 25px;
    background: #ffffff22;
    border: 1px solid #ffffff66;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px #7b236e33;
}
.journey-icon {
    font-size: 65px;
    margin-bottom: 20px;
}
.journey-card h3 {
    font-size: 23px;
    margin: 15px;
}
.journey-card p {
    line-height: 1.8;
}
.timeline-line {
    height: 3px;
    width: 100px;
    margin: 25px auto;
    background: white;
    border-radius: 10px;
}
.counter-box {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}
.counter-box div {
    background: #ffffff30;
    border: 1px solid #ffffff77;
    border-radius: 15px;
    padding: 20px 15px;
    min-width: 95px;
}
.counter-box span {
    display: block;
    font-size: 35px;
    font-weight: 700;
}
.counter-box small {
    font-size: 13px;
}
.journey-footer {
    font-weight: 500;
}
.total-days {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.9;
}
.cake-section {
    background: #ffffff12;
}
.cake-area {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}
.cake-3d {
    position: relative;
    width: 260px;
    height: 210px;
    transform-style: preserve-3d;
    transform: rotateX(8deg);
    transition: transform 0.5s;
}
.cake-3d:hover {
    transform: rotateX(8deg) rotateY(8deg);
}
.cake-bottom {
    position: absolute;
    bottom: 25px;
    left: 10px;
    width: 240px;
    height: 85px;
    background: linear-gradient(90deg, #e94e98, #ffacd1, #d94387);
    border-radius: 20px 20px 30px 30px;
    box-shadow: inset -10px -5px 10px #a72c6655;
}
.cake-middle {
    position: absolute;
    bottom: 95px;
    left: 30px;
    width: 200px;
    height: 65px;
    border-radius: 15px 15px 20px 20px;
    background: linear-gradient(90deg, #fff1f5, #ffb8d7, #f8d9eb);
    box-shadow: inset -8px -5px 10px #d95b9455;
}
.cake-top {
    position: absolute;
    bottom: 150px;
    left: 30px;
    width: 200px;
    height: 35px;
    background: #fff4f9;
    border-radius: 50%;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff4b94;
    font-size: 20px;
}
.cake-plate {
    position: absolute;
    bottom: 10px;
    left: -5px;
    width: 270px;
    height: 30px;
    background: linear-gradient(#fff, #d8a8ce);
    border-radius: 50%;
    box-shadow: 0 10px 15px #75275a66;
}
.candles {
    position: absolute;
    bottom: 180px;
    left: 65px;
    width: 130px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
}
.candle {
    width: 13px;
    height: 48px;
    background: repeating-linear-gradient(
        45deg,
        #fff,
        #fff 5px,
        #ff79ac 5px,
        #ff79ac 10px
    );
    border: none;
    position: relative;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    padding: 0;
}
.flame {
    position: absolute;
    width: 16px;
    height: 23px;
    background: radial-gradient(#fff9a6, #ff9d35, #ff4b00);
    border-radius: 50% 50% 50% 50%;
    top: -27px;
    left: -2px;
    transform: rotate(45deg);
    box-shadow: 0 0 15px #ffcf60;
    animation: flicker 0.5s infinite alternate;
}
.wick {
    position: absolute;
    height: 6px;
    width: 2px;
    background: #5a2c2c;
    top: -5px;
    left: 5px;
}
.candle.blown .flame {
    display: none;
}
@keyframes flicker {
    from {
        transform: rotate(40deg) scale(1);
    }
    to {
        transform: rotate(50deg) scale(0.85);
    }
}
#cake-message {
    font-size: 17px;
    margin: 10px;
}
.gift-section {
    background: #ffffff10;
}
.gift-box {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 35px auto;
    color: white;
}
.gift-emoji {
    font-size: 110px;
    filter: drop-shadow(0 10px 15px #68254c55);
    animation: giftBounce 1.5s infinite;
}
.gift-label {
    font-weight: bold;
    letter-spacing: 3px;
    background: white;
    color: #e94e98;
    border-radius: 30px;
    padding: 10px 25px;
    margin-top: 10px;
}

@keyframes giftBounce {
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}
.letter-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: #250b2ddd;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}
.letter-overlay.show {
    display: flex;
    animation: fadeUp 0.5s ease;
}
.letter {
    background: #fff5ed;
    color: #923c6c;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px 30px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 15px 50px #0005;
    animation: letterOpen 0.7s ease;
}

@keyframes letterOpen {
    from {
        transform: scale(0.5) rotate(-5deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}
.letter h2 {
    font-family: 'Pacifico', cursive;
    font-size: 30px;
}
.letter p {
    line-height: 1.9;
    margin: 18px 0;
    font-size: 15px;
}
.letter h3 {
    margin: 20px 0;
}
.letter-decoration {
    font-size: 50px;
}
.letter-sign {
    font-weight: 600;
}
.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    background: none;
    border: none;
    color: #923c6c;
    font-size: 32px;
    cursor: pointer;
}
.wishes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 750px;
    margin: 35px auto;
}
.wish-card {
    background: #ffffff24;
    border: 1px solid #ffffff55;
    border-radius: 20px;
    padding: 30px 15px;
    transition: 0.3s;
}
.wish-card:hover {
    transform: translateY(-10px);
    background: #ffffff40;
}
.wish-card span {
    font-size: 40px;
}
.wish-card h3 {
    margin: 15px;
}
.wish-card p {
    font-size: 14px;
    line-height: 1.7;
}
.final-section {
    text-align: center;
    padding: 100px 20px;
    background: #a74e9a44;
}
.final-section p {
    line-height: 1.8;
}
.final-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #f94c99, #9d69d9, #ff91bb);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    overflow-y: auto;
}
.final-overlay.show {
    display: flex;
    animation: finalAppear 1s ease;
}
.final-content {
    max-width: 700px;
    animation: finalZoom 1s ease;
}

@keyframes finalAppear {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes finalZoom {
    from {
        transform: scale(0.5);
    }
    to {
        transform: scale(1);
    }
}
.final-content h1 {
    font-size: clamp(32px, 7vw, 65px);
    text-shadow: 0 0 20px white;
}
.final-content h2 {
    font-family: 'Pacifico', cursive;
    font-size: clamp(45px, 10vw, 85px);
    color: #fff4c5;
    text-shadow: 0 0 25px white;
}
.final-content p {
    font-size: 17px;
    line-height: 1.9;
    margin: 15px 0;
}
.final-content h3 {
    margin: 25px 0;
}
.final-cake {
    font-size: 100px;
    animation: bounce 1.5s infinite;
}
.final-stars {
    font-size: 50px;
    animation: bounce 1.5s infinite;
}
.final-love {
    font-weight: bold;
    letter-spacing: 2px;
}
footer {
    padding: 35px 15px;
    text-align: center;
    background: #5c235c55;
    font-size: 13px;
    line-height: 2;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .section {
        padding: 70px 15px;
    }
    .wishes-grid {
        grid-template-columns: 1fr;
    }
    .counter-box {
        gap: 8px;
    }
    .counter-box div {
        min-width: 85px;
        padding: 15px 10px;
    }
    .counter-box span {
        font-size: 27px;
    }
    .letter {
        padding: 40px 20px;
    }
    .hero-message {
        font-size: 15px;
    }

}