/* Basic Resets & Global Styles */
:root {
    --primary-blue: #2c3e50; /* Deep blue for text, header, footer */
    --accent-teal: #3498db;  /* Lighter blue/teal for accents, buttons */
    --light-bg: #f4f7fa;     /* Light background for sections */
    --white: #ffffff;
    --text-color: #333333;
    --heading-color: var(--primary-blue);
    --font-primary: 'Fira Code', monospace; /* Main brand font for headings, logo */
    --font-secondary: 'Open Sans', sans-serif; /* Body text font for readability */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-primary); /* Apply Fira Code to headings */
    color: var(--heading-color);
    line-height: 1.2;
}

h1 { font-size: 3.2em; }
h2 { font-size: 2.5em; margin-bottom: 1em; text-align: center; }
h3 { font-size: 1.8em; margin-bottom: 0.5em; }

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: var(--accent-teal);
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9; /* Slightly darker teal on hover */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; /* Added transform */
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-teal);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2980b9; /* Darker teal */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-teal);
    border: 2px solid var(--accent-teal);
}

.btn-secondary:hover {
    background-color: var(--accent-teal);
    color: var(--white);
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Section Paddings */
.section-padded {
    padding: 80px 0;
}

.light-bg {
    background-color: var(--light-bg);
}

.dark-bg {
    background-color: var(--primary-blue);
    color: var(--white);
}

.dark-bg h2, .dark-bg h3 {
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* Header */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    display: flex;
    align-items: center;
    font-family: var(--font-primary); /* Apply Fira Code to logo text */
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-blue);
}

.main-header .logo img {
    height: 75px; /* Adjust based on SVG size */
    margin-right: 5px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1em;
    position: relative;
    padding-bottom: 5px; /* Space for underline */
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    bottom: 0;
    left: 50%; /* Start from center */
    transform: translateX(-50%); /* Center the line */
    background: var(--accent-teal);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%; /* Expand to full width on hover */
}


/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    text-align: center;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
}

/* Services Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Stronger shadow */
}

.service-item .icon-placeholder {
    width: 60px;
    height: 60px;
    background-color: var(--accent-teal);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Placeholder for SVG icons later */
}

.service-item h3 {
    color: var(--accent-teal);
    font-size: 1.5em;
}

/* Features Grid (Why Choose Us) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    color: var(--white);
}

.feature-item {
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease; /* Added transitions */
}

.feature-item:hover {
    background-color: rgba(255,255,255,0.1); /* Subtle background change */
    border-color: var(--accent-teal); /* Highlight border */
    transform: translateY(-5px); /* Slight lift */
}

.feature-item h3 {
    color: var(--white);
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* Testimonials */
.testimonial-carousel {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.testimonial-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    max-width: 450px;
    text-align: left;
    flex: 1 1 45%; /* Allows items to grow/shrink, max 2 per row */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.testimonial-item p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #444;
}

.testimonial-item cite {
    display: block;
    text-align: right;
    font-size: 0.9em;
    color: #777;
}

/* CTA Section */
.cta-section {
    background-color: var(--accent-teal);
    color: var(--white);
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.8em;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.main-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding-top: 50px;
}

.main-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
    color: var(--accent-teal);
    margin-bottom: 20px;
    font-size: 1.3em;
    font-family: var(--font-primary); /* Fira Code for footer headings */
}

.footer-col p, .footer-col ul {
    font-size: 0.95em;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-teal);
    text-decoration: underline; /* Underline on hover for text links */
}

.social-links a img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    filter: invert(1); /* Makes the placeholder SVG white */
    transition: transform 0.2s ease; /* Smooth hover for icons */
}

.social-links a:hover img {
    transform: scale(1.1); /* Slight zoom on social icons */
}

.footer-bottom {
    background-color: #243444; /* Slightly darker blue */
    padding: 15px 0;
    text-align: center;
    font-size: 0.85em;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.8em;
    }
    .main-nav ul li {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    .main-header .logo {
        margin-bottom: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav ul li {
        margin: 0 15px 10px;
    }

    .hero-section {
        padding: 80px 0;
        min-height: 400px;
    }
    .hero-section h1 {
        font-size: 2.2em;
    }
    .hero-section p {
        font-size: 1.1em;
    }
    h2 { font-size: 2em; }
    h3 { font-size: 1.6em; }

    .service-grid, .features-grid, .main-footer .container {
        grid-template-columns: 1fr;
    }
    .testimonial-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .btn {
        padding: 12px 25px;
    }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }
}