/* General Styles */
:root {
    --bg-color: #f5f5f5;
    --text-color: #333;
    --primary-color: #4e73df;
    --secondary-color: #36b9cc;
    --card-bg: #ffffff;
    --hover-bg: #f1f1f1;
    --border-radius: 10px;
    --font-family: 'Helvetica Neue', sans-serif;
    --font-weight: 600;
    --cta-bg: #007bff;
    --cta-hover-bg: #0056b3;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* Dark Mode */
.dark-mode {
    --bg-color: #121212;
    --text-color: #fff;
    --primary-color: #1e88e5;
    --secondary-color: #26c6da;
    --card-bg: #333;
    --hover-bg: #444;
    --cta-bg: #1d72b8;
    --cta-hover-bg: #005f87;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

header .logo {
    font-size: 1.5rem;
    font-weight: var(--font-weight);
}

header .nav a {
    text-decoration: none;
    color: white;
    margin: 0 15px;
    font-weight: 500;
    transition: 0.3s ease-in-out;
}

header .nav a:hover {
    color: #ffeb3b;
}

header .dark-mode-btn {
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: url('../assets/hero-bg.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1.5s ease-out forwards;
}

.cta-btn {
    padding: 12px 30px;
    background: var(--cta-bg);
    color: white;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-btn:hover {
    background: var(--cta-hover-bg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tools Section */
#tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px;
    margin-top: 50px;
}

.tool-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tool-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tool-card a {
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s;
}

.tool-card a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    padding: 5px;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .cta-btn {
        padding: 10px 25px;
    }

    .tool-card {
        padding: 20px;
    }
}