/* ========== BASE / DESKTOP (unchanged behavior) ========== */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background-color: black;
    font-family: sans-serif;
    font-weight: bold;
    color: #fff;
    overflow-x: hidden;
}

a {
    color: black;
}

header {
    display: flex;
    align-items: center;
    padding: 20px 50px;
    width: 100%;
    margin: 0 auto;
    height: 40px;
    position: fixed;
    top: 0;
    z-index: 2;
}

header img {
    width: 200px;
}

header a.logo {
    position: fixed;
    top: 21px;
    left: 40%;
    margin-left: -70px;
}

@media (min-width: 1590px) {
    header img {
        width: 200px;
    }

    header a.logo {
        margin-right: 40px;
        position: relative;
        top: initial;
        left: initial;
        margin-left: initial;
    }
}

.center-nav {
    display: none;
}

@media (min-width: 1590px) {
    .center-nav {
        position: relative;
        left: 410px;
        display: block;
    }
}

.center-nav a,
.right-nav a,
.left-nav a {
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    padding: 0;
    margin: 0 30px;
    position: relative;
    transition: color 0.4s ease-in-out;
}

header.scrolled .center-nav a {
    color: white
}

.center-nav a:before,
.right-nav a:before,
.left-nav a::before {
    content: '';
    width: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background-color: white;
    position: absolute;
    transition: width .2s linear;
}

.center-nav a:hover:before,
.right-nav a:hover:before,
.left-nav a:hover::before {
    right: initial;
    left: 0;
    width: 100%;
}

.right-nav {
    position: fixed;
    left: 1300px;
    top: 20px;
    height: 40px;
    display: flex;
    align-items: center;
}

.right-nav a {
    display: none;
    transition: color 0.4s ease-in-out;
}

header.scrolled .right-nav a {
    color: white
}

.left-nav {
    position: fixed;
    right: 1300px;
    top: 20px;
    height: 40px;
    display: flex;
    align-items: center;
}

.left-nav a {
    display: none;
    transition: color 0.4s ease-in-out;
}

header.scrolled .left-nav a {
    color: white
}

@media (min-width: 1590px) {
    .right-nav a {
        display: inline-block;
        padding: 0;
        margin: 0 50px;
    }

    .left-nav a {
        display: inline-block;
        padding: 0;
        margin: 0 50px;
    }
}

.hamburger {
    position: fixed;
    z-index: 3;
    right: 6px;
    top: 13px;
    color: white;
    padding: 20px;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 16px;
    margin: 2px 0;
    height: 2px;
    background-color: white;
    position: relative;
    transition: all 0.2s linear;
}

.hamburger.active span:first-child,
.hamburger.active span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    transform: rotate(-45deg);
    top: -4px;
}

.hamburger.active span:last-child {
    opacity: 0;
}

.shadow.active {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, .3);
    z-index: 1;
}

nav.mobile-nav {
    padding-top: 70px;
    display: block;
    position: fixed;
    top: 0;
    right: -280px;
    bottom: 0;
    z-index: 2;
    width: 280px;
    background-color: #000;
    transition: right 0.3s ease-in-out;
}

nav.mobile-nav.active {
    right: 0;
}

nav.mobile-nav a {
    display: block;
    opacity: 0;
    border-bottom: 1px solid #222;
    text-transform: uppercase;
    padding: 16px 25px;
    text-decoration: none;
    text-align: right;
    transition: opacity .3s linear;
    transition-delay: .2s;
}

nav.mobile-nav.active a {
    opacity: 1;
    color: white;
}

nav.mobile-nav a:nth-child(2) {
    transition-delay: .25s;
}

nav.mobile-nav a:nth-child(3) {
    transition-delay: .3s;
}

nav.mobile-nav a:nth-child(4) {
    transition-delay: .35s;
}

nav.mobile-nav a:nth-child(5) {
    transition-delay: .4s;
}

nav.mobile-nav a:nth-child(6) {
    transition-delay: .45s;
}

nav.mobile-nav a:nth-child(7) {
    transition-delay: .5s;
}

nav.mobile-nav a:nth-child(8) {
    transition-delay: .55s;
}

section {
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

section div.content {
    position: absolute;
    max-width: 360px;
    left: 3vh;
    opacity: 1;
    bottom: 14vh;
    transition: all .5s linear;
}

section div.content-outer {
    flex-grow: 1;
    margin-left: 50px;
    text-align: left;
}

section div.content h2 {
    font-size: 72px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

section div.content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 550px;
}

section div.content a {
    color: white;
    text-decoration: none;
}

section div.contenthigh {
    position: absolute;
    max-width: 360px;
    left: 3vh;
    opacity: 1;
    bottom: 35vh;
    transition: all .5s linear;
}

section div.contenthigh h2 {
    font-size: 72px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

section div.contenthigh p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 550px;
}

section div.contenthigh a {
    color: white;
    text-decoration: none;
}

.action-links {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    margin-top: 30px;
}

.action-links a {
    font-size: 20px;
    color: white;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease-in-out;
}

.action-links a:hover {
    border-color: white;
}

.fullscreen-section {
    width: 100%;
    height: 100vh;
    background: url('Images/Home/Logo.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.text-container {
    position: relative;
    width: 65%;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    height: 460px;
}

.text-slide h1 {
    position: relative;
    font-family: 'Ageone Serif';
    font-size: 8rem;
    margin-bottom: 15px;
    color: #00417B;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    top: -90px;
}

.text-slide p {
    font-size: 3.5rem;
    color: #DEDEDE;
    margin: 0 auto;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.text-slide {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.text-slide.active {
    opacity: 1;
    animation: FadeIn 1.5s ease-out;
}

.lowered-text {
    margin-top: 20px;
    position: relative;
    top: 0px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 90%;
    color: #ffffff;
}

@keyframes FadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#signout-btn {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    margin-left: 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#signout-btn:hover {
    background-color: var(--text-color);
}

footer {
    padding: 50px;
    font-size: 12px;
}

footer nav {
    text-align: center;
}

footer nav span {
    color: #777;
    display: inline-block;
    padding-right: 30px;
    text-transform: uppercase;
}

footer nav a {
    color: white;
    padding: 0 20px;
    text-decoration: none;
    transition: color .2s linear;
}

footer nav a:hover {
    color: #aaa;
}

@media (min-width: 932px) {
    body {
        overflow-x: auto;
    }
}

/* ========== MOBILE ENHANCEMENTS (≤ 932px) ========== */
@media (max-width: 932px) {

    /* Header & Nav */
    header {
        padding: max(10px, env(safe-area-inset-top)) 16px 10px 16px;
        height: 56px;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(6px);
    }

    header a.logo {
        position: static;
        margin: 0 0 0 125px;
        display: block;
    }

    header img {
        width: 150px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Hide desktop navs; use drawer */
    .left-nav,
    .center-nav,
    .right-nav {
        position: static !important;
        display: none !important;
    }

    .hamburger {
        right: 8px;
        top: 8px;
        padding: 16px;
        /* Larger touch target */
    }

    .hamburger span {
        width: 22px;
        height: 3px;
        margin: 4px 0;
    }

    nav.mobile-nav {
        width: min(88vw, 320px);
        right: calc(-1 * min(88vw, 320px));
        padding-top: 64px;
        border-left: 1px solid #222;
    }

    nav.mobile-nav a {
        font-size: 16px;
        letter-spacing: .5px;
        padding: 16px 20px;
    }

    .shadow.active {
        background-color: rgba(0, 0, 0, .5);
    }

    /* Sections */
    section {
        min-height: 90vh;
        align-items: flex-end;
        padding: 0 16px 24px 16px;
        background-position: center;
        background-size: cover;
    }

    /* Content blocks pin near bottom, full width */
    section div.content,
    section div.contenthigh {
        opacity: 1;
        margin: 0;
        padding: 14px 14px 0 14px;
        background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .20));
        border-radius: 10px;
        backdrop-filter: blur(2px);
    }

    section div.content {
        position: static;
        transform: translate(-25px, -150px);
    }

    section div.contenthigh {
        position: static;
        transform: translate(-25px, -250px);
    }

    section div.content h2,
    section div.contenthigh h2 {
        font-size: clamp(32px, 8.2vw, 61px);
        margin: 6px 0 10px 0;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
        line-height: 1.05;
    }

    section div.content p,
    section div.contenthigh p {
        font-size: clamp(14px, 4vw, 18px);
        line-height: 1.55;
        margin: 8px 0 12px 0;
        max-width: none;
    }

    .action-links {
        gap: 18px;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .action-links a {
        display: inline-block;
        font-size: 16px;
        padding: 8px 6px;
        border-bottom-width: 1px;
    }

    /* Hero (fullscreen-section) */
    .fullscreen-section {
        height: 92vh;
        align-items: center;
        padding: 72px 0 0 0;
        /* space for fixed header */
        background: url('Images/Home/Logo.png') no-repeat center center / cover;
    }

    .text-container {
        width: 92%;
        height: auto;
        min-height: 240px;
        padding: 16px;
        margin: 0 auto;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(2px);
    }

    /* Ensure only h1 is affected, not all p globally */
    .text-slide {
        position: absolute;
        opacity: 0;
        transition: opacity .6s ease, transform .6s ease;
    }

    .text-slide.active {
        opacity: 1;
        animation: FadeIn 1.2s ease-out;
    }

    .text-slide h1 {
        position: relative;
        top: 0;
        font-family: 'Ageone Serif';
        font-size: clamp(28px, 9vw, 40px);
        margin: 0 0 8px 0;
        color: #00417B;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    }

    .text-slide p {
        font-size: clamp(16px, 4.8vw, 24px);
        line-height: 1.45;
        margin: 0 auto;
        color: #DEDEDE;
        text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
        max-width: 92%;
    }

    .lowered-text {
        top: 0;
        font-size: clamp(15px, 4.2vw, 18px);
        line-height: 1.55;
        max-width: 95%;
    }

    /* Buttons / Sign out */
    #signout-btn {
        display: none !important;
        /* keep it desktop-only unless you add to mobile drawer */
    }

    /* Footer */
    footer {
        padding: 28px 16px 36px;
        font-size: 11px;
    }

    footer nav span {
        display: block;
        padding: 0 0 10px 0;
    }

    footer nav a {
        display: inline-block;
        padding: 8px 10px;
    }
}