/* style.css */
:root {
    --bg-primary: #0f0a1a;
    --bg-secondary: #1a1429;
    --accent-purple: #382bae;
    --accent-blue: #4e5d94;
    --accent-pink: #ca42ff;
    --accent-hot-pink: #9b59b6;
    --accent-hott-pink: #8859b6;
    --accent-pinkk: #ba42ff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

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

.bg-gradient {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #2c1a4d 0%, #161b44 50%, var(--bg-primary) 100%);
    opacity: 0.6;
    z-index: -2;
}

.bg-noise {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 20px 0;
    z-index: 100;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(15, 10, 26, 0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

nav.nav-scrolled {
    background: rgba(15, 10, 26, 0);
    border-bottom: 1px solid var(--glass-border);
}

.nav-hidden { transform: translateY(-100%); }

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    position: relative;
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active-link {
    color: var(--text-primary) !important;
}

.nav-underline {
    position: absolute;
    bottom: -5px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-pinkk), var(--accent-pinkk));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    left: 0; width: 0; opacity: 0; z-index: 10;
}

.no-transition { transition: none !important; }

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.menu-toggle span {
    display: block; width: 25px; height: 2px;
    background: #d4ccf5; transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
}

.hero-content { max-width: 900px; }

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    letter-spacing: 6px;
    line-height: 1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.7;
}

/* --- Buttons --- */
.hero-buttons {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-hott-pink), var(--accent-purple));
    color: var(--text-primary);
    box-shadow: 0 4px 30px rgba(123, 47, 190, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(123, 47, 190, 0.9);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* --- Content Sections --- */
.section-padding { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem; letter-spacing: 3px; margin-bottom: 16px;
}

.section-header h2 {
    color: var(--accent-pinkk); /* Replace with your preferred color or variable like var(--accent-blue) */
}

/* Changes "Requirements" and "1. Install via pip", etc. */
.install-content h2 {
    color: var(--accent-pinkk); /* Currently set to var(--accent-pink) in your HTML file */
}

.section-header p { color: var(--text-secondary); font-size: 1.1rem; }

/* --- Feature Grid (For Frameworks) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(202, 66, 255, 0.3);
}

.feature-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--accent-pinkk);
}

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

/* --- Code Blocks --- */
.code-window {
    background: #0a0710;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.code-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.mac-btn { width: 12px; height: 12px; border-radius: 50%; }
.close { background: #ff5f56; } .minimize { background: #ffbd2e; } .maximize { background: #27c93f; }

pre {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e2dfff;
}

.keyword { color: #ca42ff; }
.string { color: #27c93f; }
.comment { color: #6c757d; }
.function { color: #61afef; }

/* --- Comparison Table --- */
.table-wrapper { overflow-x: auto; margin-top: 40px; }
table {
    width: 100%; border-collapse: collapse;
    background: var(--glass-bg); border-radius: 16px; overflow: hidden;
}
th, td {
    padding: 20px; text-align: center; border-bottom: 1px solid var(--glass-border);
}
th {
    background: rgba(255, 255, 255, 0.05); font-weight: 600;
    color: var(--text-primary); text-transform: uppercase; letter-spacing: 1px;
}
td:first-child, th:first-child { text-align: left; font-weight: 500; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }
.check { color: #27c93f; font-size: 1.2rem; }
.cross { color: #ff5f56; font-size: 1.2rem; }

/* --- Footer --- */
footer {
    padding: 80px 0 40px;
    background: rgba(10, 10, 18, 0.5);
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}

.footer-brand h3 {
    font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 2px;
    margin-bottom: 16px; background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.footer-brand p { color: var(--text-secondary); line-height: 1.6; max-width: 300px; }
.footer-column h4 { font-size: 1rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--accent-pink); }
.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between; /* This pushes items to opposite sides */
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Stack them on top of each other on mobile devices */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Animations & Mobile */
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-underline { display: none; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
        background: var(--bg-secondary); flex-direction: column; align-items: center;
        justify-content: center; gap: 40px; transition: 0.4s ease; z-index: 1000;
    }
    .nav-links.active { right: 0; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    th, td { padding: 12px; font-size: 0.85rem; }
}

/* Styling the headings generated from Markdown */
#changelog-container h2 {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--accent-pink);
    margin-top: 40px;
    border-bottom: 1px solid var(--glass-border);
}

#changelog-container h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    margin-top: 25px;
    color: var(--text-primary);
}

#changelog-container ul {
    list-style: none;
    padding-left: 10px;
}



/* Styling the 'Type' labels if the bot uses [fix], [feat], etc. */
#changelog-container code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
}