/* General Styling */
:root {
    --primary-color: #2C3E50; /* Dark Blue */
    --secondary-color: #3498DB; /* Bright Blue */
    --accent-color: #F8F9FA; /* Light Gray/Off-white */
    --light-bg-color: #F8F9FA; /* Very Light Gray */
    --text-color: #333;
    --light-text-color: #333;
    --white: #fff;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5em;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 0.5em;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    border: none;
    cursor: pointer;
}

.primary-button {
    background-color: var(--secondary-color);
    color: var(--white);
}

.primary-button:hover {
    background-color: #2980B9; /* Darker blue */
    transform: translateY(-2px);
    color: var(--white);
}

/* Header & Navigation */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 150px;
    max-height: 150px; /* Ensure max height adherence */
    width: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 30px;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover:after {
    width: 100%;
}

/* Hamburger menu for mobile */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition-speed);
}

/* Hero Section */
.hero-section {
    background: url('hero-800x400.png') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 150px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Light overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 0.2em;
    color: var(--white);
}

.hero-content .tagline {
    font-size: 1.5em;
    margin-bottom: 2em;
    font-weight: 300;
    color: var(--accent-color);
}

.hero-button {
    font-size: 1.1em;
    padding: 15px 30px;
}

/* Section Styling */
section {
    padding: 40px 0;
}

section:nth-child(even) {
    background-color: var(--accent-color);
}

/* About Us Section */
.about-section {
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content .mission {
    font-size: 1.2em;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 1.5em;
}

/* Services Section */
.services-section {
    background-color: var(--light-bg-color);
}

.services-summary {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 3em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--light-text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.95em;
    color: var(--light-text-color);
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: var(--primary-color);
    text-align: center;
}

.contact-section h2 {
    color: var(--primary-color);
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-info p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.contact-info a {
    color: var(--acc--primary-color);
    transition: color var(--transition-speed);
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    font-size: 2em;
    margin: 0 15px;
    color: var(--secondary-color);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Contact Form Section */
.form-section {
    background-color: var(--light-bg-color);
}

.form-section h2, .form-section p {
    text-align: center;
    margin-bottom: 10px;
}

.form-section p {
    max-width: 600px;
    margin: 0 auto 0px auto;
    color: var(--light-text-color);
}

.form-section form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-section button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--accent-color);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

.main-footer p {
    margin-bottom: 10px;
}

.main-footer a {
    color: var(--secondary-color);
    font-weight: 600;
}

.main-footer a:hover {
    color: var(--white);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .nav-list li {
        margin-left: 20px;
    }

    .hero-section {
        min-height: 500px;
        padding: 100px 0;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content .tagline {
        font-size: 1.2em;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }

    .logo img {
        height: 100px; /* Smaller logo for mobile */
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-list {
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        padding: 20px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, padding 0.4s ease-out;
        z-index: 999;
    }

    .nav-list.active {
        max-height: 400px; /* Adjust as needed for content */
        padding: 20px 0;
    }

    .nav-list li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link.button {
        margin-top: 15px;
        display: inline-block;
        width: auto; /* Buttons should not take full width if styled */
    }

    .nav-link:hover:after {
        width: 0; /* Remove underline animation for mobile dropdown */
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .hero-section {
        padding: 80px 0;
        min-height: 400px;
    }

    .hero-content .tagline {
        font-size: 1em;
    }

    .service-item {
        padding: 20px;
    }

    .form-section form {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content .tagline {
        font-size: 0.9em;
    }
    .hero-button {
        font-size: 1em;
        padding: 12px 20px;
    }
    h2 {
        font-size: 1.8em;
    }
    .contact-info p {
        flex-direction: column;
        align-items: center;
    }
    .contact-info p i {
        margin-right: 0;
        margin-bottom: 5px;
    }
}
