/* =========================================
   RESET
========================================= */

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


/* =========================================
   BODY
========================================= */

body {

    width: 100%;
    min-height: 100vh;

    background: #100b20;

    color: white;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow: hidden;

}


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

.hero {

    position: relative;

    width: 100vw;
    height: 100vh;

    min-height: 650px;

    overflow: hidden;

    background-image:
        linear-gradient(
            to bottom,
            rgba(22, 8, 50, 0.10),
            rgba(14, 7, 35, 0.25)
        ),
        url("visual.png");

    background-size: cover;

    background-position: center center;

}


/* =========================================
   COLOR OVERLAY

   Gives the whole scene a unified
   purple / romantic atmosphere.
========================================= */

.hero::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(19, 8, 54, 0.35),
            transparent 30%,
            transparent 65%,
            rgba(12, 5, 30, 0.45)
        );

    z-index: 1;

}


/* =========================================
   NAVBAR
========================================= */



.nav-links a {

    position: relative;

    color: white;

    text-decoration: none;

    font-size: 13px;

    letter-spacing: 1px;

    opacity: 0.9;

    transition: 0.25s;

}


.nav-links a:hover {

    color: #ff7fcf;

}


.nav-links a.active {

    color: #ff8ed4;

}


.nav-links a.active::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: -10px;

    height: 2px;

    background: #ff7dcb;

}



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

.hero-content {

    position: absolute;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: flex-start;

    padding-top: 155px;

    z-index: 4;

    pointer-events: none;

}


.hero-title {

    text-align: center;

}


/* Main logo */

.hero-title h1 {

    font-family: Arial, sans-serif;

    font-size: clamp(80px, 10vw, 150px);

    font-weight: 800;

    letter-spacing: -8px;

    line-height: 0.8;

    color: white;

    text-shadow:
        0 5px 30px rgba(20, 0, 40, 0.45);

}


/* subtitle */

.hero-title p {

    margin-top: 38px;

    font-size: 50px;

    letter-spacing: -2px;

    opacity: 0.9;

}


/* heart divider */

.heart-line {

    margin-top: 14px;

    font-size: 12px;

    color: #ff9ad9;

    letter-spacing: 2px;

}


/* =========================================
   TEA STALL OVERLAY
========================================= */



/* glowing tea stall text */






/* =========================================
   COUPLE AREA
========================================= */

.couple {

    position: absolute;

    right: 20%;

    bottom: 23%;

    width: 150px;

    height: 90px;

    z-index: 4;

}


/* small romantic glow */

.couple::after {

    content: "♡";

    position: absolute;

    top: -30px;

    left: 50%;

    transform: translateX(-50%);

    color: #ff80d0;

    font-size: 20px;

    text-shadow:
        0 0 20px #ff5fca;

}


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

.music-player {

    position: absolute;

    z-index: 8;

    left: 50%;

    bottom: 35px;

    transform: translateX(-50%);

    width: min(760px, 80vw);

    min-height: 125px;

    padding: 18px 25px;

    display: flex;

    align-items: center;

    gap: 25px;

    border-radius: 32px;

    /* More transparent glass */
    background:
        linear-gradient(
            135deg,
            rgba(50, 26, 80, 0.55),
            rgba(24, 17, 55, 0.62)
        );

    border: 1px solid rgba(255, 255, 255, 0.16);

    box-shadow:

        0 20px 60px
        rgba(0, 0, 0, 0.30),

        inset 0 1px 0
        rgba(255, 255, 255, 0.10);

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

}


/* =========================================
   ALBUM ART
========================================= */

.album-art {

    flex-shrink: 0;

    width: 90px;

    height: 90px;

    border-radius: 50%;

    padding: 4px;

    background:
        linear-gradient(
            135deg,
            #ff6bc8,
            #6d5dfc
        );

}


.album-placeholder {

    width: 100%;

    height: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #693c8d,
            #1c163b
        );

    font-size: 28px;

}


/* =========================================
   SONG INFO
========================================= */

.song-info {

    flex: 1;

    min-width: 0;

}


.song-name {

    font-size: 18px;

    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


.artist-name {

    margin-top: 5px;

    font-size: 13px;

    opacity: 0.65;

}


.time-row {

    margin-top: 16px;

    display: flex;

    justify-content: space-between;

    font-size: 10px;

    opacity: 0.6;

}


/* =========================================
   PROGRESS BAR
========================================= */

.progress-bar {
    flex: 1;

    height: 4px;

    background: rgba(255, 255, 255, 0.25);

    border-radius: 10px;

    cursor: pointer;

    overflow: hidden;

    position: relative;

    transition:
        height 0.15s ease,
        transform 0.1s ease;
}


/* Hover */

.progress-bar:hover {
    height: 6px;
}


/* When clicked / pressed */

.progress-bar:active {
    transform: scaleY(0.8);
    height: 7px;
}


#progress {
    width: 0%;

    height: 100%;

    background: white;

    border-radius: 10px;

    transition: width 0.2s linear;
}


/* =========================================
   CONTROLS
========================================= */

.music-controls {

    display: flex;

    align-items: center;

    gap: 15px;

}


.music-controls button {

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: white;

    font-size: 17px;

    cursor: pointer;

    transition: 0.2s;

}


.music-controls button:hover {

    transform: scale(1.15);

}


/* Play button */

#play {

    width: 55px;

    height: 55px;

    background: white;

    color: #aa3f94;

    font-size: 20px;

    box-shadow:
        0 0 25px
        rgba(255,255,255,0.25);

}


#play:hover {

    transform: scale(1.08);

}


/* =========================================
   INVISIBLE YOUTUBE PLAYER
========================================= */

#youtube-player {

    position: absolute;

    width: 1px;

    height: 1px;

    opacity: 0;

    pointer-events: none;

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 800px) {

    .nav-links {

        display: none;

    }

    .navbar {

        padding: 0 20px;

    }

    .nav-right {

        font-size: 11px;

    }

    .hero-content {

        padding-top: 150px;

    }

    .hero-title h1 {

        font-size: 80px;

    }

    .music-player {

        width: 92vw;

        padding: 15px;

        gap: 15px;

    }

    .album-art {

        width: 65px;

        height: 65px;

    }

    .music-controls {

        gap: 5px;

    }

    #play {

        width: 48px;

        height: 48px;

    }

    .tea-stall {

        left: 3%;

        bottom: 28%;

        transform: scale(0.8);

        transform-origin: left bottom;

    }

    .sign-post {

        right: 2%;

        transform: scale(0.75);

        transform-origin: right center;

    }

}


@media (max-width: 550px) {

    .nav-right span:not(:first-child) {

        display: none;

    }

    .hero-title h1 {

        font-size: 65px;

    }

    .hero-title p {

        font-size: 9px;

        letter-spacing: 1px;

    }

   
    .music-player {

        bottom: 20px;

        border-radius: 25px;

    }

    .album-art {

        display: none;

    }

}


/* =========================================
   TOP STATUS BAR
========================================= */

.status-bar {

    position: absolute;

    top: 25px;
    left: 0;

    width: 100%;

    padding: 0 40px;

    display: flex;

    align-items: center;

    z-index: 20;

    font-size: 13px;

    letter-spacing: 0.5px;

    text-shadow:
        0 2px 8px rgba(0,0,0,0.6);

}


/* Individual status item */

.status-item {

    display: flex;

    align-items: center;

    gap: 8px;

    color: white;

    white-space: nowrap;

}


/* Icon */

.status-icon {

    font-size: 20px;

    line-height: 1;

}


/* Online section */

.status-item:nth-child(2) {

    margin-left: auto;

}


/* Links */

.status-link {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-left: 32px;

    color: white;

    text-decoration: none;

    transition: 0.2s ease;

    white-space: nowrap;

}


.status-link:hover {

    transform: translateY(-1px);

    opacity: 0.75;

}


/* Spotify */

.spotify-icon {

    width: 20px;

    height: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: white;

    color: #15152a;

    font-size: 11px;

}


/* YouTube */

.youtube-icon {

    width: 22px;

    height: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 4px;

    background: white;

    color: #25172f;

    font-size: 9px;

}

@media (max-width: 650px) {

    .status-bar {

        top: 18px;

        padding: 0 18px;

        font-size: 10px;

    }

    .status-item:nth-child(2) {

        margin-left: auto;

    }

    .status-link {

        margin-left: 14px;

    }

    .status-link span:last-child {

        display: none;

    }

}


.album-art {
    flex-shrink: 0;

    width: 90px;
    height: 90px;

    border-radius: 50%;

    overflow: hidden;

    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.15);

    animation: albumRotate 8s linear infinite;
    animation-play-state: paused;
}

.album-art img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    opacity: 1;

    transition: opacity 0.25s ease;
}

.album-art img.cover-changing {
    opacity: 0;
}

@keyframes albumRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

#spotify-link {
    color: white;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.22);

    padding: 8px 14px;

    border-radius: 20px;

    text-shadow:
        0 1px 6px rgba(0, 0, 0, 0.5);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition: 0.2s ease;
}


#spotify-link .spotify-icon {
    color: #1DB954;

    text-shadow:
        0 0 8px rgba(29, 185, 84, 0.5);
}

#spotify-link:hover {
    background: rgba(255, 255, 255, 0.20);

    border-color: rgba(255, 255, 255, 0.35);

    transform: translateY(-1px);
}

#youtube-link {
    color: white;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.22);

    padding: 8px 14px;

    border-radius: 20px;

    text-shadow:
        0 1px 6px rgba(0, 0, 0, 0.5);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition: 0.2s ease;
}

#youtube-link .youtube-icon {
    color: #FF0000;

    text-shadow:
        0 0 8px rgba(255, 0, 0, 0.45);
}

#youtube-link:hover {
    background: rgba(255, 255, 255, 0.20);

    border-color: rgba(255, 255, 255, 0.35);

    transform: translateY(-1px);
}

/* =========================================
   CINEMATIC MOTION
========================================= */

.hero {
    isolation: isolate;
    perspective: 1000px;
}

.motion-layer,
.cinematic-vignette,
.parallax-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.motion-layer {
    z-index: 2;
}

.motion-clouds {
    opacity: 0.14;
    background:
        radial-gradient(ellipse at 18% 32%, rgba(255, 139, 208, 0.18) 0 10%, transparent 30%),
        radial-gradient(ellipse at 72% 25%, rgba(125, 112, 255, 0.16) 0 12%, transparent 32%);
    background-size: 125% 100%;
    animation: cloudDrift 35s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}

.motion-stars {
    opacity: 0.22;
    background-image:
        radial-gradient(circle at 12% 24%, rgba(255,255,255,.9) 0 1px, transparent 1.8px),
        radial-gradient(circle at 61% 18%, rgba(255,255,255,.75) 0 1px, transparent 1.8px),
        radial-gradient(circle at 83% 42%, rgba(255,210,242,.8) 0 1px, transparent 1.7px),
        radial-gradient(circle at 37% 62%, rgba(255,255,255,.65) 0 1px, transparent 1.6px);
    background-size: 190px 150px, 240px 190px, 310px 230px, 270px 210px;
    animation: starFloat 24s linear infinite;
}

.motion-petal {
    position: absolute;
    width: 8px;
    height: 12px;
    border-radius: 70% 30% 70% 30%;
    background: rgba(255, 139, 203, 0.72);
    box-shadow: 0 0 8px rgba(255, 119, 202, 0.18);
    opacity: 0;
    animation: petalFall linear infinite;
}

.motion-petal:nth-child(3n) {
    width: 5px;
    height: 8px;
    background: rgba(255, 183, 221, 0.65);
}

.motion-petal:nth-child(4n) {
    width: 10px;
    height: 6px;
    opacity: 0.5;
}

.motion-firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ffd9f3;
    box-shadow: 0 0 12px 3px rgba(255, 158, 220, 0.65);
    animation: fireflyFloat ease-in-out infinite alternate;
}

.cinematic-vignette {
    z-index: 3;
    background: radial-gradient(circle at center, transparent 45%, rgba(8, 3, 24, 0.22) 100%);
    box-shadow: inset 0 0 140px rgba(8, 2, 25, 0.35);
}

.parallax-glow {
    z-index: 3;
    opacity: 0.35;
    background:
        radial-gradient(circle at 50% 60%, rgba(255, 108, 205, 0.10), transparent 26%),
        radial-gradient(circle at 75% 30%, rgba(119, 105, 255, 0.10), transparent 25%);
    transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}

@keyframes petalFall {
    0% {
        transform: translate3d(-8vw, -8vh, 0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    50% {
        transform: translate3d(3vw, 48vh, 0) rotate(160deg);
        opacity: 0.55;
    }
    100% {
        transform: translate3d(15vw, 112vh, 0) rotate(340deg);
        opacity: 0;
    }
}

@keyframes fireflyFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(0.7);
        opacity: 0.15;
    }
    50% { opacity: 0.9; }
    100% {
        transform: translate3d(22px, -30px, 0) scale(1.15);
        opacity: 0.2;
    }
}

@keyframes cloudDrift {
    from { transform: translate3d(-1.5%, 0, 0) scale(1.02); }
    to   { transform: translate3d(1.5%, -0.8%, 0) scale(1.04); }
}

@keyframes starFloat {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-24px, 10px, 0); }
}

.music-player {
    transition:
        transform 0.45s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.45s ease,
        border-color 0.45s ease;
}

.music-player.is-playing {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.30),
        0 0 45px rgba(255, 117, 211, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 180, 230, 0.28);
}

.music-player.is-playing .album-art {
    box-shadow:
        0 0 25px rgba(255, 110, 204, 0.25),
        0 0 55px rgba(112, 93, 252, 0.15);
}

.mini-visualizer {
    width: 34px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    opacity: 0.45;
}

.mini-visualizer span {
    width: 3px;
    height: 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.85);
}

.music-player.is-playing .mini-visualizer span {
    animation: equalizer 0.75s ease-in-out infinite alternate;
}

.music-player.is-playing .mini-visualizer span:nth-child(2) { animation-delay: -0.15s; }
.music-player.is-playing .mini-visualizer span:nth-child(3) { animation-delay: -0.35s; }
.music-player.is-playing .mini-visualizer span:nth-child(4) { animation-delay: -0.08s; }
.music-player.is-playing .mini-visualizer span:nth-child(5) { animation-delay: -0.28s; }

@keyframes equalizer {
    from { height: 5px; opacity: 0.45; }
    to   { height: 24px; opacity: 1; }
}

.hero-title h1,
.hero-title p,
.heart-line,
.music-player {
    animation-fill-mode: both;
}

.hero-title h1 {
    animation: titleIn 1.1s cubic-bezier(.2,.8,.2,1) 0.1s both;
}

.hero-title p {
    animation: titleIn 1s cubic-bezier(.2,.8,.2,1) 0.25s both;
}

.heart-line {
    animation: titleIn 1s cubic-bezier(.2,.8,.2,1) 0.4s both;
}

.music-player {
    animation: playerIn 1s cubic-bezier(.2,.8,.2,1) 0.5s both;
}

@keyframes titleIn {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes playerIn {
    from {
        opacity: 0;
        transform: translate(-50%, 22px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 800px) {
    .mini-visualizer {
        display: none;
    }

    .motion-clouds {
        opacity: 0.09;
    }
}

@media (prefers-reduced-motion: reduce) {
    .motion-clouds,
    .motion-stars,
    .motion-petal,
    .motion-firefly,
    .hero-title h1,
    .hero-title p,
    .heart-line,
    .music-player,
    .music-player.is-playing .mini-visualizer span {
        animation: none !important;
    }

    .parallax-glow {
        transition: none;
    }
}

.spotify-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spotify-logo {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(29, 185, 84, 0.35));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.spotify-status:hover .spotify-logo {
    transform: scale(1.12);
    filter: drop-shadow(0 0 10px rgba(29, 185, 84, 0.55));
}

/* =========================================
   PHONE MUSIC PLAYER FIX
========================================= */

@media (max-width: 600px) {

    .music-player {
        position: fixed;

        left: 50%;
        bottom: 10px;

        transform: translateX(-50%);

        width: calc(100vw - 20px);

        min-height: 88px;

        box-sizing: border-box;

        padding: 10px 12px;

        gap: 10px;

        border-radius: 20px;
    }


    /* Smaller album */
    .album-art {
        width: 58px;
        height: 58px;
        padding: 3px;
    }


    /* Song information */
    .song-info {
        flex: 1;
        min-width: 0;
    }


    .song-name {
        font-size: 14px;
    }


    .artist-name {
        font-size: 11px;
        margin-top: 3px;
    }


    /* Timeline */
    .time-row {
        margin-top: 9px;

        display: flex;
        align-items: center;

        gap: 5px;

        font-size: 8px;
    }


    .progress-bar {
        flex: 1;
        min-width: 0;
        height: 3px;
    }


    /* Previous / Play / Next */
    .music-controls {
        flex-shrink: 0;

        display: flex;

        gap: 5px;
    }


    .music-controls button {
        width: 28px;
        height: 28px;

        padding: 0;

        font-size: 12px;
    }


    /* Hide visualizer on phone */
    .mini-visualizer {
        display: none;
    }
}

@media (max-width: 600px) {

    .hero {
        min-height: 100svh;
        height: 100svh;
    }

}

/* =========================================
   TABLET / LANDSCAPE FIX
========================================= */

@media (min-width: 601px) and (max-width: 1100px) {

    .music-player {

        position: fixed;

        left: 50%;
        bottom: 12px;

        transform: translateX(-50%);

        width: calc(100vw - 80px);

        min-height: 88px;

        box-sizing: border-box;

        padding: 12px 18px;

        gap: 16px;

        border-radius: 24px;

    }


    /* Smaller album for tablet */

    .album-art {

        width: 64px;
        height: 64px;

        padding: 3px;

    }


    /* Song information */

    .song-info {

        flex: 1;
        min-width: 0;

    }


    .song-name {

        font-size: 16px;

    }


    .artist-name {

        font-size: 12px;

        margin-top: 3px;

    }


    /* Timeline */

    .time-row {

        margin-top: 9px;

        display: flex;

        align-items: center;

        gap: 7px;

        font-size: 9px;

    }


    .progress-bar {

        flex: 1;

        min-width: 0;

        height: 4px;

    }


    /* Previous / Play / Next */

    .music-controls {

        flex-shrink: 0;

        display: flex;

        align-items: center;

        gap: 9px;

    }


    .music-controls button {

        width: 34px;

        height: 34px;

        padding: 0;

        font-size: 14px;

    }


    /* Smaller visualizer */

    .mini-visualizer {

        width: 25px;

        flex-shrink: 0;

    }

}

/* =========================================
   SHORT LANDSCAPE SCREENS
========================================= */

@media (min-width: 601px) and (max-width: 1100px) and (max-height: 600px) {

    .music-player {

        bottom: 8px;

        min-height: 78px;

        padding: 9px 16px;

        gap: 14px;

    }


    .album-art {

        width: 58px;
        height: 58px;

    }


    .time-row {

        margin-top: 7px;

    }


    .music-controls {

        gap: 7px;

    }


    .music-controls button {

        width: 31px;
        height: 31px;

    }

}