/* --- Global Styles & Variables --- */
:root {
    --bg-color: #1E1E2F; /* Dark Navy */
    --text-color: #EAEAEA; /* Light Gray */
    --header-bg: #2B2D42; /* Deep Blue */
    --accent-color: #FFD700; /* Gold */
    --card-bg: #3A3D5B; /* Dark Grayish-Blue */
    --button-text-color: #1E1E2F; /* Dark Navy for button text */
    --hover-gold: #E6C200; /* Deeper Gold for hover */
    --shadow-color: rgba(255, 215, 0, 0.15); /* Soft gold shadow */
    --card-shadow: rgba(0, 0, 0, 0.2);
    --quote-color: #c0c0c0; /* Slightly dimmer quote text */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 300;
    font-size: 16px; /* Base font size */
}
h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 0.8em;
    color: var(--text-color);
    line-height: 1.3; /* Improve heading line spacing */
}
h2 {
    font-size: clamp(1.6rem, 4vw, 1.8rem); /* Responsive H2 size */
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
}
h2 i { /* Style icons within H2 */
    margin-right: 0.4em;
    font-size: 0.9em;
    vertical-align: baseline;
}
h3 {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    color: var(--accent-color);
    margin-bottom: 1rem;
}
p {
    margin-bottom: 1em;
    font-size: clamp(0.95rem, 2vw, 1rem); /* Responsive paragraph size */
}
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--hover-gold);
}
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem; /* Side padding */
}
section {
    margin: 4rem 0; /* Consistent vertical spacing between sections */
    padding: 0 1rem; /* Padding within sections for smaller screens */
}

/* --- Header --- */
header {
    background-color: var(--header-bg);
    padding: 1.5rem 1rem; /* Add horizontal padding */
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--accent-color); /* Thicker accent line */
}
header h1 {
    color: var(--text-color);
    font-size: clamp(1.8rem, 5vw, 2.5rem); /* Responsive H1 size */
    font-weight: 700;
    margin-bottom: 0.2em; /* Space below title */
    letter-spacing: 1px;
}
header h1 a { /* Ensure header link inherits color */
    color: inherit;
    text-decoration: none;
}
header h1 i {
     margin-right: 0.3em;
     color: var(--accent-color);
     font-size: 0.8em;
     vertical-align: middle;
}
header .tagline {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem); /* Responsive tagline */
    color: var(--quote-color);
    font-weight: 300;
    margin-bottom: 0;
}

/* --- Intro Section --- */
.intro {
    text-align: center;
    margin-top: 3rem; /* Adjust top margin */
}
.intro h2 {
    font-size: clamp(2rem, 5vw, 2.2rem); /* Responsive intro H2 */
    color: var(--text-color);
    margin-bottom: 1rem;
}
.intro p {
    font-size: clamp(1rem, 2.5vw, 1.1rem); /* Responsive intro P */
    color: var(--quote-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- How It Works Section --- */
.how-it-works h2 {
     color: var(--text-color);
}
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Responsive columns */
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.step {
    background-color: var(--card-bg);
    padding: 1.8rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px var(--shadow-color); /* Add gold shadow on hover */
}
.step-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.step h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.step p {
    font-size: 0.9rem;
    color: var(--quote-color);
    margin-bottom: 0;
}

/* --- Tool Grid Container --- */
.tool-grid-container {
    /* section defaults apply */
}
/* --- Tool Grid --- */
.tool-grid {
    display: grid;
    /* Default: 2 columns for desktop */
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr; /* Ensure equal height rows */
    gap: 2rem;
}
/* --- Tool Card --- */
.tool-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards take full height of grid row */
}
.tool-card h2 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
    text-align: left; /* Keep tool titles left-aligned */
}
.tool-card h2 i {
    margin-right: 0.5em;
    width: 1.2em;
    text-align: center;
}
.tool-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    flex-grow: 1; /* Ensure paragraph fills space */
    margin-bottom: 1.5rem;
}
/* --- Button (Also for <a> styled as button) --- */
.tool-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--button-text-color);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    align-self: flex-start; /* Align button left */
    margin-top: auto; /* Push button to bottom */
    text-decoration: none; /* Ensure links don't have underlines */
}
/* --- Hover Effects --- */
.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px var(--shadow-color); /* Soft gold glow on card */
}
.tool-button:hover {
    background-color: var(--hover-gold);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}
.tool-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(255, 215, 0, 0.2); /* Slightly less shadow when active */
}

/* --- Detailed Tool Descriptions Section --- */
.detailed-tool-descriptions {
    margin: 4rem 0;
    padding: 0 1rem;
}
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--quote-color);
}
.tool-detail {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--card-shadow);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tool-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}
.tool-detail h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.tool-detail h3 i {
    margin-right: 0.8rem;
    font-size: 1.3rem;
}
.tool-detail p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}
.tool-detail p:last-child {
    margin-bottom: 0;
}

/* --- Features Highlight Section --- */
.features-highlight {
    background-color: var(--header-bg);
    padding: 3rem 1.5rem;
    border-radius: 8px;
}
.features-highlight h2 {
    color: var(--text-color);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Flexible columns */
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.feature-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--card-shadow);
    transition: transform 0.3s ease;
    text-align: center;
}
.feature-item:hover {
     transform: translateY(-5px);
}
.feature-item h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
.feature-item h3 i {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.feature-item p {
    font-size: 0.9rem;
    color: var(--quote-color);
    margin-bottom: 0;
}

/* --- Testimonials Section --- */
.testimonials h2 {
    /* section defaults apply */
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Flexible columns */
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.testimonial-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--card-shadow);
    border-left: 5px solid var(--accent-color);
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack vertically */
}
.testimonial-card blockquote {
    font-style: italic;
    color: var(--quote-color);
    margin-bottom: 1rem;
    border: none;
    padding: 0;
    position: relative;
    flex-grow: 1; /* Allow quote to take space */
}
.testimonial-card blockquote::before {
    content: '\201C'; /* Left double quote */
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.5; /* Subtler quote mark */
    position: absolute;
    top: -0.5rem;
    left: -0.8rem; /* Adjust position */
    line-height: 1;
    z-index: 0;
}
.testimonial-card cite {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--text-color);
    font-style: normal;
    margin-top: auto; /* Push cite to the bottom */
    padding-top: 1rem; /* Add space above cite */
}

/* --- FAQ Section --- */
.faq-section {
    padding: 3rem 1.5rem;
    background-color: var(--header-bg);
    border-radius: 8px;
}
.faq-section h2 {
    color: var(--text-color);
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default single column */
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--card-shadow);
    border-left: 4px solid var(--accent-color);
}
.faq-item h3 {
    font-size: 1.15rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.faq-item h3 i {
    margin-right: 0.6em;
    font-size: 0.9em;
    width: 1.1em;
    text-align: center;
    color: var(--accent-color);
}
.faq-item p {
    font-size: 0.95rem;
    color: var(--quote-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- Footer --- */
footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2.5rem 1rem;
    color: #a0a0a0;
    font-size: 0.9rem;
    background-color: var(--header-bg);
    border-top: 1px solid var(--card-bg);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
footer p { /* Applies to copyright */
    margin-bottom: 0.5rem; /* Reduced space */
}
/* New Style for Developer Credit */
.developer-credit {
    margin-top: 0.3rem; /* Space above credit */
    margin-bottom: 0.8rem; /* Space below credit before nav */
    font-size: 0.85rem;
    color: #888a9b; /* Dimmer grey */
}

.footer-nav {
    margin-top: 0.5rem;
}
.footer-nav a {
    color: #c0c0c0;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevent wrapping mid-link */
}
.footer-nav a:hover {
    color: var(--accent-color);
}

/* --- Responsive Design --- */
/* Larger Tablets / Small Desktops */
@media (max-width: 992px) {
    /* Keep 2 columns for tools */
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr; /* Ensure equal height rows */
    }
    /* Reduce columns for testimonials earlier */
    .testimonial-grid {
         grid-template-columns: 1fr;
         max-width: 650px; /* Constrain width */
    }
}
/* Tablets and below - Make FAQ 2 columns earlier if desired */
@media (min-width: 768px) {
    .faq-grid {
         grid-template-columns: repeat(2, 1fr);
         gap: 2rem;
    }
}
/* Mobile Devices */
@media (max-width: 767px) {
    body {
        font-size: 15px; /* Adjust base font slightly */
    }
    section {
        margin: 3rem 0; /* Reduce vertical spacing */
        padding: 0 0.8rem; /* Reduce section padding */
    }
    main {
         padding: 0 1rem; /* Adjust main padding */
    }
    /* Single Column Layouts */
    .tool-grid,
    .steps-container,
    .features-grid,
    .testimonial-grid, /* Already 1 column from 992px */
    .faq-grid { /* Explicitly 1 column */
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .tool-card {
        padding: 1.5rem; /* Adjust card padding */
    }
    .tool-button { /* Applies to <a> buttons too */
        width: 100%; /* Full width buttons */
        padding: 0.9rem 1rem;
    }
    .testimonial-card blockquote::before {
        font-size: 2.5rem; /* Smaller quote mark */
        left: -0.5rem;
    }
    .faq-item {
        padding: 1.2rem 1.5rem;
    }
    .footer-nav a {
        margin: 0 0.5rem; /* Less space between links */
        display: inline-block; /* Better wrapping */
        margin-bottom: 0.5rem;
    }
    .tool-detail {
        padding: 1.8rem;
    }
}
/* Very Small Mobile Devices */
@media (max-width: 480px) {
     header h1 {
        font-size: 1.6rem; /* Further reduce title size */
    }
    header .tagline {
        font-size: 0.85rem;
    }
    h2 {
        font-size: 1.4rem; /* Smaller section titles */
    }
    .tool-card h2 {
        font-size: 1.2rem;
    }
    .step h3, .feature-item h3 {
        font-size: 1.1rem;
    }
    .faq-item h3 {
        font-size: 1.05rem;
    }
    .tool-detail h3 {
        font-size: 1.3rem;
    }
}