:root {
    --primary-color: #ff8c00;
    --primary-glow: rgba(255, 140, 0, 0.5);
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --bg-dark: #0a0a0a;
    --glass-bg: rgba(10, 10, 10, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-light);
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Landing page specific to prevent scroll if not needed */
body:not(.apply-page) {
    height: 100vh;
    overflow: hidden;
}

/* Background video */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Glassmorphism overlay for readability and mood */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
    backdrop-filter: blur(2px);
}

/* Navigation & Language Toggle */
.navbar {
    position: fixed;
    top: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar:hover {
    border-color: rgba(255, 140, 0, 0.3);
    background: rgba(10, 10, 10, 0.6);
}

.nav-links {
    display: flex;
    gap: 1rem;
}




.nav-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.7rem 1.4rem;
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
    transform: translateY(-2px);
}

.nav-btn.active {
    color: var(--primary-color);
}


.nav-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2), 0 4px 15px rgba(0,0,0,0.3);
    transform: translateY(-3px);
    border-color: rgba(255, 140, 0, 0.4);
    color: #fff;
}

.nav-btn:hover::after {
    opacity: 1;
}

.nav-btn:active {
    transform: translateY(-1px);
}

/* Main Hero Content */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    z-index: 1;
}

.logo-container {
    animation: float 6s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

.logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Button Group & Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff8c00 0%, #e65c00 100%);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(230, 92, 0, 0.4), 
                inset 0 2px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,140,0,0.5);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(230, 92, 0, 0.6),
                inset 0 2px 0 rgba(255,255,255,0.3);
}

.cta-button:active {
    transform: translateY(1px);
}

.discord-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(88, 101, 242, 0.15); /* Discord color with transparency */
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(88, 101, 242, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards; /* Fades in slightly after the main button */
    backdrop-filter: blur(5px);
}

.discord-button:hover {
    background: rgba(88, 101, 242, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-icon {
    font-size: 1rem;
    display: flex;
    align-items: center;
}

/* Footer */
footer {
    padding: 1.5rem;
    text-align: center;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo {
        max-width: 90%;
    }
    .subtitle {
        font-size: 1.1rem;
    }
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    .glass-card {
        padding: 2rem;
    }
    .form-row {
        flex-direction: column;
    }
}

/* --- Application Form Styles --- */
.apply-page {
    overflow-y: auto;
    display: block;
}

.apply-container {
    min-height: 100vh;
    padding: 8rem 2rem 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1;
    position: relative;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 800px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: cardEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    overflow: hidden;
}

@keyframes cardEnter {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Step Indicators */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 10px;
}

.step-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.step-dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: scale(1.2);
}

.step-line {
    height: 2px;
    width: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Slide animations */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-50px); }
}
@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(50px); }
}
@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-8px); }
    40%      { transform: translateX(8px); }
    60%      { transform: translateX(-5px); }
    80%      { transform: translateX(5px); }
}

.form-title {
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}

.form-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 140, 0, 0.3);
    padding-bottom: 0.5rem;
}

.section-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
    flex: 1;
}

.form-group.half {
    width: 50%;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    font-size: 0.95rem;
    user-select: none;
    margin-bottom: 0;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.attention {
    color: #ff4d4d;
}

/* Profile Preview */
#profile-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 140, 0, 0.3);
    animation: fadeIn 0.4s ease;
}

#profile-preview.hidden {
    display: none;
}

#mc-head {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    image-rendering: pixelated;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.confirm-profile p {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Sliders */
.skill-sliders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
}

.skill-val {
    color: var(--primary-color);
    font-weight: 800;
}

.skill-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    outline: none;
}

.skill-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
    transition: transform 0.2s;
}

.skill-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Submit Button & States */
.form-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.row-actions {
    flex-direction: row;
    justify-content: space-between;
}

.submit-btn {
    background: linear-gradient(135deg, #ff8c00 0%, #e65c00 100%);
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-family: inherit;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(230, 92, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ffb347, #e65c00, #ff8c00);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(230, 92, 0, 0.65), 0 0 30px rgba(255, 140, 0, 0.3);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:active {
    transform: translateY(-1px) scale(0.99);
}

.submit-btn:disabled {
    background: #555;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.spinner.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-msg {
    color: #ff4d4d;
    font-weight: 500;
    text-align: center;
    display: none;
}

.success-msg {
    color: #4CAF50;
    font-weight: 500;
    text-align: center;
    display: none;
    animation: successPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes successPop {
    from { opacity: 0; transform: scale(0.9) translateY(5px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Input focus microanimation */
input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    transform: translateY(-1px);
}

/* Form section subtle hover */
.form-section {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-section:hover {
    border-color: rgba(255, 140, 0, 0.15);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.04);
}

/* Mc head pop-in */
#mc-head {
    animation: headPop 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes headPop {
    from { opacity: 0; transform: scale(0.5) rotate(-10deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Step dot done state */
.step-dot.done {
    background: rgba(255, 140, 0, 0.5);
    box-shadow: none;
    transform: scale(1);
}

/* hidden utility */
.hidden {
    display: none !important;
}

/* ---- Page Transition Overlay ---- */
.page-transition {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.page-transition.fade-in {
    opacity: 1;
    pointer-events: all;
}

/* ---- Apply Page Background (dark atmospheric gradient) ---- */
.apply-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 20% 60%, rgba(80, 40, 10, 0.7) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 30%, rgba(40, 20, 5, 0.5) 0%, transparent 55%),
                linear-gradient(160deg, #0f0a04 0%, #0a0a0a 50%, #060408 100%);
    z-index: -2;
    opacity: 0;
    animation: bgFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes bgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* apply.html needs a darker overlay since there's no video */
.apply-page .overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.75) 100%);
    backdrop-filter: blur(0px);
}

/* ---- Apply Now nav button — clean hover only, no animation conflict ---- */
#apply-link {
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#apply-link:hover {
    background: rgba(255, 140, 0, 0.15);
    border-color: rgba(255, 140, 0, 0.55);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.25), 0 4px 15px rgba(0,0,0,0.3);
    color: #ffb347;
    transform: translateY(-3px);
}

#apply-link:active {
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
}

/* ---- Success Screen (shown after submit, locks the page) ---- */
.success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    opacity: 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: iconBounce 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes iconBounce {
    from { opacity: 0; transform: scale(0.3); }
    to   { opacity: 1; transform: scale(1); }
}

.success-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.success-body {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* ---- Sponsor Strip (index.html) ---- */
.sponsor-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.sponsor-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sponsor-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(30, 200, 100, 0.08);
    border: 1px solid rgba(30, 200, 100, 0.25);
    color: rgba(80, 230, 140, 0.9);
    text-decoration: none;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sponsor-btn:hover {
    background: rgba(30, 200, 100, 0.18);
    border-color: rgba(30, 200, 100, 0.55);
    box-shadow: 0 0 20px rgba(30, 200, 100, 0.2), 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
    color: #6effa0;
}

.sponsor-btn:active {
    transform: translateY(0);
}

/* ---- FPS Boost CTA (success screen) ---- */
.fps-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: cardEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.fps-cta-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.25);
    animation: headPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.fps-cta-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.fps-cta-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 400px;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

.fps-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.35);
    color: #ffb347;
    text-decoration: none;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 0.4rem;
}

.fps-cta-btn:hover {
    background: rgba(255, 140, 0, 0.2);
    border-color: rgba(255, 140, 0, 0.7);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.25), 0 4px 15px rgba(0,0,0,0.3);
    transform: translateY(-3px);
    color: #ffd080;
}

.fps-cta-btn:active {
    transform: translateY(-1px);
}

