/*
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  GLOBAL STYLES & VARIABLES
2.  HELPER CLASSES
3.  HEADER & NAVIGATION
4.  MOBILE NAVIGATION
5.  FOOTER
6.  BUTTONS & FORMS
7.  HERO SECTION
8.  SERVICES SECTION
9.  ABOUT SECTION
10. STATS SECTION
11. INDUSTRY SECTION
12. ROI CALCULATOR SECTION
13. TESTIMONIALS SECTION
14. CTA SECTION
15. SUBPAGE STYLES (LEGAL & CONTACT)
16. INTERACTIVE ELEMENTS (POPUP, CHAT)
17. ANIMATIONS & KEYFRAMES
18. RESPONSIVE DESIGN (MEDIA QUERIES)
================================================
*/

/* 1. GLOBAL STYLES & VARIABLES */
/* ================================================ */
:root {
    --primary-color: #4F46E5;
    --primary-color-dark: #4338CA;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --bg-dark: #111827;
    --bg-light: #1F2937;
    --bg-lighter: #374151;
    --text-light: #F9FAFB;
    --text-gray: #9CA3AF;
    --border-color: #4B5563;
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-light);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-gray);
}


/* 2. HELPER CLASSES */
/* ================================================ */
.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary-color);
}


/* 3. HEADER & NAVIGATION */
/* ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    background-color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link .logo {
    height: 60px;
    width: auto;
    filter:  invert(1);
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    position: absolute;
    left: 0;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-toggle.is-active .bar-top {
    transform: rotate(45deg);
    top: 10px;
}

.mobile-toggle.is-active .bar-middle {
    opacity: 0;
}

.mobile-toggle.is-active .bar-bottom {
    transform: rotate(-45deg);
    bottom: 10px;
}


/* 4. MOBILE NAVIGATION */
/* ================================================ */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-light);
    z-index: 999;
    transition: right 0.4s ease-in-out;
    padding-top: calc(var(--header-height) + 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav.is-active {
    right: 0;
}

.mobile-nav nav ul {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.mobile-nav nav li a {
    font-size: 1.5rem;
    color: var(--text-light);
}


/* 5. FOOTER */
/* ================================================ */
.footer {
    background-color: var(--bg-light);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

.footer-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
}

.footer-bg-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color), transparent 60%);
    bottom: -150px;
    left: -100px;
}

.footer-bg-shapes .shape-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--secondary-color), transparent 60%);
    top: -100px;
    right: -100px;
}


.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo {
    height: 70px;
    filter: invert(1);
    margin-bottom: 1.5rem;
}

.footer-about-text {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-gray);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-gray);
    transition: all var(--transition-speed) ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-info a {
    color: var(--text-gray);
}

.contact-info a:hover {
    color: var(--primary-color);
}


.footer-bottom {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 6. BUTTONS & FORMS */
/* ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: var(--font-family);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

/* 7. HERO SECTION */
/* ================================================ */
.hero {
    padding: calc(var(--header-height) + 6rem) 0 6rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.1rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    perspective: 1500px;
}

.hero-3d-scene {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(10deg);
    animation: float 6s ease-in-out infinite;
}

.hero-image {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text-light);
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: float 8s ease-in-out infinite;
}

.icon-1 {
    top: -30px;
    left: -30px;
    animation-delay: -1s;
    transform: translateZ(50px);
}

.icon-2 {
    top: 50%;
    right: -50px;
    animation-delay: -2s;
    transform: translateZ(80px);
}

.icon-3 {
    bottom: -30px;
    left: 20%;
    animation-delay: -3s;
    transform: translateZ(30px);
}

.icon-4 {
    bottom: 20%;
    right: -20px;
    animation-delay: -4s;
    transform: translateZ(60px);
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color), transparent 60%);
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
    bottom: -250px;
    right: -150px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color), transparent 60%);
    top: 50%;
    right: 20%;
}


/* 8. SERVICES SECTION (FIXED AS PER YOUR IMAGE) */
/* ================================================ */
.services-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.services-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    /* Thoda gap badhaya */
    margin-top: 3rem;
}

.service-item-v2 {
    text-align: center;
    position: relative;
}

.service-icon-v2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    color: var(--text-light);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    /* Icon ko card ke upar rakha */
    margin-bottom: -40px;
    /* Icon ko card par overlap karaya */
    border: 4px solid var(--bg-light);
    /* Background se match karne wala border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.service-card-v2 {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3.5rem 2rem 2rem 2rem;
    /* Icon ke liye upar se padding badhayi */
    height: 100%;
    /* Sab cards ki height same rahegi */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* YEH HOVER EFFECT HAI JISSE DESIGN PROFESSIONAL LAGEGA */
.service-item-v2:hover .service-card-v2 {
    transform: translateY(-10px);
    /* Card upar uthega */
    border-color: var(--primary-color);
    /* Border highlight hoga */
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.2);
}

.service-item-v2:hover .service-icon-v2 {
    transform: scale(1.1);
    /* Icon thoda bada hoga */
}

.service-title-v2 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.service-description-v2 {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    /* Yeh "Learn More" ko hamesha neeche rakhega */
}

.service-link-v2 {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    /* Upar se thoda space */
    align-self: center;
    /* Center mein align karega */
    transition: color 0.3s ease;
}

.service-link-v2 i {
    transition: transform 0.3s ease;
}

.service-link-v2:hover {
    color: var(--secondary-color);
}

.service-link-v2:hover i {
    transform: translateX(5px);
    /* Arrow aage move hoga */
}

/* 9. ABOUT SECTION */
/* ================================================ */
.about-section {
    padding: 6rem 0;
}

.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-features {
    list-style: none;
    margin: 2rem 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-features i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}


/* 10. STATS SECTION */
/* ================================================ */
.stats-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.stats-section .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
}

/* 11. INDUSTRY SECTION */
/* ================================================ */
.industry-section {
    padding: 6rem 0;
}

.industry-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.industry-item {
    background-color: var(--bg-light);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
}

.industry-item:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.industry-item i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

/* 12. ROI CALCULATOR SECTION */
/* ================================================ */
.roi-calculator-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.roi-calculator-section .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.calculator-results h3 {
    margin-bottom: 1.5rem;
}

.result-box {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.result-box p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.result-box span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-style: italic;
}

/* 13. TESTIMONIALS SECTION */
/* ================================================ */
.testimonials-section {
    padding: 6rem 0;
}

.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-card {
    flex: 0 0 100%;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    border-left: 5px solid var(--primary-color);
    perspective: 1000px;
}

.testimonial-content {
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content i {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: -1rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.author-info h4 {
    margin-bottom: 0;
}

.author-info span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-lighter);
    border: none;
    color: var(--text-light);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color var(--transition-speed) ease;
    z-index: 10;
}

.slider-nav:hover {
    background-color: var(--primary-color);
}

.slider-nav.prev {
    left: -20px;
}

.slider-nav.next {
    right: -20px;
}


/* 14. CTA SECTION */
/* ================================================ */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.9)), url('https://i.imgur.com/k9mD1H9.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

.cta-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.cta-text {
    max-width: 500px;
}


/* 15. SUBPAGE STYLES (LEGAL & CONTACT) */
/* ================================================ */
body.subpage {
    padding-top: var(--header-height);
}

.page-header {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

.breadcrumbs a,
.breadcrumbs span {
    color: var(--text-gray);
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 0.5rem;
}

/* Legal Pages */
.legal-content {
    padding: 5rem 0;
}

.legal-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-content p {
    color: var(--text-gray);
}

/* Contact Page */
.contact-section-page {
    padding: 6rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background-color: var(--bg-light);
    padding: 4rem;
    border-radius: var(--border-radius);
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.method-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.method-details h3 {
    margin-bottom: 0.2rem;
}

.method-details p {
    margin: 0;
}

.contact-form-wrapper {
    background-color: var(--bg-dark);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.form-submit-btn {
    width: 100%;
}

/* 16. INTERACTIVE ELEMENTS (POPUP, CHAT) */
/* ================================================ */
/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-gray);
}

.popup-content i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 0.5rem;
}

.popup-content p {
    margin-bottom: 2rem;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 998;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-lighter);
}

.chat-header button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
}

.message p {
    padding: 0.7rem 1rem;
    border-radius: var(--border-radius);
    max-width: 80%;
    margin: 0;
}

.message.received p {
    background-color: var(--bg-lighter);
}

.chat-footer {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: var(--bg-dark);
    padding: 0.7rem;
    border-radius: var(--border-radius);
    color: var(--text-light);
}

.chat-footer button {
    background: var(--primary-color);
    border: none;
    color: var(--text-light);
    padding: 0 1rem;
    margin-left: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
}


/* 17. ANIMATIONS & KEYFRAMES */
/* ================================================ */
@keyframes float {
    0% {
        transform: translateY(0px) rotateY(-20deg) rotateX(10deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-20deg) rotateX(10deg);
    }

    100% {
        transform: translateY(0px) rotateY(-20deg) rotateX(10deg);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

.fade-in-up {
    transform: translateY(50px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.scale-in {
    transform: scale(0.9);
}


/* 18. RESPONSIVE DESIGN */
/* ================================================ */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image-wrapper {
        order: 1;
        margin-bottom: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-text {
        margin: 1.5rem auto 2.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .about-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image-wrapper {
        margin-bottom: 2rem;
    }

    .about-features {
        justify-content: center;
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-section .container {
        grid-template-columns: 1fr 1fr;
    }

    .roi-calculator-section .container {
        grid-template-columns: 1fr;
    }

    .calculator-results {
        margin-top: 2rem;
    }

    .cta-section .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .slider-nav {
        display: none;
    }

    .contact-wrapper {
        padding: 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }
}