/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* EHR Theme Colors */
    --primary-color: #00a5ff;
    --secondary-color: #00ffff;
    --accent-color: #00ffa5;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --gradient-primary: linear-gradient(135deg, #00a5ff 0%, #00ffff 50%, #00ffa5 100%);
    --gradient-secondary: linear-gradient(135deg, #00ffff 0%, #00ffa5 100%);
    --gradient-accent: linear-gradient(135deg, #00a5ff 0%, #00ffa5 100%);
    --border-radius: 12px;
    --shadow-light: 0 4px 20px rgba(0, 165, 255, 0.15);
    --shadow-medium: 0 8px 40px rgba(0, 165, 255, 0.2);
    --shadow-heavy: 0 20px 60px rgba(0, 165, 255, 0.25);
    --shadow-glow: 0 0 30px rgba(0, 255, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 165, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: -2px;
    font-weight: 400;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

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

.nav-link-discord {
    color: #5865f2 !important;
    font-weight: 600;
}

.nav-link-discord:hover {
    color: #7289da !important;
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(0, 165, 255, 0.05) 0%, rgba(10, 10, 10, 1) 70%);
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 165, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(0, 255, 165, 0.08) 0%, transparent 40%);
    animation: pulse-bg 10s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 165, 255, 0.1);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    color: var(--text-primary);
}

.title-highlight {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.inline-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.inline-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Search Container */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(0, 165, 255, 0.2);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 165, 255, 0.3);
    background: rgba(26, 26, 26, 0.95);
}

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

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0.6;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* FAQ Category */
.faq-category {
    animation: fadeInUp 0.8s ease-out backwards;
}

.faq-category:nth-child(1) { animation-delay: 0.1s; }
.faq-category:nth-child(2) { animation-delay: 0.2s; }
.faq-category:nth-child(3) { animation-delay: 0.3s; }
.faq-category:nth-child(4) { animation-delay: 0.4s; }
.faq-category:nth-child(5) { animation-delay: 0.5s; }
.faq-category:nth-child(6) { animation-delay: 0.6s; }

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.75rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.category-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 165, 0.5));
}

/* FAQ Item */
.faq-item {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(42, 42, 42, 0.9) 100%);
    border: 1px solid rgba(0, 165, 255, 0.15);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-slow);
    margin-bottom: 1rem;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: var(--transition-slow);
    transform-origin: top;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
    transform: translateX(5px);
}

.faq-item:hover::before {
    transform: scaleY(1);
}

.faq-item.active {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, rgba(26, 26, 26, 1) 0%, rgba(42, 42, 42, 0.95) 100%);
}

.faq-item.active::before {
    transform: scaleY(1);
    background: var(--gradient-secondary);
}

.faq-question {
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    user-select: none;
    position: relative;
}

.question-icon {
    font-size: 1.5rem;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.faq-item.active .question-icon {
    transform: scale(1.1) rotate(5deg);
}

.question-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    line-height: 1.5;
}

.faq-item:hover .question-text {
    color: var(--primary-color);
}

.faq-item.active .question-text {
    color: var(--accent-color);
}

.toggle-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: var(--transition-slow);
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
    color: var(--accent-color);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem 0 4rem;
}

.faq-item.active .faq-answer {
    max-height: 3000px;
    padding: 0 1.5rem 1.5rem 4rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.answer-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.answer-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Solution Box */
.solution-box {
    background: linear-gradient(135deg, rgba(0, 255, 165, 0.1), rgba(0, 255, 255, 0.05));
    border-left: 3px solid var(--accent-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.solution-box strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* Lists */
.game-modes-list,
.custom-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.game-modes-list li,
.custom-list li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
    padding-left: 0.5rem;
}

.game-modes-list li strong,
.custom-list li strong {
    color: var(--accent-color);
    font-weight: 600;
}

.custom-list ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.custom-list code {
    background: rgba(0, 165, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    border: 1px solid rgba(0, 165, 255, 0.2);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(0, 165, 255, 0.05), rgba(0, 255, 165, 0.05));
    border-top: 1px solid rgba(0, 165, 255, 0.1);
    border-bottom: 1px solid rgba(0, 165, 255, 0.1);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-discord {
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

.btn-icon {
    font-size: 1.3rem;
}

.btn-text {
    font-weight: 700;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(0, 165, 255, 0.1);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 165, 255, 0.1);
}

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

/* Hidden class for search filtering */
.hidden {
    display: none !important;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 165, 255, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(0, 165, 255, 0);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 255, 255, 0.8), 0 0 60px rgba(0, 165, 255, 0.6);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 165, 255, 0.2);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        min-height: 60vh;
        padding: 6rem 0 3rem;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1rem 0 2.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-info {
        align-items: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 1.5rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .faq-question {
        padding: 1.25rem 1rem 1.25rem 0.75rem;
    }

    .question-icon {
        font-size: 1.2rem;
        min-width: 28px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Selection styles */
::selection {
    background: rgba(0, 165, 255, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(0, 165, 255, 0.3);
    color: var(--text-primary);
}
