/* === Global Styles & Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure footer stays at bottom */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem; /* Adjusted padding */
    flex-grow: 1; /* Allows container to grow and push footer down */
}

a {
    color: #00ffee;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Navigation === */
nav {
    background-color: #1a1a1a;
    padding: 0.8rem 0;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem; /* Padding within nav container */
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00ff88, #00ffee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.logo a:hover {
    opacity: 0.9;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

nav ul li a:hover,
nav ul li a.active /* Style for active page link */
{
    color: #00ff88;
    text-decoration: none;
}


/* === Hero Section === */
.hero {
    text-align: center;
    padding: 3rem 1rem; /* Adjusted padding */
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    margin-bottom: 3rem;
    border-radius: 15px;
    border: 1px solid #2a2a2a;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ff88, #00ffee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: #aaaaaa;
    max-width: 600px;
    margin: 0 auto 1.5rem auto; /* Added bottom margin */
    font-size: 1.1rem;
}

/* === Button Styles === */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #00ff88, #00ffee);
    color: #000 !important; /* Ensure text is dark */
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: opacity 0.3s ease;
    border: none; /* Remove default border */
    cursor: pointer; /* Add pointer cursor */
}

.btn:hover {
    opacity: 0.9;
    text-decoration: none; /* Remove underline on hover */
}

/* === Tools Grid (Homepage specific) === */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0; /* Adjusted padding */
}

.tool-card {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column; /* Align items vertically */
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
}

.tool-card h3 {
    color: #00ff88;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.tool-card p {
    color: #aaaaaa; /* Lighter grey */
    margin-bottom: 1rem;
    flex-grow: 1; /* Make paragraph take available space */
    font-size: 0.95rem;
}

.tool-card .btn {
    margin-top: auto; /* Push button to the bottom */
    align-self: flex-start; /* Align button to the left */
}


/* === Page Content (For About/Contact) === */
.page-content {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    margin-top: 2rem; /* Space below hero */
}

.page-content h2 {
    color: #00ff88;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 0.5rem;
}

.page-content p {
    margin-bottom: 1rem;
    color: #cccccc; /* Slightly lighter text for content */
}

/* === Contact Form Specific Styles === */
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #aaaaaa;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid #333;
    background-color: #222;
    color: #ffffff;
    font-size: 1rem;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00ff88;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
     /* Inherit .btn styles */
    font-size: 1rem;
}


/* === Footer === */
footer {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    background-color: #1a1a1a;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #2a2a2a;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    nav .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap; /* Allow nav items to wrap */
        padding-top: 0.5rem;
    }
}

@media (max-width: 480px) {
     .hero h1 {
        font-size: 1.8rem;
    }
     .container {
         padding: 1rem;
     }
     nav .container {
         padding: 0 1rem;
     }
}