/*
  Theme: Lumina Fusion
  Description: A dark, futuristic theme with neon accents, holographic effects, and fluid animations.
*/

/* 1. ROOT VARIABLES & RESET
--------------------------------------------- */
:root {
    --font-primary: 'Poppins', sans-serif;

    --color-primary: #8A2BE2;
    /* Vibrant Purple */
    --color-secondary: #00BFFF;
    /* Deep Sky Blue */
    --color-accent: #FF00FF;
    /* Magenta */

    --color-bg: #0C0B10;
    --color-bg-light: #1A1820;
    --color-bg-lighter: #282530;

    --color-text: #E0E0E0;
    --color-text-dark: #A0A0A0;
    --color-text-headings: #FFFFFF;

    --color-border: rgba(255, 255, 255, 0.1);
    --color-success: #00FF7F;
    --color-white: #FFFFFF;

    --header-height: 80px;
    --border-radius: 12px;
    --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;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-headings);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 100px 0;
}

/* 2. CUSTOM CURSOR & PRELOADER
--------------------------------------------- */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-secondary);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, transform 0.1s ease-out;
}

.cursor-interact {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--color-accent);
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease;
}

.preloader.fade-out {
    opacity: 0;
}

.preloader-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    width: 80px;
    animation: pulse 2s infinite ease-in-out;
}

.preloader-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 50%;
    border-top-color: var(--color-primary);
    border-right-color: var(--color-secondary);
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.9);
        opacity: 0.8;
    }
}


/* 3. HEADER & NAVIGATION
--------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color var(--transition-smooth), box-shadow var(--transition-smooth);
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(12, 11, 16, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    transition: transform var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.05) rotate(-3deg);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle,
.nav-close {
    display: none;
    font-size: 1.5rem;
    color: var(--color-white);
    background: transparent;
    border: none;
    cursor: pointer;
}

/* 4. BUTTONS
--------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--color-primary), 0 0 30px var(--color-accent);
    transform: translateY(-3px);
}

.btn-shine span {
    position: relative;
    z-index: 2;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.4) 50%, transparent 80%);
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.btn-shine:hover::before {
    left: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}


/* 5. HERO SECTION
--------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(138, 43, 226, 0) 70%);
    transform: translate(-50%, -50%);
    animation: glow-breathe 8s infinite ease-in-out;
}

@keyframes glow-breathe {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--color-white), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--color-text-dark);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    perspective: 1000px;
}

.hero-visual-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform-style: preserve-3d;
    border: 2px solid;
    animation: rotate-3d 20s infinite linear;
}

.hero-visual-ring:nth-child(1) {
    width: 120vw;
    height: 120vw;
    border-color: rgba(138, 43, 226, 0.1);
    animation-duration: 25s;
    transform: translate(-50%, -50%) rotateX(75deg);
}

.hero-visual-ring:nth-child(2) {
    width: 150vw;
    height: 150vw;
    border-color: rgba(0, 191, 255, 0.1);
    animation-duration: 30s;
    transform: translate(-50%, -50%) rotateX(75deg);
}

.hero-visual-ring:nth-child(3) {
    width: 180vw;
    height: 180vw;
    border-color: rgba(255, 0, 255, 0.1);
    animation-duration: 35s;
    transform: translate(-50%, -50%) rotateX(75deg);
}

@keyframes rotate-3d {
    from {
        transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg);
    }
}

/* 6. GENERAL SECTION STYLING
--------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-dark);
}

/* 7. SERVICES SECTION
--------------------------------------------- */
.services-section {
    background-color: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-bg-light);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    transform-style: preserve-3d;
}

.service-card::before,
.service-card::after {
    content: '';
    position: absolute;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-secondary), transparent);
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.5s ease;
}

.service-card::before {
    top: 0;
}

.service-card::after {
    bottom: 0;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before,
.service-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.service-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, rgba(138, 43, 226, 0) 50%);
    transition: opacity var(--transition-smooth);
    opacity: 0;
    z-index: 0;
}

.service-card:hover .service-card-glow {
    opacity: 1;
    animation: rotate-glow 5s linear infinite;
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- FIX START --- */
/* This rule ensures content inside the card is stacked correctly above the glow effect */
.service-card>*:not(.service-card-glow) {
    position: relative;
    z-index: 2;
}

/* --- FIX END --- */

.service-card-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    width: 70px;
    height: 70px;
    background-color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Corrected typo: align-items */
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.service-card-title {
    margin-bottom: 1rem;
}

.service-card-description {
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.service-card-link {
    font-weight: 600;
    color: var(--color-secondary);
}

.service-card-link i {
    transition: transform var(--transition-fast);
    margin-left: 5px;
}

.service-card:hover .service-card-link i {
    transform: translateX(5px);
}

/* 8. PROCESS SECTION
--------------------------------------------- */
.process-section {
    background: var(--color-bg);
    position: relative;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-bg-light), var(--color-primary), var(--color-bg-light));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 4px;
}

.process-step {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
    text-align: left;
}

.process-step-number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    background-color: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    text-align: center;
    z-index: 2;
    transition: all var(--transition-smooth);
}

.process-step:hover .process-step-number {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.process-step:nth-child(odd) .process-step-number {
    right: -30px;
}

.process-step:nth-child(even) .process-step-number {
    left: -30px;
}

.process-step-content {
    padding: 20px 30px;
    background-color: var(--color-bg-light);
    position: relative;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.process-step-title {
    margin-bottom: 0.5rem;
}

.process-step-content p {
    margin-bottom: 0;
    color: var(--color-text-dark);
}

/* 9. INTERACTIVE CALCULATOR SECTION
--------------------------------------------- */
.calculator-section {
    background-color: var(--color-bg-light);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--color-bg);
    padding: 4rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.calculator-form .form-group {
    margin-bottom: 2rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.calculator-form label span {
    color: var(--color-secondary);
    font-weight: 700;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--color-bg-lighter);
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--color-bg);
    box-shadow: 0 0 10px var(--color-primary);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--color-bg);
    box-shadow: 0 0 10px var(--color-primary);
}

.roi-result {
    margin-top: 2rem;
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-bg-light), var(--color-bg));
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.roi-result p {
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.roi-result h3 {
    font-size: 2.5rem;
    color: var(--color-success);
    font-weight: 700;
}

/* 10. TESTIMONIALS SECTION
--------------------------------------------- */
.testimonials-section {
    background: var(--color-bg);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.testimonial-text::before {
    content: '“';
    font-size: 4rem;
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.1;
}

.author-name {
    color: var(--color-white);
}

.author-title {
    color: var(--color-text-dark);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-nav button {
    width: 50px;
    height: 50px;
    background: var(--color-bg-light);
    color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.testimonial-nav button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* 11. CTA SECTION
--------------------------------------------- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
}

.cta-content {
    text-align: center;
    color: var(--color-white);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 4rem;
    border-radius: var(--border-radius);
}

.cta-title {
    color: var(--color-white);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-content .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
}

.cta-content .btn-primary:hover {
    background: var(--color-bg);
    color: var(--color-white);
    box-shadow: 0 0 20px var(--color-white);
}

/* 12. FOOTER
--------------------------------------------- */
.footer {
    background-color: var(--color-bg-light);
    padding-top: 80px;
    border-top: 1px solid var(--color-border);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-column .logo img {
    height: 45px;
    margin-bottom: 1rem;
}

.footer-about-text {
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-dark);
}

.footer-socials a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-title {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 1rem;
}

.footer-links a,
.footer-contact a {
    color: var(--color-text-dark);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--color-primary);
    margin-right: 1rem;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-dark);
}

.footer-bottom ul {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom a {
    color: var(--color-text-dark);
}

.footer-bottom a:hover {
    color: var(--color-white);
}

/* 13. MODAL (SAMPLE REPORT)
--------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--color-text-dark);
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-header p {
    color: var(--color-text-dark);
    margin-bottom: 0;
}

.report-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-item {
    background-color: var(--color-bg);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.metric-item h4 {
    color: var(--color-text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.metric-item p {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.metric-item .positive {
    color: var(--color-success);
}

.report-summary {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin-top: 1.5rem;
    text-align: center;
}

/* 14. LIVE CHAT WIDGET
--------------------------------------------- */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--color-white);
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
    transition: transform var(--transition-fast);
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all 0.3s ease;
}

.chat-window.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.chat-header {
    background-color: var(--color-bg-lighter);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
}

.chat-header button {
    background: none;
    border: none;
    color: var(--color-text-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
}

.chat-message.agent p {
    background-color: var(--color-bg-lighter);
    padding: 0.8rem 1rem;
    border-radius: 15px 15px 15px 0;
    display: inline-block;
    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: 1rem;
    color: var(--color-white);
    outline: none;
}

.chat-footer button {
    background: transparent;
    border: none;
    color: var(--color-primary);
    padding: 0 1.5rem;
    font-size: 1.2rem;
    cursor: pointer;
}

/* 15. CONTACT & LEGAL PAGES
--------------------------------------------- */
.page-header-section {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(rgba(12, 11, 16, 0.8), rgba(12, 11, 16, 0.8)), url('https://i.imgur.com/gKj3eA1.jpg') no-repeat center center/cover;
}

.page-header-section h1 {
    font-size: 3.5rem;
}

.page-header-section p {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    max-width: 600px;
    margin: 1rem auto 0;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info-block h2,
.contact-form h2 {
    margin-bottom: 1rem;
}

.contact-details-list {
    margin-top: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-detail-item .icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-right: 1.5rem;
    margin-top: 5px;
}

.contact-detail-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.contact-detail-item p,
.contact-detail-item a {
    color: var(--color-text-dark);
    margin: 0;
}

.contact-form {
    background-color: var(--color-bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.form-row {
    display: flex;
    gap: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-text-dark);
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 450px;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-dark);
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 0.5rem;
}

.popup-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
}

.popup-close-btn {
    margin-top: 1rem;
}

.legal-page .page-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.legal-page h2 {
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* 16. ANIMATIONS
--------------------------------------------- */
[data-animation] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animation="fade-in-up"] {
    transform: translateY(50px);
}

[data-animation="slide-in-left"] {
    transform: translateX(-50px);
}

[data-animation="slide-in-right"] {
    transform: translateX(50px);
}

[data-animation="zoom-in"] {
    transform: scale(0.9);
}

.in-view {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.animate-on-load {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-load.fade-in-up {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 17. RESPONSIVENESS
--------------------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    html {
        font-size: 15px;
    }

    .section-padding {
        padding: 80px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: var(--color-bg);
        z-index: 1001;
        transition: right 0.4s ease;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
    }

    .header-actions .btn {
        display: none;
    }

    .process-timeline::after {
        left: 30px;
    }

    .process-step {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }

    .process-step:nth-child(even) {
        left: 0;
    }

    .process-step:nth-child(odd),
    .process-step:nth-child(even) {
        text-align: left;
    }

    .process-step-number {
        left: 0;
    }

    .process-step:nth-child(odd) .process-step-number,
    .process-step:nth-child(even) .process-step-number {
        left: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .calculator-wrapper {
        padding: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .page-header-section {
        padding: 120px 0 60px;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}