/* --- TABLE OF CONTENTS ---
1.  VARIABLES & THEME
2.  GLOBAL RESETS & SETUP
3.  TYPOGRAPHY
4.  LAYOUT & HELPERS
5.  BUTTONS & FORMS
6.  HEADER & NAVIGATION
7.  FOOTER
8.  HERO SECTION
9.  SECTION STYLES (GENERAL)
10. SERVICES SECTION
11. ABOUT SECTION
12. PROCESS TIMELINE
13. INDUSTRIES HUB
14. LIVE DEMO & CTA
15. TESTIMONIALS SLIDER
16. PAGE-SPECIFIC (SUBPAGES)
17. CONTACT PAGE
18. LEGAL PAGES
19. MODAL & POPUP
20. CHAT WIDGET
21. ANIMATIONS & KEYFRAMES
22. RESPONSIVE DESIGN (MEDIA QUERIES)
*/

/* 1. VARIABLES & THEME */
:root {
    --bg-dark: #010409;
    --bg-medium: #0d1117;
    --bg-light: #161b22;
    --border-color: #30363d;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --cyan: #1f8bff;
    --light-cyan: #38bdf8;
    --magenta: #db2777;
    --violet: #a855f7;
    --glow-cyan: rgba(31, 139, 255, 0.5);
    --glow-magenta: rgba(219, 39, 119, 0.5);
    --glow-violet: rgba(168, 85, 247, 0.4);

    --font-primary: 'Exo 2', sans-serif;
    --font-secondary: 'Poppins', sans-serif;

    --header-height: 80px;
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
}

/* 2. GLOBAL RESETS & SETUP */
*,
*::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-primary);
    font-family: var(--font-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--cyan);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--light-cyan);
}

/* 3. TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 5px var(--glow-cyan);
    color: #fff;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* 4. LAYOUT & HELPERS */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* 5. BUTTONS & FORMS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all var(--transition-medium);
}

.btn span {
    z-index: 2;
}

.btn i {
    z-index: 2;
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    background-color: var(--cyan);
    color: #fff;
    box-shadow: 0 0 15px var(--glow-cyan);
}

.btn-primary:hover {
    background-color: var(--light-cyan);
    box-shadow: 0 0 25px var(--glow-cyan);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--cyan);
    color: #fff;
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.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: 8px;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all var(--transition-medium);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
}

/* 6. HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(1, 4, 9, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-medium);
}

.header.scrolled {
    background-color: rgba(13, 17, 23, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    max-height: 40px;
    filter: brightness(0) invert(1);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: all var(--transition-medium);
    border-radius: 2px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-medium);
    z-index: 1000;
    transition: right var(--transition-medium);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid var(--border-color);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 2rem 0;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-family: var(--font-primary);
}

/* 7. FOOTER */
.footer {
    background-color: var(--bg-medium);
    padding-top: 80px;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.footer-shape.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--glow-cyan);
    left: -100px;
    bottom: -100px;
}

.footer-shape.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--glow-violet);
    right: -80px;
    top: -80px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col .footer-logo {
    max-height: 45px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-about-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
}

.social-link:hover {
    color: #fff;
    background-color: var(--cyan);
    border-color: var(--cyan);
}

.footer-col-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--cyan);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--cyan);
    margin-top: 5px;
}

.contact-info a,
.contact-info span {
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-secondary);
}

/* 8. HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background-image:
        radial-gradient(circle at 1px 1px, var(--border-color) 1px, transparent 0);
    background-size: 25px 25px;
    position: relative;
}

.hero-glow-1,
.hero-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 40vw;
    height: 40vw;
    background: var(--glow-cyan);
    top: 10%;
    left: -15%;
}

.hero-glow-2 {
    width: 35vw;
    height: 35vw;
    background: var(--glow-magenta);
    bottom: 5%;
    right: -10%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    position: relative;
    color: transparent;
}

.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-title::before {
    color: #fff;
    animation: glitch1 2s infinite, flicker 3s infinite;
}

.hero-title::after {
    color: #fff;
    animation: glitch2 2s infinite, flicker 3s infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 1.5rem 0 2.5rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.data-cube {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s linear infinite;
}

.face {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px solid var(--cyan);
    background: rgba(31, 139, 255, 0.1);
    box-shadow: inset 0 0 20px var(--glow-cyan);
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(to right, var(--border-color) 1px, transparent 1px);
    background-size: 25px 25px;
}

.face.front {
    transform: translateZ(125px);
}

.face.back {
    transform: rotateY(180deg) translateZ(125px);
}

.face.right {
    transform: rotateY(90deg) translateZ(125px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.face.top {
    transform: rotateX(90deg) translateZ(125px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}


/* 9. SECTION STYLES (GENERAL) */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 10. SERVICES SECTION */
.services-section {
    background-color: var(--bg-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: transparent;
    border-radius: 12px;
    padding: 2px;
    position: relative;
    perspective: 1000px;
}

.service-card-inner {
    background-color: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    height: 100%;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.5s, box-shadow 0.5s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(10deg) rotateX(5deg) translateZ(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--cyan);
}

.service-icon {
    font-size: 3rem;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--glow-cyan);
}

.service-title {
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
}

/* 11. ABOUT SECTION */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-visual .about-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.about-visual .about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--cyan), var(--magenta));
    z-index: -1;
    filter: blur(10px);
    opacity: 0.6;
}

.about-visual img {
    border-radius: 8px;
}

.about-list {
    margin: 2rem 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-list i {
    color: var(--cyan);
}

/* 12. PROCESS TIMELINE */
.process-section {
    background-color: var(--bg-medium);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.process-step {
    position: relative;
    padding: 2rem 0;
    width: 50%;
}

.process-step:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    text-align: left;
}

.process-node {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-medium);
    border: 4px solid var(--cyan);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    box-shadow: 0 0 15px var(--glow-cyan);
}

.process-step:nth-child(odd) .process-node {
    right: -10px;
}

.process-step:nth-child(even) .process-node {
    left: -10px;
}

.process-content {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.process-content h3 {
    color: var(--cyan);
}

/* 13. INDUSTRIES HUB */
.industry-hub-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.industry-hub {
    position: relative;
    width: 200px;
    height: 200px;
}

.hub-core {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--cyan);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--cyan);
    box-shadow: inset 0 0 15px var(--glow-cyan);
}

.hub-core span {
    font-size: 0.8rem;
    font-family: var(--font-primary);
}

.industry-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transform-origin: 0 0;
    transition: all var(--transition-medium);
    animation: orbit 15s linear infinite;
    animation-delay: calc(-2.5s * var(--i));
    transform: rotate(calc(60deg * var(--i))) translateY(-150px) rotate(calc(-60deg * var(--i)));
}

.industry-node:hover {
    background: var(--cyan);
    color: #fff;
    border-color: var(--cyan);
    transform: rotate(calc(60deg * var(--i))) translateY(-150px) rotate(calc(-60deg * var(--i))) scale(1.2);
    box-shadow: 0 0 20px var(--glow-cyan);
    z-index: 2;
}

.industry-node:hover .tooltip {
    opacity: 1;
    transform: translate(-50%, -130%);
}

.tooltip {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    background: var(--bg-light);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: all var(--transition-fast);
    pointer-events: none;
}

/* 14. LIVE DEMO & CTA */
.live-demo-section {
    background: linear-gradient(rgba(1, 4, 9, 0.9), rgba(1, 4, 9, 0.9)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') center/cover no-repeat fixed;
    text-align: center;
}

.cta-section {
    background-color: var(--bg-medium);
    text-align: center;
}

.cta-title {
    max-width: 800px;
    margin: 0 auto 1rem;
}

.cta-text {
    margin-bottom: 2rem;
}

/* 15. TESTIMONIALS SLIDER */
.testimonials-section {
    background-color: var(--bg-medium);
}

.testimonial-slider-wrapper {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.testimonial-slider {
    display: flex;
    width: calc(380px * 6);
    /* card width * total slides */
    animation: slide 30s linear infinite;
}

.testimonial-card {
    flex-shrink: 0;
    width: 350px;
    margin: 0 15px;
    background: var(--bg-light);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.author-name {
    color: #fff;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 16. PAGE-SPECIFIC (SUBPAGES) */
body.subpage {
    padding-top: var(--header-height);
}

.page-header {
    padding: 80px 0;
    background: var(--bg-medium);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    color: transparent;
    position: relative;
    display: inline-block;
}

.page-title::before,
.page-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
}

.page-title::before {
    animation: glitch1 3s infinite;
}

.page-title::after {
    animation: glitch2 3s infinite;
}

.page-subtitle {
    max-width: 600px;
    margin: 1rem auto 1.5rem;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--text-primary);
}

.breadcrumbs a:hover {
    color: var(--cyan);
}

.breadcrumbs i {
    font-size: 0.8rem;
}

/* 17. CONTACT PAGE */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-info-panel h2 {
    margin-bottom: 1rem;
    color: var(--cyan);
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-medium);
    display: grid;
    place-items: center;
    color: var(--cyan);
    font-size: 1.5rem;
}

.method-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.method-details p,
.method-details a {
    margin: 0;
    color: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* 18. LEGAL PAGES */
.legal-content {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    color: var(--cyan);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    color: var(--text-secondary);
}

.legal-content a {
    text-decoration: underline;
}

/* 19. MODAL & POPUP */
.modal,
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 4, 9, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.open,
.popup:target {
    opacity: 1;
    visibility: visible;
}

.modal-content,
.popup-content {
    background: var(--bg-medium);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.open .modal-content,
.popup:target .popup-content {
    transform: scale(1);
}

.modal-close,
.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-secondary);
}

.modal-close:hover,
.popup-close:hover {
    color: #fff;
}

/* Sample Report Styles */
.modal-header h3 {
    color: var(--cyan);
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard {
    display: grid;
    gap: 2rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.kpi-card {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.kpi-card h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-primary);
    margin: 0.5rem 0;
}

.kpi-trend {
    font-weight: 600;
}

.kpi-trend.up {
    color: #22c55e;
}

.kpi-trend.down {
    color: #ef4444;
}

.chart-container h4 {
    margin-bottom: 1rem;
    text-align: center;
}

.bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0 0 1rem;
}

.bar-item {
    width: 40px;
    background: var(--color);
    animation: growBar 1s ease-out;
    height: calc(var(--val) * 1%);
    position: relative;
}

.bar-item span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
}

.funnel-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.funnel-step {
    height: 30px;
    width: var(--w);
    background: linear-gradient(to right, var(--violet), var(--cyan));
    display: grid;
    place-items: center;
    color: #fff;
    clip-path: polygon(10% 0, 90% 0, 100% 100%, 0% 100%);
    animation: funnel-fill 1s ease-out;
    animation-fill-mode: forwards;
    transform: scaleX(0);
}

/* Contact Popup */
.popup-content {
    text-align: center;
    max-width: 450px;
}

.popup-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 0.5rem;
}

/* 20. CHAT WIDGET */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--cyan);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 0 20px var(--glow-cyan);
    z-index: 999;
    transition: transform var(--transition-fast);
}

.chat-widget:hover {
    transform: scale(1.1);
}

/* 21. ANIMATIONS & KEYFRAMES */
@keyframes rotateCube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes glitch1 {

    0%,
    100% {
        clip-path: inset(45% 0 35% 0);
    }

    5% {
        clip-path: inset(20% 0 60% 0);
    }

    10% {
        clip-path: inset(80% 0 5% 0);
    }

    15% {
        clip-path: inset(50% 0 40% 0);
    }

    20% {
        clip-path: inset(10% 0 75% 0);
    }

    25% {
        clip-path: inset(60% 0 20% 0);
    }

    30% {
        transform: translateX(-3px);
    }

    35% {
        transform: translateX(3px);
    }
}

@keyframes glitch2 {

    0%,
    100% {
        clip-path: inset(65% 0 15% 0);
    }

    5% {
        clip-path: inset(40% 0 30% 0);
    }

    10% {
        clip-path: inset(5% 0 80% 0);
    }

    15% {
        clip-path: inset(70% 0 20% 0);
    }

    20% {
        clip-path: inset(45% 0 50% 0);
    }

    25% {
        clip-path: inset(15% 0 65% 0);
    }

    30% {
        transform: translateX(3px);
        text-shadow: -2px 0 var(--magenta);
    }

    35% {
        transform: translateX(-3px);
        text-shadow: 2px 0 var(--light-cyan);
    }
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50.2% {
        opacity: 0.8;
    }

    50.5% {
        opacity: 1;
    }

    50.8% {
        opacity: 0.7;
    }
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateY(-150px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateY(-150px) rotate(-360deg);
    }
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-380px * 3));
    }
}

@keyframes growBar {
    from {
        height: 0;
    }
}

@keyframes funnel-fill {
    from {
        transform: scaleX(0);
        transform-origin: center;
    }

    to {
        transform: scaleX(1);
        transform-origin: center;
    }
}

/* Scroll Animations Setup */
[data-animate] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate="fade-up"] {
    transform: translateY(50px);
}

[data-animate="fade-right"] {
    transform: translateX(-50px);
}

[data-animate="fade-left"] {
    transform: translateX(50px);
}

[data-animate="process-pop"] {
    transform: scale(0.8);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}


/* 22. RESPONSIVE DESIGN (MEDIA QUERIES) */

@media (max-width: 992px) {
    .header-container {
        width: 95%;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .data-cube {
        width: 200px;
        height: 200px;
    }

    .face {
        width: 200px;
        height: 200px;
    }

    .face.front {
        transform: translateZ(100px);
    }

    .face.back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .face.right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .face.left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .face.top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .face.bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-visual {
        max-width: 450px;
        margin: 0 auto;
    }

    .about-content {
        text-align: center;
    }

    .about-list {
        display: inline-block;
        text-align: left;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-panel {
        text-align: center;
    }

    .contact-method {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
        text-align: left;
    }

    .process-line {
        left: 20px;
    }

    .process-step,
    .process-step:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }

    .process-step:nth-child(odd) {
        text-align: left;
        padding-right: 0;
    }

    .process-node,
    .process-step:nth-child(odd) .process-node,
    .process-step:nth-child(even) .process-node {
        left: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row .form-group:first-child {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}