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

:root {
    --bg: #070509;
    --pink: #ff6f91;
    --pink-light: #ffb0c2;
    --pink-dark: #d92f61;
    --white: #fff5f8;
    --text: #ded5d9;
    --muted: #8d8187;
    --border: rgba(255, 105, 145, .18);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--white);

    font-family:
        "Vazirmatn",
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Noto Color Emoji",
        sans-serif;

    overflow-x: hidden;

    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
}

.hidden {
    display: none !important;
}


/* =========================
   BACKGROUND
========================= */

.background-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    opacity: .13;
    z-index: -5;
}

.glow-one {
    background: #ff3868;
    top: 10%;
    right: -200px;
}

.glow-two {
    background: #8b1f67;
    bottom: 10%;
    left: -200px;
}


/* =========================
   PARTICLES
========================= */

#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 20;
}

.particle {
    position: absolute;
    color: rgba(255, 116, 150, .7);
    font-size: 12px;
    animation: floatParticle linear forwards;
    opacity: 0;
}

@keyframes floatParticle {

    0% {
        transform: translateY(110vh) rotate(0deg) scale(.5);
        opacity: 0;
    }

    15% {
        opacity: .8;
    }

    85% {
        opacity: .7;
    }

    100% {
        transform: translateY(-15vh) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}


/* =========================
   INTRO
========================= */

.intro {
    position: fixed;
    inset: 0;
    z-index: 1000;

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

    text-align: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(112, 25, 61, .55),
            transparent 35%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(82, 22, 56, .45),
            transparent 45%
        ),
        #050408;

    transition:
        opacity 1.2s ease,
        visibility 1.2s ease;
}

.intro.hide {
    opacity: 0;
    visibility: hidden;
}

.intro::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.1),
            rgba(0,0,0,.7)
        );
}

.intro-stars {
    position: absolute;
    inset: 0;
    opacity: .5;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,.8) 1px,
            transparent 1px
        );

    background-size: 65px 65px;

    animation: starsMove 20s linear infinite;
}

@keyframes starsMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(65px);
    }
}

.intro-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    z-index: 2;
}

.intro-logo {
    font-size: 38px;
    font-weight: 300;
    letter-spacing: 14px;

    color: #ffd6e3;

    text-shadow:
        0 0 25px rgba(255,120,160,.4);

    animation: fadeUp 1.5s ease both;
}

.intro-logo span {
    color: var(--pink);
    letter-spacing: 0;
}

.intro-tag {
    margin-top: 10px;

    color: #8f7d84;

    letter-spacing: 5px;

    font-size: 10px;

    text-transform: uppercase;
}

.intro-line {
    width: 70px;
    height: 1px;

    margin: 25px auto;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--pink),
            transparent
        );
}

.intro-small {
    color: #a9959d;
    font-size: 13px;
    margin-bottom: 12px;
}

.intro h1 {
    font-size: 44px;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 10px;
}

.intro h1 span {
    color: var(--pink-light);

    text-shadow:
        0 0 25px rgba(255, 105, 145, .45);
}

.intro-description {
    color: #9c8e95;
    line-height: 2;
    font-size: 13px;
    margin-bottom: 32px;
}

.enter-button {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    margin: auto;

    padding: 15px 28px;

    color: white;

    border:
        1px solid rgba(255,127,157,.6);

    border-radius: 100px;

    background:
        linear-gradient(
            135deg,
            rgba(255,67,108,.35),
            rgba(100,20,55,.35)
        );

    box-shadow:
        0 0 30px rgba(255,65,108,.18),
        inset 0 0 20px rgba(255,255,255,.03);

    cursor: pointer;

    font-size: 14px;

    transition: transform .3s ease;
}

.enter-button:active {
    transform: scale(.95);
}

.button-heart {
    color: var(--pink-light);
    animation: heartbeat 1.5s infinite;
}

.button-arrow {
    font-size: 17px;
}

.sound-hint {
    margin-top: 20px;
    color: #665c61;
    font-size: 10px;
}

.scroll-indicator {
    position: absolute;

    bottom: 25px;
    left: 50%;

    transform: translateX(-50%);

    width: 22px;
    height: 35px;

    border:
        1px solid rgba(255,255,255,.2);

    border-radius: 20px;
}

.scroll-indicator span {
    display: block;

    width: 3px;
    height: 7px;

    margin: 7px auto;

    border-radius: 5px;

    background: var(--pink);

    animation: scrollDot 1.5s infinite;
}

@keyframes scrollDot {

    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}


/* =========================
   MAIN
========================= */

.main {
    opacity: 1;
    animation: mainAppear 1.5s ease both;
}

@keyframes mainAppear {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: 100svh;

    padding: 35px 20px 80px;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(92,25,50,.42),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            #09050a,
            #10070c
        );
}

.hero-top {
    position: absolute;
    top: 28px;

    display: flex;
    align-items: center;

    gap: 12px;

    color: #9e8b93;

    font-size: 11px;
    letter-spacing: 4px;
}

.hero-heart {
    color: var(--pink);
    animation: heartbeat 1.7s infinite;
}

.photo-wrapper {
    position: relative;

    width: min(75vw,310px);

    aspect-ratio: 1;

    margin-bottom: 35px;
}

.photo-glow {
    position: absolute;

    inset: -25px;

    border-radius: 50%;

    background: var(--pink);

    filter: blur(65px);

    opacity: .16;

    animation: glowPulse 3s infinite;
}

@keyframes glowPulse {

    0%,100% {
        opacity: .12;
        transform: scale(.95);
    }

    50% {
        opacity: .25;
        transform: scale(1.08);
    }
}

.photo-ring {
    position: relative;

    width: 100%;
    height: 100%;

    padding: 5px;

    border-radius: 50%;

    background:
        conic-gradient(
            from 0deg,
            #ff416c,
            #ff9db5,
            #9d315a,
            #ff416c
        );

    animation: rotateRing 8s linear infinite;
}

@keyframes rotateRing {

    to {
        transform: rotate(360deg);
    }
}

.photo-ring img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid #0b070b;

    animation: rotateImageBack 8s linear infinite;
}

@keyframes rotateImageBack {

    to {
        transform: rotate(-360deg);
    }
}

.floating-heart {
    position: absolute;

    color: var(--pink-light);

    text-shadow:
        0 0 15px rgba(255,91,130,.7);

    animation:
        floatingHeart 3s ease-in-out infinite;
}

.heart-1 {
    right: 2%;
    top: 15%;
    font-size: 18px;
}

.heart-2 {
    left: 2%;
    bottom: 18%;
    font-size: 13px;
    animation-delay: 1s;
}

.heart-3 {
    right: 15%;
    bottom: 4%;
    font-size: 10px;
    animation-delay: 1.8s;
}

@keyframes floatingHeart {

    0%,100% {
        transform:
            translateY(0)
            rotate(-10deg);
    }

    50% {
        transform:
            translateY(-15px)
            rotate(10deg);
    }
}

.cinema-title {
    font-size: 43px;
    font-weight: 300;

    letter-spacing: 7px;

    color: #ffe8ef;

    text-shadow:
        0 0 30px rgba(255,105,145,.2);
}

.cinema-sub {
    margin-top: 10px;

    color: #9d8b92;

    font-size: 11px;

    line-height: 2;

    letter-spacing: 2px;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    width: 160px;

    margin: 25px auto;
}

.hero-divider span {
    height: 1px;

    flex: 1;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,105,145,.55)
        );
}

.hero-divider span:last-child {
    transform: rotate(180deg);
}

.hero-divider i {
    color: var(--pink);
    font-style: normal;
}

.hero-text {
    color: #9e9298;

    font-size: 13px;

    line-height: 2;
}

.hero-text strong {
    color: var(--pink-light);
    font-weight: 500;
}


/* =========================
   SECTIONS
========================= */

.section {
    width: min(92%,650px);

    margin: auto;

    padding: 90px 0;
}

.section-heading {
    display: flex;

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

    gap: 15px;

    text-align: center;

    margin-bottom: 35px;
}

.section-heading small {
    display: block;

    color: #756970;

    font-size: 10px;

    margin-bottom: 5px;
}

.section-heading h2 {
    color: var(--pink-light);

    font-size: 21px;

    font-weight: 500;
}

.heading-decoration {
    color: var(--pink);

    font-size: 16px;

    opacity: .7;
}


/* =========================
   LETTER
========================= */

.letter-card {
    position: relative;

    padding: 30px 24px;

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

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,60,100,.025)
        );

    box-shadow:
        0 20px 70px rgba(0,0,0,.25);

    overflow: hidden;
}

.letter-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background: var(--pink);

    filter: blur(100px);

    opacity: .06;

    top: -80px;
    right: -80px;
}

.letter-top {
    display: flex;
    justify-content: space-between;

    color: var(--pink-light);

    font-size: 13px;
}

.letter-line {
    height: 1px;

    margin: 20px 0 25px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,105,145,.3),
            transparent
        );
}

.letter-text p {
    color: #bdb3b8;

    font-size: 14px;

    line-height: 2.3;

    margin-bottom: 18px;
}

.letter-text strong {
    color: var(--pink-light);

    font-weight: 400;
}

.letter-signature {
    margin-top: 30px;

    text-align: left;

    color: #80757b;

    font-size: 12px;

    line-height: 2;
}

.letter-signature strong {
    color: var(--pink-light);

    font-size: 15px;
}


/* =========================
   MUSIC
========================= */

.music-section {
    padding-top: 30px;
}

.music-card {
    padding: 22px;

    border-radius: 28px;

    border:
        1px solid rgba(255,105,145,.17);

    background:
        linear-gradient(
            145deg,
            rgba(255,80,120,.08),
            rgba(255,255,255,.025)
        );

    box-shadow:
        0 25px 80px rgba(0,0,0,.3);
}

.music-cover {
    position: relative;

    width: 120px;
    height: 120px;

    margin: auto auto 20px;

    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 10px 35px rgba(0,0,0,.45);
}

.music-cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cover-overlay {
    position: absolute;
    inset: 0;

    display: flex;

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

    background: rgba(20,5,12,.35);
}

.cover-overlay span {
    color: white;

    font-size: 30px;

    text-shadow:
        0 0 20px var(--pink);

    animation:
        heartbeat 1.5s infinite;
}

.music-details {
    text-align: center;
}

.music-name {
    font-size: 17px;

    color: var(--white);

    margin-bottom: 4px;
}

.music-subtitle {
    color: #776b72;

    font-size: 11px;
}

.wave {
    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 3px;

    margin: 18px 0;
}

.wave span {
    width: 3px;
    height: 10px;

    border-radius: 5px;

    background: var(--pink);

    opacity: .5;
}

.music-card.playing .wave span {
    animation:
        waveAnimation .8s ease-in-out infinite alternate;
}

.wave span:nth-child(2) {
    animation-delay: .1s;
}

.wave span:nth-child(3) {
    animation-delay: .2s;
}

.wave span:nth-child(4) {
    animation-delay: .3s;
}

.wave span:nth-child(5) {
    animation-delay: .15s;
}

.wave span:nth-child(6) {
    animation-delay: .25s;
}

@keyframes waveAnimation {

    from {
        height: 7px;
    }

    to {
        height: 32px;
    }
}

.music-time {
    display: flex;

    align-items: center;

    gap: 10px;

    color: #6e6469;

    font-size: 9px;
}

.progress {
    height: 4px;

    flex: 1;

    background: #30242a;

    border-radius: 10px;

    overflow: hidden;

    cursor: pointer;
}

#progressBar {
    width: 0%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #d92f61,
            #ff91aa
        );
}

.music-controls {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

    margin-top: 20px;
}

.music-controls button {
    border: none;

    background: transparent;

    color: #aa9da3;

    font-size: 20px;

    cursor: pointer;

    width: 40px;
    height: 40px;
}

.music-controls .main-play {
    width: 64px;
    height: 64px;

    border-radius: 50%;

    color: white;

    font-size: 22px;

    background:
        linear-gradient(
            135deg,
            #ff416c,
            #c92759
        );

    box-shadow:
        0 0 35px rgba(255,65,108,.25);
}

#musicMessage {
    margin-top: 20px;

    color: #655a60;

    text-align: center;

    font-size: 10px;
}


/* =========================
   VIDEO
========================= */

.video-section {
    padding-top: 40px;
}

.video-card {
    padding: 10px;

    border-radius: 25px;

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

    background: #0b080b;

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

.video-frame {
    position: relative;

    overflow: hidden;

    border-radius: 17px;

    background: #000;
}

.video-frame video {
    display: block;

    width: 100%;

    max-height: 70vh;

    background: black;
}

.video-corner {
    position: absolute;

    width: 25px;
    height: 25px;

    border-color:
        rgba(255,150,175,.6);

    pointer-events: none;
}

.top-left {
    top: 10px;
    left: 10px;

    border-top: 1px solid;
    border-left: 1px solid;
}

.top-right {
    top: 10px;
    right: 10px;

    border-top: 1px solid;
    border-right: 1px solid;
}

.bottom-left {
    bottom: 10px;
    left: 10px;

    border-bottom: 1px solid;
    border-left: 1px solid;
}

.bottom-right {
    bottom: 10px;
    right: 10px;

    border-bottom: 1px solid;
    border-right: 1px solid;
}

.video-caption {
    padding: 20px 10px 12px;

    text-align: center;

    color: #766b71;

    font-size: 11px;

    line-height: 2;
}

.video-caption strong {
    color: #a99ba1;

    font-weight: 400;
}


/* =========================
   MEMORY
========================= */

.memory-section {
    position: relative;

    min-height: 500px;

    display: flex;

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

    text-align: center;

    padding: 80px 25px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(104,23,54,.35),
            transparent 55%
        );
}

.memory-glow {
    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: #ff426d;

    filter: blur(130px);

    opacity: .08;
}

.memory-content {
    position: relative;
    z-index: 2;
}

.memory-heart {
    color: var(--pink);

    font-size: 28px;

    margin-bottom: 20px;

    animation:
        heartbeat 1.8s infinite;
}

.memory-small {
    color: #766970;

    font-size: 11px;
}

.memory-content h2 {
    color: var(--pink-light);

    font-size: 45px;

    font-weight: 400;

    margin: 20px 0;
}

.memory-content p {
    max-width: 300px;

    color: #8d8187;

    font-size: 12px;

    line-height: 2;
}

.infinity {
    color: rgba(255,120,150,.35);

    font-size: 65px;

    line-height: 1;

    margin: 25px 0;
}

.memory-names {
    color: #c9bdc2;

    font-size: 15px;

    letter-spacing: 8px;
}

.memory-names span {
    color: var(--pink);

    letter-spacing: 0;
}


/* =========================
   FINAL
========================= */

.final-section {
    position: relative;

    text-align: center;

    padding: 100px 20px 60px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #09060a,
            #040305
        );
}

.final-heart {
    color: var(--pink);

    font-size: 42px;

    animation:
        heartbeat 1.8s infinite;

    text-shadow:
        0 0 30px rgba(255,80,120,.4);
}

.final-section h2 {
    color: var(--pink-light);

    font-size: 28px;

    font-weight: 400;

    margin-top: 20px;
}

.final-line {
    display: flex;

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

    gap: 12px;

    width: 160px;

    margin: 20px auto;
}

.final-line span {
    height: 1px;

    flex: 1;

    background: rgba(255,105,145,.4);
}

.final-line i {
    color: var(--pink);

    font-style: normal;
}

.final-section p {
    color: #766b71;

    font-size: 11px;

    line-height: 2;

    margin-bottom: 20px;
}

.final-section strong {
    color: #9e8f96;

    font-size: 13px;

    font-weight: 400;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 35px 20px 45px;

    text-align: center;

    background: #040305;

    color: #5f555b;

    position: relative;
}

.footer-line {
    width: 70px;
    height: 1px;

    margin: 0 auto 22px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,105,145,.45),
            transparent
        );
}

.footer-text {
    font-size: 10px;

    color: #71656c;

    margin-bottom: 7px;
}

.footer-author {
    font-size: 12px;

    line-height: 2;

    color: #a28f98;
}

.footer-copy {
    margin-top: 18px;

    font-size: 8px;

    color: #40383d;

    letter-spacing: 1px;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes heartbeat {

    0%,100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.08);
    }

    60% {
        transform: scale(1);
    }
}

@keyframes fadeUp {

    from {
        opacity: 0;

        transform:
            translateY(20px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 380px) {

    .intro-logo {
        font-size: 32px;
    }

    .intro h1 {
        font-size: 38px;
    }

    .cinema-title {
        font-size: 38px;
    }

    .photo-wrapper {
        width: 68vw;
    }

    .music-controls {
        gap: 18px;
    }
}