/*
  styles.css
  Author: AI Assistant for Meredith Brett Media Redesign
  Version: 1.0
*/

/* -------------------
 * 1. Global Styles & Variables
 * ------------------- */
:root {
    --primary-color-start: #6a11cb;
    --primary-color-end: #2575fc;
    --secondary-color: #ffc107;
    --dark-bg: #0d0c22;
    --light-bg: #1a1a2e;
    --card-bg: #1f1f38;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --light-gray: #a0a0b4;
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s 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-family);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

body.subpage {
    padding-top: var(--header-height);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3,
h4 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--light-gray);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--heading-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--light-gray);
}

/* -------------------
 * 2. Helper Classes
 * ------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: capitalize;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    margin-right: 8px;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--heading-color);
}

.btn-primary:hover {
    color: var(--heading-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 117, 252, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--heading-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--heading-color);
    color: var(--dark-bg);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.optional {
    color: var(--light-gray);
    font-size: 0.8em;
    font-weight: 400;
}

/* -------------------
 * 3. Preloader
 * ------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    margin-bottom: 2rem;
}

.preloader-logo img {
    max-width: 150px;
    animation: pulse 1.5s infinite ease-in-out;
}

.preloader-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-gradient);
    margin: 0 5px;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}

.preloader-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.preloader-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes dot-bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

/* -------------------
 * 4. Header & Navigation
 * ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}

.header.scrolled {
    background-color: rgba(13, 12, 34, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    height: 70px;
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link .logo {
    height: 100px;
    transition: var(--transition);
}

.logo-link:hover .logo {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 20px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.header-cta.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: 1rem;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--heading-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.mobile-nav-open .bar-top {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-nav-open .bar-middle {
    opacity: 0;
}

.mobile-nav-open .bar-bottom {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--card-bg);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-nav-open .mobile-nav {
    right: 0;
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav nav ul li {
    margin: 2rem 0;
}

.mobile-nav nav ul li a {
    font-size: 1.5rem;
    color: var(--heading-color);
}

.mobile-nav nav ul li .btn {
    margin-top: 1rem;
}

/* -------------------
 * 5. Hero Section
 * ------------------- */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    background-color: var(--dark-bg);
    position: relative;
}

.hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(37, 117, 252, 0.2), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(106, 17, 203, 0.2), transparent 40%);
    z-index: 0;
    animation: background-pan 20s linear infinite;
}

@keyframes background-pan {
    from {
        background-position: 0% 0%;
    }

    to {
        background-position: 100% 100%;
    }
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-subtitle {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* -------------------
 * 6. Services Section
 * ------------------- */
.services-section {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color-end);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 117, 252, 0.1), transparent 30%);
    transition: opacity 0.5s;
    opacity: 0;
    transform-origin: center;
    animation: rotate 10s linear infinite;
}

.service-card:hover::before {
    opacity: 1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.service-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-gradient);
    color: var(--heading-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.service-title {
    margin-bottom: 1rem;
}

.service-description {
    margin-bottom: 1.5rem;
}

.service-link {
    font-weight: 600;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
}

.service-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* -------------------
 * 7. About Section
 * ------------------- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 60px;
}

.about-image-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 2rem;
}

.about-features {
    margin-bottom: 2.5rem;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.about-features i {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
    margin-top: 5px;
}

/* -------------------
 * 8. ROI Calculator Section
 * ------------------- */
.roi-calculator-section {
    background-color: var(--light-bg);
}

.roi-calculator-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.calculator-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--heading-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color-end);
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.3);
}

.calculator-results {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.results-title {
    margin-bottom: 2rem;
}

.result-item {
    margin-bottom: 1.5rem;
}

.result-item h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--light-gray);
    margin-bottom: 0.5rem;
}

.result-item p {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.result-item.net-profit p {
    color: #4caf50;
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    margin-top: auto;
    color: var(--light-gray);
}

.calculator-results .btn {
    margin-top: 1rem;
}

/* -------------------
 * 9. Process Section
 * ------------------- */
.process-timeline {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 5%;
    width: 90%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
}

.timeline-item {
    width: 23%;
    position: relative;
    text-align: center;
    padding-top: 70px;
}

.timeline-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background-color: var(--card-bg);
    border: 4px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    transition: var(--transition);
    z-index: 2;
}

.timeline-item:hover .timeline-icon {
    background: var(--primary-gradient);
    color: var(--heading-color);
    border-color: var(--primary-color-end);
}

.timeline-step {
    color: var(--light-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.95rem;
}

/* -------------------
 * 10. Testimonials Section
 * ------------------- */
.testimonials-section {
    background-color: var(--light-bg);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(50px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-slide.exit {
    transform: translateX(-50px);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid var(--secondary-color);
}

.author-name {
    margin-bottom: 0.25rem;
}

.author-title {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 110%;
    left: -5%;
    display: flex;
    justify-content: space-between;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--heading-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary-gradient);
}

/* -------------------
 * 11. CTA Section
 * ------------------- */
.cta-section {
    background: var(--primary-gradient);
    padding: 80px 0;
}

.cta-container {
    text-align: center;
}

.cta-title {
    font-size: 2.8rem;
    color: var(--heading-color);
}

.cta-description {
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-section .btn {
    background-color: var(--heading-color);
    color: white;
}

.cta-section .btn:hover {
    background-color: var(--dark-bg);
    color: var(--heading-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* -------------------
 * 12. Footer
 * ------------------- */
.footer {
    background-color: var(--light-bg);
    padding-top: 100px;
    position: relative;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.05;
}

.footer-shape.shape-1 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
}

.footer-shape.shape-2 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col-title {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
}

.footer-about-text {
    margin-bottom: 1.5rem;
}

.footer-logo {
    max-width: 170px;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
}

.social-link:hover {
    background: var(--primary-gradient);
    color: var(--heading-color);
    border-color: transparent;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-gray);
}

.footer-links ul li a:hover {
    color: var(--heading-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info li i {
    margin-right: 15px;
    margin-top: 5px;
    color: var(--secondary-color);
}

.contact-info li a,
.contact-info li span {
    color: var(--light-gray);
}

.contact-info li a:hover {
    color: var(--heading-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    text-align: center;
    color: var(--light-gray);
}

/* -------------------
 * 13. Sub-pages (Contact, Legal, etc.)
 * ------------------- */
.page-header {
    background: var(--primary-gradient);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: -80px;
}

.page-header h1 {
    color: var(--heading-color);
}

.page-header .page-subtitle {
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.breadcrumbs a,
.breadcrumbs span {
    color: var(--text-color);
    font-weight: 500;
}

.breadcrumbs i {
    margin: 0 10px;
    font-size: 0.8rem;
}

.page-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content .last-updated {
    margin-top: 2rem;
    font-style: italic;
    color: var(--light-gray);
}

.legal-content strong {
    color: var(--heading-color);
}


/* Contact Page Specifics */
.contact-section .container {
    max-width: 1100px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: var(--border-radius);
}

.contact-info-panel h2 {
    margin-bottom: 1rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.method-icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.method-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.method-details p,
.method-details a {
    color: var(--light-gray);
    margin: 0;
}

.method-details a:hover {
    color: var(--secondary-color);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--heading-color);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color-end);
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.3);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

/* 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: opacity 0.3s ease, visibility 0.3s ease;
}

.popup:target,
.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup:target .popup-content,
.popup.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--light-gray);
}

.popup-icon {
    font-size: 3.5rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 1rem;
}

.popup-content .btn {
    margin-top: 1.5rem;
}


/* -------------------
 * 14. Scroll & Entrance Animations
 * ------------------- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    transform: translateY(20px);
}

.fade-in-up {
    transform: translateY(50px);
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Delay for staggered animations */
.animate-on-scroll {
    transition-delay: var(--delay, 0s);
}

/* -------------------
 * 15. Chat Widget
 * ------------------- */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    border: none;
    color: var(--heading-color);
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    z-index: 998;
    transition: var(--transition);
}

.chat-widget:hover {
    transform: scale(1.1) rotate(10deg);
}

/* -------------------
 * 16. Responsive Media Queries
 * ------------------- */

/* Tablets & Small Desktops */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .roi-calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-form {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        flex-direction: column;
        align-items: center;
    }

    .process-timeline::before {
        display: none;
    }

    .timeline-item {
        width: 80%;
        max-width: 400px;
        margin-bottom: 60px;
        text-align: left;
        padding-top: 0;
        padding-left: 100px;
    }

    .timeline-icon {
        top: 0;
        left: 0;
        transform: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile Phones */
@media (max-width: 767px) {
    :root {
        --header-height: 70px;
    }

    section {
        padding: 80px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .slider-controls {
        display: none;
    }

    .testimonial-slider {
        height: auto;
    }

    .testimonial-slide {
        position: static;
        opacity: 1;
        transform: none;
        margin-bottom: 20px;
    }

    .testimonial-slide.exit {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form button {
        justify-self: stretch;
    }
}