/* ===================================================================
   TABLE OF CONTENTS
   -------------------------------------------------------------------
   01. CSS Variables & Theme
   02. Global Styles & Resets
   03. Utility & Animation Classes
   04. Header & Navigation
   05. Footer
   06. Hero Section & Particles
   07. About Section
   08. Services Section (3D Tilt)
   09. Process Section (Timeline)
   10. Data CTA Section
   11. Testimonials Section
   12. Sample Report Modal
   13. Contact Page Styles
   14. Legal Page Styles
   15. Keyframes
   16. Responsive Design (Media Queries)
=================================================================== */

/* ===================================================================
   01. CSS Variables & Theme
=================================================================== */
:root {
    /* Color Palette */
    --primary-dark: #1A0A3B;
    --primary-accent: #00F0FF;
    /* Cyan */
    --secondary-accent: #9C4BFF;
    /* Lilac/Purple */
    --bg-light: #F4F7FC;
    --bg-dark: #0D051C;
    --text-dark: #0D0D0D;
    --text-light: #555;
    --white: #FFFFFF;
    --border-color: #E0E6F1;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Sizing & Effects */
    --header-height: 80px;
    --border-radius: 12px;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* ===================================================================
   02. Global Styles & Resets
=================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    color: var(--secondary-accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 100px 0;
    overflow: hidden;
}

/* ===================================================================
   03. Utility & Animation Classes
=================================================================== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.cta-button {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    background: var(--primary-accent);
    border: 2px solid var(--primary-accent);
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-dark);
    transition: var(--transition-fast);
    z-index: -1;
}

.cta-button:hover {
    color: var(--primary-accent);
}

.cta-button:hover::before {
    width: 100%;
}

.cta-button.secondary {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.cta-button.secondary:hover {
    color: var(--primary-accent);
    border-color: var(--primary-accent);
}

.cta-button.secondary:hover::before {
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 70px;
    height: 4px;
    background: var(--primary-accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Animation Base Classes */
.anim-slide-in-left,
.anim-slide-in-right,
.anim-fade-in-up {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.anim-slide-in-left {
    transform: translateX(-50px);
}

.anim-slide-in-right {
    transform: translateX(50px);
}

.anim-fade-in-up {
    transform: translateY(50px);
    transition-delay: var(--delay, 0s);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===================================================================
   04. Header & Navigation
=================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    height: var(--header-height);
    transition: all var(--transition-fast);
    background-color: rgba(13, 5, 28, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);

}

.header.scrolled {
    background-color: rgba(13, 5, 28, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    height: 70px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: var(--white);
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.nav-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-right: 12px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--white);
    border-radius: 2px;
}

/* ===================================================================
   05. Footer
=================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.footer-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-right: 15px;
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 35px;
    background-color: var(--primary-accent);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--primary-accent);
    padding-left: 5px;
}

.footer-contact li p {
    margin: 0 0 15px;
}

.footer-contact strong {
    color: var(--primary-accent);
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ===================================================================
   06. Hero Section & Particles
=================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--bg-dark));
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.animate-on-load {
    animation: fadeInBlur 1.5s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--primary-accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down-indicator a {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-accent);
    border-radius: 20px;
}

.scroll-down-indicator span {
    display: block;
    width: 4px;
    height: 8px;
    background: var(--primary-accent);
    border-radius: 2px;
    margin: 6px auto;
    animation: scroll-anim 2s infinite;
}

/* ===================================================================
   07. About Section
=================================================================== */
.about-section {
    background: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    padding-top: 110%;
    background-image: url('https://source.unsplash.com/random/800x880/?office,modern');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.about-text-content .section-title {
    text-align: left;
}

.about-text-content .section-title::after {
    left: 0;
    transform: none;
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-accent), var(--primary-accent));
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.feature-item h4 {
    margin-bottom: 5px;
}

.feature-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* ===================================================================
   08. Services Section (3D Tilt)
=================================================================== */
.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
    will-change: transform;
}

.service-card-content {
    transform: translateZ(20px);
}

.service-icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.service-icon svg {
    fill: var(--primary-accent);
    width: 30px;
    height: 30px;
}

.service-card:hover .service-icon {
    background-color: var(--primary-accent);
}

.service-card:hover .service-icon svg {
    fill: var(--primary-dark);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* ===================================================================
   09. Process Section (Timeline)
=================================================================== */
.process-section {
    background-color: var(--white);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 1;
}

.process-timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 2;
    height: 0;
    transition: height 1s ease-out;
}

.process-timeline.visible::before {
    height: 100%;
}

.timeline-item {
    padding: 40px 0;
    position: relative;
    z-index: 3;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 4px solid var(--primary-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.timeline-content {
    padding: 20px 40px;
    position: relative;
    width: 45%;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
    text-align: right;
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-accent);
}

.timeline-content h3 {
    margin-top: 10px;
}

/* ===================================================================
   10. Data CTA Section
=================================================================== */
.data-cta-section {
    padding: 120px 0;
    background-image: linear-gradient(rgba(26, 10, 59, 0.9), rgba(13, 5, 28, 0.9)), url('https://source.unsplash.com/random/1600x900/?technology,network');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.data-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.data-cta-content h2,
.data-cta-content p {
    color: var(--white);
}

.data-cta-content p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================================================
   11. Testimonials Section
=================================================================== */
.testimonials-section {
    background: var(--bg-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border-top: 4px solid transparent;
    transition: var(--transition-fast);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary-accent);
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-dark);
    position: relative;
    padding-left: 20px;
}

.testimonial-quote::before {
    content: '“';
    position: absolute;
    left: -5px;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-accent);
    opacity: 0.5;
}

.testimonial-author {
    margin-top: 20px;
    text-align: right;
}

.author-name {
    font-weight: 700;
    display: block;
}

/* ===================================================================
   12. Sample Report Modal
=================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 5, 28, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.modal-content h3 {
    margin-bottom: 30px;
}

.report-date {
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-light);
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.kpi-card h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: block;
}

.kpi-change {
    font-weight: 700;
}

.kpi-change.positive {
    color: #28a745;
}

.kpi-change.negative {
    color: #dc3545;
}

.chart-container {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.chart-container h4 {
    text-align: center;
    margin-bottom: 20px;
}

.chart-placeholder {
    height: 200px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 15px;
}

.chart-placeholder .bar {
    width: 15%;
    background: linear-gradient(var(--secondary-accent), var(--primary-accent));
    border-radius: 5px 5px 0 0;
    position: relative;
    animation: bar-rise 1s ease-out;
}

.chart-placeholder .label {
    position: absolute;
    bottom: -25px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
}

.report-summary h4 {
    margin-bottom: 10px;
}

.report-summary p {
    margin-bottom: 0;
}

/* ===================================================================
   13. Contact Page Styles
=================================================================== */
.contact-page-section {
    padding-top: calc(var(--header-height) + 80px);
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    margin: 30px 0;
}

.contact-info li {
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-info li strong {
    color: var(--primary-dark);
}

.contact-form-container h3 {
    margin-bottom: 20px;
}

#contact-form .form-row {
    display: flex;
    gap: 20px;
}

#contact-form .form-group {
    width: 100%;
    margin-bottom: 20px;
}

#contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

#contact-form input,
#contact-form textarea,
#contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus {
    outline: none;
    border-color: var(--secondary-accent);
    box-shadow: 0 0 0 3px rgba(156, 75, 255, 0.2);
}

#contact-form textarea {
    resize: vertical;
}

/* ===================================================================
   14. Legal Page Styles
=================================================================== */
.legal-page {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    text-align: center;
    margin-bottom: 40px;
}

.legal-page h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    font-size: 1.75rem;
}

.legal-page ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 1.5rem;
}

.legal-page li {
    margin-bottom: 10px;
}

/* ===================================================================
   15. Keyframes
=================================================================== */
@keyframes fadeInBlur {
    from {
        opacity: 0;
        filter: blur(5px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes scroll-anim {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes bar-rise {
    from {
        height: 0;
    }
}

/* ===================================================================
   16. Responsive Design (Media Queries)
=================================================================== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding-top: 100px;
        align-items: stretch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 20px;
        font-size: 1.2rem;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar {
        background: var(--white);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-col,
    .contact-col {
        grid-column: 1 / -1;
    }

    .process-timeline::after,
    .process-timeline::before {
        left: 30px;
    }

    .timeline-item::after {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        float: right !important;
        text-align: left !important;
    }

    .report-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .report-grid {
        grid-template-columns: 1fr;
    }

    #contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}