:root {
    --bg-color: #0a0a1a;
    --primary-color: #00f2fe;
    --secondary-color: #9a4dff;
    --card-bg-color: rgba(22, 22, 42, 0.7);
    --card-border-color: rgba(0, 242, 254, 0.2);
    --card-hover-border-color: rgba(0, 242, 254, 0.7);
    --text-color: #e0e0e0;
    --text-secondary-color: #a0a0c0;
    --font-primary: 'Exo 2', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

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

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

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(rgba(10, 10, 26, 0.95), rgba(10, 10, 26, 0.95)),
        url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: space-pan 120s linear infinite;
}

@keyframes space-pan {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-select {
    background-color: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.language-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.language-select option {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.site-header {
    text-align: center;
    padding: 4rem 1rem 2rem;
    position: relative;
    z-index: 1;
}

.site-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.7), 0 0 16px rgba(154, 77, 255, 0.5);
    animation: gentle-glow 4s ease-in-out infinite alternate;
}

@keyframes gentle-glow {
    from {
        text-shadow:
            0 0 8px rgba(0, 242, 254, 0.6),
            0 0 16px rgba(154, 77, 255, 0.4),
            0 0 24px rgba(154, 77, 255, 0.2);
    }
    to {
        text-shadow:
            0 0 12px rgba(0, 242, 254, 0.8),
            0 0 24px rgba(154, 77, 255, 0.6),
            0 0 36px rgba(154, 77, 255, 0.3);
    }
}

.site-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    margin-top: 0.5rem;
    font-weight: 300;
}

.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
    border-bottom: 1px solid var(--card-border-color);
}

.nav-button {
    background-color: transparent;
    border: 1px solid var(--card-border-color);
    color: var(--text-secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-button:hover, .nav-button.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

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

.tool-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-out;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(0, 242, 254, 0.2), transparent 30%);
    animation: rotate 6s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--card-hover-border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.tool-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 0.8rem;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
}

.tool-name {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.3;
}

.tool-description {
    font-size: 0.85rem;
    color: var(--text-secondary-color);
    flex-grow: 1;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.tool-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(154, 77, 255, 0.2);
    color: var(--secondary-color);
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

.visit-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1;
}

.visit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--secondary-color);
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--card-border-color);
    color: var(--text-secondary-color);
}

@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2.5rem;
    }
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 0.8rem;
    }
    .tool-card {
        padding: 1rem;
        min-height: 180px;
    }
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    .language-select {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .tool-card {
        min-height: auto;
    }
} 