/* Modern NOXGAMES Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Montserrat:wght@700;900&display=swap');

:root {
    --nox-blue-dark: #001a33;
    --nox-blue: #003366;
    --nox-blue-light: #004d99;
    --nox-accent: #007BFF;
    --nox-cyan: #00d2ff;
    --nox-magenta: #ff00ff;
}

body {
    background-color: var(--nox-blue-dark);
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    opacity: 0; /* For initial fade in */
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

.navbar-solid {
    background: rgba(2, 10, 20, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
}

.lang-toggle-btn {
    min-width: 3.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lang-toggle-btn:hover {
    color: white;
}

.lang-toggle-btn.is-active {
    color: white;
    background: rgba(0, 123, 255, 0.24);
    border-color: rgba(0, 210, 255, 0.35);
    box-shadow: 0 0 18px rgba(0, 123, 255, 0.18);
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--nox-blue-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--nox-accent);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--nox-cyan);
}

/* Hero Section */
.hero-bg {
    background: radial-gradient(circle at center, var(--nox-blue) 0%, var(--nox-blue-dark) 100%);
    position: relative;
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('assets/images/background.webp') center/cover no-repeat;
    opacity: 0.2;
    mix-blend-mode: overlay;
}

/* Glitch Effect for Titles */
.glitch {
    position: relative;
    color: white;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--nox-blue-dark);
}
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--nox-magenta);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--nox-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    20% { clip: rect(80px, 9999px, 90px, 0); }
    40% { clip: rect(10px, 9999px, 50px, 0); }
    60% { clip: rect(60px, 9999px, 20px, 0); }
    80% { clip: rect(50px, 9999px, 80px, 0); }
    100% { clip: rect(90px, 9999px, 30px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(10px, 9999px, 60px, 0); }
    20% { clip: rect(50px, 9999px, 20px, 0); }
    40% { clip: rect(80px, 9999px, 40px, 0); }
    60% { clip: rect(20px, 9999px, 90px, 0); }
    80% { clip: rect(90px, 9999px, 10px, 0); }
    100% { clip: rect(40px, 9999px, 50px, 0); }
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--nox-accent);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(to right, var(--nox-cyan), var(--nox-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating Animation */
.float {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Button Styles */
.btn-neon {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}
.btn-neon::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--nox-accent);
    transition: all 0.3s ease;
    z-index: -1;
    transform: skewX(-20deg);
}
.btn-neon:hover::before {
    width: 150%;
}
.btn-neon:hover {
    box-shadow: 0 0 20px var(--nox-accent);
}

.video-embed-shell {
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-embed-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-embed-mount,
.video-embed-fallback {
    width: 100%;
    height: 100%;
}

.video-embed-fallback {
    position: relative;
}

.video-embed-poster {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.42;
}

.video-embed-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
    text-align: center;
}

.video-embed-message {
    max-width: 34rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    line-height: 1.6;
}

.video-embed-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12rem;
    padding: 0.9rem 1.4rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 123, 255, 0.22);
    color: white;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.video-embed-link:hover {
    background: rgba(0, 123, 255, 0.36);
    border-color: rgba(0, 210, 255, 0.4);
    transform: translateY(-1px);
}

/* Job Detail Pages */
.job-page {
    background:
        radial-gradient(circle at top left, rgba(0, 123, 255, 0.18), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(0, 210, 255, 0.12), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(255, 0, 255, 0.08), transparent 32%),
        linear-gradient(180deg, #02101f 0%, #000c17 45%, #00060d 100%);
    min-height: 100vh;
}

.job-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 95%);
}

.job-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(18px);
    opacity: 0.45;
    pointer-events: none;
}

.job-shell {
    position: relative;
    overflow: hidden;
}

.job-shell::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.job-outline {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 16, 31, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.job-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.job-metric {
    position: relative;
    overflow: hidden;
}

.job-metric::before {
    content: '';
    position: absolute;
    inset: auto -10% 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--nox-cyan), transparent);
    opacity: 0.8;
}

.job-panel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border-radius: 1.75rem;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.job-panel:hover {
    border-color: rgba(0, 210, 255, 0.36);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.job-panel-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 1.6rem;
    background: transparent;
    color: inherit;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.job-panel-toggle:focus-visible {
    outline: 2px solid var(--nox-cyan);
    outline-offset: -2px;
}

.job-panel-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.18);
    color: var(--nox-cyan);
    flex-shrink: 0;
}

.job-panel-label {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.job-panel-copy {
    flex: 1;
}

.job-panel-meta {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.job-panel-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.job-panel-chevron {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.job-panel.is-open .job-panel-chevron {
    transform: rotate(180deg);
    background: rgba(0, 123, 255, 0.22);
    border-color: rgba(0, 210, 255, 0.4);
}

.job-panel-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0.6;
    transition: max-height 0.45s ease, opacity 0.3s ease, padding 0.3s ease;
}

.job-panel.is-open .job-panel-content {
    opacity: 1;
}

.job-panel-body {
    padding: 0 1.6rem 1.6rem;
}

.job-list {
    display: grid;
    gap: 0.9rem;
}

.job-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.job-list li::before {
    content: '';
    width: 0.6rem;
    height: 0.6rem;
    margin-top: 0.55rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--nox-cyan), var(--nox-accent));
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.6);
    flex-shrink: 0;
}

.job-callout {
    border-left: 3px solid rgba(0, 210, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
}

.job-image-frame {
    position: relative;
    overflow: hidden;
}

.job-image-frame::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
}

.job-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-mini-link {
    position: relative;
}

.job-mini-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--nox-cyan), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.job-mini-link:hover::after {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .job-panel-toggle {
        padding: 1.2rem 1.1rem;
        gap: 1rem;
    }

    .job-panel-body {
        padding: 0 1.1rem 1.25rem;
    }

    .job-chip {
        width: 100%;
        justify-content: center;
    }
}
