/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

.navbar .logo .logo-orange {
    color: #f1792e;
}

img {
    max-width: 100%;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background-color: #f1792e;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    margin: 10px 5px;
}

.cta-button:hover {
    background-color: #c67a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 121, 46, 0.3);
}

.cta-button.secondary-cta {
    background-color: transparent;
    color: #f1792e;
    border: 2px solid #f1792e;
}

.cta-button.secondary-cta:hover {
    background-color: rgba(241, 121, 46, 0.1);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f1792e;
}

.nav-links .nav-cta {
    background-color: #f1792e;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
}

.nav-links .nav-cta:hover {
    background-color: #c67a2e;
    color: white;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #2c3e50;
}

@media (max-width: 768px) {
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  .navbar .logo {
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
  }
  .navbar .nav-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
  }
  .container {
    width: 85%;
    padding: 0 10px;
  }
}

/* Hero Section */
.hero-section {
    background-color: #1a1a2e; /* Dark background for particles */
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Behind hero content */
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: #ffffff; /* White for main headline */
    margin-bottom: 20px; /* Ensure some spacing if not already present */
}

.subheadline {
    font-size: 1.4rem;
    color: #e0e0e0; /* Light grey for subheadline */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    margin-bottom: 30px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-badges span {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    font-size: 0.9rem;
}

.trust-badges span i {
    margin-right: 8px;
    color: #f1792e;
}

/* Free Value Section */
.free-value-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Light gray background */
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.value-image-col img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.value-content-col h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.value-content-col p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.value-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.value-list i {
    color: #28a745; /* Green checkmark */
    font-size: 1.4rem;
    margin-right: 15px;
}

/* Responsive adjustments for the value section */
@media (max-width: 992px) {
    .value-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .value-image-col {
        order: -1; /* Move image to the top on mobile */
        margin-bottom: 40px;
    }

    .value-list li {
        justify-content: center;
    }
}

/* Comparison Section */
.comparison-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.comparison-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-section h4, .comparison-section p {
    margin: 0 0 10px;
}

.comparison-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.comparison-box .comparison-item i {
    color: #f1792e;
    margin-bottom: 15px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
}

.services-section .intro-sentence {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: -30px auto 40px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    flex: 0 1 300px; /* Aim for ~3 columns */
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card i {
    color: #f1792e;
    margin-bottom: 20px;
}

/* Metrics Counter Section */
.metrics-section {
    padding: 80px 0;
    background-color: #2c3e50;
    color: white;
    text-align: center;
}

.metrics-section h2 {
    color: white;
    margin-bottom: 50px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.metric i {
    color: #f1792e;
    margin-bottom: 20px;
}

.metric h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
}

.metric p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Why Choose Us Section */
.why-choose-us-section {
    padding: 80px 0;
    background-color: white;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.reason-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.reason-card:hover {
    transform: translateY(-5px);
}

.reason-card i {
    color: #f1792e;
    margin-right: 20px;
    font-size: 1.8rem;
}

.reason-card div {
    flex: 1;
}

/* Packages Section */
.packages-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f7e9e9 0%, #f9f2e7 100%);
    text-align: center;
}

.package-details {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.package-details .price {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.package-details .price span {
    font-weight: 700;
    font-size: 1.5rem;
    color: #f1792e;
}

.package-details p {
    margin-bottom: 25px;
}

/* Starter SEO Package Section */
.packages-section {
    padding: 80px 0;
    background: #fbf4ef;
}

.packages-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.package-card {
    background: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.highlight {
    color: #f1792e;
    font-weight: 700;
}

/* Comparison Box under Pain Points */
.comparison-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.comparison-item {
    background: #ffffff;
    flex: 1 1 250px;
    max-width: 300px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.comparison-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.comparison-item p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* CTA Again Section */
.cta-again-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #30475e 0%, #1f3040 100%);
    text-align: center;
    color: white;
}

.cta-again-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-again-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-again-section .cta-button {
    background-color: #f1792e;
}

.cta-again-section .cta-button:hover {
    background-color: #c67a2e;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: white;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    background-color: white;
    border: none;
    padding: 20px 30px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    width: 100%;
    position: relative;
}

.faq-question::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 30px;
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.faq-answer.active {
    max-height: 500px;
    transition: max-height 0.5s cubic-bezier(0.5, 0, 1, 0);
    padding: 20px 30px;
}

/* Packages Section */
.packages-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.packages-section .section-subtitle {
    max-width: 600px;
    margin: 0 auto 50px;
    color: #666;
    font-size: 1.1rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 30px;
}

.package-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    position: relative;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.package-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.package-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.package-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
}

.package-card .setup-fee {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}

.package-card .best-for {
    margin-bottom: 30px;
    flex-grow: 1;
}

.package-card .best-for strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.package-card .best-for p {
    color: #666;
    line-height: 1.6;
}

.package-card.popular {
    border: 2px solid var(--primary-color);
    /* transform: scale(1.05); */ /* Removed to prevent layout breaks */
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

@media (min-width: 992px) {
    .packages-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns on desktop */
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
}

.testimonials-slider {
    margin-top: 40px;
    overflow: hidden; /* This is the key fix */
    width: 100%;      /* Ensure it takes full available width */
    padding: 10px 0;  /* Add some vertical padding for nav/pagination if needed */
}

.testimonial-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 20px 10px;
}

.testimonial-img {
    margin-bottom: 20px;
    display: flex;
    align-items: center; /* Or remove if not needed */
    justify-content: center;
    color: #f1792e; /* Icon color */
    /* No width, height, border, border-radius, background-color, padding-bottom */
}

.testimonial-img > i, .testimonial-img.fas, .testimonial-img.far, .testimonial-img.fab {
    font-size: 48px;
    line-height: 1;
    display: block;
    color: inherit;
    margin: 0;
    padding: 0;
}

.quote {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.client-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.stars {
    color: #f1c40f;
}

.swiper-pagination-bullet {
    background-color: #ccc !important;
    opacity: 0.7 !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 8px !important;
}

.swiper-pagination-bullet-active {
    background-color: #f1792e !important;
    opacity: 1 !important;
    width: 16px !important;
    height: 16px !important;
}

.swiper-button-next, .swiper-button-prev {
    color: #f1792e !important;
    font-size: 1.2rem !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s !important;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) !important;
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.2rem !important;
}

/* Default (Mobile) styling for swiper elements when Swiper is NOT active */
@media (max-width: 767px) { /* One pixel below our JS breakpoint */
    .testimonials-slider .swiper-wrapper {
        /* Reset Swiper's flex behavior if not fully cleared by destroy() */
        display: block; 
    }

    .testimonials-slider .swiper-slide {
        width: 100% !important; /* Ensure full width */
        margin-right: 0 !important; /* Reset Swiper's spacing */
        margin-bottom: 20px; /* Add some space between stacked cards */
        /* The existing .testimonial-card styles will apply for content */
    }

    /* Ensure Swiper controls are hidden if JS fails or before JS runs */
    /* Our JS also handles this, but this is a CSS fallback. */
    .testimonials-slider .swiper-pagination,
    .testimonials-slider .swiper-button-next,
    .testimonials-slider .swiper-button-prev {
        display: none !important; 
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 10px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input, .form-group textarea {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #f1792e;
    box-shadow: 0 0 0 2px rgba(241, 121, 46, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer-section {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer-section a {
    color: #f1792e;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #c67a2e;
}

/* Floating Guide Arrow */
.guide-arrow {
    position: fixed;
    right: 30px;
    /* top will be set dynamically by JavaScript */
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    opacity: 1;
    visibility: visible;
}

.guide-arrow.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(0.8);
}

.guide-arrow.pointing {
    animation: pointDown 1s ease-in-out infinite;
    background: linear-gradient(135deg, #28a745, #20c997);
}

.guide-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

.guide-arrow i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.guide-arrow.pointing i {
    transform: translateY(3px);
}

.arrow-text {
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    }
    50% {
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
    }
}

@keyframes pointDown {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(-45%);
    }
}

/* Hide arrow on mobile for better UX */
@media (max-width: 768px) {
    .guide-arrow {
        right: 15px;
        padding: 12px 15px;
        font-size: 12px;
    }
    .arrow-text {
        display: none;
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #f1792e;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
}

#back-to-top:hover {
    background-color: #c67a2e;
    transform: scale(1.1);
}

/* Responsive Styles */

@media (max-width: 480px) {
    .testimonial-card {
        padding: 30px 15px; /* Reduce horizontal padding */
        margin: 15px 5px;   /* Reduce horizontal margin */
    }

    .testimonial-card .quote {
        font-size: 1rem; /* Slightly smaller quote text */
    }
}

@media (max-width: 992px) { /* Changed from 768px for earlier nav toggle */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero-section {
        padding: 80px 0;
    }

    .metrics-grid, .reasons-grid { /* .pain-points-grid & .services-grid are now flexbox */
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center buttons when stacked */
    }

    .hero-ctas .cta-button {
        width: 80%; /* Make buttons take more width */
        max-width: 350px; /* Max width for very wide buttons on small screens */
        margin-bottom: 15px; /* Add space between stacked buttons */
        text-align: center;
    }

    .hero-ctas .cta-button:last-child {
        margin-bottom: 0;
    }

    .trust-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Center the badges if they wrap */
        gap: 15px; /* Add some gap between badges */
        margin-top: 30px; /* Add some space above the badges */
    }

    .trust-badges span {
        margin-bottom: 5px; /* Adjust spacing if needed */
    }

}