/*
    Table of Contents:
    1.  :root Variables
    2.  Global Styles & Reset
    3.  Keyframe Animations
    4.  Utility Classes
    5.  3D Grid Background
    6.  Header & Navigation
    7.  Mobile Navigation
    8.  Footer
    9.  Buttons & Form Elements
    10. Main Content & Sections
    11. Hero Section
    12. Services Section
    13. About Us Section
    14. Industries Section
    15. Testimonials Section
    16. ROI Calculator Section
    17. CTA Section
    18. Subpage Styles (Legal, Contact)
    19. Contact Page Specifics
    20. Popup Styles
    21. Floating Chat Widget
    22. Responsive Design (Media Queries)
*/

/* 1. :root Variables */
:root {
    --primary-color: #4A90E2;
    /* A professional blue */
    --secondary-color: #50E3C2;
    /* A vibrant teal/mint accent */
    --dark-bg: #121B2A;
    /* Deep navy blue for backgrounds */
    --light-bg: #1A2436;
    /* Slightly lighter navy for cards/panels */
    --text-color: #E0E0E0;
    /* Light grey for primary text */
    --text-muted: #A0AEC0;
    /* Muted grey for descriptions */
    --white-color: #FFFFFF;
    --border-color: rgba(74, 144, 226, 0.2);
    --header-height: 80px;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* 2. Global Styles & Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--white-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes word-cycle {

    0%,
    20% {
        transform: translateY(0);
    }

    25%,
    45% {
        transform: translateY(-100%);
    }

    50%,
    70% {
        transform: translateY(-200%);
    }

    75%,
    95% {
        transform: translateY(-300%);
    }

    100% {
        transform: translateY(-400%);
    }
}


/* 4. Utility Classes */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-family: var(--font-secondary);
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none !important;
}

/* 5. 3D Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-image:
        linear-gradient(rgba(74, 144, 226, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 144, 226, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gradient-animation 20s ease infinite;
}

/* 6. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background: rgba(18, 27, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}


.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    transition: height 0.3s ease;
}


.logo-link .logo {
    height: 80px;
    filter: brightness(0) invert(1);
    transition: height 0.3s ease;
}


.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1002;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white-color);
    border-radius: 3px;
    transition: all 0.4s ease;
    position: absolute;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-toggle.is-active .bar-top {
    transform: rotate(45deg);
    top: 50%;
}

.mobile-toggle.is-active .bar-middle {
    opacity: 0;
}

.mobile-toggle.is-active .bar-bottom {
    transform: rotate(-45deg);
    top: 50%;
}

/* 7. Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.is-active {
    right: 0;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 30px 0;
}

.mobile-nav a {
    font-size: 2rem;
    color: var(--white-color);
    font-weight: 600;
}


/* 8. Footer */
.footer {
    background-color: var(--light-bg);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
}

.footer-shape.shape-1 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -150px;
}

.footer-shape.shape-2 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}


.footer .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3rem;
}

.footer-col-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white-color);
}

.footer-logo {
    height: 80px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-about-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-info a {
    color: var(--text-muted);
}

.contact-info a:hover {
    color: var(--white-color);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
}


/* 9. Buttons & Form Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white-color);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(80, 227, 194, 0.3);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--white-color);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

/* 10. Main Content & Sections */
main {
    padding-top: var(--header-height);
}

section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* 11. Hero Section */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 60%);
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.hero-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 15%;
    animation-duration: 10s;
}

.hero-shape.shape-2 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    right: 10%;
    animation-duration: 12s;
}

.hero-shape.shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 25%;
    animation-duration: 9s;
}


.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-title>span {
    display: block;
}

.animated-text {
    display: flex;
    justify-content: center;
    gap: 1rem;
    height: 1.2em;
    overflow: hidden;
}

.animated-text .words {
    color: var(--secondary-color);
    animation: word-cycle 10s infinite;
}

.animated-text .words span {
    display: block;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 12. Services Section */
.services-section {
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
    min-height: 250px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.service-card-back {
    transform: rotateY(180deg);
    align-items: flex-start;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--white-color);
}

.service-card p {
    color: var(--text-muted);
}

.service-card-back ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
    text-align: left;
    width: 100%;
}

.service-card-back li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
}

.service-card-back li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.btn-learn-more {
    color: var(--secondary-color);
    font-weight: 600;
}


/* 13. About Us Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    list-style: none;
    margin: 2rem 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.about-features i {
    color: var(--secondary-color);
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    transform: rotate(3deg);
    transition: transform 0.4s ease;
}

.about-image-wrapper:hover .about-image {
    transform: rotate(0) scale(1.05);
}

.about-image img {
    border-radius: 12px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    z-index: -1;
    transition: all 0.4s ease;
}

.about-image-wrapper:hover .about-image::before {
    top: 0;
    left: 0;
}


/* 14. Industries Section */
.industries-section {
    background-color: var(--light-bg);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.industry-item {
    background-color: var(--dark-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.industry-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.industry-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.industry-item h3 {
    font-size: 1.1rem;
}


/* 15. Testimonials Section */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(30px);
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial-content {
    background-color: var(--light-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50px;
    border-width: 10px;
    border-style: solid;
    border-color: var(--light-bg) transparent transparent transparent;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 30px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.author-info h4 {
    color: var(--white-color);
    margin: 0;
}

.author-info span {
    color: var(--text-muted);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

/* 16. ROI Calculator Section */
.roi-calculator-section {
    background-color: var(--light-bg);
}

.roi-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.roi-calculator {
    background: var(--dark-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.roi-calculator .form-group {
    display: flex;
    flex-direction: column;
}

.roi-calculator label {
    font-size: 0.9rem;
}

.roi-calculator input {
    background-color: var(--light-bg);
}

.roi-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.result-item h4 {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.result-item span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
}

/* 17. CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 5rem 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}

.cta-description {
    color: var(--white-color);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background: var(--white-color);
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: var(--dark-bg);
    color: var(--white-color);
    box-shadow: none;
}

/* 18. Subpage Styles (Legal, Contact) */
.subpage main {
    padding-top: calc(var(--header-height) + 4rem);
}

.page-header {
    text-align: center;
    padding: 0;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
}

.page-header h1::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    color: var(--secondary-color);
    -webkit-text-stroke: 0px;
    overflow: hidden;
    animation: fill-text 3s ease-in-out forwards;
}

@keyframes fill-text {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--text-color);
}

.breadcrumbs i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.page-content {
    padding: 0 0 6rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.content-wrapper h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.content-wrapper ul {
    list-style-type: disc;
    padding-left: 20px;
}

.content-wrapper ul li {
    margin-bottom: 0.5rem;
}


/* 19. Contact Page Specifics */
.contact-section {
    padding: 0 0 6rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.contact-info-panel {
    padding: 3rem;
    background: var(--dark-bg);
}

.contact-info-panel h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-methods {
    margin-top: 2.5rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--white-color);
}

.method-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.method-details p,
.method-details a {
    color: var(--text-muted);
    margin: 0;
}

.contact-form-wrapper {
    padding: 3rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group.full-width {
    width: 100%;
}

.contact-form button[type="submit"] {
    width: 100%;
}

/* 20. Popup Styles */
.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: opacity 0.3s ease, visibility 0.3s ease;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    line-height: 1;
}

.popup-content i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.popup-content h3 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.popup-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.popup-close-btn {
    text-decoration: none;
}


/* 21. Floating Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--white-color);
    cursor: pointer;
    box-shadow: var(--shadow-dark);
    transition: transform 0.3s ease;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: var(--light-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-widget.active .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    padding: 1rem;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1rem;
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
}

.message p {
    padding: 0.8rem 1rem;
    border-radius: 18px;
    max-width: 80%;
    display: inline-block;
    color: var(--white-color);
}

.message.received p {
    background-color: var(--primary-color);
    border-bottom-left-radius: 4px;
}

.chat-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.7rem 1rem;
    color: var(--white-color);
}

.chat-footer button {
    background: var(--primary-color);
    border: none;
    color: var(--white-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}


/* 22. Responsive Design (Media Queries) */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .about-content,
    .roi-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        margin-top: 3rem;
    }

    .roi-wrapper {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header .container {
        padding: 0 20px;
    }

    .header-cta {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    section {
        padding: 4rem 0;
    }

    .footer {
        padding-top: 4rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
        text-align: left;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-panel,
    .contact-form-wrapper {
        padding: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .page-header h1 {
        font-size: 3rem;
    }

    .content-wrapper {
        padding: 2rem;
    }

    .chat-widget {
        right: 15px;
        bottom: 15px;
    }

    .chat-window {
        width: calc(100vw - 30px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .animated-text {
        flex-direction: column;
        height: auto;
        gap: 0;
        align-items: center;
    }

    .animated-text .words {
        animation: none;
    }

    .animated-text .words span {
        display: none;
    }

    .animated-text .words span:first-child {
        display: block;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    :root {
        --header-height: 70px;
    }

    .header.scrolled .container {
        height: 60px;
    }
}