:root {
    --primary: #00f2ea;
    --secondary: #ff0050;
    --bg: #050505;
    --surface: #121212;
    --text: #ffffff;
    --text-gray: #888888;
    --gradient: linear-gradient(45deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--surface);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary);
}

/* Navigation Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.tab-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: #000;
}

/* Tool Sections */
.tool-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tool-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tool-desc {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.tool-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.input-area {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text);
    font-size: 1.1rem;
    resize: vertical;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.input-area:focus {
    outline: none;
    border-color: var(--primary);
}

.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.action-btn {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.action-btn.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.action-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
}

/* Result Box */
.result-box {
    background: rgba(0, 242, 234, 0.05);
    border: 1px dashed var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 100px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.result-box:hover {
    background: rgba(0, 242, 234, 0.1);
}

.copy-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: var(--primary);
    opacity: 0.7;
}

/* Fancy Font Grid */
.font-grid {
    display: grid;
    gap: 1rem;
}

.font-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.font-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* SEO Content */
.seo-content {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.seo-content h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.seo-content h4 {
    color: var(--text);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.seo-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.seo-content ul,
.seo-content ol {
    margin-left: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.seo-content li {
    margin-bottom: 0.5rem;
}

.seo-content strong {
    color: var(--text);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 5rem;
    padding: 2rem 0;
    color: var(--text-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .main-nav {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .action-btn {
        min-width: 120px;
        padding: 0.8rem 1.5rem;
    }
}