/* 
   SimpplGames - Premium Dark/Glassmorphic Theme 
   Typography: Orbitron (Headings), Outfit (Body)
*/

:root {
    --bg-base: #050508;
    --accent-primary: #ff2a5f; /* Neon Red/Pink */
    --accent-secondary: #00f3ff; /* Cyan */
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;
    
    --glass-bg: rgba(15, 15, 20, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Base UI Elements */
.highlight {
    color: var(--accent-primary);
    text-shadow: 0 0 15px rgba(255, 42, 95, 0.4);
}

/* Background & GLSL */
#glslCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: var(--bg-base);
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-base) 100%);
    pointer-events: none;
}

/* Headers & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 12px 30px;
    box-shadow: var(--glass-glow);
    transition: var(--transition);
}

/* Scrolled State: Full width solid bar instead of pill */
header.scrolled {
    padding: 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

header.scrolled .glass-nav {
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 15px 24px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.logo a {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 2px;
}

/* Glitch Effect */
.glitch-effect {
    position: relative;
}
.glitch-effect:hover::before,
.glitch-effect:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.glitch-effect:hover::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-primary);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}
.glitch-effect:hover::after {
    left: -2px;
    text-shadow: 2px 0 var(--accent-secondary);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(24px, 9999px, 86px, 0); }
    20% { clip: rect(81px, 9999px, 81px, 0); }
    40% { clip: rect(69px, 9999px, 35px, 0); }
    60% { clip: rect(27px, 9999px, 98px, 0); }
    80% { clip: rect(98px, 9999px, 66px, 0); }
    100% { clip: rect(4px, 9999px, 49px, 0); }
}

nav ul {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

.nav-item:hover {
    color: var(--text-main);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--accent-primary);
}

.nav-item:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    margin: 6px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 42, 95, 0.1);
    border: 1px solid rgba(255, 42, 95, 0.3);
    border-radius: 50px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(255, 42, 95, 0.4);
}

.btn-primary i {
    margin-left: 10px;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 42, 95, 0.6);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-main);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Sections General */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.game-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.game-card.featured {
    grid-column: span 12;
}

.game-card.unreleased {
    grid-column: span 6;
}

@media (max-width: 900px) {
    .game-card.unreleased {
        grid-column: span 12;
    }
}

.game-card-inner {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover .game-card-inner {
    border-color: rgba(255, 42, 95, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(255, 42, 95, 0.1);
}

.game-img-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.game-card.unreleased .game-img-wrapper {
    height: 250px;
}

.game-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.img-overlay {
    position: absolute;
    inset: 0;
    /* Soft fade directly from the glass background to transparent */
    background: linear-gradient(to top, rgba(10, 10, 15, 1) 0%, rgba(10, 10, 15, 0) 100%);
    pointer-events: none;
    z-index: 1;
}



.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-badge.live {
    background: rgba(0, 243, 255, 0.15);
    color: var(--accent-secondary);
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.status-badge.wishlist {
    background: rgba(0, 243, 255, 0.15);
    color: var(--accent-secondary);
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.status-badge.upcoming {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-info {
    padding: 30px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
    background: transparent;
}

.game-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.game-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
    flex-grow: 1;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: auto;
}

/* Philosophy Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(25, 25, 30, 0.65);
    border-color: rgba(255, 255, 255, 0.15);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 42, 95, 0.1);
    border: 1px solid rgba(255, 42, 95, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-wrapper i {
    font-size: 24px;
    color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Dual Section (Careers / Community) */
.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .dual-grid {
        grid-template-columns: 1fr;
    }
}

.dual-pane {
    position: relative;
    overflow: hidden;
}

.dual-pane::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 243, 255, 0.05), transparent 60%);
    pointer-events: none;
}

#careers::before {
    background: radial-gradient(circle at top right, rgba(255, 42, 95, 0.08), transparent 60%);
}

.pane-content {
    position: relative;
    z-index: 1;
}

.pane-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0.5;
}

.dual-pane h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.dual-pane p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--accent-primary);
    color: var(--text-main);
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.4);
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-weight: 600;
}

.social-btn:hover {
    background: rgba(255,255,255,0.05);
}

.social-btn.discord:hover {
    border-color: #5865F2;
    color: #5865F2;
}

.social-btn.youtube:hover {
    border-color: #FF0000;
    color: #FF0000;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(5,5,8,0.9);
    backdrop-filter: blur(10px);
    padding: 80px 0 30px;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.logo-text {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 16px;
}

.brand-desc {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.contact-email {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.contact-email:hover {
    color: var(--text-main);
}

.social-row {
    display: flex;
    gap: 16px;
}

.social-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 1.2rem;
}

.social-row a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 42, 95, 0.4);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

.sub-text {
    font-size: 0.8rem;
    margin-top: 4px;
    opacity: 0.7;
}

.legal-links a {
    color: var(--text-muted);
}
.legal-links a:hover {
    color: var(--text-main);
}

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        gap: 40px;
        z-index: 999;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-item {
        font-size: 1.5rem;
    }

    .burger {
        display: block;
        z-index: 1000;
    }
    
    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-6px, 5px);
    }
    .burger.toggle .line2 {
        opacity: 0;
    }
    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-6px, -5px);
    }
    
    .glass-nav {
        padding: 15px 20px;
    }
}
