* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'Overseer';
    src: url('assets/fonts/overseer.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #0b0b0b;
    color: #e0e0e0;
    font-family: 'Overseer', Arial, sans-serif;
    overflow-x: hidden;
    transition: background-color 1s ease;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.2) 2px,
        rgba(0, 0, 0, 0.2) 4px
    );
    z-index: 9998;
    pointer-events: none;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 15vh; 
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 9999;
    pointer-events: none;
    animation: crtRefresh 10s linear infinite;
}

@keyframes crtRefresh {
    0% { transform: translateY(-20vh); }
    100% { transform: translateY(120vh); }
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: url('assets/images/nvo_thumbnail.png') no-repeat right center/cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 11, 11, 0.95) 0%, rgba(11, 11, 11, 0.4) 45%, rgba(11, 11, 11, 0) 100%);
    z-index: 1;
    transition: background 3s ease-in-out;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10vw;
    transform: translateY(-50%);
    z-index: 3; 
    max-width: 900px;
    text-align: left;
}

.system-status {
    font-family: monospace;
    color: #4CAF50;
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    animation: pulse 2s infinite; 
}

@keyframes pulse {
    0% { opacity: 1; text-shadow: 0 0 5px #4CAF50; }
    50% { opacity: 0.5; text-shadow: none; }
    100% { opacity: 1; text-shadow: 0 0 5px #4CAF50; }
}

@keyframes fnvFadeIn {
    0% { opacity: 0; filter: blur(4px); transform: scale(0.98); }
    100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

.title {
    font-size: 8rem;
    line-height: 0.9;
    letter-spacing: 4px;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fnvFadeIn 2.5s ease-out forwards;
    animation-delay: 0.5s;
}

#dynamic-title {
    display: inline-block; 
}

.title-accent {
    color: #ffb642; 
    display: inline-block;
    opacity: 0;
    animation: fnvFadeIn 2.5s ease-out forwards;
    animation-delay: 2.0s;
}

.subtitle {
    font-size: 1.8rem;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fnvFadeIn 2.0s ease-out forwards;
    animation-delay: 3.2s;
}

.cta-group {
    display: flex;
    flex-direction: column; 
    gap: 20px;
    align-items: flex-start;
    opacity: 0;
    animation: fnvFadeIn 1.2s ease-out forwards;
    animation-delay: 4.6s; 
}

.secondary-actions {
    display: flex;
    gap: 20px; 
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.4rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    text-align: center;
}

.btn-primary {
    background-color: #ffb642;
    color: #0b0b0b;
    border: 2px solid #ffb642;
    box-shadow: 0 0 15px rgba(255, 182, 66, 0.2);
}

.btn-primary:hover {
    background-color: transparent;
    color: #ffb642;
    box-shadow: 0 0 20px rgba(255, 182, 66, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #0b0b0b;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.btn-patreon {
    background-color: transparent;
    color: #ffb642; 
    border: 1px solid #ffb642; 
    opacity: 0.7; 
}

.btn-patreon:hover {
    opacity: 1;
    background-color: rgba(255, 182, 66, 0.05);
    box-shadow: 0 0 15px rgba(255, 182, 66, 0.3);
    color: #ffb642;
}

.btn-music {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(11, 11, 11, 0.8);
    color: #aaaaaa;
    border: 1px solid #aaaaaa;
    padding: 10px 15px;
    font-family: monospace;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10000; 
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-music:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

.btn-music.playing {
    color: #4CAF50;
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
}

.btn-music.playing:hover {
    background-color: rgba(76, 175, 80, 0.1);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

#dynamic-sections {
    scroll-margin-top: 80px; 
}

.content-section {
    padding: 100px 10vw;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 182, 66, 0.02) 0%, transparent 60%);
}

.section-header {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: #ffb642;
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(255, 182, 66, 0.8);
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.section-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #aaaaaa;
    max-width: 800px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.grid-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 182, 66, 0.2);
    padding: 30px 20px;
    border-radius: 6px;
    font-size: 1.3rem;
    color: #cccccc;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.grid-card:hover {
    transform: translateY(-5px);
    border-color: #ffb642;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(255, 182, 66, 0.15); 
}

.content-list {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    background: rgba(0, 0, 0, 0.4);
    padding: 30px 40px;
    border-radius: 8px;
    border-left: 4px solid #ffb642;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: border-color 0.5s ease;
}

.content-list li {
    font-size: 1.4rem;
    color: #aaaaaa;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.content-list li:last-child {
    margin-bottom: 0;
}

.content-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #ffb642;
    font-family: monospace;
    font-weight: bold;
    text-shadow: 0 0 5px #ffb642;
    transition: color 0.5s ease, text-shadow 0.5s ease;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-content { left: 5vw; right: 5vw; }
    .title { font-size: 4rem; }
    .cta-group { align-items: stretch; }
    .secondary-actions { flex-direction: column; gap: 15px; }
    .content-section h2 { font-size: 2.5rem; }
    .btn-music { bottom: 15px; right: 15px; font-size: 0.9rem; }
}

.leads-section .content-grid { gap: 30px; }

.leads-section .grid-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 182, 66, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: none;
    border-top: 3px solid #ffb642;
    border-bottom: 1px solid rgba(255, 182, 66, 0.2);
    border-radius: 0;
    padding: 50px 20px 30px 20px;
    text-align: center;
    font-size: 1.2rem;
}

.leads-section .grid-card::before {
    content: '[ PERSONNEL RECORD ]';
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #ffb642;
    opacity: 0.6;
    letter-spacing: 1px;
    transition: color 0.5s ease;
}

.leads-section .grid-card:hover {
    background: linear-gradient(180deg, rgba(255, 182, 66, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
    border-top: 3px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.features-section .grid-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 182, 66, 0.15);
    border-left: 4px solid #ffb642; 
    border-radius: 0;
    padding: 20px 25px;
    text-align: left;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.features-section .grid-card::before {
    content: '>';
    color: #ffb642;
    font-family: monospace;
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 15px;
    opacity: 0.7;
    transition: transform 0.2s ease, color 0.5s ease;
}

.features-section .grid-card:hover {
    background: linear-gradient(90deg, rgba(255, 182, 66, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
    border-color: #ffb642;
    transform: translateX(10px);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.4);
}

.features-section .grid-card:hover::before {
    transform: translateX(5px);
    opacity: 1;
}

.achievements-section .achievement-card {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 182, 66, 0.3);
}

.achievements-section .achievement-card.locked {
    opacity: 0.5;
    border-color: #555;
    filter: grayscale(100%);
}

.achievements-section .ach-icon {
    font-size: 2rem;
    color: #ffb642;
    margin-right: 20px;
    font-family: monospace;
    font-weight: bold;
}

.achievements-section .locked .ach-icon {
    color: #777;
}

.achievements-section .ach-name {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 5px;
}

.achievements-section .ach-desc {
    font-size: 1rem;
    color: #aaaaaa;
}

#achievement-popup {
    position: fixed;
    bottom: -150px;
    right: 30px;
    background: #0b0b0b;
    border: 2px solid #ffb642;
    box-shadow: 0 0 20px rgba(255, 182, 66, 0.5);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10001;
    border-radius: 4px;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#achievement-popup.show {
    bottom: 90px;
}

.popup-icon {
    font-size: 2.5rem;
    color: #ffb642;
    text-shadow: 0 0 10px rgba(255, 182, 66, 0.8);
}

.popup-content {
    display: flex;
    flex-direction: column;
}

.popup-header {
    font-family: monospace;
    font-size: 0.8rem;
    color: #4CAF50;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.popup-title {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: bold;
}

.popup-desc {
    font-size: 1rem;
    color: #aaaaaa;
}

body.sierra-madre .hero-overlay {
    background: linear-gradient(to right, rgba(30, 5, 5, 0.95) 0%, rgba(20, 5, 5, 0.7) 45%, rgba(10, 0, 0, 0.3) 100%);
    animation: theCloudFade 4s ease-in-out forwards;
}

@keyframes theCloudFade {
    0% { opacity: 0.8; filter: contrast(1); }
    50% { opacity: 1; filter: contrast(1.5) brightness(0.6); } 
    100% { opacity: 1; filter: contrast(1.2) brightness(0.85); }
}

.sm-glitch {
    animation: deadMoneyFlicker 2.5s ease-out forwards;
}

@keyframes deadMoneyFlicker {
    0% { opacity: 1; transform: skew(0deg); }
    5% { opacity: 0; transform: skew(-10deg); } 
    15% { opacity: 0; } 
    16% { opacity: 1; transform: skew(15deg); } 
    18% { opacity: 0; transform: skew(0deg); }
    25% { opacity: 0; }
    26% { opacity: 0.5; transform: translate(-3px, 2px); } 
    30% { opacity: 0; }
    40% { opacity: 1; transform: translate(3px, -2px); } 
    45% { opacity: 0.4; transform: translate(0, 0); }
    50% { opacity: 1; text-shadow: 0 0 20px currentColor; } 
    60% { opacity: 0.8; }
    100% { opacity: 1; }
}

body.sierra-madre #dynamic-title {
    color: #d32f2f;
    text-shadow: 2px 4px 10px rgba(211, 47, 47, 0.8);
}

body.sierra-madre .btn-primary { 
    background-color: #d32f2f; 
    border-color: #d32f2f; 
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.2); 
}
body.sierra-madre .btn-primary:hover { 
    color: #d32f2f; 
    background-color: transparent;
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.6); 
}

body.sierra-madre .btn-patreon { 
    color: #d32f2f; 
    border-color: #d32f2f; 
}
body.sierra-madre .btn-patreon:hover { 
    color: #d32f2f; 
    background-color: rgba(211, 47, 47, 0.05); 
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.3); 
}

body.sierra-madre .divider { 
    background-color: #d32f2f; 
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.8); 
}

body.sierra-madre .grid-card { border-color: rgba(211, 47, 47, 0.2); }
body.sierra-madre .grid-card:hover { 
    border-color: #d32f2f; 
    background: rgba(255, 255, 255, 0.05); 
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.15); 
}

body.sierra-madre .content-list { border-left-color: #d32f2f; }
body.sierra-madre .content-list li::before { 
    color: #d32f2f; 
    text-shadow: 0 0 5px #d32f2f; 
}

body.sierra-madre .leads-section .grid-card { 
    border-top-color: #d32f2f; 
    border-bottom-color: rgba(211, 47, 47, 0.2); 
    background: linear-gradient(180deg, rgba(211, 47, 47, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
}
body.sierra-madre .leads-section .grid-card::before { color: #d32f2f; }
body.sierra-madre .leads-section .grid-card:hover { 
    border-top-color: #ffffff; 
    background: linear-gradient(180deg, rgba(211, 47, 47, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
}

body.sierra-madre .features-section .grid-card { 
    border-color: rgba(211, 47, 47, 0.15); 
    border-left-color: #d32f2f; 
}
body.sierra-madre .features-section .grid-card::before { color: #d32f2f; }
body.sierra-madre .features-section .grid-card:hover { 
    border-color: #d32f2f; 
    background: linear-gradient(90deg, rgba(211, 47, 47, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%); 
}

body.sierra-madre .site-footer {
    border-top-color: rgba(211, 47, 47, 0.2);
}
body.sierra-madre .site-footer a:hover {
    color: #d32f2f;
    text-shadow: 0 0 8px rgba(211, 47, 47, 0.5);
}

body.sierra-madre #achievement-popup {
    border-color: #d32f2f;
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.5);
}
body.sierra-madre .popup-icon {
    color: #d32f2f;
    text-shadow: 0 0 10px rgba(211, 47, 47, 0.8);
}
body.sierra-madre .achievements-section .ach-icon {
    color: #d32f2f;
}

.site-footer {
    text-align: center;
    padding: 60px 20px;
    background-color: #0b0b0b;
    border-top: 1px solid rgba(255, 182, 66, 0.1);
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.site-footer a {
    color: #aaaaaa;
    text-decoration: none;
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-footer a:hover {
    color: #ffb642;
    text-shadow: 0 0 8px rgba(255, 182, 66, 0.5);
}

.user-widget {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 10000;
    font-family: monospace;
}

.btn-login {
    color: #ffb642;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-login:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#logged-in-ui {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-greeting {
    color: #4CAF50;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

#display-username {
    color: #ffffff;
    font-weight: bold;
}

.btn-logout {
    background: transparent;
    border: 1px solid #d32f2f;
    color: #d32f2f;
    padding: 4px 10px;
    cursor: pointer;
    font-family: monospace;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(211, 47, 47, 0.1);
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.4);
}

body.sierra-madre .btn-login {
    color: #d32f2f;
}

body.sierra-madre .btn-login:hover {
    text-shadow: 0 0 10px rgba(211, 47, 47, 0.5);
}

body.sierra-madre .user-greeting {
    color: #d32f2f;
}

.hidden {
    display: none !important;
}