@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;500;700&display=swap');

:root {
    --primary: #E68D2E;
    /* Ashborn Metallic Orange */
    --secondary: #A05210;
    /* Dark Bronze/Ember */
    --accent: #FFD700;
    /* Gold Highlight */
    --bg-dark: #050505;
    /* Deep Black */
    --glass-bg: rgba(20, 15, 10, 0.7);
    /* Warm tinted glass */
    --glass-border: rgba(230, 141, 46, 0.3);
    --text-main: #ffffff;
    --text-dim: #c0a080;
    /* Warm grey */

    --neon-glow: 0 0 10px var(--secondary), 0 0 20px var(--primary);
    --neon-text: 0 0 5px var(--secondary), 0 0 10px var(--primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
.brand {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

/* --- Utilities --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.neon-text {
    text-shadow: var(--neon-text);
}

.neon-box {
    box-shadow: var(--neon-glow);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Navigation --- */
/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--primary);
    padding: 0.5rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary);
    margin-left: 1rem;
    /* Added margin for better spacing */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-right: 1rem;
    /* Added margin to balance */
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
    box-shadow: 0 0 5px var(--primary);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    margin-right: 1rem;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    /* Offset for fixed navbar */
}

/* Simulated Video Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a0505 0%, #000000 100%);
    z-index: -2;
}

/* Particles Overlay (Simulated with simple CSS for now) */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(var(--primary) 1px, transparent 1px),
        radial-gradient(var(--secondary) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.1;
    animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50px);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-dark) 95%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 1rem;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    letter-spacing: 8px;
    font-weight: 900;

    /* Metallic Gradient Text */
    background: linear-gradient(to bottom,
            #FFF 0%,
            #FFD700 20%,
            #E68D2E 50%,
            #A05210 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    /* Animated Breathing Glow */
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(230, 141, 46, 0.5));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(230, 141, 46, 1));
        transform: scale(1.02);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.cta-button {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0% 100%, 0% 30%);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--primary);
}

.hero-logo {
    width: 220px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(230, 141, 46, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- Stats Overlay (Now Decorative Bar) --- */
.hero-stats {
    position: absolute;
    bottom: 2rem;
    left: 10%;
    width: 80%;
    height: 6px;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
    border-radius: 4px;
    padding: 0;
    border: none;
    /* Removed flex properties as it is now a simple bar */
}

/* Removed .stat-item, .stat-value, .stat-label as they are deleted from HTML */

/* --- Sections Common --- */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: white;
    position: relative;
    /* Removed absolute centering to avoid conflict with scroll reveal transform */
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    /* Fixed width underline looks cleaner than % usually */
    height: 4px;
    background: var(--primary);
    margin: 0.5rem auto 0;
    box-shadow: 0 0 10px var(--primary);
}

/* Left aligned alignment for specific cases */
.text-left .section-title {
    left: 0;
    transform: none;
    text-align: left;
}

.text-left .section-title::after {
    margin: 0.5rem 0 0;
}

/* --- Rosters (Cards) --- */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 0 1rem;
}

.roster-card {
    height: 400px;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.4) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.roster-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.3);
    border-color: var(--secondary);
}

.roster-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
    opacity: 0.6;
    z-index: -1;
}

.roster-card:hover .roster-bg {
    transform: scale(1.1);
    opacity: 0.8;
}

.roster-info h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.roster-info p {
    color: #ccc;
    margin-bottom: 1rem;
}

.roster-badge {
    display: inline-block;
    background: var(--primary);
    color: black;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* --- Academy Preview --- */
.academy-section {
    background: linear-gradient(to top, #111, #0a0a0a);
}

.academy-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.academy-text {
    flex: 1;
    min-width: 300px;
}

.academy-text h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--text-main);
}

.academy-text p {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.academy-preview {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cyberpunk Academy Card */
/* Cyberpunk Academy Card */
.academy-card-cyber {
    width: 360px;
    height: 280px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.95), rgba(20, 15, 10, 0.9));
    border: 2px solid var(--primary);
    box-shadow:
        0 0 20px rgba(230, 141, 46, 0.3),
        0 0 40px rgba(230, 141, 46, 0.1),
        inset 0 0 30px rgba(230, 141, 46, 0.05);
    clip-path: polygon(0 20px, 20px 0,
            calc(100% - 20px) 0, 100% 20px,
            100% calc(100% - 20px), calc(100% - 20px) 100%,
            20px 100%, 0 calc(100% - 20px));
    overflow: hidden;
    transition: all 0.3s ease;
}

.academy-card-cyber:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 30px rgba(230, 141, 46, 0.5),
        0 0 60px rgba(230, 141, 46, 0.2),
        inset 0 0 40px rgba(230, 141, 46, 0.1);
    border-color: var(--accent);
}

/* Cyberpunk Grid Background */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(230, 141, 46, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 141, 46, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Animated Glow Effect */
.cyber-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center,
            rgba(230, 141, 46, 0.15) 0%,
            transparent 50%);
    animation: cyber-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cyber-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Icon Wrapper */
.academy-icon-wrapper {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(230, 141, 46, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    position: relative;
}

.academy-icon-wrapper i {
    font-size: 4rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary));
    animation: icon-float 4s ease-in-out infinite;
}

@keyframes icon-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(3deg);
    }

    75% {
        transform: translateY(-4px) rotate(-2deg);
    }
}

.academy-card-cyber:hover .academy-icon-wrapper i {
    filter: drop-shadow(0 0 20px var(--accent));
    color: var(--accent);
}

/* Label */
.academy-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(230, 141, 46, 0.5);
    position: relative;
    z-index: 1;
}

/* Corner Decorations */
.cyber-corners {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cyber-corners .corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: var(--primary);
    border-style: solid;
    opacity: 0.8;
}

.cyber-corners .corner.tl {
    top: 8px;
    left: 8px;
    border-width: 2px 0 0 2px;
}

.cyber-corners .corner.tr {
    top: 8px;
    right: 8px;
    border-width: 2px 2px 0 0;
}

.cyber-corners .corner.bl {
    bottom: 8px;
    left: 8px;
    border-width: 0 0 2px 2px;
}

.cyber-corners .corner.br {
    bottom: 8px;
    right: 8px;
    border-width: 0 2px 2px 0;
}

.academy-card-cyber:hover .cyber-corners .corner {
    border-color: var(--accent);
    box-shadow: 0 0 5px var(--accent);
}

/* --- Recruitment Offers --- */
.offers-section {
    background: var(--bg-dark);
    /* Slightly lighter dark to separate from Recruitment bg */
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.offer-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(230, 141, 46, 0.15);
    border-color: var(--primary);
}

.offer-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    background: rgba(230, 141, 46, 0.1);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
}

.offer-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.offer-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.offer-badge.urgent {
    background: rgba(220, 20, 60, 0.2);
    color: #FF4500;
    border: 1px solid #FF4500;
}

.offer-badge.open {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.offer-details {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.offer-details li {
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.95rem;
}

.offer-details li i {
    color: var(--secondary);
    margin-right: 10px;
    width: 20px;
}

.offer-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

.offer-btn:hover {
    background: var(--primary);
    color: black;
    box-shadow: 0 0 15px var(--primary);
}

/* --- Recruitment --- */
.recruitment-section {
    text-align: center;
    background: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=2670&auto=format&fit=crop') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
}

.recruitment-section .section-title {
    left: auto;
    transform: none;
}

.recruitment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.recruitment-content {
    position: relative;
    z-index: 1;
}

/* --- Footer --- */
footer {
    background: black;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #222;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--primary);
}

.copyright {
    color: #555;
    font-size: 0.9rem;
}

/* --- Mobile Queries --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Hide for now, script will toggle */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: black;
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-stats {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* --- Animations --- */
@keyframes flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow:
            0 0 4px #fff,
            0 0 11px #fff,
            0 0 19px #fff,
            0 0 40px var(--primary),
            0 0 80px var(--primary),
            0 0 90px var(--primary),
            0 0 100px var(--primary),
            0 0 150px var(--primary);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

/* --- New Animations --- */
@keyframes float-delayed {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.academy-card i {
    animation: float-delayed 5s ease-in-out infinite;
}

/* Scroll Reveal Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure hover effects still work by overriding the transition on hover for active elements if needed, 
   or relying on the fact that .reveal.active matches the default state */
.roster-card.reveal.active {
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-item:hover {
    box-shadow: 0 0 15px var(--primary);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}