/*
==============================================
--- NEON CIRCUITRY THEME STYLESHEET ---
==============================================
0.  Global Settings & Variables
1.  Base & Typography
2.  Layout & Helpers
3.  Preloader
4.  Header & Navigation
5.  Footer
6.  Buttons & Forms
7.  Animations & Transitions
8.  Page-Specific: Home
    8.1 Hero Section
    8.2 Services Section
    8.3 About Section (3D Cube)
    8.4 Process Section (SVG Animation)
    8.5 Report/Dashboard Section
    8.6 Testimonials Section
    8.7 CTA Section
9.  Page-Specific: Inner Pages
    9.1 Page Header
    9.2 Contact Page
    9.3 Legal Pages
10. Popups & Modals
11. Responsive Design (Media Queries)
==============================================
*/

/* 0. Global Settings & Variables */
:root {
    --bg-dark: #0A0A1A;
    --bg-medium: #101024;
    --bg-light: #1A1A32;
    --primary-color: #00FFFF;
    /* Cyan */
    --secondary-color: #FF00FF;
    /* Magenta */
    --accent-color: #7B00E5;
    /* Purple */
    --text-light: #E0E0FF;
    --text-medium: #A0A0C0;
    --text-dark: #606080;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;
    --header-height: 80px;
    --border-radius: 8px;
    --glow-shadow-primary: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color), 0 0 15px var(--primary-color);
    --glow-shadow-secondary: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color);
}

/* 1. Base & Typography */
*,
*::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-light);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: var(--glow-shadow-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. Layout & Helpers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title {
    margin-bottom: 20px;
}

.section-intro {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-medium);
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary-color);
    text-shadow: var(--glow-shadow-primary);
}


/* 3. Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo img {
    width: 80px;
    animation: pulse 2s infinite ease-in-out;
}

.preloader-circuit-path {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    border-right-color: var(--primary-color);
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* 4. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.header.scrolled {
    background-color: var(--bg-medium);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link .logo {
    height: 80px;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    text-shadow: 0 0 5px var(--primary-color);
}

.nav-close {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 5. Footer */
.footer {
    background-color: var(--bg-medium);
    padding-top: 80px;
    position: relative;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.footer-grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.footer-col-title {
    font-family: var(--font-secondary);
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
}

.footer-about-text {
    color: var(--text-medium);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--text-dark);
    border-radius: 50%;
    color: var(--text-medium);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--glow-shadow-primary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-medium);
    position: relative;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 15px;
}

.footer-links ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--primary-color);
}

.footer-links ul li a:hover::before {
    opacity: 1;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--text-medium);
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid var(--text-dark);
    padding: 20px 0;
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9rem;
    position: relative;
}

/* 6. Buttons & Forms */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    box-shadow: var(--glow-shadow-primary);
}

.btn-primary:hover {
    color: #fff;
    background-color: transparent;
    box-shadow: var(--glow-shadow-primary);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: var(--glow-shadow-primary);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    border: 1px solid var(--text-dark);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300ffff'%3E%3Cpath d='M6 9L.5 3h11L6 9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.2);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-medium);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    padding: 0 5px;
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 7. Animations & Transitions */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-in.fade-in-left {
    transform: translateX(-30px);
}

.animate-in.fade-in-right {
    transform: translateX(30px);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 8. Page-Specific: Home */

/* 8.1 Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-grid {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: pan-grid 60s linear infinite;
}

@keyframes pan-grid {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 1200px 600px;
    }
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-circuitry {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-circuitry .circuit-line {
    fill: none;
    stroke: rgba(0, 255, 255, 0.2);
    stroke-width: 1;
}

.hero-circuitry .spark {
    fill: var(--primary-color);
    filter: drop-shadow(0 0 3px var(--primary-color));
    animation: move-spark 10s linear infinite;
    offset-path: path("M-10,400 Q480,540 960,540 T1930,680");
}

@keyframes move-spark {
    0% {
        motion-offset: 0%;
        offset-distance: 0%;
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        motion-offset: 100%;
        offset-distance: 100%;
        opacity: 0;
    }
}


/* 8.2 Services Section */
.services-section {
    background-color: var(--bg-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
    min-height: 320px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: linear-gradient(145deg, var(--bg-light), var(--bg-medium));
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.service-card-back {
    transform: rotateY(180deg);
    justify-content: center;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: var(--glow-shadow-primary);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    color: var(--text-medium);
}

.service-card-back ul {
    text-align: left;
    margin-bottom: 20px;
    width: 100%;
}

.service-card-back ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-card-back ul li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 8.3 About Section (3D Cube) */
.about-section {
    background-color: var(--bg-dark);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-features {
    margin-top: 30px;
    margin-bottom: 40px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.about-features li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    min-height: 400px;
}

.about-visual-cube {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.cube-face i {
    font-size: 3rem;
    color: var(--primary-color);
}

.cube-face span {
    font-size: 1.2rem;
    font-family: var(--font-secondary);
}

.front {
    transform: rotateY(0deg) translateZ(125px);
}

.back {
    transform: rotateY(180deg) translateZ(125px);
}

.right {
    transform: rotateY(90deg) translateZ(125px);
}

.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.top {
    transform: rotateX(90deg) translateZ(125px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

/* 8.4 Process Section (SVG Animation) */
.process-section {
    background-color: var(--bg-medium);
}

.process-wrapper {
    position: relative;
    display: flex;
    justify-content: space-around;
    padding-top: 50px;
    padding-bottom: 50px;
}

.process-svg {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 200px;
    width: 100%;
    pointer-events: none;
    overflow: visible;
}

.process-path,
.process-path-bg {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: scale(0.8) translateX(10%);
}

.process-path-bg {
    stroke: rgba(0, 255, 255, 0.1);
    stroke-width: 4;
}

.process-path {
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 2s ease-in-out;
}

.process-section.is-visible .process-path {
    stroke-dashoffset: 0;
}

.process-step {
    text-align: center;
    max-width: 200px;
    position: relative;
    z-index: 2;
}

.process-step:nth-child(2n) {
    align-self: flex-end;
}

.process-step:nth-child(2n+1) {
    align-self: flex-start;
}

.process-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.process-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 2px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.process-step:hover .process-icon {
    transform: scale(1.1);
    background-color: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: var(--glow-shadow-primary);
}

.process-number {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-family: var(--font-secondary);
    border: 2px solid var(--bg-medium);
}

.process-step h3 {
    margin-bottom: 10px;
    color: #fff;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-medium);
}


/* 8.5 Report/Dashboard Section */
.report-section {
    background-color: var(--bg-dark);
}

.dashboard-wrapper {
    background: linear-gradient(145deg, var(--bg-medium), #0e0e22);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    padding-bottom: 20px;
}

.date-range {
    font-family: var(--font-secondary);
    color: var(--text-medium);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    grid-template-areas:
        "kpi1 kpi2 kpi3"
        "bar-chart donut-chart donut-chart";
}

.dashboard-metric,
.dashboard-chart {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.dashboard-metric:hover,
.dashboard-chart:hover {
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}

.kpi-card {
    grid-area: kpi1;
}

.kpi-card:nth-child(2) {
    grid-area: kpi2;
}

.kpi-card:nth-child(3) {
    grid-area: kpi3;
}

.bar-chart-card {
    grid-area: bar-chart;
}

.donut-chart-card {
    grid-area: donut-chart;
}

.dashboard-metric h4 {
    color: var(--text-medium);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.metric-value {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
}

.metric-value span:first-child {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-secondary);
}

.metric-change {
    font-size: 0.9rem;
    font-weight: 700;
}

.metric-change.positive {
    color: #00ff80;
}

.metric-change.negative {
    color: #ff4081;
}

.sparkline-path {
    stroke: var(--primary-color);
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw-sparkline 2s forwards ease-out;
}

@keyframes draw-sparkline {
    to {
        stroke-dashoffset: 0;
    }
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-label {
    width: 60px;
    font-size: 0.8rem;
    color: var(--text-medium);
}

.bar {
    flex-grow: 1;
    height: 25px;
    background-color: rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--bar-value);
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease-out;
}

.dashboard-wrapper.is-visible .bar::after {
    transform: scaleX(1);
}

.bar span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #fff;
    font-weight: 700;
}

.donut-chart-card {
    display: flex;
    align-items: center;
    gap: 30px;
}

.donut-chart-wrapper {
    position: relative;
}

.donut-ring {
    stroke: rgba(0, 255, 255, 0.1);
}

.donut-segment {
    transform-origin: 50% 50%;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease;
}

.donut-segment:nth-child(2) {
    stroke: var(--primary-color);
}

.donut-segment:nth-child(3) {
    stroke: var(--secondary-color);
}

.donut-segment:nth-child(4) {
    stroke: var(--accent-color);
}

.dashboard-wrapper.is-visible .donut-segment {
    animation: fill-donut 1.5s forwards ease-out;
}

@keyframes fill-donut {
    from {
        stroke-dasharray: 0 100;
    }
}

.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.chart-center-text span {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.chart-center-text strong {
    display: block;
    font-size: 1.5rem;
    color: #fff;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}


/* 8.6 Testimonials Section */
.testimonials-section {
    background-color: var(--bg-medium);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    background: linear-gradient(145deg, var(--bg-light), var(--bg-medium));
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 40px;
    position: relative;
}

.testimonial-quote-icon {
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 3rem;
    color: rgba(0, 255, 255, 0.1);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-light);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-name {
    margin-bottom: 0;
    color: #fff;
}

.author-title {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background-color: rgba(26, 26, 50, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn {
    margin-left: -70px;
}

.next-btn {
    margin-right: -70px;
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}


/* 8.7 CTA Section */
.cta-section {
    background-color: var(--bg-dark);
    padding: 80px 0;
}

.cta-container {
    background-image:
        radial-gradient(circle at top left, rgba(0, 255, 255, 0.2), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 0, 255, 0.2), transparent 30%);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 60px;
}

.cta-title {
    font-size: 2.8rem;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 30px;
}


/* 9. Page-Specific: Inner Pages */

/* 9.1 Page Header */
.page-header {
    padding: 140px 0 60px;
    background-color: var(--bg-medium);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.page-header h1 {
    font-size: 3rem;
}

.breadcrumbs {
    color: var(--text-medium);
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 10px;
}

/* 9.2 Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--bg-medium);
    padding: 50px;
    border-radius: var(--border-radius);
}

.contact-info-panel h3 {
    margin-bottom: 20px;
}

.contact-details-list {
    margin-top: 30px;
}

.contact-details-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-details-list li i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-details-list li h4 {
    margin-bottom: 5px;
    color: #fff;
}

.contact-details-list li p,
.contact-details-list li a {
    color: var(--text-medium);
    margin: 0;
}

.contact-details-list li a:hover {
    color: var(--primary-color);
}

.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

/* 9.3 Legal Pages */
.legal-content .page-content {
    background-color: var(--bg-medium);
    padding: 40px 50px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

/* 10. Popups & Modals */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(145deg, var(--bg-light), var(--bg-medium));
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    text-align: center;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: #00ff80;
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 15px;
}

.popup-content p {
    margin-bottom: 30px;
}

/* 11. Responsive Design (Media Queries) */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-visual {
        margin-top: 50px;
    }

    .process-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .process-svg {
        display: none;
    }

    .process-step:nth-child(2n),
    .process-step:nth-child(2n+1) {
        align-self: center;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "kpi1 kpi2"
            "kpi3 kpi3"
            "bar-chart bar-chart"
            "donut-chart donut-chart";
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-medium);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.4s ease;
        padding-top: 100px;
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 30px;
        gap: 25px;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        color: #fff;
        background: none;
        border: none;
        cursor: pointer;
    }

    .menu-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "kpi1" "kpi2" "kpi3"
            "bar-chart" "donut-chart";
    }

    .slider-controls {
        display: none;
    }

    /* On smaller screens, swipe would be better but for now we hide controls */
    .testimonial-card {
        padding: 30px;
    }

    .legal-content .page-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section {
        padding: 80px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul li a:hover {
        padding-left: 0;
    }

    .footer-links ul li a::before {
        display: none;
    }

    .footer-contact ul li {
        justify-content: center;
        text-align: left;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .contact-wrapper,
    .contact-form-wrapper {
        padding: 20px;
    }

    .popup-content {
        width: 90%;
        padding: 30px 20px;
    }
}