/* Basic Reset & Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #E0E0E0; /* Light gray text */
    background: linear-gradient(135deg, #0a001a, #2a004a, #0a001a); /* Dark purple gradient */
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 3D Background Animation (now targeting the canvas) */
.background-animation { /* This now applies to the canvas */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Keep it behind other content */
    background: transparent; /* Ensure no residual background visible */
    pointer-events: none; /* Allows clicks to pass through to elements behind the canvas */
}

/* Glass Panel Effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white */
    backdrop-filter: blur(10px); /* Blurs content behind */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin: 20px;
    padding: 25px;
    animation: fadeIn 1s ease-out forwards;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden; /* For title animation */
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5em;
    color: #FF00FF; /* Bright purple */
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
    margin-bottom: 10px;
    animation: textGlow 2s ease-in-out infinite alternate, slideInFromTop 1s ease-out;
}

header p {
    font-size: 1.2em;
    color: #C0C0C0;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

/* Navigation - FIXED VERSION */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px;
}

nav ul li {
    margin: 0 15px; /* Ensure sufficient margin between items */
}

nav ul li a {
    text-decoration: none;
    color: #ADD8E6; /* Light blue for links */
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease; /* Keep this for general transitions (like transform, box-shadow) */
    position: relative; /* Essential for ::before positioning */
    display: inline-block; /* Added: Ensures it behaves as a block for padding/sizing */
    overflow: hidden; /* Keep this to hide the ::before before it slides in */
    z-index: 1; /* Added: Ensures links are above the background animation, etc. */
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Start off-screen to the left */
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15); /* Slightly more opaque for better visibility */
    transition: left 0.3s ease; /* Changed: Only animate 'left' for smoother slide */
    z-index: -1; /* Place behind the link text */
    border-radius: 8px; /* Added: Match the parent's border-radius */
}

nav ul li a:hover::before {
    left: 0; /* Slide into view on hover */
}

nav ul li a:hover {
    color: #FFFFFF;
    /* Removed background here, as ::before handles it now for a cleaner effect */
    transform: translateY(-3px); /* Subtle lift effect */
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5); /* Glowing effect on hover */
}


/* Main Content */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    margin-bottom: 40px;
    padding: 30px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.content-section.fade-in.active {
    transform: translateY(0);
    opacity: 1;
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2em;
    color: #ADD8E6;
    margin-bottom: 20px;
    border-bottom: 2px solid #8A2BE2; /* Blue-violet underline */
    padding-bottom: 5px;
    animation: slideInFromLeft 1s ease-out;
}

h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    color: #FF69B4; /* Hot pink */
    margin-top: 25px;
    margin-bottom: 15px;
}

p {
    line-height: 1.7;
    margin-bottom: 15px;
}

ul, ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

ul li, ol li {
    margin-bottom: 8px;
}

.note {
    font-style: italic;
    color: #FFA07A; /* Light salmon for notes */
    background: rgba(255, 160, 122, 0.1);
    padding: 10px;
    border-left: 3px solid #FFA07A;
    border-radius: 5px;
}

.mod-type {
    margin-top: 30px;
    padding: 20px;
    border: 1px dashed rgba(255, 0, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
}

pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-family: 'Cascadia Code', 'Fira Code', monospace; /* Monospace font for code */
    color: #00FFCC; /* Cyan for code */
    border: 1px solid rgba(0, 255, 204, 0.2);
}

code {
    color: #00FFCC;
}

/* Styles for Code Block with Copy Button */
.code-block-container {
    position: relative;
    margin-bottom: 20px; /* Space below the block */
}

.code-block-container pre {
    padding-right: 60px; /* Make space for the button */
}

.copy-button {
    position: absolute;
    top: 10px; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
    background: rgba(138, 43, 226, 0.7); /* Blue-violet with transparency */
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-family: 'Roboto', sans-serif;
    transition: background 0.3s ease, transform 0.2s ease;
    backdrop-filter: blur(5px); /* Add a subtle blur to the button itself */
}

.copy-button:hover {
    background: rgba(138, 43, 226, 1); /* Less transparent on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button.copied {
    background: #28a745; /* Green when copied */
    color: white;
    border-color: #218838;
}


/* Glass Table */
.glass-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.glass-table th, .glass-table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
}

.glass-table thead th {
    background: rgba(128, 0, 128, 0.2); /* Darker purple for header */
    font-family: 'Orbitron', sans-serif;
    color: #ADD8E6;
}

.glass-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03); /* Slight stripe effect */
}

.glass-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

/* FAQ Accordion (JavaScript based - see script.js) */
.faq-item {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item h3 {
    cursor: pointer;
    padding: 15px;
    margin-top: 0;
    margin-bottom: 0;
    background: rgba(128, 0, 128, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-item h3:hover {
    background: rgba(128, 0, 128, 0.5);
}

.faq-item h3::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.faq-item.active h3::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 15px 15px 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-item.active p {
    max-height: 200px; /* Adjust as needed for content */
    padding: 15px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    font-size: 0.9em;
    color: #A0A0A0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromTop {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 5px rgba(255, 0, 255, 0.5); }
    100% { text-shadow: 0 0 20px rgba(255, 0, 255, 1), 0 0 30px rgba(255, 0, 255, 0.8); }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    .glass-panel {
        margin: 15px;
        padding: 20px;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 1em;
    }

    nav ul li a {
        font-size: 0.9em;
        padding: 6px 10px;
    }

    .glass-panel {
        margin: 10px;
        padding: 15px;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }
}