
:root {
    --bg: #07121d;
    --ice: #d8f4ff;
    --blue: #78c9e8;
    --cyan: #83e5ef;
    --red: #ff4b52;
    --muted: #7895a7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--ice);
    font-family: 'Vazirmatn', sans-serif;
    overflow: hidden;
}

.scene {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(
        180deg,
        #07121d 0%,
        #0b2030 48%,
        #142c3a 100%
    );
}

/* SKY */

.sky {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.stars {
    position: absolute;
    inset: 0;
    opacity: .75;
    background-image:
        radial-gradient(1px 1px at 10% 15%, #fff 99%, transparent),
        radial-gradient(1.5px 1.5px at 25% 30%, #d7f6ff 99%, transparent),
        radial-gradient(1px 1px at 43% 12%, #fff 99%, transparent),
        radial-gradient(2px 2px at 62% 25%, #fff 99%, transparent),
        radial-gradient(1px 1px at 75% 10%, #d7f6ff 99%, transparent),
        radial-gradient(1.5px 1.5px at 90% 32%, #fff 99%, transparent),
        radial-gradient(1px 1px at 53% 43%, #fff 99%, transparent);
    background-size: 350px 260px;
    animation: starDrift 80s linear infinite;
}

@keyframes starDrift {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(80px);
    }
}

.moon {
    position: absolute;
    top: 12%;
    right: 17%;
    width: 75px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #d9eff5;
    box-shadow:
        0 0 30px rgba(180, 230, 245, .2),
        0 0 90px rgba(135, 210, 235, .12);
    opacity: .8;
}

/* AURORA */

.aurora {
    position: absolute;
    width: 70%;
    height: 42%;
    top: 4%;
    left: 12%;
    filter: blur(42px);
    opacity: .2;
    border-radius: 50%;
    transform: rotate(-15deg);
    pointer-events: none;
}

.aurora-one {
    background: linear-gradient(
        100deg,
        transparent,
        #2e9e9b,
        #63d8cb,
        #4383a9,
        transparent
    );
    animation: auroraMove 13s ease-in-out infinite alternate;
}

.aurora-two {
    top: 14%;
    left: 35%;
    width: 55%;
    height: 30%;
    opacity: .13;
    background: linear-gradient(
        90deg,
        transparent,
        #4389bd,
        #6be0c6,
        transparent
    );
    animation: auroraMove 17s ease-in-out infinite alternate-reverse;
}

@keyframes auroraMove {
    from {
        transform: translateX(-5%) rotate(-15deg) scaleY(.8);
    }

    to {
        transform: translateX(9%) rotate(10deg) scaleY(1.2);
    }
}

/* MOUNTAINS */

.mountains {
    position: absolute;
    left: -5%;
    width: 110%;
    pointer-events: none;
}

.mountains-back {
    bottom: 20%;
    height: 42%;
    opacity: .75;
    background: #142d3b;
    clip-path: polygon(
        0 72%, 9% 40%, 16% 64%, 27% 18%,
        38% 62%, 50% 22%, 60% 67%, 72% 28%,
        84% 64%, 93% 35%, 100% 65%, 100% 100%, 0 100%
    );
}

.mountains-front {
    bottom: 10%;
    height: 37%;
    background: linear-gradient(180deg, #193747, #0b1b28);
    clip-path: polygon(
        0 58%, 12% 35%, 23% 65%, 35% 28%,
        46% 60%, 59% 20%, 70% 62%, 83% 31%,
        100% 60%, 100% 100%, 0 100%
    );
}

/* SNOW GROUND */

.snow-ground {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 120%;
    height: 30%;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(
        180deg,
        #d1e4e8,
        #7898a5 75%,
        #334e5c
    );
    box-shadow: 0 -15px 70px rgba(150, 218, 235, .1);
}

/* STATION */

.station {
    position: absolute;
    z-index: 2;
    bottom: 17%;
    left: 50%;
    width: min(650px, 75vw);
    height: 320px;
    transform: translateX(-50%);
}

/* BUILDING */

.station-building {
    position: absolute;
    bottom: 0;
    left: 9%;
    width: 190px;
    height: 130px;
}

.building-body {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 105px;
    background: linear-gradient(90deg, #263d49, #152a37);
    border: 1px solid rgba(190, 230, 240, .18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.building-roof {
    position: absolute;
    top: 0;
    left: -12px;
    width: calc(100% + 24px);
    height: 28px;
    background: #344f5d;
    clip-path: polygon(5% 100%, 15% 0, 85% 0, 95% 100%);
}

.window {
    position: absolute;
    top: 28px;
    width: 24px;
    height: 30px;
    background: #b9e4df;
    box-shadow: 0 0 18px rgba(131, 229, 239, .45);
}

.window-one {
    left: 28px;
}

.window-two {
    left: 75px;
}

.door {
    position: absolute;
    right: 25px;
    bottom: 0;
    width: 30px;
    height: 68px;
    background: #0a1822;
    border: 1px solid rgba(190, 230, 240, .15);
}

/* COMMUNICATION TOWER */

.tower {
    position: absolute;
    bottom: 0;
    right: 16%;
    width: 125px;
    height: 300px;
}

/* TOWER TOP */

.tower-top {
    position: absolute;
    top: 0;
    left: 50%;
    width: 5px;
    height: 25px;
    transform: translateX(-50%);
    background: #8da8b5;
}

/* SIGNAL ORIGIN */

.signal-origin {
    position: absolute;
    top: -24px;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.signal-light {
    position: absolute;
    inset: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
    box-shadow:
        0 0 12px var(--red),
        0 0 30px rgba(255, 75, 82, .6);
    animation: beacon 1.5s ease-in-out infinite;
    z-index: 2;
}


/* SIGNAL WAVES */

.signal-wave {
    position: absolute;
    top: -37px;
    left: 50%;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(131, 229, 239, .55);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: signal 3.5s ease-out infinite;
    pointer-events: none;
}

.wave-one {
    animation-delay: 0s;
}

.wave-two {
    animation-delay: 1.15s;
}

.wave-three {
    animation-delay: 2.3s;
}

@keyframes signal {
    0% {
        opacity: .7;
        transform: translateX(-50%) scale(.4);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) scale(3.5);
    }
}


@keyframes beacon {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .18;
    }
}

/* TOWER FRAME */

.tower-frame {
    position: absolute;
    top: 24px;
    left: 50%;
    width: 80px;
    height: 230px;
    transform: translateX(-50%);
    border-left: 3px solid #718b98;
    border-right: 3px solid #718b98;
    clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
    background: repeating-linear-gradient(
        135deg,
        transparent 0 22px,
        rgba(159, 197, 209, .75) 23px 25px,
        transparent 26px 45px
    );
}

.tower-frame::before,
.tower-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 2px solid #829eaa;
    border-right: 2px solid #829eaa;
}

.tower-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 115px;
    height: 5px;
    transform: translateX(-50%);
    background: #8ba7b2;
}

/* ANTENNA */

.antenna {
    position: absolute;
    right: 4%;
    bottom: 115px;
    width: 3px;
    height: 110px;
    background: #91aab4;
    transform: rotate(8deg);
}

.antenna-light {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: var(--red);
    box-shadow:
        0 0 12px var(--red),
        0 0 30px rgba(255, 75, 82, .6);
    animation: beacon 1.5s ease-in-out infinite;
}

/* FOG */

.fog {
    position: absolute;
    z-index: 3;
    width: 120%;
    height: 100px;
    left: -10%;
    border-radius: 50%;
    filter: blur(35px);
    background: rgba(185, 221, 231, .12);
    pointer-events: none;
}

.fog-one {
    bottom: 18%;
    animation: fogMove 22s linear infinite alternate;
}

.fog-two {
    bottom: 33%;
    opacity: .45;
    animation: fogMove 30s linear infinite alternate-reverse;
}

@keyframes fogMove {
    from {
        transform: translateX(-5%);
    }

    to {
        transform: translateX(5%);
    }
}

/* SNOW PARTICLES */

.snowfall {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -15px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #e6f8ff;
    opacity: .7;
    box-shadow: 0 0 7px rgba(220, 245, 255, .6);
    animation: snowFall linear infinite;
}

@keyframes snowFall {
    to {
        transform: translate3d(var(--drift), 110vh, 0);
    }
}

/* CONTENT */

.content {
    position: absolute;
    z-index: 6;
    top: 48%;
    left: 50%;
    width: min(520px, 90%);
    text-align: center;
    transform: translate(-50%, -50%);
    font-family: 'Vazirmatn', sans-serif;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border: 1px solid rgba(131, 229, 239, .2);
    border-radius: 30px;
    color: #a6cbd8;
    font-size: 11px;
    letter-spacing: 0;
    background: rgba(7, 18, 29, .45);
    backdrop-filter: blur(8px);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
    animation: beacon 1.5s infinite;
}

.content h1 {
    margin: 10px 0 0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: clamp(100px, 17vw, 175px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 4px;
    color: transparent;
    background: linear-gradient(
        180deg,
        #f0fcff 5%,
        #9acbdc 50%,
        #456b7d 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    filter: drop-shadow(0 8px 25px rgba(105, 193, 220, .18));
}

.signal-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 12px auto 20px;
}

.signal-line span {
    width: 38px;
    height: 1px;
    background: rgba(131, 229, 239, .5);
}

.signal-line p {
    font-size: 12px;
    font-weight: 500;
    color: var(--cyan);
}

.content h2 {
    font-size: clamp(19px, 3vw, 25px);
    font-weight: 700;
    letter-spacing: 0;
    color: #e5f8fc;
}

.description {
    max-width: 380px;
    margin: 14px auto 18px;
    color: #a6bdc9;
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0;
}

.coordinates {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #7595a6;
    font-size: 10px;
    letter-spacing: 0;
}

.coordinates i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

/* ACTIONS */

.actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 27px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 17px;
    color: #07121d;
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 11px;
    font-weight: 700;
    background: #c4e8ef;
    border: 1px solid #e4faff;
    transition: .3s ease;
}

.home-button:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(131, 229, 239, .35);
    transform: translateY(-3px);
}

.button-arrow {
    font-size: 16px;
}

.back-button {
    padding: 12px 17px;
    color: #c1dce5;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 11px;
    font-weight: 500;
    background: rgba(7, 18, 29, .35);
    border: 1px solid rgba(131, 229, 239, .3);
    cursor: pointer;
    transition: .3s ease;
}

.back-button:hover {
    color: #fff;
    border-color: var(--cyan);
    background: rgba(131, 229, 239, .08);
}

/* BOTTOM INFO */

.bottom-info {
    position: absolute;
    z-index: 7;
    left: 0;
    right: 0;
    bottom: 22px;
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
    color: #183747;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
    text-shadow: 0 1px 5px rgba(220, 245, 255, .7);
}

.frequency {
    color: #087f91;
    font-weight: 800;
}

/* VIGNETTE */

.vignette {
    position: absolute;
    z-index: 8;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 35%,
        rgba(2, 9, 15, .25) 100%
    );
}

/* RESPONSIVE TABLET */

@media (max-width: 768px) {

    .moon {
        width: 55px;
        right: 12%;
        top: 9%;
    }

    .station {
        width: 95vw;
        height: 250px;
        bottom: 12%;
        transform: translateX(-50%) scale(.8);
        transform-origin: bottom center;
    }

    .content {
        top: 43%;
        width: 92%;
    }

    .content h1 {
        font-size: clamp(100px, 25vw, 145px);
    }

    .description {
        max-width: 330px;
        font-size: 15px;
    }

    .bottom-info {
        bottom: 13px;
        padding: 0 4%;
        font-size: 8px;
    }
}

/* RESPONSIVE MOBILE */

@media (max-width: 480px) {

    .content {
        top: 42%;
    }

    .content h1 {
        font-size: 112px;
        letter-spacing: 3px;
    }

    .status {
        font-size: 10px;
    }

    .signal-line {
        margin: 8px auto 15px;
    }

    .signal-line p {
        font-size: 11px;
    }

    .content h2 {
        font-size: 18px;
    }

    .description {
        max-width: 290px;
        font-size: 13px;
        margin: 11px auto 15px;
    }

    .coordinates {
        gap: 7px;
        font-size: 8px;
    }

    .actions {
        gap: 8px;
        margin-top: 20px;
    }

    .home-button,
    .back-button {
        padding: 11px 12px;
        font-size: 10px;
    }

    .station {
        bottom: 10%;
        transform: translateX(-50%) scale(.62);
    }

    .bottom-info {
        font-size: 7px;
        padding: 0 3%;
    }
}

/* SHORT DESKTOP SCREENS */

@media (max-height: 650px) and (min-width: 769px) {

    .content {
        top: 45%;
        transform: translate(-50%, -50%) scale(.78);
    }

    .station {
        bottom: 8%;
        transform: translateX(-50%) scale(.72);
        transform-origin: bottom center;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
