/* --- Core Resets & Brand Color Tokens --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --clr-nav-bg: #373b3e;       /* Deep slate base gray */
    --clr-text-muted: #bec8d1;   /* Crisp muted ice blue font color */
    --clr-light-teal: #86cecb;   /* Soft bright accent teal */
    --clr-dark-teal: #137a7f;    /* Rich, deep structural teal */
    --clr-magenta: #e12885;      /* Vibrant brand accent pink */
    
    --clr-body-bg: #1a2229;      /* Cinematic dark background */
    --clr-card-bg: #222527;      /* High contrast panel gray */
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Dedicated ultra-smooth transition curve for reveal mechanics */
    --reveal-transition: all 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-body-bg);
    color: #fff;
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Global Section Utilities --- */
.content-section {
    padding: 6rem 2rem;
    width: 100%;
}

.alternate-bg {
    background-color: var(--clr-card-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.compact-container {
    max-width: 650px;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--clr-magenta);
    margin-top: 0.5rem;
}

.section-title.center-text::after {
    margin: 0.5rem auto 0 auto;
}

/* --- SCROLL-DRIVEN REVEAL ANIMATIONS --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--reveal-transition);
    will-change: transform, opacity;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation Bar --- */
.navbar {
    background-color: var(--clr-nav-bg);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.5rem 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-group {
    display: flex;
    gap: 4rem;
}

.left-nav {
    justify-content: flex-end;
    margin-right: 5rem;
}

.right-nav {
    justify-content: flex-start;
    margin-left: 5rem;
}

.nav-link {
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff;
}

.nav-link.active {
    color: var(--clr-magenta);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    height: 75px; 
    width: auto;
    display: block;
    transition: var(--transition);
}

/* --- Cinematic Hero Backdrop Section --- */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10%;
    height: calc(100vh - 86px);
    background: radial-gradient(circle at 75% 45%, rgba(26, 34, 41, 0.1) 0%, rgba(15, 20, 25, 0.9) 75%), 
                url('sword.jpg') no-repeat;
    background-size: cover;
    background-position: center center;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    letter-spacing: 0.5px;
}

.title-underline {
    width: 270px;
    height: 4px;
    background-color: var(--clr-magenta);
    margin-top: 0.75rem;
    margin-bottom: 1.75rem;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* --- Interface Buttons --- */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 0.85rem 2.2rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-projects {
    background-color: rgba(19, 122, 127, 0.5); 
    color: var(--clr-light-teal);
    border: 2px solid var(--clr-dark-teal);
}

.btn-projects:hover {
    background-color: var(--clr-dark-teal);
    color: #fff;
}

.btn-discord {
    background-color: rgba(55, 59, 62, 0.4);
    color: #fff;
    border: 2px solid var(--clr-magenta);
}

.btn-discord:hover {
    background-color: var(--clr-magenta);
    box-shadow: 0 0 20px rgba(225, 40, 133, 0.45);
}

/* --- Dynamic Split Accent Footer Bars --- */
.bottom-accent-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    height: 8px;
}

.bar-segment.light-teal {
    width: 38%;
    background-color: var(--clr-light-teal);
}

.bar-segment.dark-teal {
    width: 62%;
    background-color: var(--clr-dark-teal);
}

/* --- Games Stack Grid Component --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.game-card {
    background-color: var(--clr-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--clr-light-teal);
}

.game-img-placeholder {
    height: 220px;
    position: relative;
}

.badge.beta {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--clr-magenta);
    color: #fff;
    font-family: var(--font-heading);
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.game-details {
    padding: 1.75rem;
}

.game-details h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.game-details p {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* --- Solo Developer Roster Layout --- */
.solo-developer-container {
    max-width: 800px;
    margin: 0 auto;
}

.solo-profile {
    background-color: var(--clr-nav-bg);
    padding: 4rem 3rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.developer-avatar {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border: 3px solid var(--clr-dark-teal);
    border-radius: 50%;
    margin: 0 auto;
    display: block;
    background-color: var(--clr-body-bg);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.developer-avatar:hover {
    transform: scale(1.05);
    border-color: var(--clr-light-teal);
}

.developer-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.25rem;
    color: #fff;
}

.developer-role {
    font-size: 1.1rem;
    color: var(--clr-light-teal);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-top: 0.25rem;
}

.profile-divider {
    width: 80px;
    height: 2px;
    background-color: var(--clr-magenta);
    margin: 2rem auto;
}

.solo-profile .section-intro {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

/* --- Contact Intel Transmission Box --- */
.contact-subtext {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
}

.intel-form {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.intel-form input {
    flex: 1;
    background-color: var(--clr-card-bg);
    border: 2px solid var(--clr-nav-bg);
    padding: 1rem 1.5rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    border-radius: 4px;
}

.intel-form input:focus {
    outline: none;
    border-color: var(--clr-magenta);
}

.btn-submit {
    background-color: var(--clr-light-teal);
    color: #000;
    border: none;
    padding: 0 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #fff;
    color: var(--clr-magenta);
}

/* --- Layout Footer Section --- */
.main-footer {
    background-color: #111416;
    padding: 2.5rem 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center; /* Center links and gamepad icon vertically */
    gap: 2rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--clr-magenta);
}

/* Tactical gamepad button layout configuration */
.footer-btn-controller {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.45rem;
    border-radius: 4px;
    color: var(--clr-text-muted) !important;
}

.footer-btn-controller svg {
    width: 18px;
    height: 18px;
    display: block;
}

.footer-btn-controller:hover {
    color: var(--clr-light-teal) !important;
    border-color: var(--clr-light-teal);
    box-shadow: 0 0 10px rgba(134, 206, 203, 0.25);
    background-color: #1a2229;
}

/* --- INTERACTIVE SCROLL TO TOP COMPONENT --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--clr-card-bg);
    color: var(--clr-light-teal);
    border: 2px solid var(--clr-nav-bg);
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--clr-magenta);
    border-color: var(--clr-magenta);
    color: #fff;
    box-shadow: 0 0 15px rgba(225, 40, 133, 0.4);
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

/* --- Universal Display Responsive System --- */
@media (max-width: 1024px) {
    .navbar {
        padding: 1.5rem 2rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-group {
        justify-content: center !important;
        margin: 0 !important;
        gap: 3rem;
    }
    
    .logo-container {
        grid-row: 1;
    }
    
    .main-logo {
        height: 65px;
    }
    
    .hero-section {
        background-position: 70% center;
        padding: 0 5%;
    }
}

@media (max-width: 650px) {
    .nav-group {
        gap: 1.5rem;
    }
    
    .intel-form {
        flex-direction: column;
    }
    
    .btn-submit {
        padding: 1rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .solo-profile {
        padding: 2.5rem 1.5rem;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}