:root {
    --bg-dark: #0a0a14;
    --neon-purple: #8A2BE2;
    --neon-cyan: #00FFFF;
    --neon-pink: #FF1493;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

/* Background Animation */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a14 100%);
}

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: opacity 0.3s;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(138, 43, 226, 0.2);
    border-color: rgba(0, 255, 255, 0.3);
}

/* Header */
.glass-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.desktop-nav a {
    color: var(--text-primary);
    font-weight: 600;
}

.desktop-nav a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 15px 0;
    min-width: 200px;
    flex-direction: column;
    gap: 10px;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Invisible bridge to prevent hover loss */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    padding: 8px 20px;
    display: block;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.05);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

.btn-neon {
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
    color: white;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.btn-neon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 20, 147, 0.7);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2) inset, 0 0 10px rgba(0, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4) inset, 0 0 20px rgba(0, 255, 255, 0.4);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(45deg, #fff, var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0,255,255,0.2);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 50px 0;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 50%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(138,43,226,0.3);
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

/* Cards */
.tool-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.tool-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}
.tool-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}
.tool-card .btn {
    width: 100%;
}

.step-card {
    text-align: center;
    padding: 40px 20px;
}
.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(138,43,226,0.4);
}

/* Tool Interface */
.tool-interface {
    max-width: 800px;
    margin: 0 auto;
}
.tool-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.tool-controls select {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--neon-cyan);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: var(--font-body);
    outline: none;
    cursor: pointer;
}
.tool-controls select:focus {
    box-shadow: 0 0 10px rgba(0,255,255,0.3);
}
#output {
    width: 100%;
    min-height: 300px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    padding: 20px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 20px;
}
#output:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(138,43,226,0.2);
}

.action-btns {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Categories List */
.category-card {
    text-align: center;
    padding: 40px 20px;
}
.category-card h3 {
    margin: 15px 0;
}

/* Blog Preview */
.blog-card {
    padding: 0;
    overflow: hidden;
}
.blog-thumb {
    height: 200px;
    background: linear-gradient(45deg, #2a0845 0%, #6441A5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.blog-content {
    padding: 20px;
}
.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Pages Styling */
.page-header {
    text-align: center;
    padding: 80px 0 40px;
}
.page-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}
.page-content h2 { margin: 30px 0 15px; color: var(--neon-cyan); }
.page-content p { margin-bottom: 15px; }
.page-content ul { margin-left: 20px; margin-bottom: 15px; }

/* Footer */
.glass-footer {
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
    margin-top: 50px;
}

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

.footer-col h3 {
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul a {
    color: var(--text-secondary);
}
.footer-col ul a:hover {
    color: var(--neon-pink);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
}

/* Webkit prefix fallbacks for lint errors */
.text-gradient {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0,255,255,0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav {
        display: none; /* simple mobile menu fallback in js */
    }
    .mobile-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .hero-btns {
        flex-direction: column;
    }
    
    .header-container > .btn {
        display: none; /* Hide generate button on mobile header to save space */
    }
    
    .dropdown > a {
        pointer-events: none;
    }
    .dropdown-menu {
        position: static;
        display: flex;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 20px;
    }
    .dropdown-menu::before {
        display: none;
    }
    .dropdown.active .dropdown-menu {
        display: flex;
    }
}
