/* ======= General Styles ======= */
:root {
    --primary: #22C55E; /* Replace with your chosen green */
    --primary-light: rgba(34, 197, 94, 0.1); /* Adjust opacity for the chosen color */
    --secondary: #F72585; /* Keep the pink secondary */
    --accent: #7209B7; /* Keep the purple accent */
    --white: #ffffff;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7;
    color: var(--dark);
}

html, body {
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

/* ======= Preloader ======= */
#preloader {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-bar {
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

/* ======= Header ======= */
#site-header {
    background-color: transparent;
}

#site-header.scrolled {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo-text {
    transition: var(--transition);
}

.scrolled .logo-text {
    color: var(--dark);
}

/* ======= Navigation ======= */
.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--dark);
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.scrolled .nav-link {
    color: var(--dark);
}

/* ======= Mobile Menu ======= */
.hamburger {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--dark);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.open span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

.mobile-nav-link {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--primary);
    transform: translateX(10px);
}

/* ======= Buttons ======= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background-color: transparent;
    color: var(--dark);
    font-weight: 600;
    border: 2px solid var(--primary);
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background-color: var(--white);
    color: var(--primary);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background-color: transparent;
    color: var(--white);
    font-weight: 600;
    border: 2px solid var(--white);
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-full {
    display: block;
    width: 100%;
}

/* ======= Service Cards ======= */
.service-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon-wrap {
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-desc {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.service-features li i {
    color: var(--primary);
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover {
    color: var(--accent);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ======= Process Steps ======= */
.process-steps {
    position: relative;
    counter-reset: process-counter;
}

.process-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 5rem;
    padding-left: 5rem;
    counter-increment: process-counter;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: relative;
    left: 0;
    top: 0;
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
    transition: var(--transition);
    margin-right: 10px;
}

.process-step:hover .step-number {
    transform: scale(1.1);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.step-desc {
    color: var(--gray);
}

.step-icon {
    position: absolute;
    right: -20px; /* Position it to the right of the step number */
    top: 15px;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--primary);
    font-size: 1.25rem;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
}

.process-step:hover .step-icon {
    color: var(--white);
    background-color: var(--secondary);
}

/* ======= Comparison Slider ======= */
.comparison-wrapper {
    margin-bottom: 2rem;
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-image {
    z-index: 1;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.before-image img, .after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-label, .after-label {
    position: absolute;
    bottom: 20px;
    background-color: var(--white);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.before-label {
    left: 20px;
}

.after-label {
    right: 20px;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--white);
    transform: translateX(-50%);
    z-index: 2;
    cursor: ew-resize;
}

.handle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ======= Pricing Cards ======= */
.pricing-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.3);
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.price-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 1.5rem 0 1rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
}

.price-period {
    font-size: 1rem;
    color: var(--gray);
    margin-left: 0.5rem;
    align-self: flex-end;
    margin-bottom: 0.5rem;
}

.pricing-features {
    padding: 2rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    margin-right: 1rem;
    font-size: 0.875rem;
    color: var(--primary);
}

.pricing-features li.disabled {
    color: #ccc;
}

.pricing-features li.disabled i {
    color: #ccc;
}

.pricing-footer {
    padding: 0 2rem 2rem;
    text-align: center;
}

/* Pricing Toggle */
.pricing-toggle {
    margin-bottom: 3rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.custom-quote {
    background-color: var(--white);
}

.guarantee-badge {
    position: relative;
    width: 150px;
    height: 150px;
}

.badge-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--primary);
    animation: spin 20s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ======= Testimonial Cards ======= */
.testimonial-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    margin: 1rem;
    height: calc(100% - 2rem);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    padding: 2rem;
    position: relative;
}

.testimonial-rating {
    margin-bottom: 1rem;
    color: #FFD700;
}

.testimonial-text {
    color: var(--gray);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--primary-light);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--white);
}

.testimonial-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.testimonial-position {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ======= CTA Section ======= */
.cta-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: 10%;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
}

/* ======= FAQ Section ======= */
.faq-container {
    margin-bottom: 3rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    border: none;
}

.faq-question:hover,
.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-question i {
    font-size: 0.875rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--gray);
}

/* ======= Contact Form ======= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: var(--white);
    color: var(--dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-check input {
    margin-top: 0.3rem;
    margin-right: 0.75rem;
}

.form-check label {
    font-size: 0.875rem;
    color: var(--gray);
}

.form-check label a {
    color: var(--primary);
    font-weight: 600;
}

/* ======= Footer ======= */
.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    position: relative;
    padding-bottom: 1rem;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul,
.footer-services ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.footer-links a::before,
.footer-services a::before {
    content: '›';
    margin-right: 0.5rem;
    color: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links a:hover::before,
.footer-services a:hover::before {
    opacity: 1;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

/* ======= Back to Top Button ======= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
}

/* ======= Stat Circles ======= */
.stat-circle {
    width: 100px;
    height: 100px;
    position: relative;
}

/* ======= Animations ======= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ======= Media Queries ======= */
@media (max-width: 991.98px) {
    .process-step {
        padding-left: 4rem;
    }

    .step-icon {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .process-step {
        padding-left: 3.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .btn-primary, .btn-outline, .btn-white, .btn-outline-white {
        padding: 0.75rem 1.5rem;
    }
}
