* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --bg: #0d0b09;
    --card: #15110d;

    --border:
        rgba(220, 180, 110, 0.14);

    --gold: #d8b46b;

    --text: #c8b99e;

    --muted: #665d50;

    --green: #687c48;

    --blue: #526d83;

    --purple: #69557e;

    --orange: #8b6440;
}


html {
    scroll-behavior: smooth;
}


body {

    background:
        radial-gradient(
            circle at top,
            #21180f 0%,
            #0d0b09 45%
        );

    color: var(--text);

    font-family:
        "Noto Serif Malayalam",
        serif;

    min-height: 100vh;

    transition: .3s;
}


button,
input {
    font-family: inherit;
}


/* ================= HEADER ================= */

.header {

    height: 80px;

    padding: 0 7%;

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    border-bottom:
        1px solid
        rgba(255,255,255,.04);
}


.logo span {

    display: block;

    color: var(--gold);

    font-size: 20px;

    font-weight: 700;
}


.logo small {

    letter-spacing: 4px;

    color: var(--muted);

    font-size: 9px;
}


.header-actions {

    display: flex;

    gap: 10px;
}


.theme-btn,
.location-btn {

    width: 42px;
    height: 42px;

    border-radius: 50%;

    border:
        1px solid var(--border);

    background:
        rgba(255,255,255,.03);

    color: var(--gold);

    font-size: 18px;

    cursor: pointer;

    transition: .3s;
}


.theme-btn:hover,
.location-btn:hover {

    transform:
        translateY(-2px);

    border-color:
        var(--gold);
}


/* ================= HERO ================= */

.hero {

    position: relative;

    max-width: 1100px;

    height: 470px;

    margin: 30px auto;

    overflow: hidden;

    border-radius: 24px;

    border:
        1px solid var(--border);
}


.hero-image {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            to bottom,
            rgba(0,0,0,.05),
            rgba(13,11,9,.96)
        ),

        url("image/chayakada.jpeg");

    background-size: cover;

    background-position: center;

    transition: 1s;
}


.hero:hover .hero-image {

    transform: scale(1.03);
}


.hero-content {

    position: absolute;

    left: 7%;
    right: 7%;

    bottom: 55px;

    text-align: center;
}


.badge {

    display: inline-block;

    padding: 7px 18px;

    margin-bottom: 18px;

    border:
        1px solid
        rgba(216,180,107,.3);

    border-radius: 30px;

    color: var(--gold);

    font-size: 13px;
}


.hero h1 {

    font-size:
        clamp(38px,7vw,72px);

    line-height: 1.1;

    color: #dfc184;
}


.hero h1 span {

    font-style: italic;
}


.hero p {

    margin-top: 18px;

    color: #9b8d76;

    font-size: 17px;
}


.hero .malayalam-text {

    font-size: 14px;

    color: #665d50;
}


/* ================= WEATHER ================= */

.weather-section {

    max-width: 1100px;

    margin: 0 auto;

    padding: 25px 20px 35px;
}


.weather-header {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    margin-bottom: 18px;
}


.section-label {

    display: block;

    color: #5e5549;

    font-size: 10px;

    letter-spacing: 4px;

    margin-bottom: 7px;
}


.weather-header h2 {

    color: var(--gold);

    font-size: 23px;
}


.refresh-weather {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    border:
        1px solid var(--border);

    background:
        rgba(255,255,255,.02);

    color: var(--gold);

    font-size: 20px;

    cursor: pointer;
}


.weather-card {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 25px;

    padding: 28px;

    border:
        1px solid var(--border);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.005)
        );
}


.weather-main {

    display: flex;

    align-items: center;

    gap: 20px;
}


.weather-icon {

    font-size: 55px;
}


.temperature {

    display: flex;

    align-items:
        flex-start;

    color: #dfc184;

    font-size: 48px;

    line-height: 1;
}


.celsius {

    font-size: 18px;

    margin-top: 5px;

    color: var(--gold);
}


.weather-description {

    margin-top: 8px;

    color: #9b8d76;

    font-size: 14px;
}


.weather-location {

    margin-top: 5px;

    color: #665d50;

    font-size: 11px;
}


.weather-details {

    display: flex;

    gap: 30px;
}


.weather-detail {

    display: flex;

    align-items: center;

    gap: 10px;
}


.weather-detail > span {

    font-size: 23px;
}


.weather-detail small {

    display: block;

    color: #5e5549;

    font-size: 8px;

    letter-spacing: 2px;
}


.weather-detail strong {

    display: block;

    margin-top: 4px;

    color: #b8a88d;

    font-size: 13px;
}


.weather-note {

    margin-top: 10px;

    text-align: right;

    color: #403a32;

    font-size: 9px;
}


/* ================= PRESETS ================= */

.section {

    max-width: 1100px;

    margin: auto;

    padding:
        35px 20px 20px;
}


.section-title {

    letter-spacing: 5px;

    font-size: 11px;

    color: #5e5549;

    margin-bottom: 20px;
}


.presets {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


.preset {

    background: #17120d;

    border:
        1px solid var(--border);

    color: #a99a80;

    padding: 13px 20px;

    border-radius: 30px;

    cursor: pointer;

    transition: .3s;
}


.preset:hover,
.preset.active {

    background: #2a2117;

    border-color:
        rgba(216,180,107,.4);

    color: var(--gold);

    transform:
        translateY(-2px);
}


/* ================= CONTROLS ================= */

.controls {

    max-width: 1100px;

    margin: auto;

    display: flex;

    justify-content:
        space-between;

    padding: 35px 20px;

    color: #665d50;

    font-size: 11px;

    letter-spacing: 4px;
}


.control-group {

    display: flex;

    align-items: center;

    gap: 10px;
}


.sleep-btn {

    border:
        1px solid var(--border);

    background: transparent;

    color: #887c69;

    padding: 9px 15px;

    border-radius: 20px;

    cursor: pointer;
}


.sleep-btn:hover {

    color: var(--gold);

    border-color:
        var(--gold);
}


/* ================= SWITCH ================= */

.switch {

    position: relative;

    width: 58px;

    height: 30px;
}


.switch input {
    display: none;
}


.slider {

    position: absolute;

    inset: 0;

    background: #211b15;

    border:
        1px solid var(--border);

    border-radius: 30px;

    cursor: pointer;
}


.slider:before {

    content: "";

    position: absolute;

    width: 20px;

    height: 20px;

    left: 4px;

    top: 4px;

    border-radius: 50%;

    background: #a99a80;

    transition: .3s;
}


.switch input:checked
+ .slider:before {

    transform:
        translateX(28px);

    background:
        var(--gold);
}


/* ================= SOUND GRID ================= */

.sound-section {

    max-width: 1100px;

    margin: auto;

    padding:
        10px 20px 50px;

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 18px;
}


.sound-card {

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.005)
        );

    border:
        1px solid var(--border);

    border-radius: 22px;

    padding: 28px;

    transition: .3s;
}


.sound-card:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(216,180,107,.25);
}


.sound-card.playing {

    box-shadow:
        0 0 35px
        rgba(216,180,107,.08);
}


.sound-top {

    display: flex;

    align-items: center;

    gap: 16px;
}


.sound-icon {

    font-size: 38px;
}


.sound-top h2 {

    color: #b8a88d;

    font-size: 20px;
}


.sound-top small {

    color: #62594d;

    letter-spacing: 2px;

    font-size: 9px;
}


/* ================= WAVE ================= */

.wave {

    height: 65px;

    display: flex;

    align-items: center;

    gap: 5px;

    margin: 20px 0;
}


.wave i {

    width: 7px;

    height: 20px;

    border-radius: 5px;

    background: #655b4d;

    opacity: .5;
}


.wave i:nth-child(2),
.wave i:nth-child(9) {

    height: 45px;
}


.wave i:nth-child(3),
.wave i:nth-child(10) {

    height: 35px;
}


.wave i:nth-child(4),
.wave i:nth-child(8) {

    height: 28px;
}


.sound-card.playing
.wave i {

    animation:
        wave .7s
        infinite alternate;
}


@keyframes wave {

    from {
        transform: scaleY(.5);
    }

    to {
        transform: scaleY(1.4);
    }
}


.green i {
    background: var(--green);
}


.blue i {
    background: var(--blue);
}


.purple i {
    background: var(--purple);
}


.orange i {
    background: var(--orange);
}


/* ================= VOLUME ================= */

.volume-row {

    display: flex;

    align-items: center;

    gap: 12px;

    color: #5f574b;

    font-size: 12px;
}


.volume {

    flex: 1;

    accent-color:
        var(--gold);
}


.sound-toggle {

    background: transparent;

    border: 0;

    color: #5f574b;

    cursor: pointer;
}


.sound-card.playing
.sound-toggle {

    color: var(--gold);
}


/* ================= VIBES ================= */

.vibes-section {

    max-width: 800px;

    margin: 30px auto 70px;

    padding: 0 20px;
}


.vibes-heading {

    text-align: center;

    margin-bottom: 25px;
}


.vibes-heading h2 {

    color: var(--gold);

    font-size: 28px;

    margin: 10px 0;
}


.vibes-heading p {

    color: #665d50;

    font-size: 13px;
}


.song-list {

    display: flex;

    flex-direction: column;

    gap: 12px;
}


.song-card {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px;

    border:
        1px solid var(--border);

    border-radius: 18px;

    background:
        rgba(255,255,255,.015);

    transition: .3s;
}


.song-card:hover,
.song-card.active {

    border-color:
        rgba(216,180,107,.35);

    background:
        rgba(216,180,107,.04);
}


.song-number {

    color: #51493e;

    font-size: 11px;

    width: 25px;
}


.song-cover {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #352718,
            #17120d
        );

    border:
        1px solid var(--border);

    font-size: 25px;
}


.song-info {

    flex: 1;
}


.song-info h3 {

    color: #b8a88d;

    font-size: 16px;
}


.song-info small {

    display: block;

    margin-top: 5px;

    color: #5e5549;

    letter-spacing: 2px;

    font-size: 8px;
}


.song-play {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    border:
        1px solid var(--border);

    background:
        transparent;

    color: var(--gold);

    cursor: pointer;

    transition: .3s;
}


.song-card.active
.song-play {

    background:
        var(--gold);

    color: #15100b;
}


/* ================= PLAYER ================= */

.player {

    max-width: 700px;

    margin:
        10px auto 80px;

    padding: 25px;

    border:
        1px solid var(--border);

    border-radius: 25px;

    background:
        rgba(255,255,255,.015);
}


.player-info {

    display: flex;

    align-items: center;

    gap: 15px;
}


.music-icon {

    font-size: 35px;
}


.player-info small {

    color: #62594d;

    letter-spacing: 3px;

    font-size: 9px;
}


.player-info h3 {

    color: #c7b58f;

    margin-top: 4px;
}


.player-info p {

    color: #62594d;

    font-size: 11px;

    margin-top: 3px;
}


.progress-area {

    margin-top: 25px;
}


#musicProgress {

    width: 100%;

    accent-color:
        var(--gold);
}


.time {

    display: flex;

    justify-content:
        space-between;

    color: #62594d;

    font-size: 10px;

    margin-top: 5px;
}


.player-buttons {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 25px;

    margin-top: 20px;
}


.player-buttons button {

    background: transparent;

    border: none;

    color: #b89a61;

    font-size: 20px;

    cursor: pointer;
}


.player-buttons .play {

    width: 58px;

    height: 58px;

    border-radius: 50%;

    background: #caa966;

    color: #15100b;

    font-size: 23px;
}


/* ================= ABOUT ================= */

.about {

    max-width: 1100px;

    margin: auto;

    text-align: center;

    padding: 80px 20px;

    border-top:
        1px solid
        rgba(255,255,255,.04);
}


.line {

    width: 70px;

    height: 1px;

    background: #3b3024;

    margin:
        auto auto 35px;
}


.about-label {

    color: #4e473d;

    letter-spacing: 5px;

    font-size: 10px;
}


.about h2 {

    margin: 20px 0 10px;

    color: var(--gold);

    font-size: 28px;
}


.about p {

    color: #736856;

    line-height: 2;
}


.about span {

    display: block;

    margin-top: 25px;

    color: #40392f;

    letter-spacing: 5px;

    font-size: 10px;
}


/* ================= FOOTER ================= */

footer {

    max-width: 1100px;

    margin: auto;

    text-align: center;

    padding:
        50px 20px 70px;

    border-top:
        1px solid
        rgba(255,255,255,.04);
}


.footer-logo {

    color: var(--gold);

    font-size: 22px;

    font-weight: bold;
}


footer p {

    color: #5d5549;

    margin:
        12px 0 25px;
}


.footer-links {

    display: flex;

    justify-content: center;

    gap: 25px;

    margin-bottom: 30px;
}


.footer-links a {

    color: #746a5b;

    text-decoration: none;
}


.footer-links a:hover {

    color: var(--gold);
}


footer small {

    color: #403a32;
}


/* ================= LIGHT MODE ================= */

body.light {

    --bg: #eee6d8;

    --card: #f8f2e8;

    --border:
        rgba(80,55,25,.15);

    --gold: #8b652c;

    --text: #584a37;

    --muted: #887861;

    background: #eee6d8;
}


/* ================= MOBILE ================= */

@media (max-width: 700px) {

    .header {

        padding: 0 20px;
    }


    .hero {

        height: 440px;

        margin: 15px;

        border-radius: 18px;
    }


    .hero-content {

        bottom: 35px;
    }


    .hero h1 {

        font-size: 40px;
    }


    .hero p {

        font-size: 14px;
    }


    .weather-section {

        padding:
            20px 15px;
    }


    .weather-card {

        flex-direction: column;

        align-items: flex-start;

        padding: 22px;
    }


    .weather-details {

        width: 100%;

        justify-content:
            space-between;

        gap: 10px;
    }


    .weather-detail > span {

        font-size: 18px;
    }


    .weather-detail small {

        font-size: 7px;
    }


    .controls {

        flex-direction: column;

        gap: 25px;
    }


    .sound-section {

        grid-template-columns: 1fr;

        padding:
            10px 15px 40px;
    }


    .sound-card {

        padding: 22px;
    }


    .vibes-section {

        margin-bottom: 50px;
    }


    .song-number {

        display: none;
    }


    .song-cover {

        width: 48px;
        height: 48px;
    }


    .song-info h3 {

        font-size: 14px;
    }


    .player {

        margin:
            10px 15px 60px;
    }


    .presets {

        gap: 8px;
    }


    .preset {

        padding:
            11px 15px;

        font-size: 12px;
    }

}