/* General Styles */
:root {
    --color-primary: #0056b3; /* Darker Blue */
    --color-secondary: #004085; /* Even Darker Blue for accents */
    --color-accent: #007bff; /* Bright Blue */
    --color-text-dark: #333;
    --color-text-light: #f4f4f4;
    --color-bg-light: #ffffff;
    --color-bg-dark: #f0f4f8; /* Light Grey Blue */
    --color-border: #ddd;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.2em;
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
}

.section-content {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-text-light);
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    text-decoration: none;
    transform: translateY(-2px);
}

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

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

.header-logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-text-light);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-main .nav-list {
    list-style: none;
    display: flex;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--color-text-light);
    font-weight: 400;
    font-size: 1.05em;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    height: 3px;
    width: 25px;
    background-color: var(--color-text-light);
    margin-bottom: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.section-hero {
    background: url('Hero-Section.jpg') no-repeat center center/cover;
    color: var(--color-text-light);
    text-align: center;
    padding: 150px 0 100px;
    display: flex;
    align-items: center;
    min-height: 100vh; /* Full viewport height */
    position: relative;
    margin-top: -80px; /* Adjust for fixed header height */
    z-index: 1;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55); /* Dark overlay */
    z-index: -1;
}

.hero-container {
    padding-top: 80px; /* Push content down due to negative margin */
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subheadline {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    font-size: 1.1em;
    padding: 15px 35px;
}

/* Section Styling */
section {
    padding: 80px 0;
    background-color: var(--color-bg-light);
}

section:nth-of-type(even) {
    background-color: var(--color-bg-dark);
}

/* About Section */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
}

.about-image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.about-text {
    flex: 2;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--color-bg-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5em;
    color: var(--color-primary);
    margin: 20px 15px 10px;
}

.service-description {
    padding: 0 15px 20px;
    color: #666;
    font-size: 0.95em;
}

/* Testimonials Section */
.section-testimonials {
    background-color: var(--color-bg-dark);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.1em;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 15px;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--color-secondary);
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #fcfcfc;
    color: #555;
}

.faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding: 20px;
    padding-top: 10px; /* Less padding top */
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.contact-detail {
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-detail h3 {
    font-family: var(--font-heading);
    font-size: 1.4em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.contact-detail p {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #555;
}

.contact-detail a {
    color: var(--color-accent);
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-links img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: translateY(-3px);
}

/* Footer Section */
.section-footer {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-link {
    color: var(--color-text-light);
    margin: 0 15px;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-copyright {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-headline {
        font-size: 3em;
    }

    .hero-subheadline {
        font-size: 1.3em;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image-wrapper {
        margin-bottom: 30px;
    }

    .services-grid, .testimonial-grid, .contact-info {
        grid-template-columns: 1fr;
    }
}

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

    .header-logo {
        font-size: 1.5em;
    }

    .nav-main {
        position: relative;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item {
        margin: 0;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 10px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

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

    .nav-link::after {
        display: none; /* Hide underline animation on mobile */
    }

    .nav-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .hero-headline {
        font-size: 2.5em;
    }

    .hero-subheadline {
        font-size: 1.1em;
    }

    .section-title {
        font-size: 2em;
    }

    .section-subtitle {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2em;
    }

    .hero-subheadline {
        font-size: 1em;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .section-title {
        font-size: 1.8em;
    }

    .faq-question {
        font-size: 1em;
        padding: 15px;
    }

    .faq-answer p {
        font-size: 0.9em;
    }
}