/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    background-color: #0f0f0f;
}
::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 10px;
    border: 2px solid #0f0f0f;
}
::-webkit-scrollbar-thumb:hover {
    background: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #e5e5e5;
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(220, 38, 38, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Navbar Animations */
@keyframes slideDownNav {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: slideDownNav 0.6s ease-out;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
.logo:hover {
    color: #ef4444;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.nav-links a {
    color: #a3a3a3;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    position: relative;
    background: none; 
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: #dc2626;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.section {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.section.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 24px;
    margin-bottom: 4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: #a3a3a3;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    color: #d4d4d4;
    font-size: 1.05rem;
}

.discord-btn {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.section-header p {
    color: #a3a3a3;
    font-size: 1.05rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Tools grids */
#toolsContainer.cards-grid {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
    #toolsContainer.cards-grid {
        grid-template-columns: 1fr;
    }
}


.card {
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.15);
}

.card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #dc2626;
}

.tool-card {
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.15);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-icon {
    font-size: 2rem;
    color: #dc2626;
}

.tool-info h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.tool-version {
    color: #737373;
    font-size: 0.85rem;
    font-weight: 500;
}

.tool-description {
    color: #d4d4d4;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.tool-features li {
    color: #d4d4d4;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tool-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: 600;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    padding: 0.75rem 1.8rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 38, 38, 0.3);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.download-btn:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.browser-list {
    background: rgba(25, 25, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.browser-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.browser-item:last-child {
    border-bottom: none;
}
    
.browser-item:hover {
    background: rgba(220, 38, 38, 0.1);
}

.browser-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
    
.browser-item-info .fas {
    color: #dc2626;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.browser-item-name {
    color: #ffffff;
    font-weight: 500;
    font-size: 1.1rem;
}

.browser-item-meta {
    font-size: 0.9rem;
    color: #737373;
}

.browser-item-caret {
    color: #737373;
}

.files-list {
    display: grid;
    gap: 1rem;
}

.file-item {
    background: rgba(25, 25, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.file-item.clickable-file {
    cursor: pointer;
}
.file-item.clickable-file:hover {
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.15);
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    display: flex;
    gap: 1.5rem;
    color: #737373;
    font-size: 0.85rem;
}

.file-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(25, 25, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a3a3a3;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 2rem;
    text-decoration: none;
}

.back-btn:hover {
    border-color: rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

.news-grid {
    display: grid;
    gap: 2rem;
}

.news-card {
    background: rgba(25, 25, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    border-left: 3px solid #dc2626;
    transition: all 0.4s ease;
}

.news-card:hover {
    border-left-width: 5px;
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.15);
    transform: translateX(5px);
}

.news-date {
    color: #dc2626;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 650;
    text-transform: uppercase;
}

.news-card h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-content {
    color: #d4d4d4;
    line-height: 1.8;
}

.news-author {
    font-style: italic;
    color: #a3a3a3;
    text-align: right;
    margin-top: 1.5rem;
}

.coming-soon {
    text-align: center;
    padding: 6rem 2rem;
    background: rgba(25, 25, 25, 0.6);
    border: 2px dashed rgba(220, 38, 38, 0.3);
    border-radius: 24px;
    margin-top: 2rem;
}

.coming-soon-icon {
    font-size: 4rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.coming-soon h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.coming-soon p {
    font-size: 1.1rem;
    color: #a3a3a3;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #737373;
    font-size: 0.9rem;
}
footer a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
footer a:hover {
    color: #ef4444;
}

.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #737373;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(220, 38, 38, 0.5);
    color: #dc2626;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 15, 0.98);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid rgba(220, 38, 38, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    #toolsContainer.cards-grid {
        grid-template-columns: 1fr;
    }
}


/* Modal Styles */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.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.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 16px;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.15);
    animation: fadeInUp 0.4s ease;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #dc2626;
    font-size: 1.5rem;
}

.close-btn {
    color: #a3a3a3;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0 0.5rem;
}

.close-btn:hover,
.close-btn:focus {
    color: #ffffff;
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    background: #0f0f0f;
}

.modal-body pre {
    color: #e5e5e5;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.9rem;
}

/* Modal footer and buttons */
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #1a1a1a;
    border-radius: 0 0 15px 15px;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: #a3a3a3;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.modal-btn:hover {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.3);
}

.modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}