/* Table of Contents
--------------------------------
1.  Global Styles & Variables
2.  Typography
3.  Buttons & Links
4.  Layout & Container
5.  Header & Navigation
6.  Mobile Navigation
7.  Footer
8.  Hero Section & Parallax
9.  Services Section (Flip Cards)
10. Process Section (3D Timeline)
11. Sample Report Section
12. Industries Section (Tabs)
13. Testimonials Section
14. CTA Section
15. Page-Specific Styles (Contact, Legal)
16. Animations & Keyframes
17. Utility Classes
18. Responsive Media Queries
-------------------------------- */

/* 1. Global Styles & Variables */
:root {
    --primary-color: #2E8B57;      /* Sea Green - natural and professional */
    --secondary-color: #00BFFF;    /* Deep Sky Blue - techy and vibrant */
    --light-bg: #F5F7FA;          /* Very light, cool gray */
    --white-bg: #FFFFFF;
    --text-dark: #333333;          /* Dark charcoal gray */
    --text-light: #707070;        /* Medium gray */
    --border-color: #E0E0E0;
    --font-family-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --border-radius: 6px;         /* Slightly sharper corners */
    --transition-speed: 0.3s;
    --header-height: 75px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --box-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--white-bg);
    color: var(--text-light);
    font-family: var(--font-family-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 800;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

.section-title .subtitle {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--primary-color);
}

/* 3. Buttons & Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: #003b95;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-bg);
}

.btn-primary:hover {
    background-color: #003b95;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-bg);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* 4. Layout & Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    padding-top: var(--header-height);
}

section {
    padding: 100px 0;
}

/* 5. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height);
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.site-header.scrolled {
    height: 70px;
    box-shadow: var(--box-shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.main-nav li {
    margin: 0 1.5rem;
}

.main-nav a {
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
    font-weight: 600;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

/* 6. Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    z-index: 1001;
    cursor: pointer;
}

.hamburger {
    display: block;
    position: relative;
    width: 28px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.25s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.25s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.mobile-nav-open .hamburger {
    background-color: transparent;
}

.mobile-nav-open .hamburger::before {
    transform: rotate(45deg);
}

.mobile-nav-open .hamburger::after {
    transform: rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(75vw, 400px);
    height: 100vh;
    background-color: var(--white-bg);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 100px 20px;
    box-shadow: -10px 0px 30px -15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.mobile-nav ul {
    list-style: none;
    width: 100%;
}

.mobile-nav li {
    margin: 2rem 0;
}

.mobile-nav a {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-nav .btn {
    margin-top: 2rem;
}

/* 7. Footer */
.site-footer {
    background-color: var(--light-bg);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column.footer-about .footer-logo img {
    height: 45px;
    margin-bottom: 1rem;
}

.footer-column p {
    font-size: 0.9rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: var(--text-light);
}

.footer-column ul a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.footer-contact a {
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    margin: 0;
}

.live-chat-support button {
    background-color: var(--primary-color);
    color: var(--white-bg);
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.live-chat-support button:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    transform: scale(1.05);
}

.live-chat-support svg {
    width: 20px;
    height: 20px;
}

/* 8. Hero Section & Parallax */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #F0F5FF;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text {
    max-width: 550px;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-out;
}

.parallax-layer img {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.layer-1 img {
    width: 80px;
    top: 10%;
    left: 15%;
}

.layer-2 img {
    width: 100px;
    top: 20%;
    right: 10%;
    animation-delay: -2s;
}

.layer-3 img {
    width: 60px;
    bottom: 15%;
    left: 25%;
    animation-delay: -4s;
}

.layer-4 img {
    width: 90px;
    bottom: 25%;
    right: 20%;
    animation-delay: -1s;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(0, 82, 204, 0.1), rgba(255, 165, 0, 0.1));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.shape-2 {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 165, 0, 0.2);
    top: 10%;
    right: 15%;
}

/* 9. Services Section (Flip Cards) */
.services-section {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.flip-card {
    background-color: transparent;
    height: 300px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.flip-card-front {
    background-color: var(--white-bg);
    box-shadow: var(--box-shadow);
}

.flip-card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-icon svg {
    width: 48px;
    height: 48px;
}

.flip-card-front h3 {
    font-size: 1.5rem;
}

.flip-card-back h3 {
    color: white;
}

.flip-card-back p {
    color: rgba(255, 255, 255, 0.8);
}

.flip-card-back .btn-secondary {
    background: var(--white-bg);
    color: var(--primary-color);
    border-color: var(--white-bg);
}

/* 10. Process Section (3D Timeline) */
.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
    padding: 2rem;
    perspective: 1500px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-50%);
}

.process-step {
    position: relative;
    width: 22%;
    text-align: center;
    transition: transform var(--transition-speed) ease;
}

.process-step:nth-child(even) {
    transform: rotateX(20deg) translateY(20px);
}

.process-step:nth-child(odd) {
    transform: rotateX(-20deg) translateY(-20px);
}

.process-step:hover {
    transform: rotateX(0deg) translateY(0) scale(1.05);
}

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--white-bg);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto;
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 1;
}

.step-content {
    background-color: var(--white-bg);
    padding: 1.5rem;
    padding-top: 2.5rem;
    border-radius: var(--border-radius);
    margin-top: -30px;
    box-shadow: var(--box-shadow);
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* 11. Sample Report Section */
.report-section {
    background-color: var(--light-bg);
}

.report-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.report-dashboard {
    background-color: var(--white-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-hover);
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.dashboard-header .date-range {
    font-size: 0.9rem;
    color: var(--text-light);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.metric-card {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.metric-card h5 {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.metric-value,
.metric-value-percent,
.metric-value-dollar {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    display: inline-block;
}

.metric-change {
    font-weight: 600;
}

.metric-change.positive {
    color: #28a745;
}

.metric-change.negative {
    color: #dc3545;
}

/* 12. Industries Section (Tabs) */
.industries-tabs {
    background-color: var(--white-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 3rem;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    background-color: var(--light-bg);
}

.tab-link {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
    transition: color var(--transition-speed);
}

.tab-link.active {
    color: var(--primary-color);
}

.tab-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

.tab-link.active::after {
    transform: scaleX(1);
}

.tabs-content {
    padding: 3rem;
}

.tab-pane {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: grid;
}

.tab-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* 13. Testimonials Section */
.testimonials-section {
    background: linear-gradient(rgba(0, 82, 204, 0.05), rgba(0, 82, 204, 0.05));
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.testimonial-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.testimonial-slide.active {
    display: flex;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.testimonial-slide blockquote {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    max-width: 60ch;
    margin-bottom: 1.5rem;
    border: none;
}

.testimonial-slide cite {
    font-style: normal;
}

.testimonial-slide cite strong {
    display: block;
    color: var(--text-dark);
}

.slider-dots {
    text-align: center;
    margin-top: 1.5rem;
}

.slider-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.slider-dot.active {
    background-color: var(--primary-color);
}

/* 14. CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-bg);
    background-image: linear-gradient(45deg, var(--primary-color), #003b95);
}

.cta-section h2,
.cta-section p {
    color: var(--white-bg);
}

.cta-section p {
    max-width: 60ch;
    margin: 1.5rem auto;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: var(--secondary-color);
    color: var(--text-dark);
    border-color: var(--secondary-color);
}

.cta-section .btn-primary:hover {
    background: #ffc107;
}

/* 15. Page-Specific Styles (Contact, Legal) */
.page-header {
    background-color: var(--light-bg);
    text-align: center;
    padding: 80px 0;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-header p {
    margin: 1rem auto 0;
    font-size: 1.1rem;
}

.contact-page-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 0.25rem;
}

.info-item p {
    margin: 0;
}

.contact-form-wrapper {
    background-color: var(--white-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.2);
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
}

.legal-page {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.legal-page .container {
    max-width: 800px;
    background-color: var(--white-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-page ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.legal-page ul li {
    margin-bottom: 0.5rem;
}

/* 16. Animations & Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* 17. Utility Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
}

.fade-in-up.is-visible {
    animation: fade-in-up 0.8s forwards;
}

.slide-in-left.is-visible {
    animation: slide-in-left 0.8s forwards;
}

.slide-in-right.is-visible {
    animation: slide-in-right 0.8s forwards;
}

.zoom-in.is-visible {
    animation: zoom-in 0.8s forwards;
}

.text-center {
    text-align: center;
}

.text-center p,
.text-center .section-title {
    margin-left: auto;
    margin-right: auto;
}

/* 18. Responsive Media Queries */
@media (max-width: 1024px) {

    .main-nav,
    .header-cta {
        display: none;
    }

    .mobile-nav,
    .mobile-nav-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    /* Disable complex parallax on tablet */
    .hero-buttons {
        justify-content: center;
    }

    .process-timeline {
        flex-direction: column;
        gap: 2rem;
        padding: 0;
        perspective: none;
    }

    .process-step {
        width: 100%;
        transform: none !important;
    }

    .process-timeline::before {
        display: none;
    }

    .report-container {
        grid-template-columns: 1fr;
    }

    .tab-pane {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tab-image {
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .process-step {
        text-align: left;
    }

    .step-content {
        text-align: left;
    }

    .dashboard-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-link {
        font-size: 1rem;
    }

    .tabs-content {
        padding: 2rem;
    }
}