/*
================================================
Retro-Futurism Console Theme
------------------------------------------------
TABLE OF CONTENTS
------------------------------------------------
1.  :root Variables
2.  Global Styles & Resets
3.  Animations & Keyframes
4.  Utility Classes
5.  Custom Cursor
6.  Loader & Overlays
7.  Header & Navigation
8.  Buttons
9.  Footer
10. Hero Section
11. General Page & Section Styles
12. Services Section
13. Process Section
14. Interactive Report Section
15. Industries Section
16. Testimonials Section
17. Contact Page
18. Legal Pages
19. Responsive Design (Media Queries)
================================================
*/

/* 1. :root Variables */
:root {
    --primary-color: #00ffcc;
    --secondary-color: #ff00ff;
    --accent-color: #00c2ff;
    --bg-color: #010409;
    --bg-color-light: #0d1117;
    --text-color: #c9d1d9;
    --heading-color: #ffffff;
    --border-color: rgba(0, 255, 204, 0.2);
    --glow-color-primary: rgba(0, 255, 204, 0.5);
    --glow-color-secondary: rgba(255, 0, 255, 0.5);
    --font-primary: 'Poppins', 'Segoe UI', sans-serif;
    --font-secondary: 'Orbitron', monospace;
    --font-mono: 'Courier New', Courier, monospace;
    --header-height: 80px;
    --border-radius: 0px;
    --transition-speed: 0.3s;
}

/* 2. Global Styles & Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--heading-color);
    text-transform: uppercase;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 5px var(--glow-color-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
    max-width: 70ch;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease, text-shadow var(--transition-speed) ease;
    cursor: none;
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 3. Animations & Keyframes */
@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes text-glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes button-glitch-anim {
    0% {
        clip-path: inset(3% 0 95% 0);
    }

    5% {
        clip-path: inset(45% 0 53% 0);
    }

    10% {
        clip-path: inset(10% 0 88% 0);
    }

    15% {
        clip-path: inset(83% 0 3% 0);
    }

    20% {
        clip-path: inset(40% 0 55% 0);
    }

    25% {
        clip-path: inset(23% 0 73% 0);
    }

    30% {
        clip-path: inset(99% 0 1% 0);
    }

    35% {
        clip-path: inset(55% 0 40% 0);
    }

    40% {
        clip-path: inset(13% 0 80% 0);
    }

    45% {
        clip-path: inset(75% 0 5% 0);
    }

    50% {
        clip-path: inset(48% 0 50% 0);
    }

    55% {
        clip-path: inset(8% 0 90% 0);
    }

    60% {
        clip-path: inset(69% 0 5% 0);
    }

    65% {
        clip-path: inset(93% 0 1% 0);
    }

    70% {
        clip-path: inset(33% 0 65% 0);
    }

    75% {
        clip-path: inset(7% 0 92% 0);
    }

    80% {
        clip-path: inset(59% 0 35% 0);
    }

    85% {
        clip-path: inset(85% 0 10% 0);
    }

    90% {
        clip-path: inset(29% 0 70% 0);
    }

    95% {
        clip-path: inset(94% 0 5% 0);
    }

    100% {
        clip-path: inset(15% 0 83% 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary-color);
    }
}

@keyframes matrix-scroll {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}


/* 4. Utility Classes */
.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.btn-full {
    width: 100%;
}

/* Scroll Animations */
.animate-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in.fade-in-up {
    transform: translateY(40px);
}

.animate-in.fade-in-left {
    transform: translateX(-50px);
}

.animate-in.fade-in-right {
    transform: translateX(50px);
}

.animate-in.zoom-in {
    transform: scale(0.9);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}


/* 5. Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 9999;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    transition: width 0.2s ease, height 0.2s ease, border-width 0.2s ease, background-color 0.2s ease;
}

.cursor-interact {
    width: 50px;
    height: 50px;
    border-width: 2px;
    background-color: var(--glow-color-primary);
}


/* 6. Loader & Overlays */
#glitch-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s 0.5s ease;
}

#glitch-loader.loaded {
    opacity: 0;
    pointer-events: none;
}

.glitch-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--primary-color);
    position: relative;
    letter-spacing: 4px;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    overflow: hidden;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary-color);
    animation: text-glitch 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-color);
    animation: text-glitch 3s infinite linear alternate;
}

.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9998;
    animation: flicker 0.15s infinite;
}


/* 7. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(1, 4, 9, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, top 0.3s ease;
}

.header.scrolled {
    background: rgba(13, 17, 23, 0.9);
}

.header.hidden {
    top: -100px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    filter: drop-shadow(0 0 5px var(--glow-color-primary));
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(-10deg) scale(1.1);
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--heading-color);
    font-weight: 900;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-mono);
    color: var(--text-color);
    font-size: 1rem;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: 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: var(--primary-color);
    text-shadow: 0 0 5px var(--glow-color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-toggle,
.nav-close {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: none;
}


/* 8. Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid;
    transition: all var(--transition-speed) ease;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 15px var(--glow-color-primary);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--glow-color-primary);
}

.terminal-button {
    position: relative;
    overflow: hidden;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.terminal-button:hover .btn-glitch {
    display: block;
}

.btn-glitch {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    animation: button-glitch-anim 1s cubic-bezier(.25, .46, .45, .94) both infinite;
}

.terminal-button:hover .btn-glitch:nth-child(2) {
    background: var(--secondary-color);
    animation-duration: 0.7s;
    animation-delay: 0.2s;
}


/* 9. Footer */
.footer {
    background-color: var(--bg-color-light);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0.4;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col-title {
    font-family: var(--font-mono);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-about-text {
    font-size: 0.9rem;
    margin: 1rem 0;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-speed);
}

.social-links a:hover {
    color: var(--bg-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #888;
}


/* 10. Hero Section */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(to right, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    margin-bottom: 1rem;
    display: inline-block;
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid var(--primary-color);
    animation: typing 2.5s steps(30, end) 500ms forwards, blink-caret .75s step-end infinite;
    width: 0;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 60ch;
    margin: 0 auto 2.5rem;
    color: var(--text-color);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
}

.scroll-down-indicator .line {
    width: 1px;
    height: 40px;
    background: var(--primary-color);
    margin: 10px auto 0;
    animation: scroll-flicker 1.5s infinite;
}

@keyframes scroll-flicker {

    0%,
    100% {
        opacity: 1;
        height: 40px;
    }

    50% {
        opacity: 0.5;
        height: 30px;
    }
}


/* 11. General Page & Section Styles */
.page-header-section {
    padding: 140px 0 80px;
    position: relative;
    text-align: center;
    background: var(--bg-color-light);
    border-bottom: 1px solid var(--border-color);
}

.page-header-section h1 {
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}

.page-header-desc {
    font-size: 1.1rem;
    max-width: 60ch;
    margin: 0 auto;
}

.breadcrumbs {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    color: var(--text-color);
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 10px;
    color: var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-mono);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.5;
}

.section-title::before {
    right: 100%;
    margin-right: 15px;
}

.section-title::after {
    left: 100%;
    margin-left: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 50ch;
    margin: 0 auto;
}


/* 12. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 280px;
    text-align: center;
    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;
    border: 1px solid var(--border-color);
    background: var(--bg-color-light);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.service-card:hover .service-card-front,
.service-card:hover .service-card-back {
    box-shadow: 0 0 25px var(--glow-color-primary), inset 0 0 15px rgba(0, 255, 204, 0.1);
}

.service-card-back {
    transform: rotateY(180deg);
}

.service-card-back h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card-back ul {
    text-align: left;
}

.service-card-back ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-card-back ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--glow-color-primary);
}

.service-card h3 {
    margin-bottom: 1rem;
}


/* 13. Process Section */
.process-section {
    background-color: var(--bg-color-light);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.process-step {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.process-step:nth-child(odd) {
    left: 0;
}

.process-step:nth-child(even) {
    left: 50%;
}

.process-step::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 3px solid var(--primary-color);
    top: 35px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--glow-color-primary);
}

.process-step:nth-child(even)::after {
    left: -10px;
}

.process-content {
    padding: 20px 30px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    position: relative;
}

.process-step:nth-child(odd) .process-content {
    text-align: right;
}

.process-number {
    position: absolute;
    top: -20px;
    font-family: var(--font-secondary);
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    z-index: -1;
}

.process-step:nth-child(odd) .process-number {
    right: 15px;
}

.process-step:nth-child(even) .process-number {
    left: 15px;
}

.process-title {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}


/* 14. Interactive Report Section */
.dashboard-container {
    border: 1px solid var(--border-color);
    background: var(--bg-color-light);
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.dashboard-header h4 {
    font-family: var(--font-mono);
    color: var(--primary-color);
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary-color);
}

.status-light {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--glow-color-primary);
    animation: flicker 1s infinite;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dashboard-widget {
    border: 1px solid var(--border-color);
    padding: 20px;
    background: var(--bg-color);
}

.dashboard-widget h5 {
    font-family: var(--font-mono);
    margin-bottom: 15px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.kpi-widget {
    text-align: center;
}

.kpi-value {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.kpi-change {
    font-family: var(--font-mono);
    font-size: 1rem;
}

.kpi-change.positive {
    color: #3fb950;
}

.kpi-change.negative {
    color: #f85149;
}

.chart-widget {
    grid-column: span 2;
}

.chart-widget-large {
    grid-column: span 4;
}


/* 15. Industries Section */
.industries-section {
    background-color: var(--bg-color-light);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.industry-item {
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.industry-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 255, 204, 0.1);
}

.industry-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.industry-item h4 {
    margin-bottom: 1rem;
}


/* 16. Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-color-light);
    border-left: 3px solid var(--primary-color);
    padding: 30px;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.testimonial-header i {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.testimonial-author h4 {
    margin: 0;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.05rem;
}


/* 17. Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--bg-color-light);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.contact-info-panel h3,
.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-details-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-details-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color-primary);
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 4, 9, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background: var(--bg-color-light);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px var(--glow-color-primary);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 1rem;
}

.popup-content p {
    margin-bottom: 2rem;
}

/* 18. Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-color-light);
    border: 1px solid var(--border-color);
    padding: 40px;
    font-family: var(--font-mono);
}

.legal-content h2 {
    font-family: var(--font-mono);
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-content p,
.legal-content strong {
    font-family: var(--font-mono);
    line-height: 1.8;
}

.legal-content strong {
    color: var(--heading-color);
}


/* 19. Responsive Design */
@media screen and (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-color-light);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        border-left: 1px solid var(--border-color);
    }

    .nav-menu.show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .header-actions .btn {
        display: none;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-widget,
    .chart-widget-large {
        grid-column: span 2;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .process-timeline::after {
        left: 10px;
    }

    .process-step {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .process-step:nth-child(even) {
        left: 0;
    }

    .process-step::after {
        left: 1px;
    }

    .process-step:nth-child(even)::after {
        left: 1px;
    }

    .process-step:nth-child(odd) .process-content {
        text-align: left;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about .logo,
    .social-links,
    .footer-contact ul li {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .kpi-widget,
    .chart-widget,
    .chart-widget-large {
        grid-column: span 1;
    }

    .contact-wrapper,
    .legal-content {
        padding: 20px;
    }
}