/*
================================================
TABLE OF CONTENTS
================================================
1.  GLOBAL STYLES & VARIABLES
2.  HELPER CLASSES & REUSABLE COMPONENTS
    - Container
    - Buttons
    - Section Styling
    - Highlight Gradient
3.  PRELOADER
4.  HEADER & NAVIGATION
5.  FOOTER
6.  HERO SECTION
7.  SERVICES SECTION
8.  INDUSTRY SECTION (WITH TABS)
9.  TESTIMONIALS SECTION (SLIDER)
10. CTA (CALL TO ACTION) SECTION
11. PAGE-SPECIFIC STYLES
    - Page Header (for subpages)
    - Contact Page
    - Legal Pages
12. INTERACTIVE ELEMENTS
    - Back to Top Button
    - Live Chat Widget
    - Popup Modal
13. ANIMATIONS & EFFECTS
    - Scroll-Triggered Animations
    - 3D Effects
14. RESPONSIVE DESIGN (MEDIA QUERIES)
================================================
*/

/* 1. GLOBAL STYLES & VARIABLES */
/* ================================================ */
:root {
    --color-primary: #4f46e5;
    --color-secondary: #0d9488;
    --color-gradient-start: var(--color-primary);
    --color-gradient-end: var(--color-secondary);
    --color-bg-dark: #0f172a;
    --color-bg-light: #1e293b;
    --color-bg-card: #1a2336;
    --color-border: #334155;
    --color-text-primary: #e2e8f0;
    --color-text-secondary: #94a3b8;
    --color-white: #ffffff;
    --color-success: #22c55e;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Rajdhani', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);

    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    background-color: var(--color-bg-dark);
    color: var(--color-text-secondary);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--color-text-primary);
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--color-gradient-start), var(--color-gradient-end));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--color-secondary), var(--color-primary));
}

/* 2. HELPER CLASSES & REUSABLE COMPONENTS */
/* ================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 28px;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all var(--transition-smooth);
}

.btn span {
    z-index: 2;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    color: var(--color-white);
    background-size: 200% auto;
}

.btn-primary:hover {
    background-position: right center;
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.25rem;
}

.btn-full {
    width: 100%;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.text-center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    color: var(--color-primary);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.section-title {
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-gradient {
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* 3. PRELOADER */
/* ================================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    text-align: center;
}

.loader-logo img {
    width: 120px;
    filter: invert(1);
    margin-bottom: 20px;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-bar {
    width: 150px;
    height: 4px;
    background-color: var(--color-border);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.loader-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    animation: loading 2s infinite linear;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* 4. HEADER & NAVIGATION */
/* ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: background-color var(--transition-smooth), box-shadow var(--transition-smooth);
    padding: 15px;
}

.header.scrolled {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    filter: invert(1);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: uppercase;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    position: relative;
    transition: background-color 0s 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: transform 0.3s, top 0.3s 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Mobile Menu Open State */
body.nav-open .hamburger {
    background-color: transparent;
}

body.nav-open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    transition: top 0.3s, transform 0.3s 0.3s;
}

body.nav-open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    transition: top 0.3s, transform 0.3s 0.3s;
}

/* 5. FOOTER */
/* ================================================ */
.footer {
    background-color: var(--color-bg-light);
    padding: 80px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
}

.footer-logo img {
    height: 60px;
    filter: invert(1);
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background-color: var(--color-border);
    color: var(--color-text-primary);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 15px;
}

.footer-links ul a::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8em;
    color: var(--color-primary);
    transition: transform var(--transition-fast);
}

.footer-links ul a:hover {
    color: var(--color-text-primary);
}

.footer-links ul a:hover::before {
    transform: translateX(5px);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--color-primary);
    margin-top: 5px;
}

.footer-contact a {
    color: var(--color-text-secondary);
}

.footer-contact a:hover {
    color: var(--color-text-primary);
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

/* 6. HERO SECTION */
/* ================================================ */
.hero {
    padding-top: calc(var(--header-height) + 100px);
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    opacity: 0.1;
    filter: blur(80px);
}

.hero-bg-shapes .shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation: float 10s infinite ease-in-out;
}

.hero-bg-shapes .shape-2 {
    width: 300px;
    height: 300px;
    bottom: 15%;
    right: 10%;
    animation: float 12s infinite ease-in-out reverse;
}

.hero-bg-shapes .shape-3 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 25%;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-30px) translateX(20px);
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content h1 {
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-image-container {
    perspective: 1500px;
}

.hero-image-3d {
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(10deg);
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-image-3d img {
    border-radius: var(--border-radius);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--color-border);
}

/* 7. SERVICES SECTION */
/* ================================================ */
.services-section {
    background-color: var(--color-bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1), transparent 40%);
    transition: opacity var(--transition-smooth);
    opacity: 0;
    z-index: 0;
    transform: translateZ(-20px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    color: var(--color-white);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 25px;
}

.service-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: uppercase;
}

.service-link i {
    transition: transform var(--transition-fast);
    margin-left: 5px;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* 8. INDUSTRY SECTION (WITH TABS) */
/* ================================================ */
.industry-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background-color: var(--color-bg-light);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
}

.tab-link {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.tab-link.active {
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    position: relative;
    min-height: 120px;
}

.tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--color-primary);
}

.tab-pane.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tab-pane i {
    font-size: 2rem;
    color: var(--color-primary);
}

.industry-image-container {
    perspective: 1500px;
}

.industry-image-3d {
    transform-style: preserve-3d;
    transform: rotateY(20deg) rotateX(10deg);
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.industry-image-3d img {
    border-radius: var(--border-radius);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--color-border);
}

/* 9. TESTIMONIALS SECTION (SLIDER) */
/* ================================================ */
.testimonials-section {
    background-color: var(--color-bg-light);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-smooth);
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 40px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.testimonial-quote {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.testimonial-quote i {
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.5;
}

.testimonial-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.author-info h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.slider-controls button {
    width: 50px;
    height: 50px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-controls button:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* 10. CTA (CALL TO ACTION) SECTION */
/* ================================================ */
.cta-section {
    padding: 0;
}

.cta-wrapper {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1200') no-repeat center center/cover;
    padding: 80px 60px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-content .section-title {
    color: var(--color-white);
}

.cta-content p {
    max-width: 600px;
    color: var(--color-text-secondary);
}

/* 11. PAGE-SPECIFIC STYLES */
/* ================================================ */
.page-header {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    text-align: center;
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    margin-bottom: 15px;
}

.breadcrumbs a {
    color: var(--color-text-secondary);
}

.breadcrumbs span {
    color: var(--color-text-primary);
}

.main-content {
    padding: 100px 0;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--color-bg-light);
    padding: 50px;
    border-radius: var(--border-radius);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background-color: var(--color-bg-card);
    padding: 20px;
    border-radius: var(--border-radius);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--color-primary);
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background-color: var(--color-bg-light);
    border-radius: 50%;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-details p,
.contact-details a {
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Contact Form */
.contact-form {
    background-color: var(--color-bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 45px;
    color: var(--color-text-secondary);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.form-group.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox-group input {
    width: auto;
}

.form-group.checkbox-group label {
    margin-bottom: 0;
}

.form-group.checkbox-group a {
    text-decoration: underline;
}

/* Legal Pages */
.legal-content {
    background-color: var(--color-bg-light);
    padding: 50px;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.legal-content p {
    margin-bottom: 15px;
}

/* 12. INTERACTIVE ELEMENTS */
/* ================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    color: var(--color-white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Live Chat */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 998;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: var(--color-white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-fast);
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
}

.live-chat-widget.active .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    padding: 15px;
    background-color: var(--color-bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    height: 250px;
    overflow-y: auto;
}

.chat-message.received p {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    max-width: 80%;
}

.chat-footer {
    display: flex;
    border-top: 1px solid var(--color-border);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 15px;
    color: var(--color-text-primary);
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.2rem;
    padding: 0 15px;
    cursor: pointer;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    display: grid;
    place-items: center;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--color-bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform var(--transition-smooth);
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}


/* 13. ANIMATIONS & EFFECTS */
/* ================================================ */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.fade-up {
    transform: translateY(50px);
}

.animate-on-scroll.fade-right {
    transform: translateX(-50px);
}

.animate-on-scroll.fade-left {
    transform: translateX(50px);
}

.animate-on-scroll.zoom-in {
    transform: scale(0.9);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* 14. RESPONSIVE DESIGN */
/* ================================================ */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--color-bg-light);
        padding-top: 100px;
        transition: right var(--transition-smooth);
        box-shadow: var(--shadow-lg);
    }

    body.nav-open .nav {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 15px 30px;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active,
    .nav-link:hover {
        background-color: var(--color-bg-card);
    }

    .dropdown .nav-link i {
        float: right;
        margin-top: 5px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 40px;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image-container {
        order: 1;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .industry-wrapper {
        grid-template-columns: 1fr;
    }

    .industry-image-container {
        order: 1;
        margin-bottom: 40px;
    }

    .industry-content {
        order: 2;
    }

    .slider-controls {
        left: 0;
        right: 0;
    }

    .slider-controls button {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        transform: translate(-20px, -50%);
    }

    .next-btn {
        transform: translate(20px, -50%);
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 60px 30px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .contact-form {
        padding: 30px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
        text-align: left;
    }

    .footer-links ul a {
        padding-left: 0;
    }

    .footer-links ul a::before {
        display: none;
    }

    .live-chat-widget {
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding-top: calc(var(--header-height) + 60px);
        padding-bottom: 60px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-image-3d {
        transform: rotateY(0) rotateX(0);
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .slider-controls {
        display: none;
    }

    /* Hide controls on very small screens, rely on swipe if implemented */
    .testimonial-card {
        padding: 30px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}