/* Basic Resets & Global Styles */
:root {
    --primary-color: #007bff; /* A vibrant blue for main actions/highlights */
    --secondary-color: #6c757d; /* A muted grey for secondary text */
    --accent-color: #28a745; /* A green for success/positive actions */
    --dark-bg: #212529; /* Dark background for sections */
    --light-bg: #f8f9fa; /* Light background for sections */
    --text-color-dark: #343a40; /* Dark text on light backgrounds */
    --text-color-light: #ffffff; /* Light text on dark backgrounds */
    --border-color: #dee2e6; /* Light border color */
    --card-bg: #ffffff; /* Card background */
    --gradient-hero: linear-gradient(135deg, #007bff 0%, #0056b3 100%); /* Blue gradient */
    --gradient-cta: linear-gradient(45deg, #28a745 0%, #218838 100%); /* Green gradient */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--light-bg);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #f7f7f7; /* Darker shade of primary */
    transform: translateY(-3px);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #007bff; /* Darker shade of accent */
}

.grid {
    display: grid;
    gap: 30px;
    padding: 20px 0;
}

/* Header */
.site-header {
    background-color: var(--dark-bg);
    padding: 15px 0;
    color: var(--text-color-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo img {
    height: 50px;
    width: auto;
    border-radius: 5px; /* Added for visual appeal */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--text-color-light);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    color: var(--text-color-light);
    text-align: center;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Make hero section taller */
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--text-color-light); /* Ensure heading is white */
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styling */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* For animations */
}

.about-section {
    background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center;
}

/* Services Section */
.services-section {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
}

.services-section h2 {
    color: var(--text-color-light);
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-item {
    background-color: var(--card-bg);
    color: var(--text-color-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.service-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-style: italic;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-card p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.testimonial-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0;
}

/* Why Choose Us Section */
.why-choose-us-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 80px 0;
}

.why-choose-us-section h2 {
    color: var(--text-color-light);
}

.why-choose-us-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.feature-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 3.5rem;
    color: var(--accent-color); /* Green icon */
    margin-bottom: 20px;
}

.feature-item h3 {
    color: var(--text-color-light);
    margin-top: 0;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--light-bg);
}

.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.portfolio-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-item h3 {
    margin: 20px 20px 10px;
    color: var(--primary-color);
}

.portfolio-item p {
    padding: 0 20px 20px;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Call to Action Section */
.cta-section {
    background: var(--gradient-cta); /* Green gradient */
    color: var(--text-color-light);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: var(--text-color-light);
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact-section {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
}

.contact-section h2 {
    color: var(--text-color-light);
}

.contact-form {
    display: grid;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto 50px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-color-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--text-color-dark);
    background-color: var(--light-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button.btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.contact-info {
    text-align: center;
    margin-top: 30px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-color-light);
}

.contact-info a {
    color: var(--accent-color);
    font-weight: 500;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Footer */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    padding: 50px 0 20px;
    font-size: 0.95rem;
    border-top: 5px solid var(--primary-color); /* Stronger border */
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 30px;
}

.footer-brand, .footer-links, .footer-contact-info, .footer-socials {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-brand .footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.footer-contact-info h3,
.footer-socials h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-info a {
    color: var(--text-color-light);
}

.footer-contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-socials a {
    color: var(--text-color-light);
    font-size: 1.8rem;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul li {
        margin: 0 10px 10px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand, .footer-links, .footer-contact-info, .footer-socials {
        min-width: unset;
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 80px 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .site-header .logo img {
        height: 45px;
    }

    .main-nav ul li {
        margin: 0 8px 8px;
    }

    .contact-form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
