/* Tools Page Specific Styles */

/* Tool Categories */
.tool-category {
    margin-bottom: 4rem;
}

.tool-category h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-category h3 i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Tool Cards */
.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.tool-icon i {
    font-size: 2rem;
    color: white;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.tool-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.tool-card p {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-card .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-width: 120px;
}

/* Light Theme Adjustments */
body.light-theme .tool-card {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .tool-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .tool-card h4 {
    color: var(--dark);
}

body.light-theme .tool-card p {
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-category h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .tool-icon {
        width: 60px;
        height: 60px;
    }
    
    .tool-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tool-card {
        padding: 1rem;
    }
    
    .tool-card h4 {
        font-size: 1.1rem;
    }
    
    .tool-card p {
        font-size: 0.9rem;
    }
}

/* Animation for tool cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeInUp 0.6s ease forwards;
}

.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; }

/* Category animations */
.tool-category {
    animation: fadeInUp 0.8s ease forwards;
}

.tool-category:nth-child(1) { animation-delay: 0.2s; }
.tool-category:nth-child(2) { animation-delay: 0.4s; }
.tool-category:nth-child(3) { animation-delay: 0.6s; }
.tool-category:nth-child(4) { animation-delay: 0.8s; }
.tool-category:nth-child(5) { animation-delay: 1.0s; }

/* Active navigation link */
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

/* Footer adjustments for tools page */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--light);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul li {
    color: var(--gray-light);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-section .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-section .social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section .social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: var(--gray-light);
}

/* Light theme footer adjustments */
body.light-theme .footer-section h3,
body.light-theme .footer-section h4 {
    color: var(--dark);
}

body.light-theme .footer-section p,
body.light-theme .footer-section ul li {
    color: var(--gray);
}

body.light-theme .footer-section ul li a {
    color: var(--gray);
}

body.light-theme .footer-section ul li a:hover {
    color: var(--primary);
}

body.light-theme .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.1);
    color: var(--gray);
} 