/* ==========================================================================
   Table of Contents
   ==========================================================================
   1.  Global Styles & Variables
   2.  Typography
   3.  Layout & Container
   4.  Header & Navigation
   5.  Footer
   6.  Buttons & CTA
   7.  Hero Section
   8.  Services Section (3D Flip Cards)
   9.  About / Why Choose Us Section
   10. Interactive ROI Calculator
   11. Testimonials Section
   12. Final CTA Section
   13. Contact Page Styles
   14. Legal Page Styles
   15. Live Chat Widget
   16. Helper Classes & Animations
   17. Media Queries (Responsiveness)
   ========================================================================== */

/* ========================= 1. Global Styles & Variables ========================= */
:root {
    --color-primary-dark: #0a0c21;
    --color-secondary-dark: #1d1e33;
    --color-accent-1: #00d1ff;
    --color-accent-2: #eb1555;
    --color-text-light: #e0e0e0;
    --color-text-muted: #8d8e98;
    --color-white: #ffffff;
    --color-card-bg: rgba(29, 30, 51, 0.8);
    --color-border: rgba(255, 255, 255, 0.1);

    --font-primary: 'Poppins', sans-serif;
    --header-height: 80px;

    --shadow-light: 0 4px 15px rgba(0, 209, 255, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.3);

    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* Basic Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary), system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========================= 2. Typography ========================= */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-white);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.1rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

a {
    color: var(--color-accent-1);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-white);
}

ul {
    list-style: none;
}

/* ========================= 3. Layout & Container ========================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-2));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

/* ========================= 4. Header & Navigation ========================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(10, 12, 33, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid var(--color-border);
}

.site-header.scrolled {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--color-text-light);
    font-weight: 500;
    position: relative;
    padding: 10px 0;
    transition: color var(--transition-speed);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent-1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease-in-out;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-accent-1);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 3px;
    background: var(--color-white);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--color-white);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

body.nav-open .hamburger {
    background: transparent;
}

body.nav-open .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
}

body.nav-open .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
}


/* ========================= 5. Footer ========================= */
.site-footer {
    background-color: #060818;
    padding: 60px 0 0;
    border-top: 2px solid var(--color-accent-1);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent-1);
}

.footer-column p {
    color: var(--color-text-muted);
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about .logo span {
    font-size: 1.8rem;
    color: var(--color-white);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--color-text-muted);
}

.footer-links ul li a:hover {
    color: var(--color-accent-1);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact svg {
    color: var(--color-accent-1);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    margin: 0;
    color: var(--color-text-muted);
}

.legal-links a {
    color: var(--color-text-muted);
    margin: 0 10px;
}

.legal-links a:hover {
    color: var(--color-accent-1);
}

/* ========================= 6. Buttons & CTA ========================= */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button.large-cta {
    padding: 18px 45px;
    font-size: 1.1rem;
}

.cta-button.header-cta {
    padding: 8px 20px;
    font-size: 0.8rem;
}

.primary-cta {
    background-color: var(--color-accent-1);
    color: var(--color-primary-dark);
    border-color: var(--color-accent-1);
}

.primary-cta:hover {
    background-color: transparent;
    color: var(--color-accent-1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 209, 255, 0.3);
}

.secondary-cta {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.secondary-cta:hover {
    background-color: var(--color-white);
    color: var(--color-primary-dark);
}

/* ========================= 7. Hero Section ========================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--color-secondary-dark) 0%, var(--color-primary-dark) 70%);
    z-index: -1;
}

/* Particle Animation */
.particle {
    position: absolute;
    background: var(--color-accent-1);
    border-radius: 50%;
    opacity: 0;
    animation: rise 10s infinite linear;
}

@keyframes rise {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

.particle:nth-child(1) {
    width: 10px;
    height: 10px;
    left: 10%;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    width: 15px;
    height: 15px;
    left: 20%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 8px;
    height: 8px;
    left: 30%;
    animation-duration: 15s;
}

.particle:nth-child(4) {
    width: 12px;
    height: 12px;
    left: 40%;
    animation-duration: 9s;
    animation-delay: 4s;
    background-color: var(--color-accent-2);
}

.particle:nth-child(5) {
    width: 18px;
    height: 18px;
    left: 50%;
    animation-duration: 18s;
}

.particle:nth-child(6) {
    width: 7px;
    height: 7px;
    left: 60%;
    animation-duration: 11s;
    animation-delay: 1s;
}

.particle:nth-child(7) {
    width: 14px;
    height: 14px;
    left: 70%;
    animation-duration: 13s;
    background-color: var(--color-accent-2);
}

.particle:nth-child(8) {
    width: 9px;
    height: 9px;
    left: 80%;
    animation-duration: 8s;
    animation-delay: 3s;
}

.particle:nth-child(9) {
    width: 16px;
    height: 16px;
    left: 90%;
    animation-duration: 16s;
}

.particle:nth-child(10) {
    width: 11px;
    height: 11px;
    left: 5%;
    animation-duration: 10s;
    animation-delay: 5s;
    background-color: var(--color-accent-2);
}


.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text-content {
    max-width: 600px;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* 3D Cube Visual */
.hero-visual-3d {
    perspective: 1000px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 20s infinite linear;
}

@keyframes spin {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--color-accent-1);
    background: rgba(0, 209, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent-1);
    text-transform: uppercase;
}

.front {
    transform: rotateY(0deg) translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}


/* ========================= 8. Services Section (3D Flip Cards) ========================= */
.services-section {
    background-color: var(--color-secondary-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card-wrapper {
    perspective: 1500px;
}

.service-card {
    position: relative;
    width: 100%;
    min-height: 350px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card-wrapper:hover .service-card {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--color-border);
    background: var(--color-card-bg);
}

.card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--color-accent-1), var(--color-accent-2)) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.service-card-wrapper:hover .card-front::before {
    opacity: 1;
}

.card-back {
    transform: rotateY(180deg);
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--color-accent-1);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    margin-bottom: 15px;
    color: var(--color-white);
}

.service-description {
    color: var(--color-text-muted);
}

.card-back-title {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
    color: var(--color-accent-1);
}

.card-back ul {
    list-style: '✓ ';
    padding-left: 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-back ul li {
    margin-bottom: 10px;
    color: var(--color-text-muted);
}

.card-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: var(--color-accent-1);
    color: var(--color-primary-dark);
    border-radius: 5px;
    font-weight: 600;
    margin-top: auto;
}

.card-cta:hover {
    background-color: var(--color-accent-2);
    color: var(--color-white);
}


/* ========================= 9. About / Why Choose Us Section ========================= */
.about-section {
    background-color: var(--color-primary-dark);
}

.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    text-align: left;
}

.about-content h2::after {
    left: 0;
    transform: translateX(0);
}

.about-list {
    list-style: none;
    padding-left: 0;
    margin: 30px 0;
}

.about-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent-1);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    background: var(--color-secondary-dark);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 5px solid var(--color-accent-1);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-speed) ease;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 209, 255, 0.2);
}

.stat-item:nth-child(2) {
    border-left-color: var(--color-accent-2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
}

.stat-number+span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent-1);
}

.stat-item:nth-child(2) .stat-number+span {
    color: var(--color-accent-2);
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ========================= 10. Interactive ROI Calculator ========================= */
.calculator-section {
    background-color: var(--color-secondary-dark);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--color-primary-dark);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.calculator-form .form-group {
    margin-bottom: 25px;
}

.calculator-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--color-text-light);
}

.calculator-form span {
    float: right;
    font-weight: bold;
    color: var(--color-accent-1);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--color-secondary-dark);
    border-radius: 5px;
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-accent-1);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--color-primary-dark);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-accent-1);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--color-primary-dark);
}

.calculator-results {
    background-color: var(--color-secondary-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--color-accent-2);
}

.results-title {
    margin-bottom: 30px;
    color: var(--color-white);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-label {
    margin: 0;
    color: var(--color-text-muted);
}

.result-value {
    margin: 0;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--color-white);
}

.total-roi {
    background-color: rgba(235, 21, 85, 0.1);
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
}

.total-roi .result-label {
    color: var(--color-white);
}

.total-roi .result-value {
    color: var(--color-accent-2);
    font-size: 2rem;
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    margin-top: 20px;
    text-align: center;
    font-style: italic;
    color: var(--color-text-muted);
}

/* ========================= 11. Testimonials Section ========================= */
.testimonials-section {
    position: relative;
    background-image: linear-gradient(rgba(10, 12, 33, 0.9), rgba(10, 12, 33, 0.9)), url('https://via.placeholder.com/1920x1080.png?text=Abstract+Background');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: var(--color-card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.testimonial-slider {
    position: relative;
    display: flex;
    transition: transform var(--transition-speed) ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity var(--transition-speed) ease-in-out;
    visibility: hidden;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
    visibility: visible;
}

.testimonial-quote {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-text-light);
    position: relative;
    padding-left: 40px;
}

.testimonial-quote::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--color-accent-1);
    font-family: serif;
    opacity: 0.5;
}

.testimonial-author {
    text-align: right;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--color-white);
}

.author-title {
    display: block;
    color: var(--color-text-muted);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: absolute;
}

.slider-btn:hover {
    background: var(--color-accent-1);
    color: var(--color-primary-dark);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

/* ========================= 12. Final CTA Section ========================= */
.final-cta-section {
    background: linear-gradient(45deg, var(--color-accent-1), var(--color-accent-2));
    padding: 80px 0;
}

.cta-container {
    text-align: center;
}

.cta-title {
    color: var(--color-primary-dark);
    text-shadow: none;
}

.cta-text {
    color: rgba(10, 12, 33, 0.8);
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.final-cta-section .primary-cta {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-accent-2);
}

.final-cta-section .primary-cta:hover {
    background-color: transparent;
    border-color: var(--color-primary-dark);
    color: var(--color-primary-dark);
    box-shadow: 0 5px 15px rgba(10, 12, 33, 0.2);
}

/* ========================= 13. Contact Page Styles ========================= */
.page-hero {
    padding: 140px 0 80px;
    text-align: center;
    background: var(--color-secondary-dark);
}

.page-title {
    font-size: 3rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 10px auto 0;
}

.contact-section {
    padding: 80px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-form-wrapper {
    background-color: var(--color-secondary-dark);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-title {
    margin-bottom: 10px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--color-primary-dark);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    color: var(--color-text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent-1);
    box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
}

.contact-info-wrapper {}

.contact-info-box {
    background-color: var(--color-secondary-dark);
    padding: 40px;
    border-radius: var(--border-radius);
    height: 100%;
}

.contact-details-list {
    list-style: none;
    margin: 20px 0;
}

.contact-details-list li {
    margin-bottom: 15px;
}

.contact-details-list strong {
    color: var(--color-accent-1);
}

.contact-map img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

/* ========================= 14. Legal Page Styles ========================= */
.legal-page-section {
    padding: 120px 0 80px;
}

.legal-page-section .container {
    max-width: 800px;
}

.legal-page-section h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.legal-page-section h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--color-accent-1);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.legal-page-section p,
.legal-page-section li {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.legal-page-section ul {
    list-style: disc;
    padding-left: 20px;
}

.legal-page-section ul li {
    margin-bottom: 10px;
}

/* ========================= 15. Live Chat Widget ========================= */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: var(--color-accent-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 209, 255, 0.4);
    transition: transform 0.3s ease;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary-dark);
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--color-secondary-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all 0.3s ease;
}

.chat-box.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--color-primary-dark);
}

.chat-header h4 {
    margin: 0;
    color: var(--color-white);
}

.close-chat {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
    flex-grow: 1;
    height: 150px;
}

.chat-body p {
    margin: 0;
    color: var(--color-text-light);
}

.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-white);
    outline: none;
}

.chat-footer button {
    background: var(--color-accent-1);
    border: none;
    color: var(--color-primary-dark);
    padding: 0 20px;
    cursor: pointer;
    font-weight: 600;
}

/* ========================= 16. Helper Classes & Animations ========================= */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

.fade-in-up {
    transform: translateY(50px);
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ========================= 17. Media Queries (Responsiveness) ========================= */

/* Tablets and larger devices */
@media (max-width: 992px) {
    .header-content {
        padding: 0 20px;
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: var(--color-secondary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

    body.nav-open .main-nav {
        transform: translateX(0);
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .main-nav a {
        font-size: 1.5rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text-content {
        order: 2;
    }

    .hero-visual-3d {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .cube {
        width: 150px;
        height: 150px;
    }

    .face {
        width: 150px;
        height: 150px;
    }

    .front,
    .back {
        transform: rotateY(0deg) translateZ(75px);
    }

    .right,
    .left {
        transform: rotateY(90deg) translateZ(75px);
    }

    .top,
    .bottom {
        transform: rotateX(90deg) translateZ(75px);
    }


    .about-container {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}


/* Smaller tablets */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 80px 0;
    }

    .hero {
        height: auto;
        padding: 120px 0 80px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-slider-wrapper {
        padding: 20px;
    }

    .slider-controls {
        display: none;
        /* simpler navigation for mobile */
    }

    .footer-container {
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .bottom-container {
        flex-direction: column;
        gap: 20px;
    }

    .legal-links {
        text-align: center;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}


/* Mobile phones */
@media (max-width: 576px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 15px;
    }

    .about-stats {
        flex-direction: column;
    }

    .calculator-wrapper {
        padding: 20px;
    }

    .chat-box {
        width: calc(100vw - 40px);
        bottom: 70px;
        right: -15px;
    }

    .chat-widget {
        bottom: 15px;
        right: 15px;
    }
}