/* ==================== 
   ORION V CSS
   ==================== */

:root {
    --primary: #ff003c;
    --primary-glow: rgba(255, 0, 60, 0.6);
    --primary-dark: #b3002a;
    --bg-color: #080808;
    --bg-darker: #000000;
    --text-light: #f4f4f5;
    --text-muted: #a1a1aa;
    --glass-bg: rgba(15, 15, 15, 0.6);
    --glass-border: rgba(255, 255, 255, 0.07);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typograpy Details */
h1, h2, h3, h4 {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
}

/* ====================
   NAVBAR
   ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary);
    filter: drop-shadow(0 0 10px var(--primary-glow));
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 20px var(--primary));
    transform: scale(1.1);
    border-color: #ff3366;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 20px;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-discord {
    background-color: #5865F2;
    color: white;
}

.btn-discord:hover {
    background-color: #4752C4;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    box-shadow: 0 0 25px var(--primary-glow), inset 0 0 15px var(--primary-glow);
    transform: translateY(-2px);
}

/* ====================
   HERO SECTION
   ==================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('assets/images/orion_bg_4k_neon.png') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, var(--bg-color) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

/* Glitch Effect Settings */
.glitch-text {
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-light);
    position: relative;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

/* Server Status */
.server-status {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff3333; /* Off state default */
    box-shadow: 0 0 10px #ff3333;
}

.status-indicator.active {
    background-color: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
    animation: pulseActive 2s infinite;
}

@keyframes pulseActive {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.status-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.status-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2ecc71;
    text-transform: uppercase;
}

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

#onlineCount {
    color: var(--text-light);
    font-weight: 600;
}

/* ====================
   FEATURES SECTION
   ==================== */
.features {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-light);
}

.section-header h2 span {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.section-header p {
    color: var(--text-muted);
    margin-top: 10px;
}

.separator {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    background: rgba(30, 30, 35, 0.6);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover .card-icon i {
    color: var(--primary);
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--primary-glow);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

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

/* ====================
   GALLERY SECTION
   ==================== */
.gallery {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    aspect-ratio: 16 / 9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 0, 60, 0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
    transform: translateY(20px);
    transition: transform 0.5s ease;
    text-shadow: 0 0 15px var(--primary-glow);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
    border-color: rgba(255, 0, 60, 0.5);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

/* ====================
   RULES SECTION
   ==================== */
.rules {
    padding: 100px 20px;
    background-color: var(--bg-darker);
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.rules-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rule-group {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rule-group[open] {
    border-color: rgba(255, 0, 60, 0.3);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.rule-group summary {
    padding: 20px 25px;
    font-size: 1.1rem;
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.5);
    transition: all 0.3s ease;
}

/* Hide default marker in Safari */
.rule-group summary::-webkit-details-marker {
    display: none;
}

.rule-group summary:hover {
    color: var(--primary);
    background: rgba(20, 20, 25, 0.8);
}

.rule-group summary i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.rule-group[open] summary i {
    transform: rotate(180deg);
}

.rule-content {
    padding: 20px 25px 30px;
    background: rgba(5, 5, 8, 0.3);
    border-top: 1px solid var(--glass-border);
    animation: fadeInDown 0.4s ease forwards;
}

.rule-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rule-content li {
    position: relative;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.rule-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 5px var(--primary-glow);
}

.rule-content li strong {
    color: var(--text-light);
    font-weight: 600;
}

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

/* ====================
   TEAM SECTION
   ==================== */
.team {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background-color: var(--bg-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    background: rgba(30, 30, 35, 0.6);
    border-color: rgba(255, 0, 60, 0.3);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-family: 'Syncopate', sans-serif;
    color: var(--text-light);
}

.team-card .role {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.discord-tag {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #5865F2;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.team-card:hover .discord-tag {
    background: #5865F2;
    color: white;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

/* ====================
   FOOTER
   ==================== */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: drop-shadow(0 0 10px var(--primary));
    transform: scale(1.05);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ====================
   TOAST NOTIFICATION
   ==================== */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 0, 60, 0.5);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
}

.toast.show {
    bottom: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .glitch-text {
        font-size: 3rem;
    }
    
    .hero-content {
        padding-top: 50px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-socials a {
        margin: 0 10px;
    }
}
