/*
================================================
Cybernetic HUD Theme for Digital Marketing
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  :root - CSS Variables & Theme Colors
2.  Global Styles & Reset
3.  Typography
4.  Utility Classes & Animations
5.  Header & Navigation
6.  Footer
7.  Buttons & Forms
8.  Hero Section
9.  Services Section (3D Flip Cards)
10. About Section (3D Cube)
11. Interactive Section (Calculator & Report)
12. Testimonials Section (Slider)
13. Modals & Widgets (Report, Chat)
14. Subpages (Contact, Legal)
15. Keyframe Animations
16. Responsive Design (Media Queries)
================================================
*/

/* 1. :root - CSS Variables & Theme Colors */
:root {
    --bg-dark: #010419;
    --bg-medium: #0a0e27;
    --bg-light: #151a40;
    --text-primary: #a7d1ff;
    --text-secondary: #7a8db0;
    --accent-cyan: #00f6ff;
    --accent-magenta: #f000ff;
    --border-color: rgba(0, 246, 255, 0.2);
    --glow-color-cyan: rgba(0, 246, 255, 0.7);
    --glow-color-magenta: rgba(240, 0, 255, 0.6);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Share Tech Mono', monospace;
    --header-height: 80px;
    --transition-speed: 0.3s;
    --parallax-x: 0;
    --parallax-y: 0;
}

/* 2. Global Styles & Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) var(--bg-medium);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-medium);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--accent-cyan);
    border-radius: 10px;
    border: 2px solid var(--bg-medium);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: white;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 3. Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* 4. Utility Classes & Animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

.slide-in-up {
    transform: translateY(50px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.zoom-in {
    transform: scale(0.9);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.cursor-reticle {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 0 15px var(--glow-color-cyan);
}

/* 5. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(1, 4, 25, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease;
}

.header.scrolled {
    background-color: rgba(1, 4, 25, 0.95);
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 70px;
    width: auto;
    filter: invert(1);
    transition: transform var(--transition-speed) ease;
}

.logo-link:hover .logo {
    transform: rotate(15deg);
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-left: 10px;
    color: #fff;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 22px;
    position: relative;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-toggle[aria-expanded="true"] .bar-top {
    transform: rotate(45deg);
    top: 9.5px;
}

.mobile-toggle[aria-expanded="true"] .bar-middle {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .bar-bottom {
    transform: rotate(-45deg);
    top: 9.5px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-medium);
    z-index: 999;
    padding-top: 100px;
    transition: right 0.4s ease-in-out;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--border-color);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.mobile-nav a {
    font-size: 1.2rem;
    color: white;
}

/* 6. Footer */
.footer {
    background-color: var(--bg-medium);
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
    position: relative;
}

.footer-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.footer-bg-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--accent-cyan);
    left: 10%;
    top: 0;
}

.footer-bg-shapes .shape-2 {
    width: 250px;
    height: 250px;
    background-color: var(--accent-magenta);
    right: 10%;
    bottom: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-cyan);
}

.footer-about-text {
    color: var(--text-secondary);
    margin: 20px 0;
}

.footer-logo {
    height: 70px;
    filter: invert(1);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--glow-color-cyan);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    transition: color var(--transition-speed), transform var(--transition-speed);
    display: inline-block;
}

.footer-links ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.contact-info li i {
    color: var(--accent-cyan);
    margin-top: 5px;
}

.contact-info li a {
    color: var(--text-secondary);
}

.contact-info li a:hover {
    color: #fff;
}


.footer-bottom {
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 25px 0;
    color: var(--text-secondary);
}

/* 7. Buttons & Forms */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn i {
    position: relative;
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: transform 0.4s ease;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    color: #fff;
    box-shadow: 0 5px 20px var(--glow-color-cyan), 0 5px 20px var(--glow-color-magenta);
}

.btn-primary::before {
    background: linear-gradient(90deg, var(--accent-magenta), var(--accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: right;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow-color-cyan), 0 8px 25px var(--glow-color-magenta);
}

/* Secondary Button */
.btn-secondary {
    background-color: transparent;
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-secondary:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--glow-color-cyan);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--glow-color-cyan);
}

/* 8. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background-color: var(--bg-dark);
    position: relative;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.1s linear;
}

.layer-1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%230a0e27' fill-opacity='0.4'%3E%3Crect x='0' y='0' width='10' height='10'/%3E%3C/g%3E%3C/svg%3E");
    transform: translate(calc(var(--parallax-x) * 20px), calc(var(--parallax-y) * 20px));
}

.layer-2 {
    background-image: radial-gradient(var(--accent-cyan) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    transform: translate(calc(var(--parallax-x) * -40px), calc(var(--parallax-y) * -40px));
}

.layer-3 {
    background:
        linear-gradient(var(--accent-magenta), transparent 1px) 0 0 / 100px 100px,
        linear-gradient(90deg, var(--accent-magenta), transparent 1px) 0 0 / 100px 100px;
    opacity: 0.05;
    transform: translate(calc(var(--parallax-x) * 60px), calc(var(--parallax-y) * 60px));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 20px 0 40px;
    max-width: 550px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
}

.hero-visual {
    display: grid;
    place-items: center;
}

.data-sphere {
    position: relative;
    width: 300px;
    height: 300px;
    display: grid;
    place-items: center;
    transform-style: preserve-3d;
    animation: rotateSphere 20s linear infinite;
}

.sphere-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--border-color);
    border-radius: 50%;
}

.sphere-ring:nth-child(1) {
    transform: rotateX(70deg);
}

.sphere-ring:nth-child(2) {
    transform: rotateY(70deg);
}

.sphere-ring:nth-child(3) {
    transform: rotateX(20deg) rotateY(30deg);
}

.sphere-core {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--bg-light) 0%, var(--bg-dark) 70%);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--accent-cyan);
    font-size: 3rem;
    box-shadow: 0 0 30px var(--glow-color-cyan), inset 0 0 20px rgba(0, 0, 0, 0.5);
    animation: pulseCore 3s ease-in-out infinite;
}

/* 9. Services Section (3D Flip Cards) */
.services-section {
    background-color: var(--bg-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card-container {
    perspective: 1000px;
}

.service-card {
    position: relative;
    width: 100%;
    height: 350px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card-container:hover .service-card {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-front::before,
.card-front::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-color: var(--accent-cyan);
    transition: all 0.3s;
}

.card-front::before {
    top: 10px;
    left: 10px;
    border-width: 2px 0 0 2px;
}

.card-front::after {
    bottom: 10px;
    right: 10px;
    border-width: 0 2px 2px 0;
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.card-title {
    color: #fff;
    margin-bottom: 15px;
}

.card-summary,
.card-flip-indicator {
    color: var(--text-secondary);
}

.card-flip-indicator {
    position: absolute;
    bottom: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.card-flip-indicator i {
    margin-right: 5px;
    animation: rotateFlipIcon 2s linear infinite;
}

.card-back {
    transform: rotateY(180deg);
}

.card-back p {
    font-size: 0.95rem;
}

.btn-tertiary {
    margin-top: auto;
    background-color: transparent;
    border: 1px solid var(--accent-magenta);
    color: var(--accent-magenta);
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-tertiary:hover {
    background-color: var(--accent-magenta);
    color: #fff;
}

/* 10. About Section (3D Cube) */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 60px;
}

.about-visual {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.about-visual-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 15s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid var(--border-color);
    color: white;
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
}

.front {
    transform: rotateY(0deg) translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.about-stats li {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    color: var(--accent-cyan);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
}

/* 11. Interactive Section */
.interactive-section {
    background-color: var(--bg-medium);
}

.interactive-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.interactive-panel {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 10px;
    position: relative;
}

.interactive-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, var(--glow-color-cyan), transparent 40%);
    opacity: 0.2;
    pointer-events: none;
}

.report-panel::before {
    background: radial-gradient(circle at top right, var(--glow-color-magenta), transparent 40%);
}

.panel-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.panel-title i {
    margin-right: 10px;
    color: var(--accent-cyan);
}

.report-panel .panel-title i {
    color: var(--accent-magenta);
}

.interactive-panel p {
    color: var(--text-secondary);
}

.roi-form .form-group {
    margin-bottom: 15px;
}

.roi-form input {
    background-color: var(--bg-medium);
    font-family: var(--font-secondary);
    font-size: 1.1rem;
}

.roi-result {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--bg-dark);
    border-radius: 5px;
    border: 1px dashed var(--border-color);
    text-align: center;
}

.result-value {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-secondary);
    color: var(--accent-cyan);
    margin-top: 5px;
}

.report-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 3rem;
    color: var(--accent-magenta);
    height: 158px;
    /* Match height of form */
    margin-bottom: 30px;
    opacity: 0.5;
}

/* 12. Testimonials Section */
.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 50px;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    text-align: center;
    height: 200px;
    /* Adjust as needed */
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    margin-top: 20px;
}

.author-name {
    display: block;
    font-weight: 600;
    color: #fff;
}

.author-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: calc(100% - 40px);
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.slider-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.slider-btn:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
}

/* 13. Modals & Widgets */
/* Live Chat */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-magenta));
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px var(--glow-color-cyan);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
}

.chat-toggle-btn .fa-times {
    display: none;
}

.live-chat-widget.open .fa-comments {
    display: none;
}

.live-chat-widget.open .fa-times {
    display: block;
}


.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.live-chat-widget.open .chat-window {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background-color: var(--bg-medium);
    padding: 15px;
    font-weight: 600;
    color: #fff;
}

.chat-body {
    padding: 20px;
    font-size: 0.95rem;
}

.chat-footer {
    padding: 15px;
    background-color: var(--bg-medium);
    text-align: center;
}

.chat-footer a {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Report Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 4, 25, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 40px;
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-title {
    margin-bottom: 30px;
    color: #fff;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.report-kpi {
    background-color: var(--bg-medium);
    padding: 15px;
    border-radius: 5px;
}

.report-kpi h4 {
    color: var(--text-secondary);
    font-size: 1rem;
}

.kpi-value {
    font-size: 1.8rem;
    font-family: var(--font-secondary);
    color: #fff;
}

.kpi-change {
    font-size: 1rem;
    margin-left: 10px;
}

.kpi-change.positive {
    color: #4CAF50;
}

.kpi-change.negative {
    color: #F44336;
}

.report-chart h4 {
    margin-bottom: 15px;
}

.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    background-color: var(--bg-medium);
    padding: 20px;
    border-radius: 5px;
}

.chart-bar {
    width: 15%;
    background: linear-gradient(to top, var(--accent-cyan), var(--accent-magenta));
    position: relative;
    animation: growBar 1s ease-out;
}

.chart-bar span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 14. Subpages (Contact, Legal) */
.subpage {
    padding-top: var(--header-height);
}

.page-header {
    padding: 120px 0;
    text-align: center;
    background-color: var(--bg-medium);
    position: relative;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(120px);
}

.hero-bg-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    top: -100px;
    left: -100px;
}

.hero-bg-shapes .shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-magenta);
    bottom: -100px;
    right: -100px;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-subtitle {
    max-width: 700px;
    margin: 20px auto 30px;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--accent-cyan);
}

.breadcrumbs span {
    color: #fff;
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 10px;
}

/* Contact Page */
.contact-section-page {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--bg-light);
    padding: 50px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.contact-info-col h2 {
    margin-bottom: 15px;
}

.contact-methods {
    margin-top: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.method-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.method-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

.method-details p,
.method-details a {
    color: var(--text-secondary);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-submit-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 4, 25, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 450px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: var(--text-secondary);
}

.popup .fa-check-circle {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.popup h3 {
    color: #fff;
    margin-bottom: 10px;
}

/* Legal Pages */
.legal-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.content-wrapper h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: #fff;
}

.content-wrapper p,
.content-wrapper li {
    color: var(--text-secondary);
}

.content-wrapper strong {
    color: var(--text-primary);
}

/* 15. Keyframe Animations */
@keyframes rotateSphere {
    from {
        transform: rotateY(0deg) rotateX(0deg);
    }

    to {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

@keyframes pulseCore {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px var(--glow-color-cyan);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 50px var(--glow-color-cyan);
    }
}

@keyframes rotateFlipIcon {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateCube {
    from {
        transform: rotateY(0) rotateX(0);
    }

    to {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

@keyframes growBar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

/* 16. Responsive Design */
@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-visual {
        margin-bottom: 40px;
    }

    .interactive-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
        text-align: left;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .header .container {
        padding: 0 20px;
    }

    .logo-text {
        display: none;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        height: auto;
        min-height: 320px;
    }

    .about-visual-cube {
        width: 150px;
        height: 150px;
    }

    .cube-face {
        width: 150px;
        height: 150px;
        font-size: 1.2rem;
        transform-origin: center center -75px;
    }

    .front {
        transform: rotateY(0deg) translateZ(75px);
    }

    .back {
        transform: rotateY(180deg) translateZ(75px);
    }

    .right {
        transform: rotateY(90deg) translateZ(75px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(75px);
    }

    .top {
        transform: rotateX(90deg) translateZ(75px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .testimonial-slider-container {
        padding: 30px;
    }

    .testimonial-slider {
        height: 250px;
    }

    .chat-window {
        width: calc(100vw - 40px);
    }

    .live-chat-widget {
        bottom: 20px;
        right: 20px;
    }
}