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

body {
    background-color: #000000;
    color: #f0f0f0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Animations defined via classes to be toggled by JS */
.hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.fade-in-pop {
    animation: fadeInPop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fade-out {
    animation: fadeOut 0.8s ease-in forwards;
}

@keyframes fadeInPop {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    0% { opacity: 1; transform: scale(1); filter: blur(0px); }
    100% { opacity: 0; transform: scale(1.1); filter: blur(10px); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Intro Animation Container */
.animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    z-index: 1000;
    transition: opacity 1s ease;
}

#logo-container, #text-nullified, #text-singularity {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #cc0000;
}

#text-nullified, #text-singularity {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 10px;
    text-transform: uppercase;
    text-shadow: 0 0 25px rgba(204, 0, 0, 0.7);
    margin-left: 10px;
}

/* Main Content Styles */
.hidden-main {
    display: none;
    opacity: 0;
}

.show-main {
    display: block;
    animation: fadeIn 2s ease forwards;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #cc0000;
    text-shadow: 0 0 10px rgba(204, 0, 0, 0.5);
    letter-spacing: 2px;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links .admin-link {
    color: #cc0000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section {
    margin-bottom: 6rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #222;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #cc0000;
    font-weight: 400;
}

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

.changelog-card {
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.changelog-card:hover {
    transform: translateY(-5px);
    border-color: #cc0000;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.card-header h3 {
    color: #cc0000;
    font-size: 1.5rem;
}

.editable-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: #aaa;
}

.editable-content li {
    margin-bottom: 0.5rem;
}

/* Showcase */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #222;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Auth / Forms */
.signup-card {
    background: #0d0d0d;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid #222;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.signup-card p {
    color: #888;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form input, .modal-content textarea {
    padding: 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.auth-form input:focus, .modal-content textarea:focus {
    border-color: #cc0000;
}

.btn {
    padding: 1rem;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: opacity 0.3s ease;
}

.btn:hover {
    opacity: 0.8;
}

.btn-red {
    background: #cc0000;
    color: #fff;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #0d0d0d;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #222;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.modal-content.large {
    max-width: 600px;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #cc0000;
}

.modal-content textarea {
    width: 100%;
    margin-bottom: 1rem;
    resize: vertical;
}

.close-btn, .close-edit-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
}

.close-btn:hover, .close-edit-btn:hover {
    color: #fff;
}

.edit-btn {
    background: #cc0000;
    color: #fff;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
}

.edit-btn:hover {
    background: #ff1a1a;
}

.error-text {
    color: #ff3333;
    font-size: 0.85rem;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    #text-nullified, #text-singularity {
        font-size: 3rem;
        letter-spacing: 5px;
    }
    #logo-container svg {
        width: 120px;
        height: 120px;
    }
    .nav-links {
        display: none; /* Hide on mobile for simplicity */
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
}
