:root {
    /* Light theme colors */
    --bg-primary: #f8f9fd;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef1fd;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-tertiary: #93c5fd;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --card-border: rgba(226, 232, 240, 0.8);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --card-hover-border: rgba(59, 130, 246, 0.5);
    --header-bg: rgba(255, 255, 255, 0.8);
    --hero-gradient: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    --tool-icon-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --footer-bg: #1e293b;
    --footer-text: #e2e8f0;
    --toggle-bg: #1e293b;
    --toggle-circle: #fff;
}

[data-theme="dark"] {
    /* Dark theme colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-tertiary: #1d4ed8;
    --card-bg: #1e293b;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --card-border: rgba(51, 65, 85, 0.8);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --card-hover-border: rgba(59, 130, 246, 0.5);
    --header-bg: rgba(15, 23, 42, 0.85);
    --hero-gradient: linear-gradient(120deg, #4b6cb7 0%, #182848 100%);
    --tool-icon-gradient: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --footer-bg: #0f172a;
    --footer-text: #e2e8f0;
    --toggle-bg: #e2e8f0;
    --toggle-circle: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 0.5rem;
    color: var(--accent-primary);
}

.logo span {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
    background-color: var(--bg-tertiary);
}

/* Theme Toggle */
.theme-toggle {
    background-color: var(--toggle-bg);
    border: none;
    width: 3rem;
    height: 1.5rem;
    border-radius: 1rem;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.25rem;
}

.theme-toggle i {
    font-size: 0.75rem;
    color: var(--toggle-circle);
}

.toggle-circle {
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    height: 1.25rem;
    width: 1.25rem;
    background-color: var(--toggle-circle);
    border-radius: 50%;
    transition: transform 0.3s;
}

[data-theme="dark"] .toggle-circle {
    transform: translateX(1.5rem);
}

/* Hero Section */
.hero {
    background: var(--hero-gradient);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeIn 1s ease-out 0.2s both;
}

/* Tools Section */
.section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid var(--card-border);
    animation: fadeIn 0.8s ease-out both;
    animation-delay: calc(var(--delay) * 150ms);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--card-hover-border);
}

.tool-card:hover .tool-icon {
    transform: scale(1.05);
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tool-icon {
    background: var(--tool-icon-gradient);
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    transition: transform 0.5s;
}

.tool-icon svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: float 5s ease-in-out infinite;
}

.tool-content {
    padding: 1.5rem;
}

.tool-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.tool-description {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tags-container {
    margin-bottom: 1.25rem;
}

.tag {
    display: inline-block;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.tool-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

.tool-link:hover {
    background-color: var(--bg-tertiary);
    transform: translateX(3px);
}

.tool-link svg {
    margin-left: 0.25rem;
    transition: transform 0.3s;
}

.tool-link:hover svg {
    transform: translateX(3px);
}

.coming-soon {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

/* About Section */
.about {
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    display: inline-block;
    text-align: left;
}

.feature-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.feature-icon {
    color: var(--accent-primary);
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    flex-shrink: 0;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
}

.footer-content {
    margin-bottom: 1.5rem;
}

.footer-content h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.social-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 2rem;
}

.social-links li {
    margin: 0 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--accent-primary);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Animation Utility Classes */
.fade-in {
    animation: fadeIn 1s ease-out both;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .hero h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .navbar {
        flex-direction: column;
        padding: 0.75rem 0;
    }
    
    .nav-menu {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        margin: 0.25rem 0.5rem;
    }

    .about-content {
        padding: 0 1rem;
    }

    .features-list {
        width: 100%;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto 1rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}