/*
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  CSS Custom Properties (Variables)
2.  Global Resets & Base Styles
3.  Typography
4.  Layout & Container
5.  Animations & Keyframes
    5.1. Glitch Text Effect
    5.2. Glitch Button Effect
    5.3. Scroll Reveal Animations
    5.4. VHS Background Effect
    5.5. Portal Animation
    5.6. Preloader Animations
6.  Components
    6.1. Buttons
    6.2. Forms
    6.3. Cards
7.  Header & Navigation
8.  Footer
9.  Page-Specific Sections
    9.1.  Preloader
    9.2.  Hero Section
    9.3.  Services Section
    9.4.  About Section
    9.5.  Process Section
    9.6.  Industries Section
    9.7.  ROI Calculator Section
    9.8.  Testimonials Section
    9.9.  Contact Page Section
    9.10. Legal Pages (Privacy, Terms, etc.)
    9.11. Page Header (for subpages)
10. Utilities & Helpers
    10.1. Back to Top Button
    10.2. Popups & Modals
    10.3. Live Chat Dummy
11. Responsive Design (Media Queries)
    11.1. Large Desktops (max-width: 1200px)
    11.2. Tablets (max-width: 992px)
    11.3. Mobile (max-width: 768px)
    11.4. Small Mobile (max-width: 480px)
================================================
*/


/* 1. CSS Custom Properties (Variables) */
:root {
    --color-primary: #00ffff;
    /* Cyan */
    --color-secondary: #ff00ff;
    /* Magenta */
    --color-accent: #f8f8f8;
    /* Off-white for text */
    --color-background: #0d0d1a;
    /* Very dark blue/purple */
    --color-background-light: #1a1a2e;
    /* Lighter dark blue */
    --color-background-medium: #16213e;
    --color-white: #ffffff;
    --color-red: #e94560;
    --color-green: #39ff14;
    /* Neon Green */

    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Share Tech Mono', monospace;
    /* For headings and glitch effects */

    --header-height: 80px;
    --border-radius: 4px;
    --transition-speed: 0.3s;
    --container-width: 1140px;
    --section-padding: 80px 0;
}

/* 2. Global Resets & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-accent);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-background);
}

/* 3. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-white);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 4. Layout & Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: block;
    font-family: var(--font-secondary);
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(248, 248, 248, 0.8);
}

/* 5. Animations & Keyframes */

/* 5.1. Glitch Text Effect */
.glitch {
    position: relative;
    color: var(--color-white);
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch-fx 5s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--color-primary);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--color-secondary), 2px 2px var(--color-primary);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-fx {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }

    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }

    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
    }

    5% {
        clip: rect(12px, 9999px, 59px, 0);
    }

    10% {
        clip: rect(32px, 9999px, 94px, 0);
    }

    25% {
        clip: rect(78px, 9999px, 98px, 0);
    }

    40% {
        clip: rect(25px, 9999px, 62px, 0);
    }

    55% {
        clip: rect(63px, 9999px, 10px, 0);
    }

    70% {
        clip: rect(10px, 9999px, 85px, 0);
    }

    85% {
        clip: rect(34px, 9999px, 73px, 0);
    }

    100% {
        clip: rect(26px, 9999px, 50px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    10% {
        clip: rect(79px, 9999px, 2px, 0);
    }

    20% {
        clip: rect(25px, 9999px, 90px, 0);
    }

    35% {
        clip: rect(38px, 9999px, 13px, 0);
    }

    50% {
        clip: rect(48px, 9999px, 98px, 0);
    }

    65% {
        clip: rect(91px, 9999px, 3px, 0);
    }

    80% {
        clip: rect(21px, 9999px, 86px, 0);
    }

    95% {
        clip: rect(13px, 9999px, 57px, 0);
    }

    100% {
        clip: rect(7px, 9999px, 99px, 0);
    }
}

/* 5.3. Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 5.4. VHS Background Effect */
.hero-bg-vhs,
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) 1px, transparent 1px, transparent 2px);
    animation: vhs-scanlines 0.2s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes vhs-scanlines {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100%;
    }
}

/* 5.5. Portal Animation */
.hero-portal {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%) perspective(500px) rotateX(75deg);
    width: 500px;
    height: 500px;
}

.portal-ring {
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color-primary), inset 0 0 15px var(--color-primary);
    animation: portal-spin 20s linear infinite;
    position: relative;
}

.portal-ring::before,
.portal-ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid var(--color-secondary);
    box-shadow: 0 0 10px var(--color-secondary), inset 0 0 10px var(--color-secondary);
}

.portal-ring::before {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    animation: portal-spin 15s linear infinite reverse;
}

.portal-ring::after {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    animation: portal-spin 10s linear infinite;
}

@keyframes portal-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 5.6. Preloader Animations */
@keyframes progress-anim {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes glitch-load {

    0%,
    100% {
        clip-path: inset(0 0 95% 0);
    }

    25% {
        clip-path: inset(50% 0 20% 0);
    }

    50% {
        clip-path: inset(90% 0 1% 0);
    }

    75% {
        clip-path: inset(30% 0 60% 0);
    }
}

/* 6. Components */

/* 6.1. Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    border: 2px solid;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-background);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-background);
}

/* Glitch Button */
.glitch-btn {
    position: relative;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    padding: 14px 32px;
}

.glitch-btn span {
    position: relative;
    z-index: 2;
}

.glitch-btn::before,
.glitch-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: transparent;
    transition: all 0.3s ease;
}

.glitch-btn:hover::before {
    animation: glitch-btn-anim 0.3s steps(2, end) forwards;
}

.glitch-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    box-shadow: 0 0 20px var(--color-primary);
}

@keyframes glitch-btn-anim {
    0% {
        clip-path: inset(40% 0 40% 0);
    }

    20% {
        clip-path: inset(10% 0 85% 0);
    }

    40% {
        clip-path: inset(60% 0 10% 0);
    }

    60% {
        clip-path: inset(90% 0 5% 0);
    }

    80% {
        clip-path: inset(20% 0 70% 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}


/* 6.2. Forms */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:valid+label,
.form-group textarea:valid+label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--color-primary);
    background: var(--color-background);
    padding: 0 5px;
}

/* 7. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: rgba(13, 13, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    transition: height var(--transition-speed) ease;
}


.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-secondary);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-white);
    transition: all var(--transition-speed) ease-in-out;
}

/* 8. Footer */
.footer {
    background-color: #080810;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: rgba(248, 248, 248, 0.7);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-accent);
    transition: all var(--transition-speed) ease;
}

.footer-social a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-background);
    transform: translateY(-5px);
}

.footer-links h3,
.footer-contact h3 {
    font-family: var(--font-secondary);
    color: var(--color-white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: rgba(248, 248, 248, 0.7);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-primary);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(248, 248, 248, 0.7);
}

.footer-contact i {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(248, 248, 248, 0.6);
}

.footer-legal a {
    color: rgba(248, 248, 248, 0.6);
    margin: 0 10px;
}

.footer-legal a:hover {
    color: var(--color-primary);
}

.footer-legal span {
    color: rgba(248, 248, 248, 0.4);
}

/* 9. Page-Specific Sections */

/* 9.1. Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
}

.preloader-content {
    text-align: center;
    width: 300px;
}

.glitch-container {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--color-white);
    position: relative;
    margin-bottom: 20px;
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    animation: glitch-load 1s steps(2, end) infinite;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--color-background-light);
    border: 1px solid var(--color-primary);
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--color-primary);
    animation: progress-anim 2s ease-out forwards;
}

/* 9.2. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    background: var(--color-background) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cg fill-rule="evenodd"%3E%3Cg fill="%231a1a2e" fill-opacity="0.4"%3E%3Cpath opacity=".5" d="M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h4v-9H0v-1h4v-9H0v-1h4v-9H0v-1h4v-9H0v-1h4v-9H0v-1h4v-9H0v-1h4v-9H0v-1h4v-9H0v-1h4V0h1v4h9V0h1v4h9V0h1v4h9V0h1v4h9V0h1v4h9V0h1v4h9V0h1v4h9V0h1v4h9V0h1v4h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm-9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm-9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm-9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm-9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z"/%3E%3Cpath d="M6 5V0h1v5h5v1H6v5H5V6H0V5h5z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: rgba(248, 248, 248, 0.9);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 9.3. Services Section */
.services-section {
    background-color: var(--color-background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-background);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    transform: translateZ(-1px);
}

.service-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

.service-card .service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    transition: transform var(--transition-speed) ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--color-white);
}

.service-card p {
    color: rgba(248, 248, 248, 0.8);
}

/* 9.4. About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-column {
    position: relative;
}

.about-image-container {
    position: relative;
    padding: 15px;
    border: 2px solid rgba(0, 255, 255, 0.2);
}

.glitch-image {
    width: 100%;
    padding-bottom: 125%;
    /* 4:5 Aspect Ratio */
    background-size: cover;
    background-position: center;
    position: relative;
}

.glitch-image::before,
.glitch-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-size: cover;
    background-position: center;
}

.glitch-image::before {
    left: 2px;
    mix-blend-mode: screen;
    background-color: var(--color-primary);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch-image::after {
    left: -2px;
    mix-blend-mode: screen;
    background-color: var(--color-secondary);
    animation: glitch-anim-2 4s infinite linear alternate-reverse;
}

.about-features {
    list-style: none;
    margin: 20px 0 30px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.about-features i {
    color: var(--color-primary);
}

/* 9.5. Process Section */
.process-section {
    background-color: var(--color-background-light);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: rgba(0, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.process-step {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.process-step:nth-child(odd) {
    left: 0;
}

.process-step:nth-child(even) {
    left: 50%;
}

.process-step:nth-child(odd) .process-content {
    text-align: right;
}

.process-step:nth-child(even) .process-content {
    text-align: left;
}

.process-number {
    position: absolute;
    width: 80px;
    height: 80px;
    line-height: 80px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-primary);
    text-align: center;
    z-index: 1;
}

.process-step:nth-child(odd) .process-number {
    right: -40px;
}

.process-step:nth-child(even) .process-number {
    left: -40px;
}

.process-content {
    padding: 20px 30px;
    background-color: var(--color-background);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: var(--border-radius);
    position: relative;
}

/* 9.6. Industries Section */
.industries-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 160px;
    height: 160px;
    background-color: var(--color-background-light);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    cursor: default;
}

.industry-item:hover {
    background-color: var(--color-background);
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
}

.industry-item i {
    font-size: 3rem;
    color: var(--color-primary);
}

.industry-item span {
    font-family: var(--font-secondary);
    text-align: center;
}

/* 9.7. ROI Calculator Section */
.roi-calculator-section {
    background-color: var(--color-background-light);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: var(--color-background);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.calculator-form .form-group {
    margin-bottom: 40px;
}

.calculator-form label {
    display: block;
    margin-bottom: 15px;
    color: var(--color-accent);
}

.calculator-form .range-value {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-family: var(--font-secondary);
    color: var(--color-primary);
    font-size: 1.2rem;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--color-background-light);
    outline: none;
    border: 1px solid var(--color-primary);
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
    cursor: pointer;
}

.calculator-results-container {
    border-left: 1px solid rgba(0, 255, 255, 0.1);
    padding-left: 40px;
}

.calculator-results-container h3 {
    margin-bottom: 30px;
}

.result-box {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--color-background-light);
    border-radius: var(--border-radius);
}

.result-box p {
    margin: 0;
    color: rgba(248, 248, 248, 0.7);
}

.result-box h4 {
    font-size: 2.5rem;
    color: var(--color-green);
}

.calculator-results-container small {
    color: rgba(248, 248, 248, 0.5);
}

/* 9.8. Testimonials Section */
.testimonial-slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 50px;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-text {
    font-size: 1.3rem;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 30px;
    color: rgba(248, 248, 248, 0.9);
}

.testimonial-author .author-name {
    font-family: var(--font-secondary);
    color: var(--color-primary);
}

.testimonial-author .author-title {
    color: rgba(248, 248, 248, 0.7);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 100px);
    left: 50px;
    display: flex;
    justify-content: space-between;
}

.slider-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.slider-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-background);
}

/* 9.9. Contact Page Section */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--color-background-light);
    padding: 50px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.contact-info-block {
    padding-right: 50px;
    border-right: 1px solid rgba(0, 255, 255, 0.1);
}

.contact-info-block h3 {
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 30px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 40px;
    text-align: center;
}

.info-text h4 {
    color: var(--color-white);
    margin-bottom: 5px;
    text-transform: capitalize;
}

.info-text p {
    margin: 0;
    color: rgba(248, 248, 248, 0.7);
}

.info-text a {
    color: var(--color-primary);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 9.10. Legal Pages */
.legal-content .content-wrapper {
    background: var(--color-background-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* 9.11. Page Header (for subpages) */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    background-color: var(--color-background-light);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(248, 248, 248, 0.8);
    max-width: 600px;
    margin: 0 auto;
}


/* 10. Utilities & Helpers */

/* 10.1. Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    color: var(--color-background);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: 0 0 15px var(--color-primary);
    transform: translateY(-5px);
}

/* 10.2. Popups & Modals */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 26, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-background);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    text-align: center;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-speed) ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--color-accent);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-green);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 15px;
}

/* 10.3. Live Chat Dummy */
.live-chat-dummy {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
}

.chat-icon {
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 0, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 255, 0);
    }
}

.chat-tooltip {
    position: absolute;
    left: 120%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-background-light);
    color: var(--color-accent);
    padding: 5px 15px;
    border-radius: var(--border-radius);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.chat-icon:hover .chat-tooltip {
    opacity: 1;
    visibility: visible;
}


/* 11. Responsive Design (Media Queries) */

/* 11.1. Large Desktops (max-width: 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

/* 11.2. Tablets (max-width: 992px) */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--color-background);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 20px;
        padding-top: 40px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-column {
        max-width: 500px;
        margin: 0 auto;
    }

    .process-timeline::after {
        left: 40px;
    }

    .process-step {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }

    .process-step:nth-child(even) {
        left: 0;
    }

    .process-step:nth-child(odd) .process-content,
    .process-step:nth-child(even) .process-content {
        text-align: left;
    }

    .process-number {
        left: 0;
    }

    .process-step:nth-child(odd) .process-number,
    .process-step:nth-child(even) .process-number {
        left: 0;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-results-container {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(0, 255, 255, 0.1);
        padding-top: 40px;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-block {
        border-right: none;
        padding-right: 0;
        padding-bottom: 40px;
        border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    }
}

/* 11.3. Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .testimonial-slider-wrapper {
        padding: 0;
    }

    .slider-controls {
        display: none;
    }

    /* On smaller screens, swipe might be better, but for now we hide controls */
    .testimonial-slider {
        height: 300px;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .live-chat-dummy {
        display: none;
    }
}

/* 11.4. Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .calculator-wrapper,
    .contact-page-wrapper,
    .legal-content .content-wrapper {
        padding: 25px;
    }

    .testimonial-slider {
        height: 350px;
    }
}