/* ==========================
   GLOBAL
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: #090d19;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}


/* ==========================
   HERO SECTION
========================== */

.hero {
    position: relative;

    width: 100%;
    height: 100vh;

    min-height: 600px;

    overflow: hidden;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            ellipse at 75% 50%,
            #263b63 0%,
            #131e37 40%,
            #090d19 80%
        );
}


/* ==========================
   BACKGROUND GLOW
========================== */

.background-glow {
    position: absolute;

    width: 500px;
    height: 500px;

    right: 12%;
    top: 50%;

    transform: translateY(-50%);

    background: #47c9ff;

    opacity: 0.12;

    filter: blur(140px);

    border-radius: 50%;

    pointer-events: none;
}


/* ==========================
   NAVIGATION
========================== */

.main-navigation {
    position: absolute;

    top: 35px;
    right: 8%;

    z-index: 10;

    display: flex;
    align-items: center;

    gap: 35px;
}

.main-navigation a {
    position: relative;

    color: #b8c8df;

    text-decoration: none;

    font-size: 12px;

    letter-spacing: 2px;

    transition: color 0.3s ease;
}

/* Navigation Hover */

.main-navigation a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: #54dfff;

    transition: width 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: #54dfff;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}


/* ==========================
   HERO CONTENT
========================== */

.hero-content {
    position: relative;

    z-index: 2;

    margin-left: 10%;

    color: white;

    max-width: 550px;
}

.eyebrow {
    display: inline-block;

    font-size: 12px;

    letter-spacing: 5px;

    color: #7ddfff;

    font-weight: 600;
}


h1 {
    font-size: clamp(65px, 9vw, 130px);

    line-height: 0.95;

    margin-top: 25px;

    font-weight: 900;

    letter-spacing: -5px;
}

h1 span {
    color: #67dfff;
}


.hero-content p {
    margin-top: 30px;

    color: #aebbd0;

    font-size: 17px;

    letter-spacing: 1px;

    line-height: 1.6;
}


/* ==========================
   HERO BUTTON
========================== */

.hero-button {
    display: inline-flex;

    align-items: center;

    gap: 20px;

    margin-top: 40px;

    padding: 16px 25px;

    border: 1px solid rgba(103,223,255,0.5);

    color: white;

    text-decoration: none;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 2px;

    cursor: pointer;

    transition: all 0.3s ease;
}

.hero-button span {
    color: #67dfff;

    font-size: 18px;

    transition: transform 0.3s ease;
}

.hero-button:hover {
    background: #67dfff;

    color: #09101e;

    transform: translateY(-4px);
}

.hero-button:hover span {
    color: #09101e;

    transform: translate(3px, -3px);
}


/* ==========================
   CHARACTER CONTAINER
========================== */

.character-container {
    position: absolute;

    right: 5%;

    top: 50%;

    transform: translateY(-50%);

    width: min(50vw, 680px);

    height: min(90vh, 850px);

    z-index: 1;
}


canvas {
    display: block;

    width: 100%;
    height: 100%;
}


/* ==========================
   FOOTER
========================== */

.bottom-label,
.bottom-right {
    position: absolute;

    bottom: 35px;

    color: #65748d;

    font-size: 10px;

    letter-spacing: 3px;
}

.bottom-label {
    left: 10%;
}

.bottom-right {
    right: 5%;
}


/* ==========================
   RESPONSIVE DESIGN
========================== */

@media (max-width: 850px) {

    .hero {
        justify-content: center;

        align-items: flex-start;
    }

    /* Navigation */

    .main-navigation {
        top: 25px;

        right: 50%;

        transform: translateX(50%);

        gap: 22px;
    }

    .main-navigation a {
        font-size: 10px;

        letter-spacing: 1.5px;
    }

    /* Content */

    .hero-content {
        margin: 90px 20px 0;

        text-align: center;
    }

    h1 {
        font-size: 65px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .hero-button {
        margin-top: 20px;
    }

    /* Character */

    .character-container {
        width: min(95vw, 550px);

        height: 58vh;

        right: 50%;

        top: auto;

        bottom: 0;

        transform: translateX(50%);
    }

    /* Footer */

    .bottom-label {
        left: 5%;

        font-size: 8px;
    }

    .bottom-right {
        right: 5%;

        font-size: 8px;
    }
}


/* ==========================
   SMALL MOBILE DEVICES
========================== */

@media (max-width: 480px) {

    .main-navigation {
        gap: 16px;
    }

    .main-navigation a {
        font-size: 9px;
    }

    .eyebrow {
        font-size: 9px;

        letter-spacing: 3px;
    }

    h1 {
        font-size: 55px;

        letter-spacing: -3px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .character-container {
        height: 52vh;
    }

}


/* ==========================
   SHORT SCREEN
========================== */

@media (max-height: 650px) {

    .character-container {
        height: 75vh;
    }

    h1 {
        font-size: 65px;
    }

}
