/* General Body & Typography */
:root {
    --primary-color: #3f51b5; /* Indigo */
    --secondary-color: #ff9800; /* Amber */
    --accent-color: #00bcd4; /* Cyan - used sparingly for highlights */
    --text-dark: #333;
    --text-light: #555;
    --bg-light: #f8f8f8;
    --bg-medium: #eef2f7;
    --border-color: #ddd;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    margin-bottom: 0.8em;
}

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

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

ul {
    list-style: none;
}

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

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    text-transform: uppercase;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #303f9f; /* Darker primary */
    transform: translateY(-2px);
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
    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(--secondary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2em;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 400;
}

.section-content {
    margin-bottom: 1em;
}

/* Header & Navigation */
.header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

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

.header-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav-list {
    display: flex;
    gap: 30px;
}

.main-nav-link {
    color: var(--text-dark);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-speed);
}

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

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

.main-nav-link:hover,
.main-nav-link.active {
    color: var(--primary-color);
}

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

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all var(--transition-speed);
}

/* Sections General Styling */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden; /* Ensures parallax or overflow content is handled */
}

/* Hero Section */
.section-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('hero_background.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Adjust as needed */
    padding-top: 100px; /* Offset for fixed header */
}

.hero-content {
    max-width: 800px;
}

.hero-headline {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
    animation: fadeInDown 1s var(--transition-speed);
}

.hero-subheadline {
    font-size: 1.5em;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s var(--transition-speed);
}

.section-hero .btn-primary {
    padding: 15px 35px;
    font-size: 1.1em;
    animation: scaleIn 1s var(--transition-speed);
}

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

.about-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
    min-width: 350px;
    height: 400px;
    background: url('about_image.jpg') no-repeat center center/cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transform: translateY(0);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-content {
    flex: 1.5;
}

/* Services Section */
.section-services {
    background-color: #fff;
}

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

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

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

.service-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: rotateIn 0.8s ease-out; /* Simple animation */
}

.service-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-description {
    font-size: 1em;
    color: var(--text-light);
}

/* Testimonials Section */
.section-testimonials {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0;
}

.section-testimonials .section-title,
.section-testimonials .section-subtitle {
    color: #fff;
}

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

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed);
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    text-align: right;
    color: var(--primary-color);
}

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

.faq-accordion {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background-color: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-light);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    transition: background-color var(--transition-speed);
}

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

.faq-question i {
    transition: transform var(--transition-speed);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out, padding var(--transition-speed);
    background-color: #fcfcfc;
    color: var(--text-light);
    font-size: 0.95em;
    line-height: 1.7;
}

.faq-answer.open {
    max-height: 200px; /* Adjust based on expected content length */
    padding: 15px 25px 20px;
}

/* Contact Section */
.section-contact {
    background-color: #fff;
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.contact-info {
    flex: 1.2;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.contact-detail i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.4em;
    width: 30px; /* Align icons */
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-medium);
    color: var(--primary-color);
    font-size: 1.5em;
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.contact-image {
    flex: 1;
    min-width: 350px;
    height: 400px;
    background: url('contact_image.jpg') no-repeat center center/cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

/* Footer Section */
.section-footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 60px;
    font-size: 0.9em;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col .footer-logo {
    color: var(--primary-color); /* Branding */
    font-size: 1.8em;
    font-weight: 700;
}


.footer-col p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed);
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    background-color: #222;
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 40px;
}


/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        transform: rotate(-30deg);
        opacity: 0;
    }
    to {
        transform: rotate(0deg);
        opacity: 1;
    }
}


/* Responsive Design */
@media (max-width: 992px) {
    .header-container {
        padding: 0 20px;
    }

    .main-nav {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Below header */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 8px 16px var(--shadow-light);
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
        animation: slideDown 0.3s ease-out;
    }

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

    .main-nav-list {
        flex-direction: column;
        gap: 0;
    }

    .main-nav-list li {
        width: 100%;
    }

    .main-nav-link {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .main-nav-link::after {
        display: none; /* Hide underline on mobile */
    }

    .menu-toggle {
        display: flex;
        z-index: 1001; /* Above mobile nav */
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section-hero {
        min-height: 60vh;
    }

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

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

    .about-container,
    .contact-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image,
    .contact-image {
        width: 100%;
        max-width: 500px;
        height: 300px;
        margin-bottom: 30px;
    }

    .about-content,
    .contact-info {
        max-width: 600px;
    }

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

    .section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }
    
    .contact-detail {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

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

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

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

    .services-grid,
    .testimonials-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .service-item, .testimonial-card, .footer-col {
        margin: 0 auto; /* Center single column */
        max-width: 400px;
    }

    .faq-accordion {
        margin-top: 30px;
    }

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

    .faq-answer {
        font-size: 0.9em;
        padding: 0 20px;
    }
    
    .footer-col h4 {
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col ul {
        text-align: center;
    }
}

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

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

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

    .menu-toggle {
        padding-right: 10px;
    }
}

/* Mobile Nav Animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}