/*
* Digital Marketing Agency Stylesheet
*
* Table of Contents:
* 1.  :root Variables & Global Styles
* 2.  Typography
* 3.  Layout & Helpers (Container, Section)
* 4.  Buttons
* 5.  Header & Navigation
* 6.  Mobile Navigation
* 7.  Footer
* 8.  Hero Section
* 9.  Services Section
* 10. About Us Section & Stats Counter
* 11. ROI Calculator Section
* 12. Testimonials Section
* 13. CTA Section
* 14. Subpage Headers (Legal, Contact)
* 15. Legal/Content Pages
* 16. Contact Page & Form
* 17. Popup Modal
* 18. Live Chat Widget
* 19. Animations & Scroll Effects
* 20. Responsive Design (Media Queries)
*/

/* 1. :root Variables & Global Styles */
:root {
    --primary-color: #4A90E2;
    --secondary-color: #F5A623;
    --dark-blue: #0A192F;
    --light-blue: #172A45;
    --slate: #8892B0;
    --light-slate: #A8B2D1;
    --white: #E6F1FF;
    --bg-color: #0A192F;
    --font-sans: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--slate);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style-type: none;
}

/* 2. Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

/* 3. Layout & Helpers (Container, Section) */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
}

/* 4. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    margin-right: 8px;
}

.btn i {
    font-size: 1.1em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-blue);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* 5. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-speed);
}

.header.scrolled {
    height: 70px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    filter: invert(1);
    transition: transform var(--transition-speed);
}

.logo-link:hover .logo {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--light-slate);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 22px;
    position: relative;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.35s ease;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-toggle.active .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-toggle.active .bar-middle {
    opacity: 0;
}

.mobile-toggle.active .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* 6. Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(75vw, 400px);
    height: 100vh;
    background-color: var(--light-blue);
    box-shadow: -10px 0 30px -15px rgba(2, 12, 27, 0.7);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 20px 0;
}

.mobile-nav a {
    font-size: 1.25rem;
    color: var(--light-slate);
    padding: 10px;
}

.mobile-nav .btn {
    margin-top: 30px;
}

/* 7. Footer */
.footer {
    background-color: var(--dark-blue);
    color: var(--slate);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.footer-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    bottom: -150px;
    left: -150px;
}

.footer-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    top: -100px;
    right: -100px;
}


.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--light-blue);
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 45px;
    filter: invert(1);
    margin-bottom: 20px;
}

.footer-about-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--slate);
    border-radius: 50%;
    color: var(--slate);
    font-size: 1.1rem;
    transition: all var(--transition-speed);
}

.social-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-col-title {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    color: var(--slate);
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.footer-links ul a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-info-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 4px;
}

.contact-info-list a {
    color: var(--slate);
}

.contact-info-list a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* 8. Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
}

.hero-section h1 {
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--light-slate);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.1;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 15%;
    animation-duration: 12s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-duration: 8s;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 5%;
    animation-duration: 15s;
}

/* 9. Services Section */
.services-section {
    background-color: var(--dark-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
    min-height: 350px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: var(--light-blue);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid #1D2D44;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.service-card-back {
    transform: rotateY(180deg);
    background-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all var(--transition-speed);
}

.service-card-front h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.service-card-front p {
    color: var(--slate);
    font-size: 0.95rem;
}

.service-card-back h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.service-card-back ul {
    text-align: left;
    margin-bottom: 25px;
}

.service-card-back ul li {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-card-back ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.btn-card {
    padding: 10px 20px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed);
}

.btn-card:hover {
    background-color: var(--secondary-color);
    color: var(--dark-blue);
}

/* 10. About Us Section & Stats Counter */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-container {
    position: relative;
}

.about-image {
    width: 100%;
    padding-top: 110%;
    /* Aspect ratio */
    background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=2070&auto=format&fit=crop') center/cover;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 1;
}

.about-image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: 0;
    transition: all var(--transition-speed);
}

.about-image-container:hover::before {
    top: -15px;
    left: -15px;
}

.about-experience-box {
    position: absolute;
    bottom: 20px;
    right: -30px;
    background-color: var(--secondary-color);
    color: var(--dark-blue);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.experience-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-text {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.about-content p {
    margin-bottom: 2rem;
}

.stats-counter {
    display: flex;
    gap: 40px;
    margin-bottom: 2.5rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--light-slate);
    font-weight: 500;
    margin: 0;
}

/* 11. ROI Calculator Section */
.roi-calculator-section {
    background-color: var(--dark-blue);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    background-color: var(--light-blue);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid #1D2D44;
}

.calculator-form .form-group {
    margin-bottom: 20px;
}

.calculator-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--light-slate);
}

.calculator-form input {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-blue);
    border: 1px solid #1D2D44;
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 1rem;
}

.calculator-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calculator-results h3 {
    margin-bottom: 25px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #1D2D44;
}

.result-item p {
    margin: 0;
    font-weight: 500;
}

.result-item span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.result-item.highlight span {
    color: var(--secondary-color);
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    margin-top: 20px;
    color: var(--slate);
}

/* 12. Testimonials Section */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background-color: var(--light-blue);
    border-radius: var(--border-radius);
    text-align: center;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    /* Take up space */
}

.testimonial-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--light-slate);
    margin-bottom: 30px;
    max-width: 600px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
}

.author-info span {
    color: var(--slate);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.slider-btn {
    background-color: var(--light-blue);
    border: 1px solid #1D2D44;
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-speed);
}

.slider-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 13. CTA Section */
.cta-section {
    padding: 0;
}

.cta-wrapper {
    background: linear-gradient(90deg, var(--primary-color) 0%, #3a7bc8 100%);
    border-radius: var(--border-radius);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cta-content h2 {
    color: #fff;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cta-action .btn-secondary {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 14. Subpage Headers (Legal, Contact) */
body.subpage main {
    padding-top: var(--header-height);
}

.page-header-section {
    padding: 80px 0;
    background-color: var(--dark-blue);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-content h1 {
    margin-bottom: 1rem;
}

.page-header-content p {
    font-size: 1.1rem;
    color: var(--light-slate);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--slate);
}

.breadcrumbs a {
    color: var(--light-slate);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs i {
    font-size: 0.8rem;
}

.page-header-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.page-shape {
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.1;
}

.page-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.page-shape.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    right: -80px;
}


/* 15. Legal/Content Pages */
.page-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-blue);
    padding: 40px;
    border-radius: var(--border-radius);
}

.content-wrapper h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.content-wrapper ul li {
    margin-bottom: 0.5rem;
}

/* 16. Contact Page & Form */
.contact-section {
    padding-bottom: 100px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--light-blue);
    padding: 50px;
    border-radius: var(--border-radius);
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.method-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.method-details p {
    margin: 0;
}

.method-details a {
    color: var(--slate);
}

.method-details a:hover {
    color: var(--white);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-blue);
    border: 1px solid #1D2D44;
    border-radius: var(--border-radius);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
}

/* 17. Popup Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--light-blue);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--slate);
}

.popup-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

.popup-content p {
    margin-bottom: 25px;
}

/* 18. Live Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    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 {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    color: #fff;
}

.close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    height: 200px;
    overflow-y: auto;
    color: var(--dark-blue);
}

.chat-footer {
    display: flex;
    border-top: 1px solid #eee;
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    padding: 15px;
    outline: none;
    font-family: var(--font-sans);
}

.chat-footer button {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 0 15px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* 19. Animations & Scroll Effects */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* 20. Responsive Design (Media Queries) */
@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-container {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-content {
        text-align: center;
    }

    .stats-counter {
        justify-content: center;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-method {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 80px 0;
    }

    .nav {
        display: none;
    }

    .header .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-top {
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info-list li {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 80%;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .calculator-wrapper {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .stats-counter {
        flex-direction: column;
        gap: 30px;
    }

    .contact-wrapper,
    .calculator-wrapper {
        padding: 20px;
    }

    .testimonial-slide {
        padding: 25px;
    }

    .chat-widget {
        bottom: 15px;
        right: 15px;
    }

    .chat-window {
        width: calc(100vw - 30px);
    }
}