/* ==========================================================================
   VARIABLES & BASE STYLES
   ========================================================================== */
:root {
    --color-primary: #005A9C; /* A professional, trustworthy blue */
    --color-primary-dark: #004070;
    --color-text-heading: #1A202C;
    --color-text-body: #4A5568;
    --color-background-light: #F7FAFC;
    --color-background-white: #FFFFFF;
    --color-border: #E2E8F0;
    --font-heading: 'Lato', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --container-width: 1140px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-background-white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.content-section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    max-w: 600px;
    margin: 0 auto 48px auto;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-background-white);
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 700;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-background-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 90, 156, 0.2);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 100%;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 35px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.main-header.scrolled .logo img {
    height: 30px;
}

.main-nav {
    display: flex; /* Changed for mobile menu logic */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--color-text-body);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    padding: 0;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-heading);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center center; /* This ensures the image is always centered */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-background-white);
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 900;
    color: var(--color-background-white);
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8); /* Stronger drop shadow */
}

.hero-content p {
    font-size: 20px;
    max-w: 650px;
    margin: 0 auto 30px auto;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8); /* Stronger drop shadow */
    font-weight: 500; /* Bolder subheader text */
}

.hero-cta {
    padding: 15px 35px;
    font-size: 16px;
}

/* ==========================================================================
   FEATURED IN SECTION
   ========================================================================== */
.featured-in-section {
    background-color: var(--color-background-light);
    padding: 20px 0;
    text-align: center;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.logos-container img {
    height: 25px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logos-container img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap; /* Added for mobile */
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 16px;
    color: var(--color-text-body);
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */
.how-it-works-section {
    background-color: var(--color-background-light);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.step-card {
    padding: 30px;
}

.step-icon {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* ==========================================================================
   SAMPLE REPORT SECTION
   ========================================================================== */
.sample-report-section {
    background-color: var(--color-background-white);
}

.report-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.report-text-content .section-title,
.report-text-content .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.report-text-content ul {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.report-text-content ul li {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.report-text-content ul li i {
    color: var(--color-primary);
    margin-right: 15px;
    font-size: 22px;
}

.report-image-content img {
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transform: rotate(0deg); /* Removed rotation */
    transition: all 0.3s ease;
}

.report-image-content img:hover {
    transform: scale(1.05); /* Only scale on hover */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}


/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
    background-color: var(--color-background-light); /* Alternating background color */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--color-background-white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary);
}

.feature-item i {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
    background-color: var(--color-background-white);
}

.faq-container {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
}

.faq-answer p {
    padding: 0 0 20px 0;
}

/* ==========================================================================
   SIGNUP SECTION
   ========================================================================== */
.signup-section {
    background-color: var(--color-primary);
    color: var(--color-background-white);
    text-align: center;
}

.signup-section h2 {
    color: var(--color-background-white);
    font-size: 32px;
    margin-bottom: 10px;
}

.signup-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.signup-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.signup-form input {
    width: 100%;
    padding: 14px;
    border-radius: 5px;
    border: 1px solid transparent;
    font-size: 16px;
}

.signup-form input:focus {
    outline: none;
    border-color: var(--color-primary-dark);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.signup-form .cta-button {
    background-color: var(--color-background-white);
    color: var(--color-primary);
    flex-shrink: 0;
}

.signup-form .cta-button:hover {
    background-color: #f0f0f0;
    color: var(--color-primary-dark);
}

.form-message {
    margin-top: 15px;
    height: 20px;
    font-size: 14px;
    font-weight: bold;
}

.form-message.success {
    color: #38A169; /* A nice green for success */
}

.form-message.error {
    color: #E53E3E; /* A clear red for errors */
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--color-text-heading);
    color: #A0AEC0;
    padding: 60px 0 30px 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #2D3748;
}

.footer-logo {
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-about p {
    max-width: 300px;
}

.footer-links h4 {
    color: var(--color-background-white);
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #A0AEC0;
}

.footer-links a:hover {
    color: var(--color-background-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #A0AEC0;
    font-size: 18px;
}

.social-icons a:hover {
    color: var(--color-background-white);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE MENU
   ========================================================================== */
@media (max-width: 992px) {
    .nav-cta {
        display: none;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-background-white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 20px;
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    .main-nav ul li {
        width: 100%;
        text-align: center;
    }
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .report-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .report-image-content {
        order: -1; /* Move image to the top on smaller screens */
        text-align: center;
    }
    .report-image-content img {
        transform: rotate(0deg);
        max-width: 80%;
    }
    .report-text-content .section-title,
    .report-text-content .section-subtitle {
        text-align: center;
    }
    .report-text-content {
        text-align: center;
    }
    .report-text-content ul {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        padding: 0 20px;
    }
    .logo img {
        height: 26px;
    }
    .main-header.scrolled .logo img {
        height: 24px;
    }
    .hero-section {
        align-items: flex-end;
        padding-bottom: 80px;
        min-height: 400px;
        height: 55vh;
        background-position: center top;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 45px;
    }
    .hero-content .hero-subtext {
        display: none;
    }
    .hero-cta {
        display: inline-block;
        padding: 12px 18px;
        font-size: 13px;
        white-space: nowrap;
        animation: pulse-animation 2s infinite ease-in-out;
    }
    .hero-content h1 {
        font-size: 42px;
        margin-bottom: 0;
    }
    .steps-container, .stats-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .signup-form {
        flex-direction: column;
    }
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about p {
        margin: 0 auto;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }
    .section-title {
        font-size: 28px;
    }
    .logos-container {
        gap: 20px;
    }
    .logos-container img {
        height: 20px;
    }
}