/* Base Variables - Change these to tweak your entire site's color palette */
:root {
    --primary-dark: #1e293b;
    --primary-accent: #3b82f6;
    --text-main: #334155;
    --bg-light: #f8fafc;
    --white: #ffffff;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures footer stays at the bottom */
}

/* Reusable Container */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Navigation Bar */
.navbar {
    background-color: var(--primary-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-accent);
}

/* Dropdown Menu Magic */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    z-index: 10;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    display: block;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-accent);
}

.dropdown:hover .dropdown-content {
    display: block; /* Shows the menu when hovering over 'Tools' */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), #334155);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
    border-bottom: 4px solid var(--primary-accent);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content Layout */
main {
    flex: 1; /* Pushes footer down */
}

section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.about p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Tools Grid & Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    display: block;
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.tool-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.tool-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

