/* TABLE OF CONTENTS
1.  VARIABLES & THEME
2.  RESET & BASE STYLES
3.  TYPOGRAPHY & FONTS
4.  LAYOUT & HELPERS (Container, Section Padding)
5.  HEADER & NAVIGATION
6.  FOOTER
7.  REUSABLE COMPONENTS (Buttons, Cards, Forms)
8.  PAGE-SPECIFIC STYLES
    8.1. PRELOADER
    8.2. HERO SECTION
    8.3. SERVICES SECTION
    8.4. ABOUT SECTION
    8.5. STATS SECTION
    8.6. INDUSTRIES SECTION
    8.7. TESTIMONIALS SECTION
    8.8. CTA SECTION
    8.9. LEGAL & CONTACT PAGES
9.  INTERACTIVE ELEMENTS
    9.1. BACK TO TOP BUTTON
    9.2. LIVE CHAT WIDGET
    9.3. CONTACT FORM POPUP
10. ANIMATIONS & KEYFRAMES
11. RESPONSIVENESS (Media Queries)
*/

/* 1. VARIABLES & THEME */
:root {
    --color-primary: #009FFD;
    /* Sapphire Blue */
    --color-secondary: #00FFB2;
    /* Fluorite Green */
    --color-dark: #0D0D0D;
    /* Night */
    --color-light: #f0f8ff;
    /* Alice Blue - for text */
    --color-medium: #1a1a1a;
    --color-gray: #888;

    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --container-width: 1200px;
    --section-padding: 100px 0;
}

/* 2. RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-dark);
    color: var(--color-light);
    font-family: var(--font-secondary);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

/* 3. TYPOGRAPHY & FONTS */
h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    color: #fff;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-light);
    opacity: 0.8;
}

.subtitle {
    display: block;
    font-family: var(--font-secondary);
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 2px;
}

.glitch {
    position: relative;
    color: #fff;
    text-shadow:
        0.05em 0 0 rgba(0, 255, 178, 0.75),
        -0.025em -0.05em 0 rgba(0, 159, 253, 0.75),
        0.025em 0.05em 0 rgba(255, 0, 0, 0.75);
    animation: glitch 500ms infinite;
}

.glitch span {
    position: absolute;
    top: 0;
    left: 0;
}

.glitch span:first-child {
    animation: glitch 650ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-0.025em, -0.0125em);
    opacity: 0.8;
}

.glitch span:last-child {
    animation: glitch 375ms infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    transform: translate(0.0125em, 0.025em);
    opacity: 0.8;
}

/* 4. LAYOUT & HELPERS */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.full-width {
    width: 100%;
}

/* 5. HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease;
    padding: 1rem 0;
}

.header.scrolled {
    background-color: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 255, 178, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo img {
    height: 50px;
    transition: transform var(--transition-speed) ease;
}

.nav-logo:hover img {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: #fff;
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all var(--transition-speed) ease-in-out;
}

/* 6. FOOTER */
.footer {
    background-color: #000;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(0, 255, 178, 0.2);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-about .footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gray);
    border-radius: 50%;
    color: var(--color-gray);
}

.footer-social a:hover {
    color: var(--color-dark);
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.2rem;
    text-transform: capitalize;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a,
.footer-contact ul li a {
    color: var(--color-light);
    opacity: 0.8;
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
    color: var(--color-secondary);
    opacity: 1;
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact ul li i {
    color: var(--color-secondary);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--color-gray);
    margin: 0 0.5rem;
}

.footer-legal a:hover {
    color: #fff;
}

.footer-legal .separator {
    color: var(--color-gray);
}


/* 7. REUSABLE COMPONENTS */
.btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    letter-spacing: 1px;
}

.btn-primary-crystal {
    position: relative;
    padding: 14px 28px;
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    overflow: hidden;
    z-index: 1;
}

.btn-primary-crystal span {
    position: relative;
    z-index: 2;
}

.btn-primary-crystal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--color-secondary);
    transition: width var(--transition-speed) ease;
    z-index: -1;
}

.btn-primary-crystal:hover {
    color: var(--color-dark);
}

.btn-primary-crystal:hover::before {
    width: 100%;
}

.btn-primary-crystal.large {
    padding: 18px 36px;
    font-size: 1.1rem;
}


.btn-secondary-crystal {
    padding: 14px 28px;
    background: transparent;
    color: #fff;
    border: 2px solid var(--color-primary);
}

.btn-secondary-crystal:hover {
    background: var(--color-primary);
    color: #fff;
}

/* 8. PAGE-SPECIFIC STYLES */

/* 8.1. PRELOADER */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.loader-logo {
    width: 100px;
    height: auto;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-text {
    font-family: var(--font-secondary);
    color: var(--color-secondary);
    margin-top: 1rem;
    font-size: 1rem;
    letter-spacing: 2px;
}

.loader-bar-container {
    width: 200px;
    height: 5px;
    background-color: rgba(0, 255, 178, 0.2);
    margin: 1.5rem auto 0;
    border-radius: 5px;
    overflow: hidden;
}

.loader-bar {
    width: 0;
    height: 100%;
    background-color: var(--color-secondary);
    border-radius: 5px;
    animation: loading-bar 2s ease-out forwards;
}

/* 8.2. HERO SECTION */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 15px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(13, 13, 13, 0) 0%, var(--color-dark) 70%);
    z-index: -1;
}

.crystal-engine {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    filter: blur(10px) opacity(0.3);
}

.crystal-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 50px var(--color-secondary), 0 0 100px var(--color-secondary);
}

.crystal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-style: solid;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
}

.ring-1 {
    width: 200px;
    height: 200px;
    border-width: 2px;
    border-color: var(--color-primary) transparent var(--color-primary) transparent;
    animation: rotate 10s linear infinite;
}

.ring-2 {
    width: 400px;
    height: 400px;
    border-width: 3px;
    border-color: transparent var(--color-secondary) transparent var(--color-secondary);
    animation: rotate-reverse 15s linear infinite;
}

.ring-3 {
    width: 600px;
    height: 600px;
    border-width: 1px;
    border-color: var(--color-primary) var(--color-primary) transparent transparent;
    animation: rotate 20s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* 8.3. SERVICES SECTION */
.services-section {
    background-color: var(--color-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    background-color: var(--color-dark);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0, 255, 178, 0.2);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 178, 0.2);
}

.service-card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.service-card:hover .service-card-border::before,
.service-card:hover .service-card-border::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, var(--color-secondary), transparent);
    animation: scan 3s linear infinite;
}

.service-card:hover .service-card-border::after {
    animation-delay: 1.5s;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.card-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 700;
}

/* 8.4. ABOUT SECTION */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-features li i {
    color: var(--color-secondary);
}

.about-image {
    position: relative;
}

.about-image-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    z-index: -1;
}

.about-image img {
    border: 10px solid var(--color-dark);
}

/* 8.5. STATS SECTION */
.stats-section {
    background: var(--color-medium);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-secondary);
    color: var(--color-light);
    opacity: 0.8;
}

/* 8.6. INDUSTRIES SECTION */
/* --- ADDED THIS BLOCK FOR THE FIX --- */
.industries-section {
    background-color: var(--color-dark);
}

/* ------------------------------------ */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.industry-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid transparent;
    transition: all var(--transition-speed) ease;
}

.industry-item:hover {
    border-color: rgba(0, 159, 253, 0.3);
    background-color: rgba(0, 159, 253, 0.05);
}

.industry-item i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.industry-item h4 {
    margin-bottom: 1rem;
}

/* 8.7. TESTIMONIALS SECTION */
.testimonials-section {
    background-color: var(--color-medium);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-speed) ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%;
    background-color: var(--color-dark);
    padding: 3rem;
    border: 1px solid rgba(0, 255, 178, 0.2);
    text-align: center;
}

.testimonial-quote-icon {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.author-name {
    color: #fff;
}

.author-title {
    color: var(--color-gray);
    margin: 0;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.slider-controls button {
    background: transparent;
    border: 1px solid var(--color-gray);
    color: var(--color-gray);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.slider-controls button:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-dark);
}

/* 8.8. CTA SECTION */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    text-align: center;
}

.cta-content h2 {
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--color-dark);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    opacity: 1;
}

.cta-section .btn-primary-crystal {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: #fff;
}

.cta-section .btn-primary-crystal:hover {
    background: #fff;
    border-color: #fff;
    color: var(--color-dark);
}

/* 8.9. LEGAL & CONTACT PAGES */
.page-header-section {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    background-color: var(--color-medium);
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 159, 253, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 159, 253, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 0;
}

.page-header-section .container {
    position: relative;
    z-index: 1;
}

.page-header-section h1 {
    margin-bottom: 1rem;
}

.legal-content,
.contact-page-section {
    background-color: var(--color-dark);
}

.legal-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content-wrapper h2 {
    margin: 2.5rem 0 1rem;
    color: var(--color-secondary);
}

.legal-content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content-wrapper li {
    margin-bottom: 0.5rem;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 4rem;
}

.contact-info-block {
    background-color: var(--color-medium);
    padding: 2rem;
}

.contact-info-header {
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.info-text h4 {
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}

.info-text p {
    margin: 0;
    font-size: 0.9rem;
}

.contact-form-block {
    background-color: var(--color-medium);
    padding: 2rem;
}

.form-header {
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
    color: var(--color-light);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: var(--color-dark);
    border: 1px solid rgba(0, 255, 178, 0.3);
    color: #fff;
    font-family: var(--font-secondary);
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300FFB2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* 9. INTERACTIVE ELEMENTS */

/* 9.1. BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-secondary);
    color: var(--color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: scale(1.1);
}

/* 9.2. LIVE CHAT WIDGET */
.chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 255, 178, 0.3);
    transition: transform var(--transition-speed) ease;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle .fa-times {
    display: none;
}

.chat-widget.open .chat-toggle .fa-times {
    display: block;
}

.chat-widget.open .chat-toggle .fa-comments {
    display: none;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    background-color: var(--color-medium);
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.chat-widget.open .chat-window {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.chat-header {
    background-color: var(--color-primary);
    padding: 1rem;
    color: #fff;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-header p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.chat-body {
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 1rem;
}

.chat-message p {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    max-width: 80%;
    margin: 0;
}

.chat-message.operator p {
    background-color: var(--color-dark);
    border-bottom-left-radius: 0;
}

.chat-message.user {
    text-align: right;
}

.chat-message.user p {
    background-color: var(--color-primary);
    color: #fff;
    border-bottom-right-radius: 0;
}

.chat-footer {
    display: flex;
    padding: 0.5rem;
    border-top: 1px solid var(--color-primary);
}

.chat-footer input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.5rem;
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: transparent;
    border: none;
    color: var(--color-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* 9.3. CONTACT FORM POPUP */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 13, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--color-medium);
    padding: 3rem;
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius);
    text-align: center;
    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-gray);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.popup-content h3 {
    margin-bottom: 1rem;
}

.popup-content .btn {
    margin-top: 1.5rem;
}

/* 10. ANIMATIONS & KEYFRAMES */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes loading-bar {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes glitch {

    2%,
    64% {
        transform: translate(2px, 0) skew(0deg);
    }

    4%,
    60% {
        transform: translate(-2px, 0) skew(0deg);
    }

    62% {
        transform: translate(0, 0) skew(5deg);
    }
}

/* 11. RESPONSIVENESS (Media Queries) */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--color-dark);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
        padding-top: 2rem;
    }

    .nav-menu.active {
        left: 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;
    }

    .about-image {
        grid-row: 1;
        margin-bottom: 2rem;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .slider-controls {
        display: none;
    }

    .testimonial-slider-wrapper {
        touch-action: pan-y;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chat-widget {
        display: none;
        /* Hide chat on smaller screens for better UX */
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 2rem;
    }
}