/* ---
Root Variables and Basic Setup
--- */
:root {
    --primary-color: #0052cc;
    /* A professional blue */
    --secondary-color: #0d1b2a;
    /* A very dark blue, almost black */
    --accent-color: #00c9a7;
    /* A vibrant teal for accents */
    --text-color: #4f4f4f;
    --heading-color: #1a1a1a;
    --bg-color: #ffffff;
    --light-bg-color: #f8f9fa;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --black: #000000;
    --danger-color: #dc3545;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --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-secondary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    line-height: 1.3;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-title .highlight {
    color: var(--primary-color);
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

/* ---
Preloader
--- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-logo img {
    max-width: 200px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---
Header
--- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--white);
    z-index: 1000;
    transition: all var(--transition-speed);
    box-shadow: var(--box-shadow);
}

.header.scrolled {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: block;
    height: 40px;
    transition: var(--transition-speed);
}

.logo img {
    height: 100%;
    width: auto;
}

.header.scrolled .logo a {
    height: 35px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--heading-color);
    position: relative;
    padding: 10px 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);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0041a3;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 82, 204, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    top: -10px;
}

.hamburger::after {
    top: 10px;
}

.menu-open .hamburger {
    background-color: transparent;
}

.menu-open .hamburger::before {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-open .hamburger::after {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--heading-color);
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background-color: var(--light-bg-color);
    color: var(--primary-color);
}

.dropdown .fa-chevron-down {
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform var(--transition-speed);
}

.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* ---
Hero Section
--- */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    background-color: var(--light-bg-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-subtitle {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(0, 82, 204, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-item p {
    font-weight: 500;
    color: var(--text-color);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.hero-image-bg {
    position: absolute;
    width: 90%;
    height: 90%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius);
    z-index: 1;
    transform: rotate(-5deg);
    opacity: 0.8;
}

/* ---
Services Section
--- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    background-color: var(--light-bg-color);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-speed);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotate(15deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 25px;
}

.learn-more {
    font-weight: 600;
    color: var(--primary-color);
}

.learn-more i {
    margin-left: 5px;
    transition: transform var(--transition-speed);
}

.service-card:hover .learn-more i {
    transform: translateX(5px);
}

/* ---
Process Section
--- */
.process {
    background-color: var(--light-bg-color);
}

.process-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 40px;
}

.process-line {
    position: absolute;
    top: 40px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    padding-top: 70px;
}

.process-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all var(--transition-speed);
    z-index: 1;
}

.process-step:hover .process-icon {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateX(-50%) scale(1.1);
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* ---
ROI Calculator Section
--- */
.roi-calculator-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.roi-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
}

.roi-content .section-subtitle,
.roi-content .section-title,
.roi-content .section-title .highlight {
    color: var(--white);
}

.roi-calculator {
    background: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.roi-calculator .form-group {
    margin-bottom: 20px;
}

.roi-calculator label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--heading-color);
}

.roi-calculator input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.roi-calculator button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.roi-result-container {
    margin-top: 20px;
    padding: 20px;
    background: var(--light-bg-color);
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
    /* Initially hidden */
}

.roi-result-container h4 {
    color: var(--heading-color);
    margin-bottom: 15px;
}

.roi-result-container p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.roi-result-container span {
    font-weight: 700;
    color: var(--primary-color);
}

.roi-result-container small {
    display: block;
    margin-top: 10px;
    color: var(--text-color);
    font-style: italic;
}

/* ---
Pricing Section
--- */
.pricing {
    background-color: var(--light-bg-color);
}

.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 40px;
}

.pricing-toggle-wrapper span {
    font-weight: 600;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
    position: relative;
    border: 2px solid transparent;
}

.pricing-card.popular {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-card:hover:not(.popular) {
    transform: translateY(-5px);
}

.pricing-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.6rem;
}

.pricing-header p {
    min-height: 40px;
    margin-top: 10px;
}

.price {
    margin-top: 20px;
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    color: var(--text-color);
    font-weight: 500;
}

.features-list {
    text-align: left;
    margin-bottom: 40px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.features-list li i.fa-times {
    color: var(--danger-color);
}

.custom-plan-cta {
    margin-top: 40px;
    font-size: 1.1rem;
}

/* ---
Testimonials Section
--- */
.testimonial-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-speed);
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: none;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-slide img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.client-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.client-title {
    color: var(--text-color);
    font-weight: 500;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.testimonial-nav button {
    background-color: rgba(0, 82, 204, 0.7);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-speed);
}

.testimonial-nav button:hover {
    background-color: var(--primary-color);
}

/* ---
CTA Section
--- */
.cta-section {
    background-color: var(--light-bg-color);
}

.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.cta-content .section-title,
.cta-content .section-title .highlight {
    color: var(--white);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* ---
Footer
--- */
.footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 200px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: var(--white);
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--white);
    border-radius: 50%;
}

.footer-socials a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-contact ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact ul li a:hover {
    color: var(--white);
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px 0;
    text-align: center;
}

/* ---
Page Header & Content for sub-pages
--- */
.page-header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 10px;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a:hover {
    color: var(--white);
}

.breadcrumbs span {
    color: var(--white);
    font-weight: 500;
}

.main-content {
    padding: 80px 0;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.page-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

.page-content p {
    margin-bottom: 20px;
}

.page-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.last-updated {
    margin-top: 40px;
    font-style: italic;
    color: #888;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}


/* ---
Contact Page Specifics
--- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--light-bg-color);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition-speed);
}

.contact-card:hover {
    transform: translateX(5px);
    border-left: 4px solid var(--primary-color);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background-color: var(--light-bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-details p,
.contact-details p a {
    color: var(--text-color);
    line-height: 1.5;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.2);
}

.form-group.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 500;
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform var(--transition-speed);
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
}

/* ---
Back to Top Button
--- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* ---
Animations on Scroll
--- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add delays for staggered effect */
.hero-content>* {
    transition-delay: 0.1s;
}

.hero-title {
    transition-delay: 0.2s;
}

.hero-description {
    transition-delay: 0.3s;
}

.hero-buttons {
    transition-delay: 0.4s;
}

.hero-stats {
    transition-delay: 0.5s;
}

.hero-image-wrapper {
    transition-delay: 0.2s;
}

.service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:nth-child(3) {
    transition-delay: 0.2s;
}

.service-card:nth-child(4) {
    transition-delay: 0.3s;
}

.service-card:nth-child(5) {
    transition-delay: 0.1s;
}

.service-card:nth-child(6) {
    transition-delay: 0.2s;
}

.process-step:nth-child(2) {
    transition-delay: 0.1s;
}

.process-step:nth-child(3) {
    transition-delay: 0.2s;
}

.process-step:nth-child(4) {
    transition-delay: 0.3s;
}

.pricing-card:nth-child(2) {
    transition-delay: 0.1s;
}

.pricing-card:nth-child(3) {
    transition-delay: 0.2s;
}

/* ---
Responsive Design
--- */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image-wrapper {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .process-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-line {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        max-width: 450px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .cta-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-image {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1.5fr 1fr;
    }

    .footer-col {
        margin-bottom: 30px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        padding-top: 100px;
        transition: right var(--transition-speed);
        z-index: 1000;
    }

    .nav.menu-open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .dropdown {
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding-top: 15px;
        text-align: center;
    }

    .dropdown-menu li a {
        padding: 8px 15px;
        font-size: 1.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .roi-wrapper {
        grid-template-columns: 1fr;
    }

    .process-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-socials {
        justify-content: center;
    }

    .contact-wrapper {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .testimonial-wrapper {
        padding: 30px 15px;
    }

    .testimonial-nav {
        padding: 0 10px;
    }
}