/* styles.css */

/* --- TABLE OF CONTENTS ---
1.  Root Variables & Global Styles
2.  Utility Classes
3.  Preloader
4.  Header & Navigation
5.  Hero Section
6.  Clients Section
7.  Services Section (incl. 3D Cube)
8.  About Section
9.  Process Section (Timeline)
10. Industry Section (Tabs)
11. Testimonials Section (Slider)
12. Calculator Section
13. CTA Section
14. Footer
15. Page Specific Styles (Contact, Legal)
16. Interactive Components (Popup, Back to Top, Chat)
17. Keyframe Animations
18. Media Queries (Responsiveness)
-----------------------------*/

/* 1. ROOT VARIABLES & GLOBAL STYLES
-------------------------------------------------- */
:root {
    /* Color Palette - Growth & Innovation */
    --primary-color: #4F46E5;
    /* An innovative indigo/purple for creativity and strategy */
    --secondary-color: #10B981;
    /* A vibrant emerald green for growth, success, and ROI */
    --dark-color-1: #18181B;
    /* A very dark, neutral gray for a clean, focused background */
    --dark-color-2: #27272A;
    /* A lighter neutral gray for card backgrounds */
    --dark-color-3: #3F3F46;
    /* A medium zinc-gray for subtle separation */
    --light-color: #E4E4E7;
    /* A gentle off-white for body text */
    --gray-color: #A1A1AA;
    /* A balanced gray for secondary information */
    --white-color: #ffffff;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    /* Spacing & Sizing */
    --header-height: 80px;
    --section-padding: 100px 0;
    --border-radius: 8px;

    /* Effects */
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-dark: 0 10px 30px rgba(80, 227, 194, 0.1);
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--dark-color-1);
    color: var(--light-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--white-color);
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--light-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. UTILITY CLASSES
-------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: block;
    font-family: var(--font-primary);
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray-color);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    background-size: 200% 100%;
}

.btn-primary:hover {
    background-position: 100% 0;
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(80, 227, 194, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color-1);
    transform: translateY(-3px);
}

/* Scroll Reveal Animation Setup */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* 3. PRELOADER
-------------------------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color-1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
}

.loader-logo {
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-logo img {
    width: 100px;
    height: auto;
    filter: brightness(0) invert(1);
}

.loader-bar {
    width: 150px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: loading 1.5s infinite linear;
}


/* 4. HEADER & NAVIGATION
-------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    padding: 10px 0;
    align-items: center;
    transition: all var(--transition-medium);
}

.header.scrolled {
    background-color: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.nav-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    transition: var(--transition-medium);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--light-color);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white-color);
    transition: all 0.3s ease-in-out;
}


/* 5. HERO SECTION
-------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    background: radial-gradient(circle, var(--dark-color-3) 0%, var(--dark-color-1) 70%);
}

.hero-content {
    max-width: 750px;
    text-align: center;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.hero .subtitle {
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: -webkit-linear-gradient(45deg, var(--white-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background-color: var(--primary-color);
    top: 10%;
    left: 5%;
    animation: float 10s infinite ease-in-out;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background-color: var(--secondary-color);
    bottom: 15%;
    right: 10%;
    animation: float 12s infinite ease-in-out reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    top: 20%;
    right: 20%;
    animation: float 8s infinite ease-in-out;
}

/* 6. CLIENTS SECTION
-------------------------------------------------- */
.clients-section {
    padding: 60px 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.clients-title {
    text-align: center;
    font-weight: 500;
    color: var(--gray-color);
    margin-bottom: 30px;
}

.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.clients-logos img {
    height: 35px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition-medium);
}

.clients-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}


/* 7. SERVICES SECTION
-------------------------------------------------- */
.services-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-card {
    background-color: var(--dark-color-2);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: var(--transition-medium);
    border-bottom: 3px solid var(--dark-color-3);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-dark);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--white-color);
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* 3D Cube */
.service-3d-visual {
    text-align: center;
}

.scene {
    width: 200px;
    height: 200px;
    perspective: 800px;
    margin: 40px auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-100px);
    animation: rotate-cube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(15, 52, 96, 0.7);
    border: 2px solid var(--secondary-color);
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.cube-face-front {
    transform: rotateY(0deg) translateZ(100px);
}

.cube-face-right {
    transform: rotateY(90deg) translateZ(100px);
}

.cube-face-back {
    transform: rotateY(180deg) translateZ(100px);
}

.cube-face-left {
    transform: rotateY(-90deg) translateZ(100px);
}

.cube-face-top {
    transform: rotateX(90deg) translateZ(100px);
}

.cube-face-bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

.service-3d-visual h3 {
    margin-top: 20px;
}


/* 8. ABOUT SECTION
-------------------------------------------------- */
.about-section {
    background-color: var(--dark-color-2);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-content img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.about-text-content .subtitle {
    color: var(--secondary-color);
    font-weight: 600;
}

.about-text-content h2 {
    margin-bottom: 20px;
}

.about-features {
    margin: 30px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-features i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}


/* 9. PROCESS SECTION (TIMELINE)
-------------------------------------------------- */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 40px;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 4px solid var(--dark-color-1);
    top: 25px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
    transform: translate(50%, -50%);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
    transform: translate(-50%, -50%);
}

.timeline-content {
    padding: 30px;
    background-color: var(--dark-color-2);
    border-radius: var(--border-radius);
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.timeline-step {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.timeline-content h3 {
    margin-bottom: 10px;
}


/* 10. INDUSTRY SECTION (TABS)
-------------------------------------------------- */
.industry-section {
    background-color: var(--dark-color-2);
}

.industry-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-link {
    padding: 15px 30px;
    background-color: transparent;
    border: 2px solid var(--dark-color-3);
    color: var(--gray-color);
    cursor: pointer;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-medium);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-link:hover {
    border-color: var(--primary-color);
    color: var(--white-color);
}

.tab-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.tab-content {
    display: none;
    padding: 40px;
    background-color: var(--dark-color-1);
    border-radius: var(--border-radius);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}


/* 11. TESTIMONIALS SECTION (SLIDER)
-------------------------------------------------- */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 20px;
}

.testimonial-content {
    background-color: var(--dark-color-2);
    padding: 50px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    border-top: 5px solid var(--secondary-color);
}

.testimonial-content::before {
    content: '\f10d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
}

.testimonial-rating {
    color: #fdd835;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.testimonial-author h4 {
    color: var(--white-color);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--gray-color);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.2rem;
}

.slider-controls button:hover {
    background-color: var(--primary-color);
}


/* 12. CALCULATOR SECTION
-------------------------------------------------- */
.calculator-section {
    background-color: var(--dark-color-2);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: var(--dark-color-1);
    padding: 50px;
    border-radius: var(--border-radius);
}

#roiCalculator .form-group {
    margin-bottom: 20px;
}

#roiCalculator label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

#roiCalculator input {
    width: 100%;
    padding: 15px;
    background-color: var(--dark-color-2);
    border: 1px solid var(--dark-color-3);
    border-radius: var(--border-radius);
    color: var(--white-color);
    font-size: 1rem;
}

#roiCalculator input:focus {
    outline: none;
    border-color: var(--primary-color);
}

#roiCalculator button {
    width: 100%;
    margin-top: 10px;
}

.calculator-result {
    padding: 30px;
    background-color: var(--dark-color-2);
    border-radius: var(--border-radius);
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s;
}

.calculator-result.visible {
    display: block;
}

.calculator-result h3 {
    margin-bottom: 20px;
}

.calculator-result p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--dark-color-3);
    padding-bottom: 15px;
}

.calculator-result p:last-of-type {
    border-bottom: none;
}

.calculator-result span {
    color: var(--secondary-color);
    font-weight: 700;
}

.calculator-result small {
    display: block;
    margin-top: 20px;
    color: var(--gray-color);
    font-style: italic;
}

.potential-gain {
    font-size: 1.3rem !important;
}


/* 13. CTA SECTION
-------------------------------------------------- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    text-align: center;
}

.cta-content h2 {
    font-size: 2.8rem;
    color: var(--dark-color-1);
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--dark-color-1);
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.cta-content .btn-primary {
    background: var(--dark-color-1);
    color: var(--white-color);
    border: 2px solid var(--dark-color-1);
}

.cta-content .btn-primary:hover {
    background: transparent;
    color: var(--dark-color-1);
}


/* 14. FOOTER
-------------------------------------------------- */
.footer {
    padding: 80px 0 30px;
    background-color: var(--dark-color-2);
    border-top: 5px solid var(--primary-color);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-color);
    border-radius: 50%;
    color: var(--gray-color);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color-1);
    transform: translateY(-3px);
}

.footer h3 {
    color: var(--white-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--gray-color);
}

.footer-links ul li a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--gray-color);
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-contact a {
    color: var(--gray-color);
}

.footer-contact a:hover {
    color: var(--white-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--dark-color-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-color);
}

.footer-legal a {
    color: var(--gray-color);
    margin: 0 10px;
}

.footer-legal a:hover {
    color: var(--white-color);
}


/* 15. PAGE SPECIFIC STYLES (CONTACT, LEGAL)
-------------------------------------------------- */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(rgba(26, 26, 46, 0.8), rgba(26, 26, 46, 0.8)), url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info-block {
    background-color: var(--dark-color-2);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 30px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 50px;
    height: 50px;
    background-color: var(--dark-color-3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form {
    background-color: var(--dark-color-2);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--dark-color-1);
    border: 1px solid var(--dark-color-3);
    border-radius: var(--border-radius);
    color: var(--white-color);
    font-size: 1rem;
    font-family: var(--font-secondary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

.contact-form textarea {
    resize: vertical;
}

/* Legal Pages */
.legal-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--dark-color-2);
    padding: 50px;
    border-radius: var(--border-radius);
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dark-color-3);
}

.legal-content p {
    color: var(--gray-color);
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content li {
    color: var(--gray-color);
    margin-bottom: 10px;
}


/* 16. INTERACTIVE COMPONENTS
-------------------------------------------------- */
/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--dark-color-2);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--gray-color);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-medium);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--white-color);
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    z-index: 999;
    animation: bounce 2s infinite ease-in-out;
}


/* 17. KEYFRAME ANIMATIONS
-------------------------------------------------- */
@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }

    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* 18. MEDIA QUERIES (RESPONSIVENESS)
-------------------------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .services-wrapper,
    .about-wrapper,
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .service-3d-visual {
        margin-top: 50px;
    }

    .about-image-content {
        text-align: center;
    }
}

@media (max-width: 768px) {

    h1,
    .hero-title {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: var(--dark-color-2);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        gap: 30px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header-actions .btn {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline::before {
        left: 10px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        transform: translate(-50%, -50%);
    }

    .slider-controls {
        display: none;
    }

    .testimonial-content {
        padding: 40px 25px;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .back-to-top,
    .chat-widget {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
    }

    .chat-widget {
        left: 15px;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    h1,
    .hero-title {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 28px;
    }

    .tab-link {
        width: 100%;
        justify-content: center;
    }

    .legal-content .content-wrapper,
    .calculator-wrapper {
        padding: 30px;
    }
}