
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.container {
    max-width: 800px;
    width: 100%;
    background: var(--window-color);
    border: 2px solid var(--outline-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.3),
        0 8px 16px var(--primary-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--tertiary-color), var(--accent-color));
    border-radius: 16px 16px 0 0;
}

.container:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.4),
        0 12px 24px var(--primary-color);
}

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

.title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 1px solid var(--outline-color);
    border-radius: 12px;
    padding: 0;
    text-decoration: none;
    color: var(--on-primary);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    text-decoration: none;
    color: var(--on-primary);
}

.tool-card:nth-child(2n) {
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    color: var(--on-secondary);
}

.tool-card:nth-child(2n):hover {
    color: var(--on-secondary);
}

.tool-card:nth-child(3n) {
    background: linear-gradient(135deg, var(--tertiary-color), var(--accent-color));
    color: var(--on-tertiary);
}

.tool-card:nth-child(3n):hover {
    color: var(--on-tertiary);
}

.tool-card:nth-child(4n) {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--on-accent);
}

.tool-card:nth-child(4n):hover {
    color: var(--on-accent);
}

.tool-content {
    text-align: center;
    padding: 1.5rem;
    width: 100%;
}

.tool-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.tool-description {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

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

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

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

.footer-text {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

.back-link {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: var(--window-color);
    color: var(--text-color);
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--outline-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.back-link:hover {
    background: var(--primary-color);
    color: var(--on-primary);
    transform: translateX(-2px);
    text-decoration: none;
}
