/*
================================================
TABLE OF CONTENTS
================================================
1.  :root Variables & Global Styles
2.  Utility Classes
3.  Header & Navigation
4.  Mobile Navigation
5.  Hero Section
6.  Clients Section
7.  Services Section
8.  About Section
9.  Interactive Calculator Section
10. Testimonials Section
11. Pricing Section
12. CTA Section
13. Footer
14. Subpage & Legal Page Styles
15. Contact Page Styles
16. Interactive Elements (Popup, Chat Widget)
17. Animations & Keyframes
18. Responsive Media Queries
================================================
*/

/* 1. :root Variables & Global Styles
------------------------------------------------*/
:root {
    --primary-color: #0b1c3d;
    /* Deep Navy Blue */
    --secondary-color: #00a99d;
    /* Vibrant Teal */
    --accent-color: #f7b733;
    /* Warm Yellow/Gold */
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --text-color: #343a40;
    --text-light: #6c757d;
    --white-color: #ffffff;
    --border-color: #dee2e6;
    --header-height: 80px;
    --font-primary: 'Poppins', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
}

/* 2. Utility Classes
------------------------------------------------*/
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn i {
    margin-left: 8px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(0, 169, 157, 0.3);
}

.btn-primary:hover {
    background-color: #008a7e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 169, 157, 0.4);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 15px;
    background-color: rgba(0, 169, 157, 0.1);
    color: var(--secondary-color);
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--secondary-color);
}

/* 3. Header & Navigation
------------------------------------------------*/
.header {
    width: 100%;
    padding: 15px 0;
    background-color: var(--white-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    box-shadow: var(--box-shadow);
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 70px;
    transition: var(--transition-speed);
}


.nav-list {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cta {
    font-size: 0.9rem;
    padding: 10px 22px;
}

/* 4. Mobile Navigation
------------------------------------------------*/
.mobile-toggle {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.4s ease;
    position: absolute;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-nav-open .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-nav-open .bar-middle {
    opacity: 0;
}

.mobile-nav-open .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}

.mobile-nav-open .mobile-nav {
    transform: translateX(0);
    display: flex;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-nav ul li {
    margin: 25px 0;
}

.mobile-nav ul li a {
    color: var(--white-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.mobile-nav .btn {
    margin-top: 20px;
}

/* 5. Hero Section
------------------------------------------------*/
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    font-size: 3.2rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 550px;
    margin-left: auto;
    border-radius: 10px;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.hero-shapes .shape-1 {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    top: 10%;
    left: 5%;
    animation: move-bubble 15s linear infinite alternate;
}

.hero-shapes .shape-2 {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    bottom: 20%;
    right: 5%;
    animation: move-bubble 20s linear infinite alternate-reverse;
}

.hero-shapes .shape-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    bottom: -150px;
    left: 40%;
    opacity: 0.05;
}

/* 6. Clients Section
------------------------------------------------*/
.clients-section {
    padding: 50px 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.clients-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clients-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.client-logo {
    height: 35px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-speed);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* 7. Services Section
------------------------------------------------*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition-speed);
}

.service-card:hover .service-icon {
    transform: rotate(360deg);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.card-link {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1rem;
    display: inline-block;
}

.card-link i {
    transition: var(--transition-speed);
}

.service-card:hover .card-link i {
    transform: translateX(5px);
}

/* 8. About Section
------------------------------------------------*/
.about-section {
    background-color: var(--bg-light);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.stat-item p {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* 9. Interactive Calculator Section
------------------------------------------------*/
.calculator-section {
    background-color: var(--white-color);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.calculator-form .form-group {
    margin-bottom: 2rem;
}

.calculator-form label {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.range-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--white-color);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--white-color);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#industry-multiplier {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-primary);
}

.calculator-results {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-results h4 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.result-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.calculator-results p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.calculator-results a {
    color: var(--white-color);
    text-decoration: underline;
}

/* 10. Testimonials Section
------------------------------------------------*/
.testimonials-section {
    background-color: var(--bg-light);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.testimonial-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--box-shadow);
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial-card.active {
    display: block;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--secondary-color);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto 20px;
}

.testimonial-author {
    margin-bottom: 5px;
}

.testimonial-company {
    color: var(--text-light);
    font-weight: 500;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 110%;
    left: -5%;
    transform: translateY(-50%);
}

.slider-btn {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition-speed);
}

.slider-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: scale(1.1);
}

/* 11. Pricing Section
------------------------------------------------*/
.pricing-section {
    background-color: var(--white-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    transition: all var(--transition-speed);
    position: relative;
}

.pricing-card:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

.pricing-card.highlighted {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.highlighted .pricing-header h3,
.pricing-card.highlighted .pricing-header p,
.pricing-card.highlighted .features-list li,
.pricing-card.highlighted .price {
    color: var(--white-color);
}

.pricing-card.highlighted .btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: none;
}

.pricing-card.highlighted .btn-primary:hover {
    background-color: #ffc85a;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header p {
    color: var(--text-light);
    height: 40px;
    /* To align headers */
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--primary-color);
}

.price sup {
    font-size: 1.5rem;
    top: -1.5rem;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.features-list {
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    font-size: 1.2rem;
}

.features-list li .fa-check-circle {
    color: var(--secondary-color);
}

.features-list li .fa-times-circle {
    color: var(--border-color);
}

.pricing-card.highlighted .fa-times-circle {
    color: rgba(255, 255, 255, 0.3);
}

/* 12. CTA Section
------------------------------------------------*/
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-container {
    text-align: center;
}

.cta-content h2 {
    color: var(--white-color);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-action .btn-primary {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.cta-action .btn-primary:hover {
    background-color: transparent;
    color: var(--white-color);
}

.cta-shapes .shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.05;
}

.cta-shapes .shape-4 {
    width: 250px;
    height: 250px;
    background: var(--white-color);
    top: -100px;
    left: -50px;
    animation: move-bubble 25s linear infinite;
}

.cta-shapes .shape-5 {
    width: 150px;
    height: 150px;
    background: var(--white-color);
    bottom: -80px;
    right: -40px;
    animation: move-bubble 18s linear infinite reverse;
}

.cta-container>* {
    position: relative;
    z-index: 1;
}

/* 13. Footer
------------------------------------------------*/
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-shapes .footer-shape {
    position: absolute;
    opacity: 0.04;
    border-radius: 50%;
    background-color: var(--white-color);
}

.footer-shapes .shape-1 {
    width: 300px;
    height: 300px;
    top: 50px;
    left: -100px;
}

.footer-shapes .shape-2 {
    width: 200px;
    height: 200px;
    bottom: 0;
    right: -80px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 80px;
    margin-bottom: 1.5rem;
}

.footer-about-text {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition-speed);
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-col-title {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1rem;
}

.contact-info li i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.contact-info li a {
    color: rgba(255, 255, 255, 0.7);
}

.contact-info li a:hover {
    color: var(--white-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* 14. Subpage & Legal Page Styles
------------------------------------------------*/
body.subpage {
    background-color: var(--bg-light);
}

.page-header {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: var(--white-color);
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 1rem auto 1.5rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--white-color);
}

.breadcrumbs span {
    color: var(--white-color);
    font-weight: 500;
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 10px;
}

.legal-content,
.page-content {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.last-updated {
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-light);
}

/* 15. Contact Page Styles
------------------------------------------------*/
.contact-section-page {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--white-color);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info-col h2 {
    margin-bottom: 1rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.method-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.method-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.method-details p {
    margin: 0;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 169, 157, 0.2);
}

.contact-form button {
    width: 100%;
}

/* 16. Interactive Elements (Popup, Chat Widget)
------------------------------------------------*/
/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility 0s var(--transition-speed);
}

.popup:target {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.popup-content {
    background: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    position: relative;
    transform: scale(0.8);
    transition: transform var(--transition-speed);
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-light);
    line-height: 1;
}

.popup-content i.fa-check-circle {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 0.5rem;
}

/* Live Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 998;
}

.chat-button {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 169, 157, 0.4);
    transition: var(--transition-speed);
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 450px;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all var(--transition-speed);
}

.chat-widget.open .chat-window {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    color: var(--white-color);
    font-size: 1.1rem;
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
    background-color: var(--bg-light);
}

.message {
    margin-bottom: 10px;
    max-width: 80%;
}

.message p {
    padding: 10px 15px;
    border-radius: 15px;
    margin: 0;
}

.message.received {
    align-self: flex-start;
}

.message.received p {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 3px;
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 10px;
}

/* 17. Animations & Keyframes
------------------------------------------------*/
@keyframes move-bubble {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(-50px) translateX(30px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
    transform: scale(0.95);
}

.fade-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    transform: translateX(50px);
}

.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* 18. Responsive Media Queries
------------------------------------------------*/

/* Tablets and larger */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav-list {
        gap: 25px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-content {
        text-align: center;
    }

    .stats-grid {
        max-width: 500px;
        margin: 2rem auto;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .slider-controls {
        width: 100%;
        left: 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .contact-info-col {
        text-align: center;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .pricing-card.highlighted {
        transform: scale(1);
    }

    .pricing-card:hover {
        transform: scale(1.02);
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 1rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .clients-logos {
        justify-content: center;
    }

    .client-logo {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .chat-window {
        width: 90vw;
    }

    .popup-content {
        width: 90%;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}