:root {
    /* Modern color palette */
        --primary-color: #6366f1;
        --primary-light: #818cf8;
        --primary-dark: #4f46e5;
        --dark-color: #0f172a;
        --darker-color: #020617;
        --light-color: #f8fafc;
        --gray-100: #f1f5f9;
        --gray-200: #e2e8f0;
        --gray-300: #cbd5e1;
        --gray-400: #94a3b8;
        --gray-700: #334155;
        --success-color: #10b981;
    --error-color: #ef4444;
    
        /* Typography */
        --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        --font-mono: 'Fira Code', 'Roboto Mono', monospace;
    
        /* Shadows */
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
        --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
        /* Transitions */
        --transition: all 0.2s ease-in-out;
        --gray-color: #64748b;
        --card-bg: rgba(30, 41, 59, 0.8);
        --border-radius: 10px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
        background: var(--dark-color);
        color: var(--light-color);
    line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
/* Section Styling */
.section {
    padding: 5rem 0;
    background-color: #f8f9ff;
    /* Soft blue-white */
    transition: background-color 0.3s ease;
}
.section:nth-child(even) {
    background-color: #f0f4ff;
    /* Slightly darker blue-white */
}
.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #4a5568;
    /* Softer dark color */
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
        left: 50%;
        transform: translateX(-50%);
    }
.section h2:after {
    content: '';
    position: absolute;
    width: 60px;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
    }
.section p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a5568;
    /* Softer text color */
    font-weight: 400;
}
/* Discord Invite Styling */
.discord-invite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, #7289da, #5b6eae);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(114, 137, 218, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.discord-invite:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(114, 137, 218, 0.3);
    background: linear-gradient(135deg, #5b6eae, #7289da);
}
.discord-invite i {
    font-size: 1.5rem;
}
.discord-invite a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.discord-invite a:hover {
    text-decoration: underline;
}
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
        color: white;
    padding: 0.5rem 1rem;
        border-radius: 6px;
        cursor: pointer;
        font-family: var(--font-sans);
        font-size: 0.875rem;
        transition: var(--transition);
    }
.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: var(--transition);
    }
    
    header.scrolled {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: var(--shadow);
        border-bottom: 1px solid var(--gray-200);
    }
    
    header.scrolled .logo,
    header.scrolled .nav-links a {
        color: var(--darker-color);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-color);
        text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-color);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        color: white;
    padding: 10rem 0 8rem;
        text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    background:
            radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
        z-index: 1;
}

.hero-content {
    position: relative;
        z-index: 2;
        max-width: 800px;
        margin: 0 auto;
        padding: 0 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #c7d2fe);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
}

.hero p {
    font-size: 1.25rem;
        margin: 0 auto 2rem;
        color: #cbd5e1;
        max-width: 600px;
}

.hero .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.hero .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }
.hero .cta-button i {
    font-size: 1.25rem;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
        color: white;
        padding: 0.8rem 2rem;
        border-radius: 50px;
        font-weight: 600;
        text-decoration: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

/* Scripts Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
        margin: 2rem 0;
}

.script-card {
    background: var(--card-bg);
        border-radius: var(--border-radius);
        overflow: hidden;
    transition: transform 0.2s ease;
}

.script-card:hover {
    transform: translateY(-5px);
}

.script-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: all 0.5s ease;
}

.script-card:hover .script-image {
    transform: scale(1.05);
}

.script-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
}

.script-card:hover .script-image::after {
    opacity: 0.7;
}

.script-info {
    padding: 1.5rem;
}

.script-info h3 {
    margin-bottom: 0.5rem;
}

.script-info p {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.script-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(124, 58, 237, 0.12);
        color: var(--primary-light);
        padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.script-actions {
    display: flex;
    gap: 0.75rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    .scroll-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .scroll-to-top:hover {
        background: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }
    
    /* Animations */
    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }
    
        100% {
            transform: rotate(360deg);
        }
    }
    
    @keyframes fadeInUp {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
    
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Apply animation to sections */
    section {
        opacity: 0;
        animation: fadeInUp 0.6s ease forwards;
}

/* Delay animations for each section */
.hero {
    animation-delay: 0.1s;
}

.scripts {
    animation-delay: 0.2s;
}

/* Loading Animation */
.loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-animation.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

/* Footer */
footer {
    background: var(--darker-color);
    color: white;
    text-align: center;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
        .footer-links a {
            color: var(--gray-300);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }
        .footer-links a:hover {
            color: white;
}

footer p {
    color: var(--gray-400);
    font-size: 0.95rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #7c3aed;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
    pointer-events: none;
    font-size: 14px;
    text-align: center;
    min-width: 200px;
    max-width: 90%;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Fallback for older browsers */
@supports not (backdrop-filter: blur(10px)) {
    .notification {
        background-color: rgba(124, 58, 237, 0.95);
    }
}

/* Modern browsers with backdrop filter */
@supports (backdrop-filter: blur(10px)) {
    .notification {
        background-color: rgba(124, 58, 237, 0.85);
        backdrop-filter: blur(10px);
    }
}
/* Button Loading State */
.cta-button.copy-loading {
    position: relative;
    pointer-events: none;
    padding-right: 40px;
}
.cta-button.copy-loading:after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--dark-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
            transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

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