/*
================================================
TABLE OF CONTENTS
================================================
1.  CSS Custom Properties & Fonts
2.  Base & Reset Styles
3.  Background & Layout
4.  Header & Navigation
5.  Footer
6.  Buttons & Forms
7.  Hero & Page Headers
8.  Core Services Section
9.  Approach (Tabs) Section
10. Report Section
11. Industries Section
12. FAQ (Accordion) Section
13. Contact Page Styles
14. Legal Page Styles
15. Animations & Keyframes
16. Responsive Design
================================================
*/

/* 1. CSS Custom Properties & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Inter:wght@400;500&display=swap');

:root {
    --bg-dark: #0A091A;
    --bg-glass: rgba(22, 21, 46, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-accent: #C434E1;
    /* Magenta */
    --secondary-accent: #4976E4;
    /* Blue */
    --text-primary: #F0F2F5;
    --text-secondary: #A9B2C3;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --header-height: 80px;
    --border-radius: 12px;
    --transition-speed: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. Base & Reset Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

img,
svg {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-accent);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--text-primary);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
}

/* 3. Background & Layout */
.background-glows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.3;
}

.glow1 {
    width: 600px;
    height: 600px;
    background: var(--primary-accent);
    top: -20%;
    left: -10%;
    animation: moveGlow1 20s infinite alternate;
}

.glow2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-accent);
    bottom: -20%;
    right: -15%;
    animation: moveGlow2 25s infinite alternate;
}

.glow3 {
    width: 400px;
    height: 400px;
    background: #34e195;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: moveGlow3 30s infinite alternate;
}

.container {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

/* 4. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    height: var(--header-height);
    background: rgba(10, 9, 26, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.site-header.hidden {
    transform: translateY(-100%);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    transition: width var(--transition-speed);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s;
}

.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(5px, -5px);
}

/* 5. Footer */
.site-footer {
    background-color: #060511;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1rem;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-secondary);
}

.footer-logo img {
    height: 50px;
    filter: invert(1);
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 0.9rem;
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    font-size: 0.9rem;
}

/* 6. Buttons & Forms */
.cta-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    cursor: pointer;
    background-size: 200% 100%;
}

.cta-button.primary {
    background-image: linear-gradient(90deg, var(--primary-accent) 0%, var(--secondary-accent) 50%, var(--primary-accent) 100%);
    color: white;
}

.cta-button.primary:hover {
    background-position: right center;
    transform: scale(1.05);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.cta-button.secondary:hover {
    background-color: var(--bg-glass);
    border-color: var(--primary-accent);
}

.header-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 15px rgba(196, 52, 225, 0.3);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.cta-button.full-width {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
}

/* 7. Hero & Page Headers */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-header-section {
    padding: 80px 0;
    text-align: center;
}

.page-header-section h1 {
    margin-bottom: 15px;
}

.page-header-section p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-primary);
}

/* 8. Core Services Section */
.core-services {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.service-feature {
    text-align: center;
}

.service-feature svg {
    margin: 0 auto 15px;
    width: 40px;
    height: 40px;
    color: var(--primary-accent);
}

.service-feature h4 {
    margin-bottom: 5px;
    color: var(--text-primary);
}

.service-feature p {
    font-size: 0.9rem;
    margin: 0;
}

/* 9. Approach (Tabs) Section */
.tabs-container {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-link {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--primary-accent);
}

.tabs-content .tab-pane {
    display: none;
    padding: 0 20px;
    animation: fadeIn 0.5s ease;
}

.tabs-content .tab-pane.active {
    display: block;
}

.tab-pane h3 {
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 10. Report Section */
.report-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 60px;
}

.report-content .section-header {
    text-align: left;
    margin: 0;
}

.report-content .section-header h2 {
    text-align: left;
}

.report-content .cta-button {
    margin-top: 20px;
}

.dashboard-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
}

.dashboard-card h4 {
    margin-bottom: 30px;
}

.metric-item {
    margin-bottom: 25px;
}

.metric-item label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-accent), var(--primary-accent));
    border-radius: 4px;
    transition: width 1.5s ease-out;
}

.progress-bar .progress.green {
    background: linear-gradient(90deg, #34e195, var(--secondary-accent));
}

.metric-value {
    position: absolute;
    right: 0;
    top: -22px;
    font-weight: bold;
    color: var(--text-primary);
}

/* 11. Industries Section */
.industries-section {
    background-color: rgba(10, 9, 26, 0.7);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.industry-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-accent);
}

.industry-icon {
    margin: 0 auto 20px;
    width: 50px;
    height: 50px;
    color: var(--primary-accent);
}

.industry-card h3 {
    margin-bottom: 15px;
}

/* 12. FAQ (Accordion) Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: var(--primary-accent);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.faq-answer p {
    padding: 0 0 20px;
    margin: 0;
}

/* 13. Contact Page Styles */
.contact-page-section {
    padding-top: 40px;
}

.contact-layout {
    max-width: 800px;
}

.contact-form-wrapper {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
}

/* 14. Legal Page Styles */
.legal-content-section {
    padding: 40px 0 80px;
}

.legal-container {
    max-width: 800px;
}

.legal-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
}

.legal-card h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

.legal-card ul {
    list-style: disc;
    margin: 20px 0 20px 20px;
}

.legal-card ul li {
    margin-bottom: 10px;
}

/* 15. Animations & Keyframes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.fade-in-up {
    transform: translateY(40px);
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes moveGlow1 {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 50px);
    }
}

@keyframes moveGlow2 {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-80px, -60px);
    }
}

@keyframes moveGlow3 {
    from {
        transform: rotate(0deg) scale(1);
    }

    to {
        transform: rotate(90deg) scale(1.2);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 16. Responsive Design */
@media (max-width: 992px) {
    .report-grid {
        grid-template-columns: 1fr;
    }

    .report-content {
        text-align: center;
    }

    .report-content .section-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .report-content .section-header h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transform: translateX(-100%);
        transition: transform var(--transition-speed);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .mobile-nav-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}