/* ============================================
   VARIABLES & RESET
   ============================================ */

:root {
    --primary-blue: #002d5c;
    --secondary-blue: #0055cc;
    --gold: #d4af37;
    --dark-bg: #0a0e27;
    --darker-bg: #050812;
    --text-light: #e8eef5;
    --text-muted: #a0a8b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-tactical: #e74c3c;
    --accent-k9: #f39c12;
    --accent-investigation: #9b59b6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-header h2 {
    background: linear-gradient(135deg, var(--gold) 0%, var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.header-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--secondary-blue) 100%);
    margin: 0 auto;
    border-radius: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.95) 0%, rgba(5, 8, 18, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 3px;
}

.logo-badge {
    background: linear-gradient(135deg, var(--gold) 0%, var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.5rem 1rem;
    border: 2px solid var(--gold);
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--secondary-blue) 100%);
    color: var(--dark-bg);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--dark-bg);
}

.btn.full-width {
    width: 100%;
}

.filter-btn {
    background: var(--glass-bg);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--secondary-blue) 100%);
    color: var(--dark-bg);
    border-color: var(--gold);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--darker-bg) 100%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.05) 50%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
    animation: slideRight 8s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), transparent);
    color: var(--dark-bg);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    animation: slideDown 0.8s ease-out;
}

.hero-title {
    color: var(--gold);
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    animation: fadeIn 1.2s ease-out;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.value-card {
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-card h4 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   SQUADS SECTION
   ============================================ */

.squads {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.squads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.squad-card {
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.squad-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
}

.squad-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.squad-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.squad-card:hover .squad-header::before {
    left: 100%;
}

.squad-header h3 {
    margin: 0;
    position: relative;
    z-index: 1;
}

.squad-header.blue {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
}

.squad-header.tactical {
    background: linear-gradient(135deg, var(--accent-tactical) 0%, #c0392b 100%);
    color: white;
}

.squad-header.k9 {
    background: linear-gradient(135deg, var(--accent-k9) 0%, #e67e22 100%);
    color: white;
}

.squad-header.investigation {
    background: linear-gradient(135deg, var(--accent-investigation) 0%, #8e44ad 100%);
    color: white;
}

.squad-icon {
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.squad-body {
    padding: 2rem;
}

.squad-body p {
    margin-bottom: 1.5rem;
}

.squad-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--gold);
}

/* ============================================
   ROSTER SECTION
   ============================================ */

.roster {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.roster-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out;
}

.roster-container {
    position: relative;
    min-height: 400px;
}

.roster-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 1.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.member-card {
    padding: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.member-card:hover::before {
    left: 100%;
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.member-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.member-status.online {
    background: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
}

.member-status.offline {
    background: #95a5a6;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.member-name {
    color: var(--gold);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.member-role {
    display: inline-block;
    background: var(--secondary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.member-role.admin {
    background: var(--gold);
    color: var(--dark-bg);
}

.member-username {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.roster-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-box {
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.stat-number {
    display: block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   RECRUITMENT SECTION
   ============================================ */

.recruitment {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.recruitment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.recruitment-text h3 {
    color: var(--gold);
}

.requirements {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease-out;
}

.requirements h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.requirements ul {
    list-style: none;
}

.requirements li {
    padding: 0.5rem 0;
    color: var(--text-muted);
}

.recruitment-form {
    padding: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.recruitment-form h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer p:first-child {
    margin-bottom: 0.5rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .about-content,
    .recruitment-content {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .squads-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        margin-top: 70px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .roster-controls {
        justify-content: center;
    }

    .roster-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 1rem;
    }

    .navbar-logo {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .recruitment-form,
    .requirements {
        padding: 1.5rem;
    }

    .roster-grid {
        grid-template-columns: 1fr;
    }
}
