/*
--- TABLE OF CONTENTS ---
1.  VARIABLES & BASE STYLES
2.  UTILITY & COMPONENT CLASSES
3.  PRELOADER
4.  HEADER & NAVIGATION
5.  PAGE-SPECIFIC STYLES
    - HERO SECTION
    - SERVICES SECTION
    - ABOUT SECTION
    - PROCESS SECTION
    - ROI CALCULATOR SECTION
    - TESTIMONIALS SECTION
    - PRICING SECTION
    - CTA SECTION
    - CONTACT & LEGAL PAGES
6.  INTERACTIVE ELEMENTS
    - LIVE CHAT
    - POPUP
7.  FOOTER
8.  ANIMATIONS & KEYFRAMES
9.  RESPONSIVENESS (MEDIA QUERIES)
*/

/* 1. VARIABLES & BASE STYLES */
:root {
    --primary-bg: #0a0b1e;
    --secondary-bg: #161a33;
    --card-bg: #1f2345;
    --border-color: rgba(138, 91, 255, 0.2);
    --primary-text: #e0e0e0;
    --secondary-text: #a0a0c0;
    --heading-color: #ffffff;
    --accent-purple: #8a5bff;
    --accent-blue: #4f46e5;
    --gradient-primary: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    --gradient-light: linear-gradient(90deg, #a88bff, #736ced);
    --success-color: #28a745;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-bg);
    color: var(--primary-text);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-family: var(--font-secondary);
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--heading-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. UTILITY & COMPONENT CLASSES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--heading-color);
    box-shadow: 0 5px 15px rgba(138, 91, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 91, 255, 0.4);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-purple);
    color: var(--accent-purple);
}

.btn-secondary:hover {
    background-color: var(--accent-purple);
    color: var(--heading-color);
}

.btn-primary-light {
    background: var(--gradient-light);
    color: var(--heading-color);
    box-shadow: 0 5px 15px rgba(168, 139, 255, 0.3);
}

.btn-primary-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 139, 255, 0.4);
    color: white;
}

.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
}

.highlight-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-logo img {
    width: 80px;
    height: 80px;
}

.loader-bar {
    width: 150px;
    height: 4px;
    background-color: var(--secondary-bg);
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    animation: loading 2s linear forwards;
}

/* 4. HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(10, 11, 30, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--heading-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--primary-text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active,
.nav-link:hover {
    color: var(--heading-color);
}

.nav-link .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown {
    position: relative;
}

.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    left: -20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--primary-text);
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--secondary-bg);
    color: var(--heading-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--heading-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    top: -10px;
}

.hamburger::after {
    bottom: -10px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* 5. PAGE-SPECIFIC STYLES */

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--heading-color);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    opacity: 0.1;
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 11, 30, 0.5) 0%, var(--primary-bg) 70%);
    z-index: -1;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--primary-text);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    border-left: 3px solid var(--accent-purple);
    padding-left: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    font-family: var(--font-primary);
    margin: 0;
    color: var(--secondary-text);
    font-weight: 500;
}

/* --- SERVICES SECTION --- */
.services-section {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    height: 300px;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
}

.service-card-front {
    background-color: var(--card-bg);
}

.service-card-back {
    background: var(--gradient-primary);
    color: white;
    transform: rotateY(180deg);
}

.service-card-back h3,
.service-card-back p {
    color: white;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card-back .link-arrow {
    color: white;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

.service-card-back .link-arrow i {
    transition: transform 0.3s ease;
}

.service-card-back .link-arrow:hover i {
    transform: translateX(5px);
}

/* --- ABOUT SECTION --- */
.about-section {
    padding: 100px 0;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.image-3d-container {
    perspective: 1500px;
}

.about-image img {
    border-radius: 15px;
    transform: rotateY(-20deg) rotateX(10deg);
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: rotateY(0) rotateX(0);
}

.about-list {
    margin: 2rem 0;
}

.about-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.about-list i {
    color: var(--accent-purple);
    margin-right: 1rem;
    font-size: 1.2rem;
}


/* --- PROCESS SECTION --- */
.process-section {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--card-bg);
    transform: translateX(-50%);
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: height 1s ease-out;
}

.process-timeline.in-view .timeline-line::after {
    height: 100%;
}

.process-step {
    position: relative;
    width: 50%;
    padding: 10px 40px;
    margin-bottom: 4rem;
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
    text-align: left;
}

.process-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 3px solid var(--accent-purple);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--accent-purple);
    z-index: 1;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.process-step:hover .process-icon {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.process-step:nth-child(odd) .process-icon {
    right: -30px;
}

.process-step:nth-child(even) .process-icon {
    left: -30px;
}

.process-content {
    padding: 20px 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    position: relative;
    border: 1px solid var(--border-color);
}


/* --- ROI CALCULATOR SECTION --- */
.roi-calculator-section {
    padding: 100px 0;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: var(--secondary-bg);
    border-radius: 15px;
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.calculator-form .form-group {
    margin-bottom: 1.5rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calculator-form input[type="number"] {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--heading-color);
    font-size: 1rem;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#conversion-rate {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: var(--primary-bg);
    border-radius: 5px;
    outline: none;
}

#conversion-rate::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-purple);
    cursor: pointer;
    border-radius: 50%;
}

#conversion-rate-value {
    font-weight: 600;
    color: var(--accent-purple);
}

.calculator-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-bg);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.result-placeholder i {
    font-size: 4rem;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

.result-display p {
    font-size: 1.2rem;
    margin: 0;
}

.result-display h3 {
    font-size: 3.5rem;
    margin: 0.5rem 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-display small {
    color: var(--secondary-text);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-purple);
    margin-bottom: 1.5rem;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-text);
}

.testimonial-card h4 {
    margin-bottom: 0.25rem;
}

.testimonial-card span {
    color: var(--secondary-text);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-nav button {
    pointer-events: all;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 -20px;
}

.slider-nav button:hover {
    background-color: var(--accent-purple);
}

/* --- PRICING SECTION --- */
.pricing-section {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--accent-purple);
    position: relative;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.price-description {
    min-height: 40px;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.price sup {
    font-size: 1.5rem;
    font-weight: 500;
    top: -1.2rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--secondary-text);
}

.pricing-card ul {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-card li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.pricing-card li i {
    margin-right: 1rem;
    width: 20px;
}

.pricing-card li .fa-check {
    color: var(--success-color);
}

.pricing-card li .fa-times {
    color: var(--secondary-text);
}

.pricing-card .btn {
    width: 100%;
}


/* --- CTA SECTION --- */
.cta-section {
    padding: 80px 0;
}

.cta-wrapper {
    background: var(--gradient-primary);
    border-radius: 15px;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    color: white;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 500px;
}

/* --- CONTACT & LEGAL PAGES --- */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: var(--secondary-bg);
    position: relative;
    overflow: hidden;
}

#particles-js-alt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.breadcrumbs a {
    color: var(--secondary-text);
}

.breadcrumbs a:hover {
    color: var(--heading-color);
}

.breadcrumbs span {
    color: var(--heading-color);
}

.contact-section.page,
.main-content {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info .contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-purple);
    width: 50px;
    height: 50px;
    background-color: var(--secondary-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
}

.contact-details p,
.contact-details a {
    margin: 0;
    color: var(--secondary-text);
}

.contact-details a:hover {
    color: var(--heading-color);
}

.contact-form-container {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.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: 12px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--heading-color);
    font-size: 1rem;
    font-family: var(--font-secondary);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238a5bff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.page-content {
    background-color: var(--secondary-bg);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.page-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.page-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content-actions {
    margin-top: 2rem;
    text-align: center;
}


/* 6. INTERACTIVE ELEMENTS */

/* --- LIVE CHAT --- */
#chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(138, 91, 255, 0.4);
    z-index: 998;
    transition: transform 0.3s ease;
}

#chat-bubble:hover {
    transform: scale(1.1);
}

#chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 997;
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#chat-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--secondary-bg);
}

.chat-header img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.chat-header h4 {
    margin: 0;
    font-size: 1rem;
}

.chat-header p {
    margin: 0;
    font-size: 0.8rem;
}

#close-chat {
    background: none;
    border: none;
    color: var(--secondary-text);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
}

.chat-body {
    padding: 1.5rem 1rem;
    height: 150px;
}

.chat-footer {
    display: flex;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 1rem;
    color: white;
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--accent-purple);
    padding: 0 1rem;
    cursor: pointer;
    font-size: 1.2rem;
}

/* --- POPUP --- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--secondary-text);
    cursor: pointer;
}

/* 7. FOOTER */
.footer {
    background-color: var(--secondary-bg);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-about p {
    margin-bottom: 1.5rem;
}

.footer-socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    color: var(--primary-text);
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.footer-socials a:hover {
    background: var(--gradient-primary);
    color: white;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--secondary-text);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

.footer-contact i {
    margin-right: 1rem;
    margin-top: 5px;
    color: var(--accent-purple);
}

.footer-contact a {
    color: var(--secondary-text);
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* 8. ANIMATIONS & KEYFRAMES */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes loading {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-left {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-right {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-up,
.animate-left,
.animate-right {
    opacity: 0;
    /* Initial state for all animated elements */
}

/* --- FIX STARTS HERE --- */
/* Corrected selectors: Use ".class.visible" instead of ".visible .class" */
.animate-up.is-visible {
    animation: slide-up 0.8s forwards ease-out;
}

.animate-left.is-visible {
    animation: slide-left 0.8s forwards ease-out;
}

.animate-right.is-visible {
    animation: slide-right 0.8s forwards ease-out;
}

/* --- FIX ENDS HERE --- */


.delay-1 {
    animation-delay: 0.2s !important;
}

.delay-2 {
    animation-delay: 0.4s !important;
}

.delay-3 {
    animation-delay: 0.6s !important;
}

/* 9. RESPONSIVENESS (MEDIA QUERIES) */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--secondary-bg);
        padding: 2rem 0;
        transform: translateY(-120%);
        transition: transform 0.4s ease-in-out;
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        margin-top: 1rem;
        text-align: center;
        width: 100%;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    .about-list {
        text-align: left;
        max-width: 400px;
        margin: 2rem auto;
    }

    .about-image img {
        transform: rotateY(0) rotateX(0);
    }

    .about-image:hover img {
        transform: none;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .process-timeline {
        max-width: 100%;
        padding: 0;
    }

    .timeline-line {
        left: 30px;
    }

    .process-step {
        width: 100%;
        left: 0 !important;
        padding-left: 80px;
        padding-right: 15px;
        text-align: left !important;
    }

    .process-step:nth-child(odd) .process-icon {
        left: 0;
    }

    .process-step:nth-child(even) .process-icon {
        left: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-top {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}