/*
* Neon Fabric Theme
* Concept: A tech-funky neon aesthetic layered over Material components.
* Style: Floating cards, glowing borders, neon grid background.
* Colors: Magenta #FF00C8, Teal #00FFB2, Jet #0A0A0A.
*/

/* ------------------- */
/* CSS Variables       */
/* ------------------- */
:root {
    --color-jet: #0A0A0A;
    --color-dark-gray: #1a1a1a;
    --color-medium-gray: #2c2c2c;
    --color-light-gray: #888;
    --color-white: #f5f5f5;
    --color-magenta: #FF00C8;
    --color-teal: #00FFB2;

    --font-primary: 'Poppins', sans-serif;

    --header-height: 80px;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --card-glow-intensity: 0 0 15px;
    --btn-glow-intensity: 0 0 10px;
    --section-padding: 100px 0;
}

/* ------------------- */
/* Base & Reset        */
/* ------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-jet);
    color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(0, 255, 178, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 178, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.5;
    transition: opacity var(--transition-speed);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--color-teal);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-magenta);
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-light-gray);
}

/* ------------------- */
/* Utility Classes     */
/* ------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all var(--transition-speed) ease-in-out;
}

.btn-primary {
    background-color: var(--color-magenta);
    color: var(--color-white);
    border-color: var(--color-magenta);
    box-shadow: var(--btn-glow-intensity) var(--color-magenta);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-magenta);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-teal);
    border-color: var(--color-teal);
}

.btn-secondary:hover {
    background-color: var(--color-teal);
    color: var(--color-jet);
    box-shadow: var(--btn-glow-intensity) var(--color-teal);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.subtitle {
    display: block;
    color: var(--color-teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

/* ------------------- */
/* Preloader           */
/* ------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-jet);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    perspective: 800px;
}

.loader-inner {
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--color-magenta);
    animation: rotate 1.2s linear infinite;
}

.loader-inner::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--color-teal);
    animation: rotate-reverse 0.8s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}


/* ------------------- */
/* Header & Navbar     */
/* ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 100;
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 60px;
    filter: invert(1);
    transition: height var(--transition-speed);
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-magenta));
    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: var(--color-white);
    transition: all var(--transition-speed) ease-in-out;
}

/* ------------------- */
/* Hero Section        */
/* ------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    max-width: 55%;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--color-white), var(--color-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.hero-visual {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-cube-container {
    width: 250px;
    height: 250px;
    perspective: 1000px;
}

.hero-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 20s infinite linear;
}

.hero-cube .face {
    position: absolute;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--color-teal);
    background-color: rgba(10, 10, 10, 0.5);
    border: 1px solid var(--color-teal);
    box-shadow: inset 0 0 20px rgba(0, 255, 178, 0.3);
}

.face.front {
    transform: rotateY(0deg) translateZ(125px);
}

.face.back {
    transform: rotateY(180deg) translateZ(125px);
}

.face.right {
    transform: rotateY(90deg) translateZ(125px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.face.top {
    transform: rotateX(90deg) translateZ(125px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

@keyframes spin {
    from {
        transform: rotateY(0deg) rotateX(0deg);
    }

    to {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

.hero-glow {
    position: absolute;
    bottom: -50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 0, 200, 0.15) 0%, rgba(255, 0, 200, 0) 60%);
    transform: translateX(-50%);
    z-index: -1;
}

/* ------------------- */
/* Section Headers     */
/* ------------------- */
.section-header {
    margin-bottom: 3rem;
}

.section-header.text-center p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ------------------- */
/* Services Section    */
/* ------------------- */
.services-section {
    background-color: rgba(26, 26, 26, 0.3);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-dark-gray);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    border: 1px solid var(--color-medium-gray);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
}

.service-card-inner {
    transform: translateZ(20px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-speed);
    z-index: 1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    box-shadow: 0 0 30px rgba(0, 255, 178, 0.3);
    border-color: var(--color-teal);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-teal);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--color-white);
}

.card-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--color-teal);
}

.card-link i {
    transition: transform var(--transition-speed);
    margin-left: 5px;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* ------------------- */
/* About Section       */
/* ------------------- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 178, 0.1), rgba(255, 0, 200, 0.1));
}

.about-image img {
    border-radius: var(--border-radius);
    transform: scale(1.05);
}

.about-features {
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-features i {
    color: var(--color-teal);
    font-size: 1.2rem;
    margin-top: 5px;
}

/* ------------------- */
/* Process Section     */
/* ------------------- */
.process-section {
    background-color: rgba(26, 26, 26, 0.3);
}

.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 5%;
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-teal), transparent);
}

.timeline-item {
    text-align: center;
    position: relative;
}

.timeline-content {
    background: var(--color-dark-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-medium-gray);
    transition: all var(--transition-speed);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-10px);
    box-shadow: var(--card-glow-intensity) rgba(0, 255, 178, 0.5);
    border-color: var(--color-teal);
}


.timeline-step {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--color-magenta);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    border: 3px solid var(--color-jet);
}

.timeline-icon {
    width: 100px;
    height: 100px;
    margin: -70px auto 20px auto;
    border-radius: 50%;
    background: var(--color-dark-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--color-teal);
    font-size: 2.5rem;
    color: var(--color-teal);
    position: relative;
    transition: all var(--transition-speed);
}

.timeline-item:hover .timeline-icon {
    background-color: var(--color-teal);
    color: var(--color-jet);
    transform: scale(1.1) rotate(15deg);
}

/* ------------------- */
/* Interactive Section */
/* ------------------- */
.interactive-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--color-dark-gray);
    padding: 4rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-medium-gray);
}

.calculator-card {
    background-color: var(--color-jet);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.calculator-card h4 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-teal);
}

.roi-result {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-medium-gray);
    text-align: center;
}

.roi-result p {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.roi-result h3 {
    font-size: 2rem;
    color: var(--color-teal);
}

.roi-result h3.negative {
    color: var(--color-magenta);
}

/* ------------------- */
/* Testimonials        */
/* ------------------- */
.testimonials-section {
    position: relative;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    height: 300px;
    /* Adjust as needed */
    overflow: hidden;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: var(--color-dark-gray);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-medium-gray);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.testimonial-quote {
    flex-grow: 1;
}

.testimonial-quote i {
    font-size: 2rem;
    color: var(--color-magenta);
    margin-bottom: 1rem;
}

.testimonial-author {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    color: var(--color-white);
}

.author-info span {
    color: var(--color-light-gray);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-medium-gray);
    color: var(--color-white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.slider-btn:hover {
    background: var(--color-magenta);
}


/* ------------------- */
/* CTA Section       */
/* ------------------- */
.cta-section {
    background: linear-gradient(45deg, rgba(255, 0, 200, 0.1), rgba(0, 255, 178, 0.1));
    padding: 5rem 0;
}

.cta-content p {
    max-width: 600px;
    margin: 1.5rem auto;
}

/* ------------------- */
/* Footer              */
/* ------------------- */
.footer {
    background-color: var(--color-dark-gray);
    padding-top: 5rem;
    border-top: 1px solid var(--color-medium-gray);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-logo img {
    height: 60px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer-about p {
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-medium-gray);
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-speed);
}

.footer-social a:hover {
    background: var(--color-magenta);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 1.5rem;
    color: var(--color-white);
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul a {
    color: var(--color-light-gray);
}

.footer-links ul a:hover {
    color: var(--color-teal);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-light-gray);
}

.footer-contact i {
    color: var(--color-teal);
    margin-top: 5px;
}

.footer-contact a {
    color: var(--color-light-gray);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--color-medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-light-gray);
}

.footer-legal a {
    color: var(--color-light-gray);
    margin: 0 10px;
}

.footer-legal span {
    color: var(--color-medium-gray);
}

/* ------------------- */
/* Contact Page        */
/* ------------------- */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--color-dark-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-medium-gray);
    color: var(--color-teal);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text h4 {
    margin-bottom: 0.5rem;
}

.contact-form h3 {
    margin-bottom: 2rem;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: var(--color-jet);
    border: 1px solid var(--color-medium-gray);
    color: var(--color-white);
    font-family: var(--font-primary);
    transition: all var(--transition-speed);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 10px rgba(0, 255, 178, 0.5);
}

/* ------------------- */
/* Legal Pages         */
/* ------------------- */
.page-header {
    padding: 150px 0 50px;
    text-align: center;
    background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.8)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-dark-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.content-wrapper h3 {
    color: var(--color-teal);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
}

.content-wrapper ul li {
    margin-bottom: 0.5rem;
}

/* ------------------- */
/* Scroll-Reveal FX    */
/* ------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------- */
/* Popups and Modals   */
/* ------------------- */
.popup,
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed);
}

.popup.show,
.modal.show {
    opacity: 1;
    pointer-events: all;
}

.popup-content,
.modal-content {
    background: var(--color-dark-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 90%;
    transform: scale(0.9);
    transition: transform var(--transition-speed);
}

.popup.show .popup-content,
.modal.show .modal-content {
    transform: scale(1);
}

.modal-content {
    max-width: 800px;
}

.popup-close,
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--color-light-gray);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-teal);
    margin-bottom: 1rem;
}

.modal-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-medium-gray);
    margin-bottom: 1rem;
}

/* ------------------- */
/* Back to Top Button  */
/* ------------------- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-magenta);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: var(--btn-glow-intensity) var(--color-magenta);
}

/* ------------------- */
/* Live Chat Widget    */
/* ------------------- */
.chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-teal);
    color: var(--color-jet);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 178, 0.4);
    position: relative;
    transition: transform 0.2s;
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button .fa-times {
    display: none;
}

.chat-button.open .fa-comments {
    display: none;
}

.chat-button.open .fa-times {
    display: block;
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    background: var(--color-dark-gray);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all var(--transition-speed);
}

.chat-popup.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.chat-header {
    background: var(--color-medium-gray);
    padding: 1rem;
    color: var(--color-white);
}

.chat-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.chat-header p {
    font-size: 0.8rem;
    color: var(--color-light-gray);
    margin: 0;
}

.chat-body {
    padding: 1rem;
    flex-grow: 1;
    height: 300px;
    overflow-y: auto;
}

.chat-message.received p {
    background: var(--color-medium-gray);
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    display: inline-block;
    max-width: 80%;
    font-size: 0.9rem;
    color: var(--color-white);
}

.chat-footer {
    display: flex;
    border-top: 1px solid var(--color-medium-gray);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 1rem;
    color: var(--color-white);
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: transparent;
    border: none;
    color: var(--color-teal);
    font-size: 1.2rem;
    padding: 0 1rem;
    cursor: pointer;
}


/* ------------------- */
/* Responsive Design   */
/* ------------------- */

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Header */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background: var(--color-jet);
        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);
    }

    /* Hero */
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-visual {
        width: 100%;
        margin-top: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    /* About */
    .about-wrapper {
        grid-template-columns: 1fr;
    }

    /* Process */
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-timeline::before {
        display: none;
    }

    /* Interactive Section */
    .interactive-wrapper {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    /* Contact Page */
    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-page-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .chat-popup {
        width: calc(100vw - 40px);
    }

    .back-to-top {
        display: none;
    }

    .chat-widget {
        display: none;
    }
}