/* ===================================
   ElytraRace Website - Main Styles
   =================================== */

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

:root {
    --primary-color: #00FFFF;
    --secondary-color: #008B8B;
    --accent-color: #FFD700;
    --dark-bg: #0a0a1a;
    --dark-secondary: #10102a;
    --text-primary: #ffffff;
    --text-secondary: #c5e8e8;
    --success-color: #06d6a0;
    --warning-color: #FFA500;
    --danger-color: #ef476f;
    --border-radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navigation {
    background: rgba(16, 16, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 255, 255, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

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

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

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

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

.nav-menu a.active {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    position: relative;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 80px;
    overflow: hidden;
}

/* Video Background Container */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Futuristic Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, 
            rgba(10, 10, 26, 0.7) 0%, 
            rgba(10, 10, 26, 0.85) 50%,
            rgba(10, 10, 26, 0.95) 100%
        );
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Mysterious glow effect */
.video-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top, rgba(0, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at bottom, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
    z-index: 1;
}

/* Animated particles effect */
.video-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(0, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 215, 0, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(0, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 215, 0, 0.2), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: particleFloat 20s linear infinite;
    opacity: 0.6;
    z-index: 2;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes particleFloat {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 80vh;
    width: 100%;
    padding: 40px 20px 111px;
}

.hero-logo {
    max-width: 400px;
    height: auto;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.6))
            drop-shadow(0 0 60px rgba(255, 215, 0, 0.3));
}

.hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px);
        filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.6))
                drop-shadow(0 0 60px rgba(255, 215, 0, 0.3));
    }
    50% { 
        transform: translateY(-20px);
        filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.8))
                drop-shadow(0 0 80px rgba(255, 215, 0, 0.4));
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 80px 20px;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Video Section */
.video-section {
    background: var(--dark-secondary);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--dark-secondary);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
    border-color: var(--primary-color);
}

.feature-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Key Features */
.key-features {
    background: var(--dark-secondary);
}

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

.feature-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-secondary));
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Footer */
footer {
    background: var(--dark-secondary);
    padding: 60px 20px 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-secondary));
    padding: 120px 20px 60px;
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Documentation Layout */
.documentation-container,
.tutorials-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    overflow-x: hidden;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.doc-nav {
    background: var(--dark-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.doc-nav h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.doc-nav ul {
    list-style: none;
}

.doc-nav ul li {
    margin-bottom: 12px;
}

.doc-nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
}

.doc-nav ul li a:hover {
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-color);
    padding-left: 20px;
}

.doc-content,
.tutorial-content {
    background: var(--dark-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.2);
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

.doc-content section,
.tutorial-content section {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-content section:last-child,
.tutorial-content section:last-child {
    border-bottom: none;
}

.doc-content h2,
.tutorial-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: left;
    background: none;
    -webkit-text-fill-color: var(--primary-color);
}

.doc-content h3,
.tutorial-content h3 {
    color: #ffffff;
    margin: 25px 0 15px;
}

.doc-content ul,
.doc-content ol,
.tutorial-content ul,
.tutorial-content ol {
    margin-left: 25px;
    color: var(--text-secondary);
}

.doc-content li,
.tutorial-content li {
    margin-bottom: 10px;
}

/* Info Boxes */
.info-box {
    background: rgba(0, 255, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 6px;
}

.info-box.success {
    background: rgba(6, 214, 160, 0.1);
    border-left-color: var(--success-color);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-box.success h3 {
    color: var(--success-color);
}

/* Command Blocks */
.command-section {
    margin: 30px 0;
}

.command-block {
    background: var(--dark-bg);
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    overflow-x: auto;
}

.command-block img {
    display: block;
    margin: 0 auto;
}

.command-block code {
    color: #00FFFF;
    font-size: 1.1rem;
    font-weight: bold;
    word-break: break-word;
    white-space: pre-wrap;
}

.command-block p {
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Code Examples */
code {
    background: var(--dark-bg);
    padding: 3px 8px;
    border-radius: 4px;
    color: #00FFFF;
    font-family: 'Courier New', monospace;
}

pre {
    background: var(--dark-bg);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    background: none;
    padding: 0;
    color: #00FFFF;
}

.config-example,
.code-example {
    margin: 25px 0;
}

/* Tables */
.permissions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.permissions-table thead {
    background: var(--dark-bg);
}

.permissions-table th {
    padding: 15px;
    text-align: left;
    color: var(--primary-color);
    font-weight: 600;
}

.permissions-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.permissions-table tr:hover {
    background: rgba(0, 255, 255, 0.05);
}

/* Tutorial Specific */
.tutorial-step {
    margin: 30px 0;
    padding: 25px;
    background: var(--dark-bg);
    border-radius: 8px;
}

.tutorial-step h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tutorial-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.code-block {
    background: var(--dark-bg);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 3px solid var(--primary-color);
}

.code-block code {
    color: #00FFFF;
    font-size: 1rem;
}

.success-text {
    color: var(--success-color);
    font-weight: bold;
}

.sign-example {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.sign {
    background: #d3ac57;
    padding: 15px 50px;
    border-radius: 8px;
    border: 3px solid #a5815e;
    box-shadow: var(--shadow);
    font-family: 'Courier New', monospace;
    text-align: center;
}

.sign div {
    padding: 5px;
    color: rgb(0, 0, 0);
}

/* Troubleshooting */
.troubleshooting-item {
    margin: 30px 0;
    padding: 25px;
    background: var(--dark-bg);
    border-radius: 8px;
}

.troubleshooting-item h3 {
    color: var(--warning-color);
    margin-bottom: 15px;
}

.solution {
    margin-top: 15px;
    padding: 20px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 6px;
}

.solution strong {
    color: var(--success-color);
}

/* Next Steps */
.next-steps {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 2px solid rgba(0, 255, 255, 0.2);
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.next-step-card {
    background: var(--dark-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.next-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.next-step-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.next-step-card p {
    color: var(--text-secondary);
}

/* Contact Page */
.contact-container {
    padding: 0 20px 80px;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-main {
    background: var(--dark-secondary);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.discord-card {
    text-align: center;
    padding: 40px;
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    margin-bottom: 50px;
}

.discord-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.discord-card h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.discord-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.discord-username {
    background: rgba(0, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 8px;
    display: inline-block;
    margin: 20px 0;
}

.discord-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-right: 10px;
}

.discord-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.discord-note {
    margin-top: 20px;
    font-style: italic;
    color: var(--text-secondary);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.contact-form-section,
.contact-info-section {
    background: var(--dark-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.contact-form-section h2,
.contact-info-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Contact Form */
.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--dark-bg);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* Messages */
.success-message {
    background: rgba(6, 214, 160, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.success-message h3 {
    color: var(--success-color);
    margin-bottom: 15px;
}

.error-message {
    background: rgba(239, 71, 111, 0.1);
    border: 1px solid var(--danger-color);
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.error-message h3 {
    color: var(--danger-color);
    margin-bottom: 15px;
}

.error-message ul {
    margin-left: 20px;
}

/* Info Cards */
.info-card {
    background: var(--dark-bg);
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.info-detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.info-card .btn {
    margin-top: 15px;
    padding: 10px 25px;
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section,
.quick-links-section {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 40px;
    background: var(--dark-secondary);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.faq-section h2,
.quick-links-section h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: left;
}

.faq-grid,
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.quick-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.quick-link-card {
    background: var(--dark-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(0, 255, 255, 0.2);
    text-align: center;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.link-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.quick-link-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.quick-link-card p {
    color: var(--text-secondary);
}

.faq-item {
    background: var(--dark-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.faq-item h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
    .documentation-container,
    .tutorials-container {
        grid-template-columns: 1fr;
        padding: 0 15px 60px;
    }

    .sidebar {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    
    .doc-nav {
        padding: 20px;
    }
    
    .doc-nav h3 {
        font-size: 1.1rem;
    }
    
    .doc-nav ul li a {
        padding: 6px 10px;
        font-size: 0.95rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .info-cards-grid,
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quick-link-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: flex;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--dark-secondary);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 15px;
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active {
        display: flex !important;
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo img {
        height: 32px;
    }

    .hero {
        padding: 80px 15px 60px;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 20px 10px;
        min-height: 75vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-logo {
        max-width: 220px;
        margin-bottom: 15px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .features-grid,
    .features-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card,
    .feature-item {
        padding: 25px;
    }
    
    .feature-card h3,
    .feature-item h3 {
        font-size: 1.3rem;
    }
    
    .feature-card img {
        max-height: 180px;
    }

    .page-header {
        padding: 100px 15px 40px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }

    .doc-content,
    .tutorial-content {
        padding: 20px;
        border-radius: 8px;
    }
    
    .doc-content h2,
    .tutorial-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .doc-content h3,
    .tutorial-content h3 {
        font-size: 1.2rem;
        margin: 20px 0 10px;
    }
    
    .doc-content section,
    .tutorial-content section {
        padding: 20px 0;
    }
    
    .command-block {
        padding: 15px;
        margin: 12px 0;
    }
    
    .command-block code {
        font-size: 0.85rem;
        word-break: break-all;
    }
    
    .command-block p {
        font-size: 0.9rem;
    }
    
    .permissions-table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .info-box {
        padding: 15px;
        margin: 20px 0;
    }
    
    .info-box h3 {
        font-size: 1.1rem;
    }
    
    .tutorial-step {
        padding: 20px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .contact-form-section,
    .contact-info-section,
    .contact-main {
        padding: 20px;
    }
    
    .discord-card {
        padding: 25px 20px;
    }
    
    .discord-icon {
        font-size: 2.5rem;
    }
    
    .discord-name {
        font-size: 1.1rem;
    }
    
    .discord-card h2 {
        font-size: 1.4rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section ul {
        list-style-position: inside;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero-logo {
        max-width: 180px;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .doc-content,
    .tutorial-content {
        padding: 15px;
    }
    
    .doc-content h2,
    .tutorial-content h2 {
        font-size: 1.3rem;
    }
    
    .command-block code {
        font-size: 0.75rem;
    }
    
    .nav-logo {
        font-size: 1rem;
    }
    
    .nav-logo img {
        height: 28px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

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

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

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