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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-lighter: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #475569;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);

    /* Aliases for compatibility */
    --color-primary: var(--primary-color);
    --color-secondary: var(--secondary-color);
    --color-dark: var(--bg-dark);
    --color-bg: var(--bg-dark);
    --color-card: var(--bg-card);
    --color-border: var(--border-color);
    --color-text-muted: var(--text-secondary);
    --color-accent: var(--secondary-color);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 1.8rem;
}

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

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

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

.nav-links .btn-subscribe-nav {
    background: var(--gradient-1);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-links .btn-subscribe-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -5px rgba(99, 102, 241, 0.5);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-lighter);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Tools Grid Layout */
.tools-section {
    background: var(--bg-dark);
}

.tools-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.category-sidebar {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    position: sticky;
    top: 100px;
    border: 1px solid var(--border-color);
    z-index: 10;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: left;
    margin-bottom: 5px;
}

.category-btn:hover {
    background: var(--bg-lighter);
    color: var(--text-primary);
}

.category-btn.active {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.tool-content {
    min-height: 600px;
}

.tool-category-content {
    display: none;
    animation: fadeIn 0.4s ease;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.tool-category-content.active {
    display: block;
}

.category-header {
    margin-bottom: 30px;
}

.category-header h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--bg-lighter);
    border-radius: 16px;
    padding: 1.8rem;
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.tool-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.tool-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tool-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.about-content {
    display: flex;
    justify-content: center;
}

.about-text {
    max-width: 800px;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tech-badge {
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .tech-badges {
        justify-content: center;
    }

    /* Sidebar Responsive */
    .tools-layout {
        grid-template-columns: 1fr;
    }
    .category-sidebar {
        position: relative;
        top: 0;
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 15px;
        white-space: nowrap;
        margin-bottom: 20px;
    }
    .category-btn {
        flex: 0 0 auto;
        width: auto;
        margin-bottom: 0;
    }
    .tool-category-content {
        padding: 1.5rem;
    }
}
