/* General Styles */
:root {
    --primary-color: #6a0dad; /* A vibrant purple */
    --secondary-color: #8a2be2; /* A lighter purple */
    --text-color: #333;
    --text-color-light: #fff;
    --bg-light: #f4f4f4;
    --bg-dark-gradient: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Dark gradient for modern feel */
    --card-bg: #ffffff;
    --border-color: #ddd;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 12px 25px;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

/* Header */
header {
    background: var(--bg-dark-gradient);
    color: var(--text-color-light);
    padding: 1rem 0;
    box-shadow: 0 2px 5px var(--shadow-dark);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    color: var(--text-color-light);
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav ul li a {
    color: var(--text-color-light);
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: var(--bg-dark-gradient);
    color: var(--text-color-light);
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    color: var(--text-color-light);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Sections */
main section {
    padding: 60px 0;
}

main section:nth-of-type(even) {
    background: var(--bg-light);
}

/* Tool Cards */
.tools-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--shadow-light);
}

.tool-card h4 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.4rem;
}

.tool-card p {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Why Us Section */
.why-us-section ul {
    list-style: none;
    padding: 0;
}

.why-us-section li {
    background: var(--card-bg);
    padding: 15px;
    margin-bottom: 10px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.why-us-section li strong {
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section .faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.faq-section .faq-item h4 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #333;
    color: var(--text-color-light);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto; /* Pushes footer to the bottom */
    box-shadow: 0 -2px 5px var(--shadow-dark);
}

footer nav ul li a {
    color: var(--text-color-light);
}

footer nav ul li a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 15px;
    }

    header nav ul li {
        margin: 0 10px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .tool-cards {
        grid-template-columns: 1fr;
    }
}
