/* CSS Variables */
:root {
    --bg-color: #0a0a0c;
    --bg-darker: #050507;
    --text-primary: #ffffff;
    --text-muted: #a1a1aa;
    --accent-color: #6366f1; /* Indigo/Purple */
    --accent-hover: #4f46e5;
    --glass-bg: rgba(25, 25, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.text-muted {
    color: var(--text-muted);
}

/* Typography */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2 span {
    color: var(--accent-color);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background-color: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-color);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,7,0.3) 0%, rgba(10,10,12,1) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out forwards;
}

.glitch {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    color: white;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.glitch.highlight {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
}

.hero-content p {
    font-size: 1.25rem;
    color: #e4e4e7;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
}

.scroll-indicator a:hover {
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--accent-color);
    color: white;
}

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

.feature-card p {
    color: var(--text-muted);
}

/* Rules Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255,255,255,0.02);
}

.accordion-header::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0,0,0,0.2);
}

.accordion-content p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--accent-color);
    padding: 3px;
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

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

/* Footer */
footer {
    background-color: #030304;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info {
    max-width: 400px;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-info h3 span {
    color: var(--accent-color);
}

.footer-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.socials a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-color);
    margin: 10% auto;
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: white;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.impressum-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.impressum-text strong {
    color: var(--text-primary);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .glitch {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .glitch {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 4rem 0;
    }
}

/* Scroll Reveal Classes */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Tilt Glow Adjustments */
.js-tilt-glare {
    border-radius: 16px;
}

/* Glitch Keyframes */
@keyframes glitch-anim {
  0% { clip: rect(10px, 9999px, 86px, 0); }
  5% { clip: rect(61px, 9999px, 30px, 0); }
  10% { clip: rect(60px, 9999px, 7px, 0); }
  15% { clip: rect(98px, 9999px, 50px, 0); }
  20% { clip: rect(15px, 9999px, 12px, 0); }
  25% { clip: rect(51px, 9999px, 20px, 0); }
  30% { clip: rect(31px, 9999px, 46px, 0); }
  35% { clip: rect(82px, 9999px, 80px, 0); }
  40% { clip: rect(6px, 9999px, 60px, 0); }
  45% { clip: rect(90px, 9999px, 9px, 0); }
  50% { clip: rect(34px, 9999px, 99px, 0); }
  55% { clip: rect(63px, 9999px, 29px, 0); }
  60% { clip: rect(17px, 9999px, 34px, 0); }
  65% { clip: rect(48px, 9999px, 11px, 0); }
  70% { clip: rect(70px, 9999px, 63px, 0); }
  75% { clip: rect(96px, 9999px, 44px, 0); }
  80% { clip: rect(81px, 9999px, 68px, 0); }
  85% { clip: rect(12px, 9999px, 40px, 0); }
  90% { clip: rect(41px, 9999px, 94px, 0); }
  95% { clip: rect(7px, 9999px, 53px, 0); }
  100% { clip: rect(27px, 9999px, 81px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(84px, 9999px, 51px, 0); }
  5% { clip: rect(21px, 9999px, 74px, 0); }
  10% { clip: rect(65px, 9999px, 9px, 0); }
  15% { clip: rect(89px, 9999px, 92px, 0); }
  20% { clip: rect(3px, 9999px, 40px, 0); }
  25% { clip: rect(44px, 9999px, 12px, 0); }
  30% { clip: rect(72px, 9999px, 63px, 0); }
  35% { clip: rect(29px, 9999px, 84px, 0); }
  40% { clip: rect(11px, 9999px, 28px, 0); }
  45% { clip: rect(63px, 9999px, 55px, 0); }
  50% { clip: rect(98px, 9999px, 33px, 0); }
  55% { clip: rect(50px, 9999px, 90px, 0); }
  60% { clip: rect(7px, 9999px, 16px, 0); }
  65% { clip: rect(41px, 9999px, 72px, 0); }
  70% { clip: rect(85px, 9999px, 44px, 0); }
  75% { clip: rect(23px, 9999px, 60px, 0); }
  80% { clip: rect(59px, 9999px, 96px, 0); }
  85% { clip: rect(17px, 9999px, 25px, 0); }
  90% { clip: rect(73px, 9999px, 8px, 0); }
  95% { clip: rect(38px, 9999px, 53px, 0); }
  100% { clip: rect(94px, 9999px, 31px, 0); }
}
