/******************************************************************


    ------------------------
    -- TABLE OF CONTENTS --
    ------------------------
    
    --  1. Basic
    --  2. Hero
    --  3. Hero --> Front Content
    --  4. Hero --> Background Content
 
 
 ******************************************************************/


/** 1. Basic
*******************************************************************/

html {
    font-size: 16px;
}

body {
    font-weight: 300;
    font-style: normal;
    color: #fff;
    background: #000;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6, p, a {
    font-family: 'Anonymous Pro', monospace;
    font-weight: normal;
    color: #fff;
}

h1 { font-size: 3.75rem; }
h2 { font-size: 3.125rem; }
h3 { font-size: 2.5rem; }
h4 { font-size: 1.875rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }
p { font-size: 1rem; }

a, a:hover, a:focus {
    cursor: pointer;
    transition: all 300ms ease;
    text-decoration: none;
}

a:hover { color: #fff; }

/* Responsive font sizes */
@media (max-width: 768px) {
    html { font-size: 14px; }
    h1 { font-size: 2.5rem; }
    p { font-size: 0.9rem; }
}

@media (max-width: 500px) {
    html { font-size: 12px; }
    h1 { font-size: 2rem; }
    p { font-size: 0.85rem; }
}

@media (max-width: 350px) {
    html { font-size: 10px; }
}

@media (orientation: landscape) and (max-height: 420px) {
    html { font-size: 10px; }
}

/** 2. Hero
*******************************************************************/

.hero {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/** 3. Hero --> Front Content 
*******************************************************************/

.hero .front-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

.hero .front-content .container-mid {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
}

.hero .front-content .container-mid h1 {
    font-weight: bold;
    line-height: 1.2em;
    margin: 0 0 0.4em;
}

.hero .front-content .container-mid p.subline {
    font-size: 1.5rem;
    line-height: 1.5em;
    max-width: 90%;
    margin: 0 auto 1.4em;
}

.hero .front-content .container-mid a {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 2.5em;
    display: inline-block; /* Inline links */
    margin: 0.5rem 0.25rem;
    padding: 0.5rem 1rem;
    color: #fff;
    border: 2px solid #fff;
    background: none;
    transition: all 0.2s linear;
    white-space: nowrap;
    position: relative; /* Ensure ::after is relative to the button */
    overflow: hidden; /* Confine ::after to button */
}

.hero .front-content .container-mid a:hover,
.hero .front-content .container-mid a:active {
    color: #111;
}

.hero .front-content .container-mid a:after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0; /* Start from left */
    width: 0;
    height: 100%;
    background: #fff;
    transition: width 0.3s cubic-bezier(1, 0, 0, 1); /* Only animate width */
}

.hero .front-content .container-mid a:hover:after,
.hero .front-content .container-mid a:active:after {
    width: 100%; /* Expand to full button width */
}

.hero .front-content .container-mid .separator {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1.5rem 0 0.5rem;
}

.hero .front-content .footer {
    position: relative;
    display: flex;
    flex-direction: row; /* Inline icons */
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
}

.hero .front-content .footer a {
    margin: 0 0.75rem;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    line-height: 2;
}

.hero .front-content .footer p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    overflow-wrap: break-word;
    opacity: 0.9;
}

.hero .front-content .footer p a {
    font-weight: bold;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .hero .front-content {
        padding: 0.5rem;
    }

    .hero .front-content .container-mid {
        padding: 1rem 0.5rem;
    }

    .hero .front-content .container-mid h1 {
        font-size: 2rem;
    }

    .hero .front-content .container-mid p.subline {
        font-size: 1.2rem;
        max-width: 100%;
    }

    .hero .front-content .container-mid a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
        margin: 0.3rem 0.15rem;
    }

    .hero .front-content .footer {
        padding: 1rem 0.5rem;
        flex-wrap: wrap;
    }

    .hero .front-content .footer a {
        margin: 0 0.5rem;
        font-size: 1.2rem;
    }

    .hero .front-content .footer p {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}

@media (max-width: 500px) {
    .hero .front-content .container-mid a {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
        margin: 0.2rem 0.1rem;
    }

    .hero .front-content .footer a {
        font-size: 1rem;
        margin: 0 0.3rem;
    }
}

@media (orientation: landscape) and (max-height: 550px) {
    .hero .front-content .footer {
        padding: 0.5rem;
    }
}

/** 4. Hero --> Background Content 
*******************************************************************/

.hero .background-content {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero .background-content .background-overlay {
    position: absolute;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    background: #004700;
}

.hero .background-content .background-img {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease;
    opacity: 0;
    background: url(../img/background.jpg) no-repeat center center;
    background-size: cover;
}

body.page-loaded .hero .background-content .background-img {
    opacity: 1;
}