:root {

    --background: #22161d;
    --background-light: #2d1f29;

    --primary: #f7d9dd;
    --secondary: #d8a5b3;

    --white: #ffffff;
    --text: #f7f4f5;

    --glass: rgba(255, 255, 255, .08);
    --glass-border: rgba(255, 255, 255, .12);

}

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

html {
    scroll-behavior: smooth;
}

body {

    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(135deg,
            #22161d,
            #372531,
            #4d3340);

    color: var(--text);

    font-family: 'Poppins', sans-serif;

}

#background {

    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;

}

#particles {

    position: fixed;

    inset: 0;

    z-index: -1;

    pointer-events: none;

}

.screen {

    position: relative;

    width: 100vw;
    height: 100vh;

    display: none;

    justify-content: center;
    align-items: center;

    padding: 40px;

    overflow: visible;

}

.screen.active {

    display: flex;

}

.title {

    font-family: 'Playfair Display', serif;

    font-size: 72px;

    font-weight: 700;

    margin-bottom: 15px;

}

.subtitle {

    letter-spacing: 4px;

    text-transform: uppercase;

    color: var(--secondary);

    font-size: .9rem;

    margin-bottom: 15px;

}

.description {

    color: #e5dfe2;

    font-size: 1rem;

    margin-bottom: 35px;

}

#countdown {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 18px;

    margin: 45px 0;

    flex-wrap: wrap;

}

.time-box {

    width: 110px;

    height: 110px;

    border-radius: 18px;

    background: var(--glass);

    backdrop-filter: blur(14px);

    border: 1px solid var(--glass-border);

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    box-shadow:

        0 10px 30px rgba(0, 0, 0, .25);

}

.time-box span {

    font-size: 2.4rem;

    font-weight: bold;

}

.time-box small {

    margin-top: 8px;

    color: #d7ccd1;

}

.separator {

    font-size: 2rem;

}

.btn {

    border-radius: 50px;

    padding: 14px 42px;

    background: #d99cab;

    color: white;

    border: none;

    transition:
        transform .35s,
        background .35s,
        box-shadow .35s;

    font-weight: 500;

}

.btn:hover {

    transform: translateY(-3px);

    background: #efb4c2;

    box-shadow:

        0 10px 25px rgba(255, 180, 200, .35);

}

#special-section .container {

    display: grid;

    grid-template-columns: 220px minmax(450px, 620px) 220px;

    align-items: center;

    justify-content: center;

    column-gap: 70px;

    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

}

.content {

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    max-width: 620px;

    width: 100%;

    margin: 0 auto;

    padding: 0 20px;

}

#special-section .subtitle {

    font-size: .95rem;

    letter-spacing: 7px;

    margin-bottom: 20px;

}

#special-section .title {

    font-size: 64px;

    line-height: 1.05;

    margin-bottom: 24px;

}

#special-section .description {

    max-width: 470px;

    font-size: 1.15rem;

    line-height: 1.9;

    margin-bottom: 40px;

}

#leftPhotos,
#rightPhotos {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 22px;

    width: 220px;

}

#letterCard {

    max-width: 850px;

    margin: auto;

    padding: 45px;

    border-radius: 24px;

    background: var(--glass);

    backdrop-filter: blur(16px);

    border: 1px solid var(--glass-border);

    box-shadow:

        0 15px 40px rgba(0, 0, 0, .25);

}

#letterCard h1 {

    font-family: 'Cormorant Garamond', serif;

    text-align: center;

    margin-bottom: 30px;

}

#letterContent {

    line-height: 2;

    max-height: 60vh;

    overflow: auto;

}

::-webkit-scrollbar {

    width: 8px;

}

::-webkit-scrollbar-thumb {

    background: #b88492;

    border-radius: 20px;

}

#gift {

    position: relative;

    width: fit-content;

    margin: 0 auto;

    cursor: pointer;

    transition: transform .35s ease;

}

#gift:hover {

    transform:
        translateY(-8px) scale(1.04);

}

#giftSvg {

    width: 320px;

    height: auto;

    overflow: visible;

    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, .35));

}

#giftLid {

    transform-origin: 150px 110px;

    transition: 1s cubic-bezier(.18, .89, .32, 1.28);

}

#giftBow {

    transform-origin: 150px 82px;

    transition: 1s;

}

#gift::after {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background:

        radial-gradient(circle,
            rgba(255, 190, 220, .45),
            transparent 70%);

    filter: blur(35px);

    z-index: -1;

    animation: giftGlow 3s infinite;

}

#giftContainer {

    display: flex;

    justify-content: center;

    align-items: center;

    width: 100%;

}

.gradient-layer {

    position: absolute;

    inset: -30%;

    background:

        radial-gradient(circle at 20% 20%,
            rgba(255, 180, 210, .28),
            transparent 35%),

        radial-gradient(circle at 80% 30%,
            rgba(180, 120, 220, .18),
            transparent 35%),

        radial-gradient(circle at 50% 85%,
            rgba(255, 210, 220, .22),
            transparent 45%),

        linear-gradient(140deg,
            #20131a,
            #2c1b27,
            #4a3140,
            #251620);

    background-size: 180% 180%;

    animation: gradientMove 30s ease infinite;

}

.bokeh {

    position: absolute;

    border-radius: 50%;

    filter: blur(90px);

    opacity: .28;

    animation: bokehFloat 22s ease-in-out infinite alternate;

}

.bokeh1 {

    width: 320px;
    height: 320px;

    left: 8%;
    top: 8%;

    background: #ffb8cb;

}

.bokeh2 {

    width: 420px;
    height: 420px;

    right: 10%;
    top: 15%;

    background: #b88cff;

    animation-duration: 28s;

}

.bokeh3 {

    width: 350px;
    height: 350px;

    left: 20%;
    bottom: 5%;

    background: #ffdfef;

    animation-duration: 35s;

}

.bokeh4 {

    width: 300px;
    height: 300px;

    right: 15%;
    bottom: 10%;

    background: #ff99bb;

    animation-duration: 40s;

}

.screen::before {

    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    border-radius: 50%;

    background:

        radial-gradient(circle,
            rgba(255, 220, 230, .08),
            transparent 70%);

    filter: blur(80px);

    z-index: -1;

    animation: screenGlow 10s ease-in-out infinite;

}

.vignette {

    position: absolute;

    inset: 0;

    background:

        radial-gradient(circle,
            transparent 45%,
            rgba(0, 0, 0, .25) 100%);

    pointer-events: none;

}

@keyframes gradientMove {

    0% {

        background-position: 0% 50%;

    }

    50% {

        background-position: 100% 50%;

    }

    100% {

        background-position: 0% 50%;

    }

}

@keyframes bokehFloat {

    from {

        transform:
            translate(0, 0) scale(1);

    }

    to {

        transform:
            translate(80px, -60px) scale(1.2);

    }

}

@keyframes screenGlow {

    0% {

        transform: scale(1);

        opacity: .5;

    }

    50% {

        transform: scale(1.15);

        opacity: .9;

    }

    100% {

        transform: scale(1);

        opacity: .5;

    }

}

@keyframes giftGlow {

    0% {

        transform: scale(.9);

        opacity: .4;

    }

    50% {

        transform: scale(1.15);

        opacity: .9;

    }

    100% {

        transform: scale(.9);

        opacity: .4;

    }

}

.photo {

    width: 180px;

    height: 220px;

    background: #fff;

    padding: 10px 10px 28px;

    border-radius: 6px;

    box-shadow: 0 18px 35px rgba(0, 0, 0, .35);

    overflow: visible;

    margin: 0;

    transition: .35s;

}

.photo img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    border-radius: 3px;

}

.photo:hover {

    transform: scale(1.08) rotate(0deg);

    box-shadow:
        0 25px 50px rgba(0, 0, 0, .45);

    z-index: 100;

}

.content {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    max-width: 560px;

    margin: auto;

    padding: 0 20px;

}

#special-section .subtitle {

    font-size: .95rem;

    letter-spacing: 7px;

    margin-bottom: 20px;

    opacity: .85;

}

#special-section .title {

    font-size: 64px;

    line-height: 1.05;

    margin-bottom: 24px;

}

#special-section .description {

    max-width: 470px;

    font-size: 1.15rem;

    line-height: 1.9;

    margin-bottom: 40px;

    color: #ece2e6;

}



.subtitle {

    font-size: .95rem;

    letter-spacing: 6px;

    text-transform: uppercase;

    color: #d8a5b3;

    margin-bottom: 22px;

    opacity: .9;

}

#special-section .container {

    display: grid;

    grid-template-columns: 220px minmax(400px, 600px) 220px;

    align-items: center;

    justify-content: center;

    column-gap: 70px;

    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

}

@media (max-width:992px) {

    body {
        overflow: auto;
    }

    .screen {
        height: auto;
        min-height: 100vh;
        padding: 50px 20px;
        overflow: hidden;
    }


    #special-section.screen.active{
        display:flex;
        justify-content:center;
        align-items:flex-start;
    }

    #special-section .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        gap: 35px;
    }

    .content {
        order: 1;
        width: 100%;
        max-width: 420px;
        padding: 0;
        margin: 0 auto;
        text-align: center;
        align-items: center;
    }

    #special-section .subtitle {
        font-size: .8rem;
        letter-spacing: 4px;
        margin-bottom: 14px;
    }

    #special-section .title {
        font-size: 38px;
        line-height: 1.15;
        margin-bottom: 18px;
    }

    #special-section .description {
        font-size: 1rem;
        line-height: 1.7;
        max-width: 320px;
        margin: 0 auto 30px;
    }

    #leftPhotos,
    #rightPhotos {
        display: grid;
        grid-template-columns: repeat(2, 140px);
        gap: 16px;
        justify-content: center;
        width: auto;
        margin: 0;
    }

    #leftPhotos {
        order: 2;
    }

    #rightPhotos {
        order: 3;
    }

    .photo {
        width: 140px;
        height: 175px;
        margin: 0;
    }

    #giftSvg {
        width: 240px;
    }

    .title {
        font-size: 42px;
    }

    .time-box {
        width: 72px;
        height: 72px;
    }

    .time-box span {
        font-size: 1.8rem;
    }

    .separator {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 28px;
    }

    #special-section .container {

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

    }

    .content {

        order: 1;

        margin-bottom: 35px;

    }

    #leftPhotos,
    #rightPhotos {

        display: grid;

        grid-template-columns: repeat(3, 90px);

        gap: 12px;

        width: auto;

        justify-content: center;

    }

    #leftPhotos {

        order: 2;

        margin-bottom: 12px;

    }

    #rightPhotos {

        order: 3;

    }

    .photo {

        width: 90px;

        height: 115px;

        margin: 0;

    }


    #letter-section .letter-container {
        width: 100%;
        max-width: 850px;
        margin: 0 auto;
        padding-top: 20px;
    }

    #letterCard {
        width: 100%;
        margin: 0;
        padding: 24px;
    }

    #letterContent {
        max-height: none;
        overflow: visible;
    }

}

.photo {

    position: relative;

    cursor: pointer;

}

.photo-message {

    position: absolute;

    left: 50%;

    bottom: 100%;

    transform: translateX(-50%) translateY(10px);

    width: 190px;

    padding: 12px 16px;

    background: rgba(34, 22, 29, .96);

    color: white;

    border-radius: 14px;

    font-size: .9rem;

    line-height: 1.5;

    text-align: center;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);

    opacity: 0;

    visibility: hidden;

    transition: .35s;

    pointer-events: none;

    z-index: 1000;

}

.photo-message::after {

    content: "";

    position: absolute;

    left: 50%;

    top: 100%;

    transform: translateX(-50%);

    border: 8px solid transparent;

    border-top-color: rgba(34, 22, 29, .96);

}

.photo:hover .photo-message {

    opacity: 1;

    visibility: visible;

    transform: translateX(-50%) translateY(-12px);

}

.photo.show-message .photo-message {

    opacity: 1;

    visibility: visible;

    transform: translateX(-50%) translateY(-12px);

}

#letter-section.screen.active{
    display:block;
}

/* ===== CARTA ===== */

#letterCard h1{
    font-family: "Parisienne", cursive;
    font-size: 3rem;
    font-weight: normal;
    text-align: center;
    color: #910dac;
    margin-bottom: 35px;
    text-shadow: 0 2px 12px rgba(212,91,141,.25);
}

#letterContent{
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    line-height: 2;
    letter-spacing: .3px;
    color: #ffffff;
    text-align: justify;
}

#letterContent p{
    margin-bottom: 24px;
}

#letterContent p:first-child{
    font-size: 1.55rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 28px;
}

.letter-ending{
    margin-top: 30px;
    margin-bottom: 0;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 600;
    color: #ffffff;
}

.letter-header{
    text-align:center;
    margin-bottom:40px;
}

.letter-header h1{
    font-family:"Parisienne", cursive;
    font-size:3.8rem;
    font-weight:normal;
    color:#ffffff;
    margin-bottom:10px;
    text-shadow:0 2px 12px rgba(212,91,141,.25);
}

.letter-header p{
    font-family:"Cormorant Garamond", serif;
    font-size:1.25rem;
    font-style:italic;
    color:#96838b;
}

#letterContent p:first-child{
    font-family:"Cormorant Garamond", serif;
    font-size:1.6rem;
    font-weight:600;
    color:#ffffff;
    margin-bottom:30px;
}
