/*
================================================
RETROFUTURE ARCADE THEME
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  VARIABLES & RESET
2.  GLOBAL STYLES & TYPOGRAPHY
3.  REUSABLE COMPONENTS (Buttons, Containers)
4.  HEADER & NAVIGATION
5.  FOOTER
6.  HERO SECTION
7.  PAGE HEADER (For inner pages)
8.  SERVICES SECTION
9.  INDUSTRY SECTION
10. TESTIMONIALS SECTION
11. CALCULATOR SECTION
12. CONTACT PAGE STYLES
13. LEGAL PAGES STYLES
14. INTERACTIVE WIDGETS (Chat, Back-to-Top)
15. ANIMATIONS & KEYFRAMES
16. RESPONSIVE DESIGN
================================================
*/

/* 1. VARIABLES & RESET */
:root {
    --primary-color: #00ffff;
    /* Cyan */
    --secondary-color: #ff00ff;
    /* Magenta */
    --accent-color: #ffff00;
    /* Yellow */
    --bg-color: #0D0A1A;
    --surface-color: #1a162d;
    --surface-color-light: #2c264d;
    --text-color: #E0E0E0;
    --heading-color: #FFFFFF;
    --border-color: rgba(0, 255, 255, 0.2);
    --shadow-color-primary: rgba(0, 255, 255, 0.5);
    --shadow-color-secondary: rgba(255, 0, 255, 0.5);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Share Tech Mono', monospace;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

*,
*::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;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-secondary);
    color: var(--heading-color);
    line-height: 1.2;
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

/* 2. GLOBAL STYLES & TYPOGRAPHY */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.text-center {
    text-align: center;
}

.section-subtitle {
    display: block;
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
    animation: text-flicker 3s linear infinite;
}

.section-title {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-header.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
}

/* 3. REUSABLE COMPONENTS (Buttons, Containers) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn i {
    position: relative;
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--shadow-color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--shadow-color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--shadow-color-secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--shadow-color-secondary);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.2rem;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}


/* 4. HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background-color: rgba(13, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    background-color: var(--surface-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--heading-color);
}

.logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--primary-color));
}

.logo span {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.nav {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    color: var(--text-color);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    left: 0;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-family: var(--font-primary);
    text-transform: none;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background-color: var(--surface-color-light);
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 2px;
    background-color: var(--heading-color);
    position: relative;
    transition: background-color 0s 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--heading-color);
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-close {
    display: none;
}

/* 5. FOOTER */
.footer {
    background-color: var(--surface-color);
    padding: 80px 0 0;
    border-top: 2px solid var(--primary-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--primary-color);
    filter: blur(10px);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-color);
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-about .footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-about .footer-logo span {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--heading-color);
}

.footer-about p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1rem;
}

.footer-socials a:hover {
    background-color: var(--primary-color);
    color: var(--bg-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-size: 0.9rem;
}

.footer-links ul li a:hover {
    padding-left: 5px;
    color: var(--primary-color);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-contact ul li a {
    color: var(--text-color);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* 6. HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: move-grid 20s linear infinite;
    opacity: 0.5;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(0, 255, 255, 0.15);
    top: 10%;
    left: 5%;
    animation: float 10s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background-color: rgba(255, 0, 255, 0.15);
    bottom: 15%;
    right: 10%;
    animation: float 12s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 0, 0.1);
    top: 50%;
    left: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* Glitch effect on hero title */
.glitch {
    position: relative;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--shadow-color-primary);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    overflow: hidden;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-color), 2px 2px var(--secondary-color);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

.hero-visual {
    perspective: 1000px;
}

.hero-3d-cube-container {
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.hero-3d-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.hero-3d-cube .face {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(26, 22, 45, 0.8);
    border: 2px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--primary-color);
}

.face.front {
    transform: rotateY(0deg) translateZ(150px);
}

.face.back {
    transform: rotateY(180deg) translateZ(150px);
}

.face.right {
    transform: rotateY(90deg) translateZ(150px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(150px);
}

.face.top {
    transform: rotateX(90deg) translateZ(150px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(150px);
}


/* 7. PAGE HEADER (For inner pages) */
.page-header {
    padding: 150px 0 80px;
    background-color: var(--surface-color);
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.breadcrumbs a {
    color: var(--text-color);
}

.breadcrumbs span {
    color: var(--primary-color);
}

/* 8. SERVICES SECTION */
.services-section {
    background-color: var(--surface-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    height: 350px;
    perspective: 1000px;
}

.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;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    background: linear-gradient(145deg, var(--surface-color), #211c3a);
}

.service-card-front {
    color: var(--heading-color);
}

.service-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #3a3263, var(--surface-color-light));
}

.service-card-back h3 {
    color: var(--primary-color);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--shadow-color-primary);
}

.service-card-front h3 {
    font-size: 1.3rem;
}

.service-card-back p {
    font-size: 0.9rem;
    margin: 15px 0;
}

.service-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.05) 3px,
            rgba(0, 255, 255, 0.05) 4px);
    opacity: 0;
    transition: opacity var(--transition-speed);
    pointer-events: none;
}

.service-card:hover .service-scanline {
    opacity: 1;
}

/* 9. INDUSTRY SECTION */
.industry-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.industry-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid var(--border-color);
    padding-right: 30px;
}

.industry-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

.industry-item:hover {
    background-color: var(--surface-color-light);
    color: var(--primary-color);
}

.industry-item.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--shadow-color-primary);
}

.industry-item i {
    font-size: 1.5rem;
}

.industry-content .industry-panel {
    display: none;
}

.industry-content .industry-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.industry-panel h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-list {
    margin-top: 20px;
    list-style: none;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--primary-color);
}

/* 10. TESTIMONIALS SECTION */
.testimonials-section {
    background: linear-gradient(rgba(13, 10, 26, 0.9), rgba(13, 10, 26, 0.9)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><g fill="%231a162d" fill-opacity="0.4"><rect x="50" width="50" height="50" /><rect y="50" width="50" height="50" /></g></svg>');
    background-size: 100px 100px;
}

.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: all var(--transition-speed) ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left-color: var(--secondary-color);
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.05);
}

.testimonial-text {
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    color: var(--primary-color);
    font-family: var(--font-primary);
    text-transform: none;
    font-weight: 600;
}

.author-info span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 11. CALCULATOR SECTION */
.calculator-section {
    background-color: var(--surface-color);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.calculator-form {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.calculator-form .form-group {
    margin-bottom: 30px;
}

.calculator-form label {
    display: block;
    margin-bottom: 15px;
    font-family: var(--font-secondary);
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--surface-color-light);
    outline: none;
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--shadow-color-primary);
}

.slider-wrapper span {
    font-family: var(--font-secondary);
    color: var(--accent-color);
    min-width: 80px;
    text-align: right;
}

.calculator-results p {
    font-family: var(--font-secondary);
    margin-bottom: 10px;
}

.result-output-box {
    background-color: var(--surface-color);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.result-label {
    opacity: 0.8;
}

.result-value {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.calculator-results small {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* 12. CONTACT PAGE STYLES */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background-color: var(--surface-color);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

.contact-details h3 {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 0.9rem;
}

.contact-form-container {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-form .form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-family: var(--font-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-family: var(--font-primary);
    transition: all var(--transition-speed);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--shadow-color-primary);
}

.contact-form .form-group i {
    position: absolute;
    top: 42px;
    right: 15px;
    color: var(--border-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.85rem;
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px var(--shadow-color-primary);
    position: relative;
    transform: scale(0.7);
    transition: transform var(--transition-speed);
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.popup-icon {
    font-size: 4rem;
    color: #28a745;
    /* Success Green */
    margin-bottom: 20px;
}

/* 13. LEGAL PAGES STYLES */
.legal-content {
    background-color: var(--surface-color);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content strong {
    color: var(--accent-color);
}

/* 14. INTERACTIVE WIDGETS (Chat, Back-to-Top) */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: var(--bg-color);
    cursor: pointer;
    box-shadow: 0 0 20px var(--shadow-color-primary);
    animation: pulse 2s infinite;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background-color: var(--surface-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background-color: var(--surface-color-light);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header p {
    font-family: var(--font-secondary);
    color: var(--primary-color);
}

.close-chat-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
}

.chat-message.bot p {
    background-color: var(--surface-color-light);
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    display: inline-block;
    max-width: 80%;
    font-size: 0.9rem;
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: var(--text-color);
    padding: 0 10px;
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    display: grid;
    place-items: center;
    color: var(--bg-color);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 15. ANIMATIONS & KEYFRAMES */
@keyframes text-flicker {
    0% {
        opacity: 0.1;
    }

    2% {
        opacity: 1;
    }

    8% {
        opacity: 0.1;
    }

    9% {
        opacity: 1;
    }

    12% {
        opacity: 0.1;
    }

    20% {
        opacity: 1;
    }

    25% {
        opacity: 0.3;
    }

    30% {
        opacity: 1;
    }

    70% {
        opacity: 0.7;
    }

    72% {
        opacity: 0.2;
    }

    77% {
        opacity: 0.9;
    }

    100% {
        opacity: 0.9;
    }
}

@keyframes move-grid {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100px 100px;
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -40px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 30%, 0 30%);
    }

    25% {
        clip-path: polygon(0 40%, 100% 40%, 100% 50%, 0 50%);
    }

    50% {
        clip-path: polygon(0 65%, 100% 65%, 100% 80%, 0 80%);
    }

    75% {
        clip-path: polygon(0 10%, 100% 10%, 100% 25%, 0 25%);
    }

    100% {
        clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: polygon(0 5%, 100% 5%, 100% 10%, 0 10%);
    }

    25% {
        clip-path: polygon(0 80%, 100% 80%, 100% 85%, 0 85%);
    }

    50% {
        clip-path: polygon(0 30%, 100% 30%, 100% 40%, 0 40%);
    }

    75% {
        clip-path: polygon(0 60%, 100% 60%, 100% 70%, 0 70%);
    }

    100% {
        clip-path: polygon(0 20%, 100% 20%, 100% 35%, 0 35%);
    }
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--shadow-color-primary);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px var(--shadow-color-primary);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--shadow-color-primary);
    }
}


/* 16. RESPONSIVE DESIGN */

/* Tablets */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 50px;
    }

    .testimonial-carousel {
        grid-template-columns: 1fr 1fr;
    }

    .testimonial-card:last-child {
        grid-column: 1 / -1;
    }

    .calculator-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .industry-wrapper {
        grid-template-columns: 250px 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section {
        padding: 80px 0;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }

    .nav.show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 2rem;
        background: none;
        border: none;
        color: var(--text-color);
        cursor: pointer;
    }

    .dropdown {
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        background: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: auto;
        padding: 20px 0 0;
    }

    .dropdown-menu li a {
        padding: 8px 15px;
        font-size: 1rem;
        text-transform: uppercase;
        font-family: var(--font-secondary);
    }

    .header .btn {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-bottom: 80px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .services-grid,
    .testimonial-carousel {
        grid-template-columns: 1fr;
    }

    .industry-wrapper {
        grid-template-columns: 1fr;
    }

    .industry-list {
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0 0 20px 0;
    }

    .industry-item {
        flex-shrink: 0;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .live-chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-window {
        width: calc(100vw - 40px);
    }
}