/* --- TABLE OF CONTENTS ---
1.  Global Styles & Variables
2.  Keyframe Animations
3.  Header & Navigation
4.  Footer
5.  Buttons & Forms
6.  Utility & Common Classes
7.  Hero Section
8.  Services Section
9.  About Section (Data Cube)
10. Interactive Simulator Section
11. Testimonials Section
12. Page Header (Subpages)
13. Content Wrapper (Subpages)
14. Contact Page Specifics
15. Pop-up Modal
16. Live Chat Widget
17. Responsive Design
--------------------------- */

/* 1. Global Styles & Variables */
:root {
    --charcoal: #0d0c1d;
    --dark-blue: #16213e;
    --electric-pink: #e94560;
    --cyan-glow: #00ffff;
    --light-text: #e0e0e0;
    --medium-text: #a0a0c0;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'VT323', monospace;
    --header-height: 80px;
    --glow-shadow-pink: 0 0 5px var(--electric-pink), 0 0 10px var(--electric-pink), 0 0 15px var(--electric-pink);
    --glow-shadow-cyan: 0 0 5px var(--cyan-glow), 0 0 10px var(--cyan-glow), 0 0 15px var(--cyan-glow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--charcoal);
    color: var(--light-text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--medium-text);
    margin-bottom: 1rem;
}

a {
    color: var(--cyan-glow);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: var(--glow-shadow-cyan);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 10px;
    color: var(--cyan-glow);
    text-shadow: var(--glow-shadow-cyan);
}

.highlight {
    color: var(--electric-pink);
    text-shadow: var(--glow-shadow-pink);
}


/* 2. Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    25% {
        opacity: 0.8;
    }

    75% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes cube-rotate {
    from {
        transform: rotateX(-20deg) rotateY(0deg);
    }

    to {
        transform: rotateX(-20deg) rotateY(360deg);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shape-pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

@keyframes bar-animate {
    from {
        width: 0;
    }

    to {
        width: var(--bar-width);
    }
}


/* 3. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(13, 12, 29, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: rgba(13, 12, 29, 0.95);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--cyan-glow));
    transition: filter 0.3s ease;
}

.logo-link:hover .logo {
    filter: drop-shadow(0 0 15px var(--cyan-glow));
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--light-text);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--electric-pink);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    text-shadow: 0 0 5px var(--electric-pink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--dark-blue);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid var(--cyan-glow);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav nav li {
    margin: 30px 0;
}

.mobile-nav nav a {
    font-size: 1.5rem;
    color: #fff;
    font-family: var(--font-secondary);
}

.mobile-nav nav .btn {
    margin-top: 20px;
}

/* Mobile Toggle Animation */
.mobile-toggle.open .bar-top {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.open .bar-middle {
    opacity: 0;
}

.mobile-toggle.open .bar-bottom {
    transform: rotate(-45deg) translate(5px, -6px);
}


/* 4. Footer */
.footer {
    background-color: var(--dark-blue);
    border-top: 2px solid var(--cyan-glow);
    padding: 60px 0 30px;
    position: relative;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.footer-shape.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--electric-pink);
    bottom: -150px;
    left: -150px;
    animation: shape-pulse 10s infinite alternate;
}

.footer-shape.shape-2 {
    width: 250px;
    height: 250px;
    background-color: var(--cyan-glow);
    top: -100px;
    right: -100px;
    animation: shape-pulse 12s infinite alternate;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-col-title {
    text-transform: capitalize;
    margin-bottom: 20px;
    color: var(--cyan-glow);
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-about-text {
    font-size: 0.9rem;
    color: var(--medium-text);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--medium-text);
    border-radius: 50%;
    color: var(--medium-text);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #fff;
    border-color: var(--electric-pink);
    background-color: var(--electric-pink);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: var(--medium-text);
}

.footer-links ul a:hover {
    color: #fff;
    text-shadow: none;
    padding-left: 5px;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.contact-info-list i {
    color: var(--cyan-glow);
    margin-top: 4px;
}

.contact-info-list a,
.contact-info-list span {
    color: var(--medium-text);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding-top: 30px;
    font-size: 0.9rem;
    color: var(--medium-text);
    position: relative;
    z-index: 1;
}


/* 5. Buttons & Forms */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--electric-pink);
    color: #fff;
    border-color: var(--electric-pink);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--cyan-glow);
    border-color: var(--cyan-glow);
}

.btn-secondary:hover {
    background-color: var(--cyan-glow);
    color: var(--charcoal);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--light-text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--dark-blue);
    border-radius: 5px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--cyan-glow);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

textarea {
    resize: vertical;
}

/* 6. Utility & Common Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(20px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* 7. Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    background: radial-gradient(circle, var(--dark-blue) 0%, var(--charcoal) 70%);
}

.hero-background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-visual {
    width: 100%;
    perspective: 1000px;
}

.server-rack-container {
    transform: rotateX(15deg) scale(0.9);
    position: relative;
}

.server-rack {
    width: 300px;
    margin: 0 auto;
    background: #2a2a3a;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #444;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-unit {
    background: #1a1a2a;
    height: 40px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border: 1px solid #333;
}

.server-unit .label {
    font-family: var(--font-secondary);
    color: var(--medium-text);
    font-size: 0.8rem;
}

.lights {
    display: flex;
    gap: 5px;
}

.led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.led.green {
    background-color: #2ecc71;
    box-shadow: 0 0 5px #2ecc71;
}

.led.blue {
    background-color: var(--cyan-glow);
    box-shadow: 0 0 5px var(--cyan-glow);
}

.led.flicker {
    animation: flicker 2s infinite linear;
    animation-delay: calc(var(--i, 1) * 0.3s);
}

.fan {
    width: 20px;
    height: 20px;
    background: radial-gradient(#555 20%, transparent 25%),
        radial-gradient(#555 20%, transparent 25%);
    background-size: 50% 50%;
    background-repeat: no-repeat;
    background-position: 0 0, 100% 100%;
    animation: spin 1s infinite linear;
}

.server-unit.router .lights {
    width: 100%;
    justify-content: space-around;
}


/* 8. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--dark-blue);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 255, 0.3);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 30px;
    background-color: rgba(233, 69, 96, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--electric-pink);
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2rem;
    color: var(--electric-pink);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--electric-pink);
    box-shadow: var(--glow-shadow-pink);
}

.service-card:hover .service-icon i {
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.card-link {
    font-family: var(--font-secondary);
    color: var(--cyan-glow);
    font-size: 1rem;
}

/* 9. About Section (Data Cube) */
.about-section {
    background-color: var(--dark-blue);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.data-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-rotate 20s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--cyan-glow);
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

.face.front {
    transform: rotateY(0deg) translateZ(100px);
}

.face.back {
    transform: rotateY(180deg) translateZ(100px);
}

.face.right {
    transform: rotateY(90deg) translateZ(100px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.face.top {
    transform: rotateX(90deg) translateZ(100px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-list {
    margin-top: 20px;
    margin-bottom: 30px;
}

.about-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-list i {
    color: var(--electric-pink);
}

/* 10. Interactive Simulator Section */
.simulator-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    background-color: var(--dark-blue);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.simulator-controls h3,
.simulator-output h3 {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--electric-pink);
    padding-bottom: 10px;
}

.simulator-output {
    padding-left: 40px;
    border-left: 1px solid rgba(0, 255, 255, 0.2);
}

.output-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-label {
    width: 100px;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
}

.bar {
    flex-grow: 1;
    height: 30px;
    background: linear-gradient(90deg, var(--electric-pink), var(--cyan-glow));
    border-radius: 5px;
    position: relative;
    animation: bar-animate 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    --bar-width: 0%;
}

.bar span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--charcoal);
    font-weight: bold;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 20px;
    font-style: italic;
}

/* 11. Testimonials Section */
.testimonials-section {
    background-color: var(--dark-blue);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--charcoal);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--electric-pink), var(--cyan-glow));
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--charcoal);
}

.client-info h4 {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-primary);
    text-transform: none;
    letter-spacing: 0;
}

.client-info p {
    margin: 0;
    font-size: 0.9rem;
}

.quote-icon {
    font-size: 2.5rem;
    color: rgba(0, 255, 255, 0.2);
    position: absolute;
    top: 20px;
    right: 20px;
}

.testimonial-body {
    font-size: 0.95rem;
    font-style: italic;
}


/* 12. Page Header (Subpages) */
body.subpage {
    padding-top: var(--header-height);
}

.page-header-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(rgba(13, 12, 29, 0.8), rgba(13, 12, 29, 0.8)),
        url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="p" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M0 50 L50 100 L100 50 L50 0 Z" fill="%2316213e"/></pattern></defs><rect width="100%" height="100%" fill="url(%23p)"/></svg>');
    background-size: 200px;
    position: relative;
}

.page-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
    opacity: 0.5;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header-content h1 {
    color: var(--electric-pink);
    text-shadow: var(--glow-shadow-pink);
}

.page-header-content p {
    max-width: 600px;
    margin: 15px auto 25px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: var(--font-secondary);
}

.breadcrumbs a {
    color: var(--cyan-glow);
}

.breadcrumbs span {
    color: var(--light-text);
}


/* 13. Content Wrapper (Subpages) */
.page-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-blue);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.content-wrapper h2 {
    color: var(--cyan-glow);
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
}

.content-wrapper ul li {
    margin-bottom: 10px;
}


/* 14. Contact Page Specifics */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--dark-blue);
    border-radius: 10px;
    overflow: hidden;
}

.contact-info {
    padding: 40px;
    background-color: rgba(13, 12, 29, 0.5);
}

.contact-methods {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(233, 69, 96, 0.1);
    border: 1px solid var(--electric-pink);
    border-radius: 50%;
}

.method-icon i {
    font-size: 1.5rem;
    color: var(--electric-pink);
}

.method-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.method-details p {
    margin: 0;
}

.contact-form-wrapper {
    padding: 40px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


/* 15. Pop-up Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--dark-blue);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--cyan-glow);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 20px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--medium-text);
}


/* 16. Live Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--electric-pink);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.5);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle .fa-times {
    display: none;
}

.chat-toggle.open .fa-comments {
    display: none;
}

.chat-toggle.open .fa-times {
    display: block;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--dark-blue);
    border-radius: 10px;
    border: 1px solid var(--cyan-glow);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.chat-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--charcoal);
    padding: 15px;
    text-align: center;
}

.chat-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.chat-header p {
    font-size: 0.8rem;
    margin: 0;
}

.chat-body {
    padding: 15px;
    height: 250px;
    overflow-y: auto;
}

.message {
    margin-bottom: 10px;
    max-width: 80%;
}

.message p {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    margin: 0;
}

.message.received {
    margin-right: auto;
}

.message.received p {
    background: var(--charcoal);
    border-bottom-left-radius: 2px;
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--charcoal);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 5px;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--cyan-glow);
    font-size: 1.2rem;
    cursor: pointer;
}


/* 17. Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-visual {
        order: -1;
    }

    .data-cube {
        width: 150px;
        height: 150px;
    }

    .face {
        width: 150px;
        height: 150px;
    }

    .face.front {
        transform: rotateY(0deg) translateZ(75px);
    }

    .face.back {
        transform: rotateY(180deg) translateZ(75px);
    }

    .face.right {
        transform: rotateY(90deg) translateZ(75px);
    }

    .face.left {
        transform: rotateY(-90deg) translateZ(75px);
    }

    .face.top {
        transform: rotateX(90deg) translateZ(75px);
    }

    .face.bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }

    .simulator-wrapper {
        grid-template-columns: 1fr;
    }

    .simulator-output {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(0, 255, 255, 0.2);
        padding-top: 30px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding: 100px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .server-rack {
        width: 80%;
        max-width: 250px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about,
    .footer-contact {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info-list li {
        justify-content: center;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-window {
        width: calc(100vw - 40px);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .content-wrapper,
    .contact-info,
    .contact-form-wrapper {
        padding: 25px;
    }
}