/*
Instruction: Create the main stylesheet for the website.

This CSS file defines the visual identity of the site, aiming for a rich, trustworthy, and modern design. It includes:
- A professional color palette with a deep blue primary color and complementary grays.
- Typography using 'Merriweather' for headings and 'Lato' for body text to create a classic, readable feel.
- A responsive layout using Flexbox and media queries to ensure the site looks great on all devices.
- Styling for all major components, including the header, hero section, service cards, forms, and footer.
- Subtle hover effects and transitions to enhance user interaction.
- Custom styling for the AOS animations to ensure they are smooth and visually appealing.
*/

:root {
    --primary-color: #0d2c54;
    --secondary-color: #f8f9fa;
    --accent-color: #007bff;
    --text-color: #343a40;
    --text-color-light: #6c757d;
    --heading-font: 'Merriweather', serif;
    --body-font: 'Lato', sans-serif;
    --container-width: 1200px;
    --border-radius: 12px;
    --box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(45deg, #0d2c54, #0056b3);
}

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

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: #ffffff;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
    padding: 1.5rem 0;
}

.main-header.scrolled {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

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

.navbar-brand {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    z-index: 1011; /* Keep brand on top */
}

.main-header.scrolled .navbar-brand {
    color: var(--primary-color);
}

/* --- Desktop Navigation Styles (for screens > 991px) --- */
@media (min-width: 992px) {
    .nav-menu {
        position: static;
        display: flex;
        align-items: center;
        gap: 1.5rem;
        background-color: transparent;
        height: auto;
        width: auto;
        flex-direction: row;
        transition: none;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-links a {
        font-size: 1rem;
        color: #fff !important;
        text-decoration: none;
        font-weight: 700;
        position: relative;
        padding-bottom: 5px;
    }
    
    .main-header.scrolled .nav-links a {
        color: var(--text-color) !important;
    }

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

    .nav-links a:hover::after {
        width: 100%;
    }
    
    .nav-menu .btn-primary {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .hamburger {
        display: none !important;
    }
}

/* --- Mobile Navigation Styles (for screens <= 991px) --- */
@media (max-width: 991px) {
    .hamburger {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1011;
        position: relative;
        width: 24px;
        height: 20px;
    }

    .hamburger i {
        font-size: 1.8rem;
        color: #fff;
        transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .main-header.scrolled .hamburger i {
        color: var(--primary-color);
    }

    .hamburger .fa-times {
        opacity: 0;
    }

    .hamburger.active .fa-times {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(180deg);
    }

    .hamburger.active .fa-bars {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-180deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(13, 44, 84, 0.98);
        backdrop-filter: blur(5px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease-in-out;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 2rem;
    }

    .nav-links a {
        font-size: 1.8rem;
        color: #fff !important;
        text-decoration: none;
        font-weight: 700;
    }

    .nav-menu .btn-primary {
        font-size: 1.2rem;
        padding: 12px 25px;
    }
}

/* --- Buttons --- */
.btn {
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

/* --- Hero Section --- */
.hero {
    background: var(--gradient-primary);
    color: #fff;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero h1, .hero p {
    color: #fff;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    line-height: 1.2;
}

.hero-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* --- General Sections --- */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

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

.service-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    stroke-width: 1.5;
}

/* --- Process Timeline Section --- */
.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    background-color: #fff;
    border: 4px solid var(--accent-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--secondary-color);
    position: relative;
    border-radius: var(--border-radius);
}

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

.testimonial-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    position: relative;
    padding-top: 50px;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 30px;
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.author-info span {
    color: var(--text-color-light);
    font-size: 0.9rem;
}

/* --- Contact Form --- */
.contact-form-section, .contact-page-section {
    background-color: var(--secondary-color);
}

.contact-form-section h2,
.contact-form-section .form-header p {
    text-align: center;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form .form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    margin-bottom: 20px;
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

.contact-page-section .container {
    max-width: 900px;
    text-align: center;
}

/* --- Process Section --- */
.process-section {
    background-color: #fff;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    opacity: 0.3;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    background-color: #fff;
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    text-align: center;
    color: var(--primary-color);
    top: 30px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
}

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

.testimonial-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    flex: 1;
    max-width: 450px;
    position: relative;
    border-top: 4px solid var(--accent-color);
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.1;
}

.testimonial-card p {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-color-light);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 0;
}

.testimonial-author span {
    color: var(--text-color-light);
    font-size: 0.9rem;
}

/* ---@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }

    .page-content h2 {
        font-size: 1.8rem;
    }

    .chart-container {
        margin: 30px auto;
    }
}

/* Page Hero Section */
.page-hero {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

/* Page Content Section */
.page-content {
    padding: 50px 0;
}

.page-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.page-content p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.7;
    margin-bottom: 30px;
}

.chart-container {
    max-width: 800px;
    margin: 40px auto;
}

/* Legal Content Pages */
.legal-content h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-top: 30px;
}

.legal-content p {
    text-align: left;
    max-width: 100%;
    margin-bottom: 15px;
}

/* Responsive Styles for New Pages */
@media (max-width: 768px) {
    .page-hero {
        padding: 40px 0;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-content h2 {
        font-size: 1.8rem;
    }

    .page-content p {
        padding: 0 15px;
    }
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about, .footer-links, .footer-social {
    flex: 1;
}

.footer-about h3 {
    color: #fff;
}

.footer-links h4, .footer-social h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-email-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-email-link:hover,
.footer-email-link:hover svg {
    color: var(--accent-color);
}

.footer-email-link svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    transition: color 0.3s ease;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #3a5a8a;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
    position: relative;
    width: 24px;
    height: 20px;
}

/* Hamburger Icon Styling */
.hamburger svg {
    width: 28px;
    height: 28px;
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.main-header.scrolled .hamburger svg {
    color: var(--primary-color);
}

/* Lucide Icon Styles */
.hamburger .icon-close {
    display: none;
}

.hamburger.active .icon-close {
    display: block;
    transform: translate(-50%, -50%) rotate(360deg);
}

.hamburger.active .icon-menu {
    display: none;
}

.nav-menu.active + .hamburger .icon-menu {
    display: none;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(13, 44, 84, 0.98);
        backdrop-filter: blur(5px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease-in-out;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 0;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        font-size: 1.8rem;
        color: #fff !important;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-menu .btn-primary {
        font-size: 1.2rem;
        padding: 12px 25px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .service-cards,
    .testimonial-cards {
        flex-direction: column;
        align-items: center;
    }

    .process-timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 5px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .contact-form .form-group {
        flex-direction: column;
    }

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

    .testimonial-cards {
        gap: 20px;
    }
}
