:root {
    --primary-color: #ffffff;
    --accent-color: #6366f1;
    --bg-dark: #000000;
    --solid-bg: #000000;
    --solid-border: #444444;
}

html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--primary-color);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layered Background */
.background-layers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: var(--bg-dark);
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    transition: transform 0.1s ease-out;
}

/* Mountain Layers Masking */
.layer-mtn-distant,
.layer-mtn-mid,
.layer-mtn-fore {
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 70%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 70%);
}




.layer-mtn-mid {
    background-image: url('assets/mountains_mid.png');
    z-index: 4;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 60%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 60%);
}

.layer-mtn-fore {
    background-image: url('assets/mountains_fore.png');
    z-index: 6;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 50%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 50%);
}

.layer-clouds {
    background-image: url('assets/clouds.png');
    background-size: 200% auto;
    background-repeat: repeat-x;
    mix-blend-mode: screen;
    opacity: 0.25;
    /* Mask that matches background size to fade the image edges specifically */
    -webkit-mask-image: linear-gradient(to right, 
        transparent 0%, 
        rgba(0,0,0,1) 10%, 
        rgba(0,0,0,1) 90%, 
        transparent 100%);
    mask-image: linear-gradient(to right, 
        transparent 0%, 
        rgba(0,0,0,1) 10%, 
        rgba(0,0,0,1) 90%, 
        transparent 100%);
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    /* Boost contrast to ensure dark areas are pure black for the screen blend mode */
    filter: contrast(150%) brightness(0.8);
}

.layer-clouds-slow {
    z-index: 3;
    animation: drift 180s linear infinite;
}



@keyframes drift {
    from {
        background-position: 0% 50%;
        -webkit-mask-position: 0% 0%;
        mask-position: 0% 0%;
    }

    to {
        background-position: 200% 50%;
        -webkit-mask-position: 200% 0%;
        mask-position: 200% 0%;
    }
}

#app {
    position: relative;
    z-index: 20;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem;
}

.main-logo {
    height: 300px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 60px rgba(197, 160, 89, 0.6));
}

/* Header & Logo */
header {
    display: flex;
    justify-content: flex-start;
}

.logo-container img {
    height: 70px;
    filter: drop-shadow(0 0 20px #ffffff);
    transition: transform 0.3s ease;
}

/* Main Content */
main {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.branding-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    animation: slideIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.content-box {
    max-width: 500px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px -20px #000000;
    animation: slideIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 7rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.2rem;
    background: linear-gradient(to bottom, #f9e29c 0%, #c5a059 50%, #9b7e46 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 0.9;
    filter: drop-shadow(0 0 30px rgba(197, 160, 89, 0.4));
}

.slogan {
    font-size: 1.45rem;
    font-weight: 700;
    color: #c5a059;
    margin-bottom: 0;
    line-height: 1;
    letter-spacing: 1.12rem;
    text-indent: 1.12rem;
    /* Compensate for last letter spacing */
    width: 100%;
    text-align: center;
    text-shadow: 0 0 15px rgba(197, 160, 89, 0.5);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-icon {
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.1);
    background: #c5a059;
    box-shadow: 0 15px 30px #9b7e46;
}

/* Collaboration */
.collaboration {
    font-size: 1.1rem;
    color: #ffffff;
}

.email-link {
    display: block;
    color: #c5a059;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: #fff;
    letter-spacing: 1px;
}

/* Byron Locked */
.byron-locked {
    position: fixed;
    bottom: -40px;
    /* Overhang */
    right: -40px;
    /* Overhang */
    width: 40%;
    max-width: 800px;
    z-index: -1;
    pointer-events: none;
    transform: scale(1.05);
    transform-origin: bottom right;
}

.byron-locked img {
    width: 100%;
    filter: drop-shadow(-20px 0 50px #000000);
}

/* Footer */
footer {
    position: relative;
    z-index: 200;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.mobile-break {
    display: none;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    h1 {
        font-size: 4.5rem;
    }

    .content-box {
        max-width: 500px;
        padding: 3rem;
    }

    .byron-locked {
        display: none;
    }
}

@media (max-width: 768px) {
    #app {
        padding: 3rem 1.5rem;
        justify-content: flex-start;
        gap: 4rem;
    }

    .main-logo {
        height: 140px;
    }

    h1 {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .slogan {
        font-size: 0.55rem;
        letter-spacing: 0.32rem;
        text-indent: 0.32rem;
    }

    .content-box {
        max-width: 100%;
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    footer {
        text-align: center;
        padding-bottom: 2rem;
    }

    .mobile-break {
        display: block;
    }
}