/* ===============================
   BASIC SETTINGS
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #080a0d;
    color: #f7f3f5;
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}


/* ===============================
   BACKGROUND
================================ */

#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -30px;
    opacity: 0;
    animation: floatUp linear forwards;
}

@keyframes floatUp {

    0% {
        transform: translateY(0) scale(.5);
        opacity: 0;
    }

    15% {
        opacity: .5;
    }

    80% {
        opacity: .25;
    }

    100% {
        transform: translateY(-110vh) scale(1.2);
        opacity: 0;
    }
}


/* ===============================
   LANDING
================================ */

.landing {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background:
        radial-gradient(circle at 50% 40%, rgba(180, 60, 140, .18), transparent 35%),
        radial-gradient(circle at 20% 80%, rgba(60, 180, 120, .12), transparent 30%),
        #080a0d;

    position: relative;
    z-index: 2;
}

.landing-content {
    padding: 30px;
}

.small-text,
.eyebrow,
.section-label,
.music-label {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 11px;
    color: #a7aaa9;
}

.landing h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 8vw, 90px);
    font-weight: 500;
    margin: 20px 0;
}

.landing h1 span {
    font-style: italic;

    background: linear-gradient(
        90deg,
        #9be39c,
        #ff91c8,
        #b99aff
    );

    -webkit-background-clip: text;
    color: transparent;
}

.landing-subtitle {
    color: #b8b6b8;
    margin-bottom: 40px;
}


/* ===============================
   BUTTONS
================================ */

.glow-button {
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.06);
    color: white;

    padding: 15px 30px;
    border-radius: 50px;

    font-size: 14px;
    cursor: pointer;

    transition: .4s;
    backdrop-filter: blur(10px);
}

.glow-button:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 30px rgba(255,120,190,.25),
        0 0 50px rgba(100,220,150,.12);
}

.glow-button span {
    margin-left: 8px;
}


/* ===============================
   MAIN
================================ */

.hidden {
    display: none;
}

#mainContent {
    position: relative;
    z-index: 2;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 40px;
    position: relative;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;

    background: radial-gradient(
        circle,
        rgba(183, 91, 181, .15),
        transparent 65%
    );

    filter: blur(30px);
}

.hero h2,
.final-section h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 7vw, 80px);
    font-weight: 500;
    line-height: 1.05;

    margin: 25px 0;
}

.hero h2 em,
.final-section h2 em {
    color: #e59bd0;
}

.hero-text {
    max-width: 500px;
    color: #aaa;
    line-height: 1.8;
}

.scroll-button {
    margin-top: 40px;
    color: white;
    text-decoration: none;

    border-bottom: 1px solid #777;
    padding-bottom: 7px;

    font-size: 13px;
}


/* ===============================
   SECTIONS
================================ */

.section {
    max-width: 1100px;
    margin: auto;
    padding: 130px 30px;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 500;
    margin: 20px 0 60px;
}

.section-description {
    color: #999;
    margin-top: -40px;
    margin-bottom: 40px;
}


/* ===============================
   LETTER
================================ */

.letter-card {
    max-width: 700px;
    margin: auto;

    padding: 60px;

    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.1);

    border-radius: 25px;

    box-shadow:
        0 20px 80px rgba(0,0,0,.3);

    backdrop-filter: blur(15px);
}

.heart-icon {
    font-size: 30px;
    color: #ff8bc7;
    margin-bottom: 30px;
}

.letter-card h2 {
    font-family: "Playfair Display", serif;
    font-size: 35px;
    margin-bottom: 25px;
}

.letter-card p {
    color: #bdbabd;
    line-height: 1.9;
    margin-bottom: 20px;
}

.final-line {
    color: #ffafd5 !important;
    font-family: "Playfair Display", serif;
    font-size: 25px;
}

.signature {
    margin-top: 40px;
    color: #aaa;
    font-style: italic;
}


/* ===============================
   MEMORIES
================================ */

.memory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.memory-card {
    position: relative;
    padding: 35px;

    min-height: 270px;

    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.08);

    background: rgba(255,255,255,.025);

    transition: .4s;
}

.memory-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,150,210,.3);
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.memory-number {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #555;
    font-size: 12px;
}

.memory-icon {
    font-size: 35px;
    margin-bottom: 35px;
}

.memory-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 25px;
    margin-bottom: 15px;
}

.memory-card p {
    color: #999;
    line-height: 1.7;
    font-size: 14px;
}


/* ===============================
   GALLERY
================================ */

.gallery {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.photo-card {
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    background: #121416;
}

.photo-card.large {
    height: 620px;
    grid-row: span 2;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .7s;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,.2);

    opacity: 0;
    transition: .4s;
}

.photo-overlay span {
    font-size: 40px;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}


/* ===============================
   REASONS
================================ */

.reason-box {
    max-width: 750px;
    margin: auto;

    padding: 60px 30px;
    text-align: center;

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            rgba(100,180,130,.07),
            rgba(190,100,170,.08)
        );

    border: 1px solid rgba(255,255,255,.1);
}

#reasonNumber {
    color: #777;
    font-size: 12px;
    letter-spacing: 3px;
}

#reasonText {
    font-family: "Playfair Display", serif;
    font-size: clamp(25px, 4vw, 38px);
    margin: 30px auto 40px;
    max-width: 600px;
}

.reason-button,
.music-button {
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.05);
    color: white;

    padding: 13px 22px;
    border-radius: 50px;

    cursor: pointer;
    transition: .3s;
}

.reason-button:hover,
.music-button:hover {
    background: rgba(255,255,255,.12);
    transform: translateY(-2px);
}


/* ===============================
   MUSIC
================================ */

.music-card {
    max-width: 700px;
    margin: auto;

    padding: 35px;

    display: flex;
    align-items: center;
    gap: 30px;

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 25px;

    background: rgba(255,255,255,.025);
}

.music-disc {
    min-width: 100px;
    height: 100px;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 35px;

    background:
        radial-gradient(
            circle,
            #222 15%,
            #9b5b8c 16%,
            #222 20%,
            #9b5b8c 50%,
            #222 51%
        );

    animation: spin 8s linear infinite;
    animation-play-state: paused;
}

.music-disc.playing {
    animation-play-state: running;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.music-info h3 {
    font-family: "Playfair Display", serif;
    font-size: 25px;
    margin: 10px 0;
}

.music-info p {
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
}


/* ===============================
   FINAL
================================ */

.final-section {
    min-height: 90vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 50px;

    position: relative;
}

.final-glow {
    position: absolute;
    width: 500px;
    height: 500px;

    background: radial-gradient(
        circle,
        rgba(220,100,170,.15),
        transparent 65%
    );

    filter: blur(40px);
}

.final-message {
    max-width: 500px;
    color: #999;
    line-height: 1.8;
}

.big-heart {
    font-size: 60px;
    margin: 40px 0 20px;

    color: #ff94c9;

    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.from {
    color: #aaa;
    font-style: italic;
}

footer {
    text-align: center;
    padding: 30px;
    color: #555;
    font-size: 12px;
}


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 700px) {

    .section {
        padding: 90px 20px;
    }

    .memory-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .photo-card.large {
        height: 400px;
        grid-row: auto;
    }

    .photo-card {
        height: 300px;
    }

    .letter-card {
        padding: 35px 25px;
    }

    .music-card {
        flex-direction: column;
        text-align: center;
    }

    .hero h2,
    .final-section h2 {
        font-size: 43px;
    }
}