/*
    ==============================
    TABLE OF CONTENTS
    ==============================
    1.  Setup & Global Styles
        - CSS Variables (Theme)
        - Base Styles & Typography
        - Custom Scrollbar & Cursor
    2.  Keyframe Animations
    3.  Layout & Helper Classes
    4.  Header & Navigation
    5.  Footer
    6.  Hero Section
    7.  Services Section
    8.  Process Section (Timeline)
    9.  Interactive Report Section
    10. Industry Section (Marquee)
    11. Testimonials Section
    12. CTA Section
    13. Contact Page
    14. Legal Pages
    15. Responsive Design (Media Queries)
    ==============================
*/

/* 1. Setup & Global Styles
-------------------------------------------------- */

/* CSS Variables (Theme) */
:root {
    --color-background: #0A0A1A;
    --color-primary: #101026;
    --color-secondary: #191933;
    --color-accent: #00F5FF;
    /* Cyan */
    --color-accent-secondary: #BE00FF;
    /* Magenta */
    --color-text: #EAEAEA;
    --color-text-muted: #9494A8;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-glow: rgba(0, 245, 255, 0.2);
    --color-shadow: rgba(0, 0, 0, 0.5);

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;
    --header-height: 80px;
    --border-radius: 6px;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&family=Space+Grotesk:wght@500;700&display=swap');

/* Base Styles & Typography */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-background);
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    text-wrap: balance;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    max-width: 65ch;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: white;
}

ul {
    list-style: none;
}

section {
    padding: 7rem 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar & Cursor */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: white;
}

.custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    left: 0;
    top: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    z-index: 9999;
}

body:hover .custom-cursor {
    opacity: 1;
}

a:hover~.custom-cursor,
button:hover~.custom-cursor,
input:hover~.custom-cursor,
textarea:hover~.custom-cursor,
select:hover~.custom-cursor {
    width: 40px;
    height: 40px;
    background-color: var(--color-glow);
}


/* 2. Keyframe Animations
-------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes revealText {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-indicator {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    50% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(10px);
        opacity: 0;
    }
}

@keyframes line-draw {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes dot-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--color-glow);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 10px 10px rgba(0, 245, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 245, 255, 0);
    }
}


/* 3. Layout & Helper Classes
-------------------------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    font-family: var(--font-secondary);
    font-weight: 500;
    padding: 12px 30px;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    transform: translateX(-101%);
    transition: transform var(--transition-fast);
    z-index: -1;
}

.cta-button:hover {
    color: var(--color-primary);
}

.cta-button:hover::before {
    transform: translateX(0);
}

.cta-button.large {
    padding: 16px 40px;
}

.cta-button.inverted {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.cta-button.inverted:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.cta-button.inverted::before {
    background-color: var(--color-background);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

[data-animation="fade-in-up"] {
    transform: translateY(40px);
}

[data-animation="zoom-in"] {
    transform: scale(0.9);
}

/* 4. Header & Navigation
-------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    transition: background-color var(--transition-fast), border-bottom var(--transition-fast);
    background-color: transparent;
}

.site-header.scrolled {
    background-color: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 50px;
    transition: transform var(--transition-fast);
}


.main-nav {
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* 5. Footer
-------------------------------------------------- */
.site-footer {
    background-color: var(--color-primary);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.footer-about .logo-img {
    margin-bottom: 1rem;
}

.footer-about p {
    font-size: 0.9rem;
}

.footer-links h4,
.footer-legal h4,
.footer-contact h4 {
    margin-bottom: 1rem;
    color: var(--color-text);
    font-size: 1.1rem;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-legal a {
    color: var(--color-text-muted);
}

.footer-links a:hover,
.footer-legal a:hover {
    padding-left: 5px;
    color: var(--color-accent);
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--color-text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}


/* 6. Hero Section
-------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, var(--color-border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--color-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    z-index: -1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-title span {
    display: block;
    overflow: hidden;
}

.animate-reveal span {
    transform: translateY(100%);
    animation: revealText 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-reveal span:last-child {
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down-indicator a {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
}

.scroll-down-indicator span {
    display: block;
    width: 2px;
    height: 8px;
    background: var(--color-text-muted);
    margin: 6px auto;
    border-radius: 2px;
    animation: scroll-indicator 2s infinite;
}

/* 7. Services Section
-------------------------------------------------- */
.services-section {
    background-color: var(--color-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    background-color: var(--color-secondary);
    border-radius: var(--border-radius);
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--color-shadow);
}

.service-card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.service-card:hover .service-card-border {
    border-color: var(--color-accent);
}

.service-icon {
    height: 50px;
    width: 50px;
    margin-bottom: 1.5rem;
    /* Placeholder for SVG icons */
    background: var(--color-glow);
    border-radius: 50%;
}

.service-title {
    margin-bottom: 1rem;
}


/* 8. Process Section (Timeline)
-------------------------------------------------- */
.process-section {
    position: relative;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-border);
    transform-origin: top;
}

.timeline-line.is-visible {
    animation: line-draw 2s linear forwards;
    animation-timeline: view();
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 2px solid var(--color-accent);
}

.timeline-item.is-visible .timeline-dot {
    animation: dot-pulse 1.5s ease-out;
}

.timeline-step {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-title {
    margin-bottom: 0.5rem;
}


/* 9. Interactive Report Section
-------------------------------------------------- */
.report-section {
    background-color: var(--color-primary);
}

.interactive-report-wrapper {
    background-color: var(--color-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    padding: 2rem;
    box-shadow: 0 10px 30px var(--color-shadow);
}

.report-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.report-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--color-text-muted);
    font-family: var(--font-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.report-tab:hover {
    color: var(--color-text);
}

.report-tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.report-content {
    display: none;
}

.report-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.kpi-card {
    background-color: var(--color-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.kpi-change {
    margin-top: auto;
    font-size: 0.9rem;
}

.kpi-change.positive {
    color: #4ade80;
}

.kpi-change.negative {
    color: #f87171;
}

.kpi-change.neutral {
    color: var(--color-text-muted);
}

.chart-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.chart-visual {
    height: 250px;
    background: url("data:image/svg+xml,...");
    /* placeholder */
}


/* 10. Industry Section (Marquee)
-------------------------------------------------- */
.industry-section {
    padding: 4rem 0;
    overflow: hidden;
}

.industry-marquee {
    display: flex;
    width: 100%;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    font-size: 2rem;
    font-family: var(--font-secondary);
    color: var(--color-text-muted);
    padding: 0 2rem;
    white-space: nowrap;
}

.marquee-content span::after {
    content: '•';
    color: var(--color-accent);
    margin-left: 4rem;
}

.marquee-content span:last-child::after {
    content: '';
}


/* 11. Testimonials Section
-------------------------------------------------- */
.testimonials-section {
    background-color: var(--color-primary);
}

.testimonial-slider-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 3rem;
    background-color: var(--color-secondary);
    border-radius: var(--border-radius);
    transition: transform var(--transition-slow);
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 3rem;
}

.testimonial-quote::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.5;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.author-name {
    font-weight: 700;
}

.author-title {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.prev-btn,
.next-btn {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.prev-btn:hover,
.next-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.dots-container {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-text-muted);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.dot.active {
    background-color: var(--color-accent);
    transform: scale(1.2);
}


/* 12. CTA Section
-------------------------------------------------- */
.cta-section {
    background: linear-gradient(45deg, var(--color-accent), var(--color-accent-secondary));
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.cta-subtitle {
    color: var(--color-primary);
    opacity: 0.9;
}


/* 13. Contact Page
-------------------------------------------------- */
.contact-page {
    padding-top: calc(var(--header-height) + 5rem);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-border);
    outline: none;
    position: relative;
    z-index: 1;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    pointer-events: none;
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:valid+label,
.form-group textarea:valid+label,
.form-group select:valid+label {
    top: -15px;
    left: 0;
    font-size: 0.8rem;
    color: var(--color-accent);
}

.form-group select {
    appearance: none;
}

.form-group select:invalid {
    color: var(--color-text-muted);
}

.contact-info-wrapper h3 {
    margin-bottom: 1rem;
}

.contact-details li {
    margin-bottom: 1rem;
}

.contact-details li strong {
    color: var(--color-text);
}


/* 14. Legal Pages
-------------------------------------------------- */
.legal-page {
    padding-top: calc(var(--header-height) + 5rem);
}

.legal-page .container {
    max-width: 800px;
}

.legal-title {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-content h2 {
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 0.5rem;
}


/* 15. Responsive Design
-------------------------------------------------- */
@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(75vw, 400px);
        height: 100%;
        background-color: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .header-actions .cta-button {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-nav {
        margin-right: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-title {
        letter-spacing: -1px;
    }

    section {
        padding: 5rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 10px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-dot {
        width: 22px;
        height: 22px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-quote {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    body {
        cursor: auto;
    }

    .custom-cursor {
        display: none;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .marquee-content span {
        font-size: 1.5rem;
    }
}