/* ===== BASE STYLES ===== */
:root {
    /* Color Variables */
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #111111;
    --card-border: #222222;
    --text-primary: #e0e0e0;
    --text-secondary: #aaaaaa;
    --accent-red: #ff3333;
    --accent-dark-red: #cc0000;
    --gradient-red: linear-gradient(135deg, var(--accent-red), var(--accent-dark-red));
    --code-bg: #1a1a1a;
    --code-border: #333333;
    --modal-bg: rgba(20, 20, 20, 0.95);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --section-padding: 5rem 2rem;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== BACKGROUND GRADIENT ===== */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, var(--accent-red) 0%, transparent 30%),
                radial-gradient(circle at 80% 70%, var(--accent-dark-red) 0%, transparent 30%);
    opacity: 0.1;
    z-index: -1;
}

/* ===== LOADER STYLES ===== */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 51, 51, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent-red);
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    position: relative;
}

.loader::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 4px solid transparent;
    border-radius: 50%;
    border-top-color: var(--accent-dark-red);
    animation: spin 1.5s cubic-bezier(0.3, 0, 0.3, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.8), rgba(10,10,10,0.4));
    z-index: -1;
}

header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    text-align: left;
}

.header-content {
    max-width: 1200px;
    margin: 0;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

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

h1 {
    font-size: 20rem;
    font-weight: 200;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: 1px;
    font-family: "Alata";
}

.gradient-text {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.7;
}

.cta-btn {
    background: var(--gradient-red);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-family: "Outfit";
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
    animation: pulse 2s infinite;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 51, 51, 0.4);
}

.cta-btn i {
    transition: transform 0.3s ease;
}

.cta-btn:hover i {
    transform: translateX(5px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 51, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0); }
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--section-padding);
    background: linear-gradient(to bottom, var(--dark-bg), var(--darker-bg));
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 51, 51, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 51, 51, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-red);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-red);
    color: white;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== MAIN CONTENT STYLES ===== */
main {
    padding: var(--section-padding);
    background: var(--darker-bg);
}

/* ===== NAVIGATION STYLES ===== */
nav {
    margin-bottom: 3rem;
    padding: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

nav ul {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.8rem;
}

nav ul li a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

nav ul li a i {
    margin-right: 0.6rem;
    font-size: 0.9rem;
}

nav ul li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

nav ul li a.active {
    background: var(--gradient-red);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
    border-color: transparent;
}

/* ===== THREADS CONTAINER ===== */
.threads-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== THREAD CARD STYLES ===== */
.thread {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 12px;
    padding: 1.8rem;
    border: 1px solid rgba(255, 51, 51, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.thread:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 51, 51, 0.3);
}

.thread-category {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: var(--gradient-red);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255, 51, 51, 0.3);
}

.thread-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--card-border);
    max-height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.thread:hover .thread-image {
    transform: scale(1.03);
}

.thread-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.4;
}

.thread-description {
    color: var(--text-primary);
    margin-bottom: 1.8rem;
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.thread-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.thread-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.script-btn {
    background: var(--gradient-red);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.2);
}

.exploit-btn {
    background: rgba(255, 51, 51, 0.1);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

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

.action-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: var(--modal-bg);
    border-radius: 16px;
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 51, 51, 0.3);
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.2),
                inset 0 0 10px rgba(255, 51, 51, 0.1);
    overflow: hidden;
}

.modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 51, 51, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgba(255,51,51,0.1), transparent);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 0 10px rgba(255,51,51,0.3);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--accent-red);
    transform: rotate(90deg);
    background: rgba(255, 51, 51, 0.1);
}

.modal-content {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(85vh - 140px);
}

.modal-content pre {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
    white-space: pre-wrap;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid rgba(255, 51, 51, 0.2);
    display: flex;
    justify-content: flex-end;
    background: linear-gradient(to right, transparent, rgba(255,51,51,0.1));
}

.copy-btn {
    background: var(--gradient-red);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.4);
}

.copy-btn i {
    font-size: 1rem;
}

/* ===== FOOTER STYLES ===== */
footer {
    padding: 3rem 2rem;
    background: linear-gradient(to top, var(--darker-bg), #000);
    border-top: 1px solid rgba(255, 51, 51, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-red);
    transform: translateY(-3px);
}

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

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    
    .header-content {
        padding: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .threads-container {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        gap: 0.5rem;
    }
    
    nav ul li a {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-content {
        max-height: calc(90vh - 140px);
    }
    
    .thread-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-content pre {
        font-size: 0.85rem;
        padding: 1rem;
    }
    
    .copy-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}