/* style.css */
:root {
    --primary-color: #006de8;
    /* Blue from original */
    --secondary-color: #182044;
    /* Dark blue from original footer */
    --text-color: #333;
    --light-text-color: #f8f9fa;
    --background-color: #fff;
    --light-gray-bg: #f3faff;
    /* From original banner */
    --section-padding: 60px 0;
    --container-width: 90%;
    --max-container-width: 1140px;
    --font-family: 'Karla', sans-serif;
    /* From original */
    --heading-font: 'Gilroy', sans-serif;
    /* Placeholder, original was complex */
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: var(--container-width);
    max-width: var(--max-container-width);
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--heading-font);
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: darken(var(--primary-color), 10%);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: var(--background-color);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: top 0.3s;
    /* For potential hide-on-scroll later */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Adjust as needed */
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: bold;
    padding-bottom: 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    /* Add .active class with JS if needed */
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
    color: var(--light-text-color);
}

/* Main Content & Sections */
main {
    padding-top: 70px;
    /* Adjust based on header height */
}

section {
    padding: var(--section-padding);
    opacity: 0;
    /* For fade-in animation */
    transform: translateY(20px);
    /* For fade-in animation */
    animation: fadeInSection 0.8s ease-out forwards;
}

/* Staggered animation for sections */
section:nth-child(odd) {
    animation-delay: 0.1s;
}

section:nth-child(even) {
    animation-delay: 0.2s;
}


@keyframes fadeInSection {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--light-gray-bg);
    text-align: center;
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-content h1 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.hero-content h1 strong {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


/* About Section */
.about-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-content .experience {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--light-gray-bg);
    border-left: 5px solid var(--primary-color);
    display: inline-block;
}

.about-content .experience h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.about-content .experience p {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Services Section */
.services-section {
    background-color: var(--background-color);
    text-align: center;
}

.services-section .subtitle {
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-gray-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* FAQ Section */
.faq-section {
    background-color: var(--light-gray-bg);
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--background-color);
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question::after {
    content: '\f078';
    /* FontAwesome down arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer p {
    padding: 15px 0;
}

.faq-item.active .faq-answer {
    /* max-height set by JS or a large enough value */
    /* padding: 15px; */
    /* Handled by p tag */
}


/* Contact Section */
.contact-section {
    background-color: var(--background-color);
}

.contact-section h2 {
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-method {
    flex-basis: 45%;
    /* Two items per row on larger screens */
    min-width: 250px;
}

.contact-method i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-method h3 {
    font-size: 1.3rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 109, 232, 0.3);
}

.contact-form button {
    width: 100%;
}


/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 30px 0;
}

footer p {
    margin-bottom: 10px;
}

.social-links a {
    color: var(--light-text-color);
    margin: 0 10px;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {

    .hero-section .container,
    .about-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .about-content {
        order: 1;
        /* Text below image on mobile if needed */
    }

    .hero-image,
    .about-image {
        order: 2;
        margin-top: 20px;
    }
}

@media (min-width: 769px) {

    /* Desktop for hero and about two columns */
    .hero-section .container {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .hero-content {
        flex: 1;
        padding-right: 30px;
    }

    .hero-image {
        flex: 1;
        max-width: 45%;
    }

    .about-section .container {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .about-image {
        flex: 1;
        max-width: 40%;
        padding-right: 30px;
    }

    .about-content {
        flex: 1.5;
        /* Give more space to text */
    }
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 65px;
        /* Adjust based on header height */
        left: 0;
        background-color: var(--background-color);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding-bottom: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 30px;
    }

    .contact-form .form-group {
        flex-direction: column;
    }
}