/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #f0f0f0; /* Slightly off-white for better readability */
    /* --- BACKGROUND IMAGE SECTION --- */
    /* Image from Unsplash - a great source for free photos */
    background-image: linear-gradient(rgba(5, 10, 25, 0.8), rgba(5, 10, 25, 0.8)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&q=80&w=2070');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Keeps the background still while scrolling */
    line-height: 1.6;
}

/* Header */
header {
    text-align: center;
    padding: 4rem 1rem 2rem;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

section {
    /* Removing the old background and blur effect */
    background: transparent;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

section h2 {
    font-size: 2.2rem;
    color: #ffffff;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00aaff; /* A professional light blue accent */
    margin-bottom: 2rem;
}

/* Sub-category Styling */
.sub-category {
    margin-top: 2rem;
}

.sub-category h4 {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

/* Tool Card Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* --- UPDATED CARD DESIGN --- */
.tool-card {
    background: #0a192f; /* A professional dark navy blue */
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 170, 255, 0.2); /* Subtle blue border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    /* Animation settings for scroll effect (from script.js) */
    opacity: 0;
    transform: translateY(20px);
}

/* The class added by JavaScript to make cards visible */
.tool-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.tool-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 30px rgba(0, 170, 255, 0.2); /* Glow effect on hover */
}

.tool-card h3 {
    margin-top: 0;
    color: #00aaff; /* Professional light blue for titles */
}

.tool-card p {
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #cccccc; /* Lighter grey for description text */
}

/* Tool Link Button */
.tool-link {
    display: inline-block;
    background-color: #00aaff;
    color: #0a192f; /* Dark text for high contrast on the button */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tool-link:hover {
    background-color: #ffffff;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}