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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #fafafa;
    font-size: 16px;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Navigation */
.navigation {
    background: white;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.nav-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 10px;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.5s;
}

.nav-tab:hover::before {
    left: 100%;
}

.nav-tab:hover {
    background: rgba(16, 185, 129, 0.05);
    color: #10b981;
    transform: translateY(-2px);
}

.nav-tab.active {
    color: #10b981;
    border-bottom-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.1));
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.nav-tab:hover .nav-icon {
    transform: scale(1.1);
}

.nav-text {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Main Content */
.main {
    padding: 80px 0;
}

/* Category Section */
.category-section {
    margin-bottom: 80px;
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.category-section:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Category Header */
.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(16, 185, 129, 0.1);
    position: relative;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #34d399, #10b981);
    border-radius: 1px;
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1d1d1f;
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-description {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.tool-card {
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.5s;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    border-color: #10b981;
    background: white;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
    transform: translateY(-4px);
}

.tool-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
    position: relative;
}

.tool-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    transition: left 0.3s;
    z-index: -1;
}

.tool-link:hover::before {
    left: 0;
}

.tool-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.tool-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.2s;
}

.tool-link:hover::after {
    transform: translateX(4px);
}

/* Footer */
.footer {
    background: #1f2937;
    color: #9ca3af;
    text-align: center;
    padding: 50px 0;
    margin-top: 40px;
}

.footer p {
    font-size: 1rem;
}

/* Scroll Animations */
.category-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.category-section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .nav-tabs {
        padding: 0 5px;
    }
    
    .nav-tab {
        padding: 12px 16px;
        min-width: 80px;
    }
    
    .nav-icon {
        font-size: 1.25rem;
    }
    
    .nav-text {
        font-size: 0.8rem;
    }
    
    .category-section {
        padding: 30px 20px;
        margin-bottom: 50px;
    }
    
    .category-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .category-icon {
        font-size: 3rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-card {
        padding: 24px 20px;
    }
    
    .main {
        padding: 60px 0;
    }
    
    .header {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .category-section {
        padding: 24px 16px;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-title {
        font-size: 1.75rem;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .tool-name {
        font-size: 1.25rem;
    }
    
    .tool-description {
        font-size: 0.95rem;
    }
    
    .tool-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

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

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation for tool cards */
.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }
.tool-card:nth-child(7) { animation-delay: 0.7s; } 