/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   PAGE
   ========================================================= */

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background: #000;
    font-family: "Urbanist", sans-serif;
}


/* =========================================================
   HERO / FULLSCREEN CONTAINER
   ========================================================= */

.hero {
    position: relative;

    width: 100%;
    height: 100vh;

    /*
     * Modern mobile browsers have dynamic viewport heights.
     * 100dvh handles that better than traditional 100vh.
     */
    height: 100dvh;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000;
}


/* =========================================================
   BACKGROUND VIDEO
   ========================================================= */

.background-video {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    /*
     * The video completely fills the viewport.
     *
     * If the video's aspect ratio doesn't match the screen,
     * the excess parts of the video are cropped.
     */
    object-fit: cover;

    object-position: center center;

    z-index: 0;

    /*
     * Prevent accidental interaction with the video.
     */
    pointer-events: none;
}


/* =========================================================
   VIDEO OVERLAY
   ========================================================= */

.video-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    /*
     * Adjust this value to control how dark the video is.
     */
    background: rgba(0, 0, 0, 0.35);
}


/* =========================================================
   CENTER CONTENT
   ========================================================= */

.hero-content {
    position: relative;

    z-index: 2;

    width: 100%;

    padding: 2rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: #fff;
}


/* =========================================================
   TITLE
   ========================================================= */

.title {
    font-family: "Urbanist", sans-serif;

    /*
     * Responsive font size.
     *
     * Minimum: 3rem
     * Preferred: 8vw
     * Maximum: 8rem
     */
    font-size: clamp(3rem, 8vw, 8rem);

    font-weight: 800;

    line-height: 0.95;

    letter-spacing: -0.04em;

    color: #fff;

    /*
     * Subtle shadow keeps the title readable
     * over brighter parts of the video.
     */
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.35),
        0 4px 30px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   SLOGAN
   ========================================================= */

.slogan {
    margin-top: 1.25rem;

    font-family: "Urbanist", sans-serif;

    font-size: clamp(1rem, 1.6vw, 1.35rem);

    font-weight: 400;

    line-height: 1.4;

    letter-spacing: 0.02em;

    color: rgba(255, 255, 255, 0.9);

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.5);
}


/* =========================================================
   SOCIAL LINKS
   ========================================================= */

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 1.5rem;

    margin-top: 2rem;
}


/* Individual social icon */

.social-links a {
    width: 3rem;
    height: 3rem;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;

    font-size: 1.35rem;

    text-decoration: none;

    border-radius: 50%;

    /*
     * Slight transparent background helps icons
     * remain visible against the video.
     */
    background: rgba(0, 0, 0, 0.2);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}


/* Desktop hover */

@media (hover: hover) {
    .social-links a:hover {
        transform: translateY(-4px);

        background: rgba(255, 255, 255, 0.18);

        color: #fff;
    }
}


/* =========================================================
   MOBILE PORTRAIT
   ========================================================= */

@media (max-width: 600px) {

    .hero-content {
        padding:
            1.5rem
            max(1.5rem, env(safe-area-inset-right))
            1.5rem
            max(1.5rem, env(safe-area-inset-left));
    }

    .title {
        /*
         * Smaller title on narrow portrait screens.
         */
        font-size: clamp(2.75rem, 14vw, 5rem);

        letter-spacing: -0.035em;
    }

    .slogan {
        max-width: 90%;

        margin-top: 1rem;

        font-size: 1rem;
    }

    .social-links {
        gap: 0.8rem;

        margin-top: 1.5rem;
    }

    .social-links a {
        width: 2.75rem;
        height: 2.75rem;

        font-size: 1.15rem;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .hero-content {
        padding: 1rem;
    }

    .title {
        font-size: 2.5rem;
    }

    .slogan {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 0.55rem;
    }

    .social-links a {
        width: 2.5rem;
        height: 2.5rem;

        font-size: 1rem;
    }
}


/* =========================================================
   LANDSCAPE PHONES
   ========================================================= */

@media (orientation: landscape) and (max-height: 600px) {

    .hero-content {
        padding: 1rem;
    }

    .title {
        font-size: clamp(2.5rem, 10vh, 5rem);
    }

    .slogan {
        margin-top: 0.75rem;

        font-size: 0.95rem;
    }

    .social-links {
        margin-top: 1rem;

        gap: 1rem;
    }

    .social-links a {
        width: 2.5rem;
        height: 2.5rem;

        font-size: 1rem;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .social-links a {
        transition: none;
    }
}