/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --charcoal-bg: #2a2a2a;
    --charcoal-dark: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.25);
    --active-glow: rgba(180, 180, 180, 0.4);
    --disabled-overlay: rgba(0, 0, 0, 0.6);
    --text-color: #e0e0e0;
    --light-grey: #aaaaaa;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--charcoal-bg);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Logo Background */
.logo-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    opacity: 0.08;
    pointer-events: none;
}

.logo-background img {
    width: 60%;
    max-width: 800px;
    height: auto;
}

/* Header Styles */
header {
    margin-bottom: 3rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    position: relative;
    display: inline-block;
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--light-grey), transparent);
}

/* Tool Container Styles */
main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tool-container {
    position: relative;
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 10px var(--glass-shadow);
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    height: 100px;
}

.tool-container.active:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4),
                0 0 15px var(--active-glow);
}

.tool-content {
    position: relative;
    z-index: 2;
}

.tool-container h2 {
    font-size: 1.8rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.tool-container.active:hover h2 {
    transform: translateX(10px);
}

.tool-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.tool-container:nth-child(1) .tool-overlay {
    background-image: url('ani-frame/assets/background.jpg');
}

.tool-container.active:hover .tool-overlay {
    opacity: 0.2;
}

/* Disabled Tool Styles */
.tool-container.disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.5;
}

.tool-container.disabled h2 {
    color: var(--light-grey);
    font-style: italic;
}

.tool-container.disabled:hover {
    transform: none;
    box-shadow: 0 8px 25px var(--glass-shadow);
}

.tool-container.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--disabled-overlay);
    z-index: 2;
}

.tool-container.disabled .tool-content {
    z-index: 3;
}

/* Footer Styles */
footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
    color: var(--light-grey);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .tool-container {
        padding: 1.2rem 1.5rem;
        height: 80px;
    }
    
    .tool-container h2 {
        font-size: 1.5rem;
    }
    
    .logo-background img {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.7rem;
    }
    
    .tool-container {
        padding: 1rem;
        height: 70px;
    }
    
    .tool-container h2 {
        font-size: 1.3rem;
    }
    
    header {
        margin-bottom: 2rem;
    }
    
    main {
        gap: 1rem;
    }
    
    .logo-background img {
        width: 100%;
    }
}