/* Table of Contents
--------------------------------
1.  Variables & Global Styles
2.  Utility Classes
3.  Header & Navigation
4.  Footer
5.  Hero Section
6.  Stats Section
7.  Services Section
8.  Industry Tabs Section
9.  Process Timeline Section
10. Interactive Calculator Section
11. Sample Report Section
12. Testimonials Section
13. CTA Section
14. Page Specific Styles (Contact, Legal)
15. Animations & Keyframes
16. Media Queries (Responsiveness)
-------------------------------- */

/* 1. Variables & Global Styles
-------------------------------- */
:root {
    --primary-dark: #0A192F;
    --secondary-dark: #112240;
    --accent-color: #ff6464;
    --light-text: #CCD6F6;
    --slate-text: #8892B0;
    --white: #FFFFFF;
    --light-accent: rgba(100, 255, 218, 0.1);

    --font-primary: 'Poppins', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

    --header-height: 80px;
}

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-dark);
    color: var(--slate-text);
    font-family: var(--font-primary);
    line-height: 1.6;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--light-text);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--white);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. Utility Classes
-------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--light-accent);
    color: var(--accent-color);
    transform: translateY(-3px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title span {
    display: block;
    color: var(--accent-color);
    font-family: var(--font-mono);
    margin-bottom: 10px;
    font-size: 1rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title.text-center h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.text-center {
    text-align: center;
}

/* 3. Header & Navigation
-------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: top 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: block;
}

.logo img {
    height: 40px;
    filter: invert(1);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--light-text);
    padding: 10px 0;
    position: relative;
    font-size: 0.95rem;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 4. Footer
-------------------------------- */
.site-footer {
    background-color: var(--secondary-dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-logo {
    height: 45px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer-col.about-col p {
    max-width: 300px;
}

.footer-col.links-col ul li {
    margin-bottom: 10px;
}

.footer-col.links-col a {
    color: var(--slate-text);
}

.footer-col.links-col a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(136, 146, 176, 0.2);
}

.footer-bottom p {
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* 5. Hero Section
-------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 50px) 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #0A192F, #112240, #0a182e, #11213f);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 6. Stats Section
-------------------------------- */
.stats-section {
    padding: 5rem 0;
    background-color: var(--secondary-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background-color: var(--primary-dark);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
}

.stat-number {
    font-size: 3rem;
    color: var(--accent-color);
    font-weight: 700;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--slate-text);
    margin: 0;
}

/* 7. Services Section
-------------------------------- */
.services-section {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--secondary-dark);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.7);
}

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.service-icon svg {
    width: 48px;
    height: 48px;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* 8. Industry Tabs Section
-------------------------------- */
.industry-section {
    padding: 6rem 0;
    background-color: var(--secondary-dark);
}

.industry-tabs-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.industry-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(136, 146, 176, 0.3);
}

.tab-link {
    background: none;
    border: none;
    color: var(--slate-text);
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    position: relative;
}

.tab-link:hover {
    color: var(--accent-color);
    background-color: var(--light-accent);
}

.tab-link.active {
    color: var(--accent-color);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.tab-content {
    display: none;
    padding: 1rem;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--accent-color);
}

.tab-content ul {
    list-style: none;
    padding-left: 20px;
    margin-top: 1rem;
}

.tab-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.tab-content ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 1;
}

/* 9. Process Timeline Section
-------------------------------- */
.process-section {
    padding: 6rem 0;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--secondary-dark);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -14px;
    background-color: var(--primary-dark);
    border: 4px solid var(--accent-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--secondary-dark);
    position: relative;
    border-radius: 6px;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-step {
    position: absolute;
    top: -20px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(100, 255, 218, 0.1);
    z-index: -1;
}

.timeline-item:nth-child(odd) .timeline-step {
    left: 30px;
}

.timeline-item:nth-child(even) .timeline-step {
    right: 30px;
}

.timeline-content h3 {
    margin-top: 0;
}

/* 10. Interactive Calculator Section
-------------------------------- */
.calculator-section {
    padding: 6rem 0;
    background-color: var(--secondary-dark);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--primary-dark);
    padding: 3rem;
    border-radius: 8px;
    align-items: center;
    border: 1px solid var(--light-accent);
}

.calculator-text h3 {
    color: var(--accent-color);
}

.calculator-form .form-group {
    margin-bottom: 1.5rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--slate-text);
}

.calculator-form input,
.calculator-form select {
    width: 100%;
    padding: 10px;
    background: var(--secondary-dark);
    border: 1px solid var(--slate-text);
    border-radius: 4px;
    color: var(--light-text);
    font-size: 1rem;
}

.calculator-form input[type="range"] {
    padding: 0;
}

#conversion-rate-value {
    color: var(--accent-color);
    font-weight: bold;
    margin-left: 10px;
}

.calculator-results {
    text-align: center;
    background: var(--secondary-dark);
    padding: 2rem;
    border-radius: 8px;
}

.calculator-results h4 {
    color: var(--slate-text);
    font-weight: 400;
}

#estimated-leads {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin: 1rem 0;
}

.calculator-results span {
    font-size: 0.9rem;
    color: var(--slate-text);
}


/* 11. Sample Report Section
-------------------------------- */
.report-section {
    padding: 6rem 0;
}

.report-dashboard {
    background-color: var(--secondary-dark);
    border: 1px solid var(--light-accent);
    border-radius: 8px;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-accent);
}

.report-header span {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.report-kpi h5 {
    color: var(--slate-text);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.report-kpi p {
    font-size: 1.75rem;
    color: var(--light-text);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kpi-change {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.kpi-change.positive {
    color: var(--accent-color);
    background: var(--light-accent);
}

.kpi-change.negative {
    color: #ff7b72;
    background: rgba(255, 123, 114, 0.1);
}

.report-chart {
    border-top: 1px solid var(--light-accent);
    padding-top: 2rem;
}

.report-chart img {
    width: 100%;
    display: block;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.chart-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* 12. Testimonials Section
-------------------------------- */
.testimonials-section {
    padding: 6rem 0;
    background-color: var(--secondary-dark);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    padding: 0 20px;
    position: absolute;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 2rem;
    position: relative;
    padding: 0 30px;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    line-height: 1;
}

.testimonial-text::before {
    top: -10px;
    left: 0;
}

.testimonial-text::after {
    bottom: -30px;
    right: 0;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
    color: var(--accent-color);
}

.testimonial-author span {
    font-size: 0.9rem;
}

.slider-controls {
    text-align: center;
    margin-top: 2rem;
}

.slider-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--light-accent);
}

/* 13. CTA Section
-------------------------------- */
.cta-section {
    padding: 6rem 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* 14. Page Specific Styles (Contact, Legal)
-------------------------------- */
.page-header {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    background-color: var(--secondary-dark);
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Page */
.contact-page-section {
    padding: 6rem 0;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--secondary-dark);
    border: 1px solid var(--slate-text);
    border-radius: 4px;
    color: var(--light-text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--light-accent);
}

.contact-info-wrapper h2 {
    color: var(--accent-color);
}

.contact-info-item {
    margin-bottom: 2rem;
}

.contact-info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Legal Pages */
.legal-content {
    padding: 6rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--accent-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-accent);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}


/* 15. Animations & Keyframes
-------------------------------- */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.fade-in-up {
    transform: translateY(30px);
}

.scroll-animate.fade-in-right {
    transform: translateX(-30px);
}

.scroll-animate.fade-in-left {
    transform: translateX(30px);
}

.scroll-animate.zoom-in {
    transform: scale(0.95);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* 16. Media Queries (Responsiveness)
-------------------------------- */
@media (max-width: 992px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        margin-bottom: 3rem;
    }

    .process-timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 15px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }
}


@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background-color: var(--secondary-dark);
        box-shadow: -10px 0 30px -15px rgba(0, 0, 0, 0.7);
        padding-top: 100px;
        align-items: center;
        transform: translateX(100%);
        animation: slideIn 0.3s forwards;
    }

    .main-nav.active ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .main-nav.active li {
        width: 100%;
    }

    .main-nav.active a {
        display: block;
        padding: 20px;
        font-size: 1.2rem;
    }

    .mobile-nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    @keyframes slideIn {
        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(0);
        }
    }

    @keyframes slideOut {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(100%);
        }
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col.about-col,
    .footer-col.contact-col {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {

    .stats-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col.about-col,
    .footer-col.contact-col {
        grid-column: span 1;
    }

    .footer-col {
        text-align: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col.about-col p {
        margin-left: auto;
        margin-right: auto;
    }
}