/*
    Digital Marketing Agency Stylesheet
    Author: [Your Name]
    Version: 1.0
*/

/* ---------------------------------- */
/*          1. ROOT & RESET           */
/* ---------------------------------- */
:root {
    --primary-color: #3671E9;
    --secondary-color: #9C36E9;
    --dark-bg: #0D0D2B;
    --dark-bg-secondary: #131334;
    --light-bg: #F8F9FA;
    --text-light: #FFFFFF;
    --text-medium: #E0E0E0;
    --text-dark: #333333;
    --font-primary: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(95deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: var(--text-medium);
    line-height: 1.7;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 80px 0;
}

/* ---------------------------------- */
/*          2. HEADER & NAV           */
/* ---------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 43, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    background: var(--dark-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 60px;
    width: auto;
    filter: invert(1);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-medium);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.mobile-nav {
    display: none;
}

/* ---------------------------------- */
/*          3. BUTTONS & FORMS        */
/* ---------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: var(--gradient);
    color: var(--text-light);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(95deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(54, 113, 233, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-medium);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    background-color: var(--dark-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 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(54, 113, 233, 0.3);
}

/* ---------------------------------- */
/*          4. HERO SECTION           */
/* ---------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
}

.hero-background-shapes .shape1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: 10%;
    left: -10%;
    animation: move-blob 15s infinite alternate;
}

.hero-background-shapes .shape2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: 5%;
    right: -5%;
    animation: move-blob 20s infinite alternate-reverse;
}

.hero-background-shapes .shape3 {
    display: none;
}

@keyframes move-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h1 .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-container {
    width: 250px;
    height: 250px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.cube .face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--primary-color);
    backdrop-filter: blur(5px);
}

.face.front {
    transform: rotateY(0deg) translateZ(125px);
}

.face.back {
    transform: rotateY(180deg) translateZ(125px);
}

.face.right {
    transform: rotateY(90deg) translateZ(125px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.face.top {
    transform: rotateX(90deg) translateZ(125px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

@keyframes rotate-cube {
    0% {
        transform: rotateX(0) rotateY(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* ---------------------------------- */
/*          5. GENERIC SECTIONS       */
/* ---------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .subtitle {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

/* ---------------------------------- */
/*       6. SERVICES SECTION          */
/* ---------------------------------- */
.services-section {
    background: var(--dark-bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--dark-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(54, 113, 233, 0.1), transparent 70%);
    transition: opacity 0.5s ease;
    opacity: 0;
    transform-origin: center;
    animation: rotate-glow 5s linear infinite;
}

.service-card:hover::before {
    opacity: 1;
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--text-light);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-medium);
}

.card-link {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.5rem;
    display: inline-block;
}

.card-link i {
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* ---------------------------------- */
/*       7. ABOUT US SECTION          */
/* ---------------------------------- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-image img {
    border-radius: var(--border-radius);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(54, 113, 233, 0.3), rgba(156, 54, 233, 0.3));
    mix-blend-mode: multiply;
}

.stats-counter {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
}

.stat-item span {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.stat-item p {
    font-weight: 500;
    margin-top: 0.5rem;
    color: var(--text-medium);
}

/* ---------------------------------- */
/*      8. ROI CALCULATOR             */
/* ---------------------------------- */
.roi-calculator-section {
    background: var(--dark-bg-secondary);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background: var(--dark-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-form .form-group {
    position: relative;
}

.calculator-form input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--dark-bg-secondary);
    border-radius: 5px;
    outline: none;
    padding: 0;
}

.calculator-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid var(--dark-bg);
    transition: background-color 0.2s;
}

.calculator-form input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid var(--dark-bg);
}

.range-value {
    display: inline-block;
    margin-left: 1rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--dark-bg-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
}

.calculator-results {
    background: var(--dark-bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.calculator-results h4 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.result-item p {
    margin-bottom: 0;
    color: var(--text-medium);
}

.result-item span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
}

.result-item.total-roi span {
    color: #4CAF50;
    /* Green for positive ROI */
    font-size: 1.5rem;
}

.calculator-results small {
    margin-top: 1rem;
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.4;
}

/* ---------------------------------- */
/*       9. PROCESS SECTION           */
/* ---------------------------------- */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    z-index: -1;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    line-height: 80px;
    border-radius: 50%;
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.step-content {
    padding-top: 1rem;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}


/* ---------------------------------- */
/*       10. TESTIMONIALS             */
/* ---------------------------------- */
.testimonials-section {
    background: var(--dark-bg-secondary);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 2rem;
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-content .fa-quote-left {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 100px);
    left: -50px;
    display: flex;
    justify-content: space-between;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.slider-controls button:hover {
    background: var(--primary-color);
}


/* ---------------------------------- */
/*          11. CTA SECTION           */
/* ---------------------------------- */
.cta-section {
    padding: 60px 0;
    background: var(--gradient);
}

.cta-content {
    text-align: center;
    color: var(--text-light);
}

.cta-content h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-content .btn-primary {
    background: var(--text-light);
    color: var(--primary-color);
}

.cta-content .btn-primary:hover {
    background: var(--dark-bg);
    color: var(--text-light);
    box-shadow: none;
}


/* ---------------------------------- */
/*          12. FOOTER                */
/* ---------------------------------- */
.footer {
    background: var(--dark-bg-secondary);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

.footer-shape.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    bottom: -100px;
    left: -100px;
}

.footer-shape.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary-color);
    top: -80px;
    right: -80px;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 60px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer-about-text {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col-title {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-medium);
}

.footer-links ul li a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info li i {
    margin-top: 5px;
    color: var(--primary-color);
}

.contact-info li a {
    color: var(--text-medium);
}

.contact-info li a:hover {
    color: var(--text-light);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}


/* ---------------------------------- */
/*      13. SUBPAGE STYLES            */
/* ---------------------------------- */
body.subpage main {
    padding-top: var(--header-height);
}

.page-header {
    padding: 60px 0;
    background: var(--dark-bg-secondary);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
}

.breadcrumbs {
    margin: 1rem 0;
    color: var(--text-medium);
}

.breadcrumbs a {
    color: var(--text-medium);
}

.breadcrumbs a:hover {
    color: var(--text-light);
}

.breadcrumbs .fa-chevron-right {
    font-size: 0.8rem;
    margin: 0 0.5rem;
}

.page-header-subtitle {
    max-width: 600px;
    margin: 1rem auto 0;
}

.page-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-wrapper ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

.content-wrapper a {
    text-decoration: underline;
}

/* Contact Page Specific */
.contact-section {
    padding-bottom: 80px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--dark-bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-info-panel {
    padding: 3rem;
    background: var(--gradient);
}

.contact-info-panel h2,
.contact-info-panel p {
    color: var(--text-light);
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.method-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    color: var(--text-light);
}

.method-details h3,
.method-details p,
.method-details a {
    color: var(--text-light);
}

.method-details h3 {
    margin-bottom: 0.3rem;
}

.method-details p,
.method-details a {
    margin-bottom: 0;
}

.contact-form-wrapper {
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* ---------------------------------- */
/*     14. POPUP & LIVE CHAT          */
/* ---------------------------------- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1002;
    background: var(--dark-bg-secondary);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    width: 90%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.active,
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup.active {
    transform: translate(-50%, -50%) scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-medium);
    cursor: pointer;
    background: none;
    border: none;
}

.popup .fa-check-circle {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
}

.popup h3 {
    margin-bottom: 1rem;
}

.popup .btn {
    margin-top: 1.5rem;
}

.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.live-chat-widget.open .chat-window {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--gradient);
    padding: 1rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    color: white;
    margin: 0;
    font-size: 1rem;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-body {
    height: 300px;
    padding: 1rem;
    overflow-y: auto;
}

.chat-message.agent p {
    background: var(--dark-bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 15px 15px 15px 0;
    display: inline-block;
    max-width: 80%;
    margin-bottom: 0;
}

.chat-footer {
    display: flex;
    padding: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 0.5rem;
    color: white;
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ---------------------------------- */
/*       15. ANIMATIONS               */
/* ---------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step.animate-on-scroll {
    transform: translateX(-50px);
}

.process-step.animate-on-scroll.is-visible {
    transform: translateX(0);
}

.process-step:nth-child(2) {
    transition-delay: 0.1s;
}

.process-step:nth-child(3) {
    transition-delay: 0.2s;
}

.process-step:nth-child(4) {
    transition-delay: 0.3s;
}

.service-card:nth-child(1) {
    transition-delay: 0s;
}

.service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:nth-child(3) {
    transition-delay: 0.2s;
}

.service-card:nth-child(4) {
    transition-delay: 0s;
}

.service-card:nth-child(5) {
    transition-delay: 0.1s;
}

.service-card:nth-child(6) {
    transition-delay: 0.2s;
}

.hero-content h1,
.hero-content p,
.hero-actions {
    transition-delay: 0.2s;
}

.hero-content p {
    transition-delay: 0.4s;
}

.hero-actions {
    transition-delay: 0.6s;
}

.hero-visual {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.3s;
}

.hero-visual.is-visible {
    opacity: 1;
    transform: scale(1);
}


/* ---------------------------------- */
/*        16. RESPONSIVENESS          */
/* ---------------------------------- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background: var(--dark-bg);
        z-index: 1000;
        transition: right 0.4s ease-in-out;
        padding-top: 100px;
    }

    .mobile-nav.open {
        right: 0;
    }

    .mobile-nav nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .mobile-nav nav ul li {
        width: 100%;
        text-align: center;
    }

    .mobile-nav nav ul a {
        display: block;
        padding: 1rem;
        font-size: 1.5rem;
        color: var(--text-light);
    }

    .mobile-nav nav ul .btn {
        margin-top: 1rem;
    }

    .mobile-toggle.active .bar-top {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-toggle.active .bar-middle {
        opacity: 0;
    }

    .mobile-toggle.active .bar-bottom {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
        display: none;
        /* Hide complex 3D on mobile for performance */
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .slider-controls {
        display: none;
    }

    /* Hide arrows on smaller screens; rely on swipe */
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero {
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        text-align: center;
    }

    .footer-col {
        margin-bottom: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .process-timeline::after {
        left: 20px;
    }

    .process-step {
        gap: 1rem;
    }

    .step-number {
        width: 44px;
        height: 44px;
        line-height: 40px;
        font-size: 1rem;
    }
}