/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4; /* Further reduced line-height */
    color: var(--navy);
}

/* Variables */
:root {
    --teal: #7DDDD3;
    --navy: #1E3A8A;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --dark-gray: #64748B;
    --success: #10B981;
    --warning: #F59E0B;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px; /* Reduced padding */
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(125, 221, 211, 0.1);
    height: 55px; /* Further reduced header height */
    overflow: visible;
}

/* Navigation Bar */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 0.5rem; /* Reduced padding */
    flex-wrap: nowrap;
}

/* Logo */
.logo {
    font-size: 2rem; /* Reduced font size */
    font-weight: bold;
    color: var(--navy);
    display: flex;
    align-items: center;
    overflow: visible;
    margin-top: 4px; /* Reduced margin */
}

.logo img {
    height: 45px; /* Reduced logo height */
    max-height: none;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    margin-top: 0;
    margin-bottom: -6px; /* Adjusted margin */
}

.logo img:not([src]),
.logo img[src=""] {
    display: none;
}

.logo-text {
    font-size: 2rem; /* Reduced font size */
    font-weight: bold;
    color: var(--navy);
}

/* Trustpilot */
.trustpilot-badge {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 32px; /* Reduced height */
}

.trustpilot-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--navy);
    padding: 0.1rem 0.2rem; /* Reduced padding */
    border-radius: 4px;
    background: rgba(125, 221, 211, 0.1);
    border: 1px solid rgba(125, 221, 211, 0.3);
    transition: all 0.3s ease;
    font-size: 0.75rem; /* Reduced font size */
}

.trustpilot-link:hover {
    background: rgba(125, 221, 211, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(125, 221, 211, 0.3);
}

.trustpilot-stars {
    display: flex;
    gap: 1px;
    margin-bottom: 0;
}

.trustpilot-stars .star {
    color: #00B67A;
    font-size: 9px;
}

.trustpilot-info {
    font-size: 0.6rem;
    font-weight: bold;
    margin-bottom: 0;
}

.trustpilot-text {
    font-size: 0.5rem;
    color: #00B67A;
    font-weight: 600;
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem; /* Reduced gap */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--teal);
}

/* CTA Button */
.nav-cta {
    background: var(--teal);
    color: var(--navy);
    padding: 0.2rem 0.8rem; /* Reduced padding */
    border-radius: 18px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(125, 221, 211, 0.3);
}

/* Mobile Styles */
.mobile-menu-toggle {
    display: none;
    font-size: 1.6rem; /* Reduced size */
    background: none;
    border: none;
    color: var(--navy);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #2563EB 100%);
    color: white;
    /* Tighter padding: 55px for header + 20px standard padding = 75px */
    padding: 65px 0 20px; /* Reduced padding */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(125,221,211,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-top: 0;
    font-size: 2.2rem; /* Reduced font size */
    font-weight: bold;
    margin-bottom: 0.4rem;
    animation: fadeInUp 1s ease;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.1rem; /* Reduced font size */
    margin-bottom: 0.8rem;
    color: var(--teal);
    animation: fadeInUp 1s ease 0.2s both;
    line-height: 1.3;
}

.hero-description {
    font-size: 0.95rem; /* Reduced font size */
    margin-bottom: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    gap: 0.6rem; /* Reduced gap */
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-primary {
    background: var(--teal);
    color: var(--navy);
    padding: 0.4rem 1.5rem; /* Reduced padding */
    font-size: 0.9rem; /* Reduced font size */
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(125, 221, 211, 0.3);
}

.cta-secondary {
    background: transparent;
    color: white;
    padding: 0.4rem 1.5rem; /* Reduced padding */
    font-size: 0.9rem; /* Reduced font size */
    font-weight: bold;
    border: 2px solid var(--teal);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-secondary:hover {
    background: var(--teal);
    color: var(--navy);
}

/* General Section Styling */
.section {
    padding: 10px 0; /* Tighter padding */
}

/* About Section */
.about-section {
    padding: 10px 0; /* Tighter padding */
}

.about-section h2 {
    margin-bottom: 0;
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
    background: linear-gradient(135deg, #e0f7fa 0%, #f8fafc 100%);
    border-radius: 0.8rem;
    box-shadow: 0 2px 20px 0 rgba(0, 80, 120, 0.07);
    padding: 1.5rem 1rem; /* Reduced padding */
    font-size: 1rem; /* Reduced font size */
    line-height: 1.6;
    color: #234;
    position: relative;
    overflow: hidden;
}

.about-bg-top {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 40% 40%, #00bfae22 60%, transparent 100%);
    z-index: 0;
}

.about-bg-bottom {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 60% 60%, #00bfae11 60%, transparent 100%);
    z-index: 0;
}

.about-content-inner {
    position: relative;
    z-index: 1;
}

.about-cta {
    margin-top: 1.5rem; /* Reduced margin */
    text-align: center;
}

.about-cta-btn {
    font-size: 0.9rem; /* Reduced font size */
    padding: 0.4rem 1.2rem; /* Reduced padding */
    border-radius: 1.5rem;
    box-shadow: 0 2px 8px 0 rgba(0, 191, 174, 0.10);
    letter-spacing: 0.03em;
}

/* Instant Download */
.instant-download-stats {
    margin-top: 0.6rem;
    padding: 15px 0; /* Tighter padding */
    background: linear-gradient(120deg, #1b2a4e 60%, #00c2b2 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.instant-download-title {
    font-size: 1.8rem; /* Reduced font size */
    font-weight: 800;
    letter-spacing: -1px;
}

.instant-download-count {
    font-size: 2.5rem; /* Reduced font size */
    font-weight: 900;
    color: #00ffe0;
    text-shadow: 0 2px 10px rgba(0, 194, 178, 0.18);
    letter-spacing: -1.5px;
}

.instant-download-growth {
    color: #e0e6ed;
    font-size: 1rem; /* Reduced font size */
    margin-bottom: 0.8rem;
}

.instant-download-growth .highlight {
    color: #fff;
    background: #00c2b2;
    border-radius: 5px;
    padding: 1px 5px; /* Reduced padding */
    font-weight: 700;
}

@media (max-width: 600px) {
    .instant-download-title {
        font-size: 1.6rem;
    }

    .instant-download-count {
        font-size: 2rem;
    }

    .instant-download-growth {
        font-size: 0.9rem;
    }
}

.section-divider {
    border: none;
    border-top: 1px solid #e0f7fa;
    width: 80%;
    max-width: 900px;
    margin: 15px auto; /* Reduced margin */
    border-radius: 2px;
    box-shadow: 0 1px 4px 0 rgba(0, 191, 174, 0.05);
}

.pre-built-section {
    padding: 10px 0; /* Tighter padding */
}

.pre-built-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* Reduced gap */
    margin-top: 1.5rem; /* Reduced margin */
}

.pre-built-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pre-built-logo {
    height: 50px; /* Reduced logo size */
    width: auto;
}

.apify-logo {
    background: #fff;
    border-radius: 6px;
}

@media (max-width: 640px) {
    .pre-built-logo {
        height: 30px;
    }
}

/* Video Section */
.video-section {
    padding: 10px 0; /* Tighter padding */
    background: var(--light-gray);
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 12px rgba(125, 221, 211, 0.3));
}

.video-container:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    filter: drop-shadow(0 0 20px rgba(125, 221, 211, 0.5));
}

/* Features Section */
.features {
    padding: 10px 0; /* Tighter padding */
    background: white;
}

.section-title {
    font-size: 1.8rem; /* Reduced font size */
    text-align: center;
    margin-bottom: 0.4rem;
}

.section-subtitle {
    font-size: 0.95rem; /* Reduced font size */
    text-align: center;
    margin-bottom: 1.2rem; /* Reduced margin */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem; /* Reduced gap */
    margin-top: 1.5rem; /* Reduced margin */
}

.feature-card {
    background: transparent;
    width: 100%;
    height: 180px; /* Reduced height */
    perspective: 1000px;
    cursor: pointer;
}

.feature-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.feature-card:hover .feature-card-inner {
    transform: rotateY(180deg);
}

.feature-card-front,
.feature-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.8rem; /* Reduced padding */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.feature-card-front {
    background: var(--light-gray);
    border: 1px solid transparent;
}

.feature-card-back {
    background: linear-gradient(135deg, var(--teal), var(--navy));
    color: white;
    transform: rotateY(180deg);
}

.feature-card:hover .feature-card-front {
    border-color: var(--teal);
}

.feature-icon {
    font-size: 2.2rem; /* Reduced size */
    color: var(--teal);
    margin-bottom: 0.4rem;
}

.feature-title {
    font-size: 1.1rem; /* Reduced size */
    font-weight: bold;
    margin-bottom: 0.4rem;
    color: var(--navy);
}

/* Customer Testimonials */
.testimonials {
    padding: 15px 0; /* Tighter padding */
    background: linear-gradient(135deg, var(--navy) 0%, #2563EB 100%);
    color: white;
}

.trustpilot-header {
    text-align: center;
    margin-bottom: 0.8rem;
    padding: 1rem; /* Reduced padding */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.trustpilot-rating {
    font-size: 1rem; /* Reduced size */
    margin-bottom: 0.4rem;
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem; /* Reduced gap */
    justify-content: center;
    align-items: stretch;
    margin-top: 1.5rem; /* Reduced margin */
}

@media (min-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem; /* Reduced padding */
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px; /* Reduced height */
}

.testimonial-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 0.6rem;
}

.testimonial-stars .star {
    color: #00B67A;
    font-size: 0.8rem;
}

.testimonial-text {
    font-size: 0.9rem; /* Reduced size */
    line-height: 1.5;
    margin-bottom: 0.8rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.testimonial-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--teal);
}

.testimonial-photo-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--navy));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1rem;
    border: 2px solid var(--teal);
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-weight: bold;
    color: white;
    margin-bottom: 0.15rem;
}

.testimonial-title {
    font-size: 0.75rem;
    color: var(--teal);
}

@media (max-width: 640px) {
    .testimonial-card {
        padding: 0.8rem;
    }

    .trustpilot-header {
        padding: 0.8rem;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 10px 0; /* Tighter padding */
    background: var(--light-gray);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem; /* Reduced gap */
    margin-top: 1.5rem; /* Reduced margin */
}

.step-card {
    background: white;
    padding: 0.8rem; /* Reduced padding */
    border-radius: 10px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: var(--navy);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.step-title {
    font-size: 0.95rem; /* Reduced size */
    font-weight: bold;
    margin: 0.6rem 0;
    color: var(--navy);
}

/* Pricing Preview */
.pricing-preview {
    padding: 15px 0; /* Tighter padding */
    background: var(--navy);
    color: white;
    text-align: center;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem; /* Reduced gap */
    margin-top: 1.5rem; /* Reduced margin */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-contact {
    background: rgba(125, 221, 211, 0.15);
    padding: 1rem 0.8rem; /* Reduced padding */
    border-radius: 10px;
    border: 2px solid var(--teal);
    margin-top: 1.5rem; /* Reduced margin */
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-contact:hover {
    background: rgba(125, 221, 211, 0.25);
    transform: translateY(-2px);
}

.pricing-contact h3 {
    font-size: 1.3rem; /* Reduced size */
    margin-bottom: 0.5rem;
    color: var(--teal);
}

.pricing-contact p {
    font-size: 0.9rem; /* Reduced size */
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.pricing-contact .cta-primary {
    font-size: 0.9rem; /* Reduced size */
    padding: 0.5rem 1.5rem; /* Reduced padding */
}

.pricing-card {
    background: rgba(125, 221, 211, 0.1);
    padding: 0.8rem; /* Reduced padding */
    border-radius: 10px;
    border: 1px solid rgba(125, 221, 211, 0.2);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    background: rgba(125, 221, 211, 0.2);
    transform: translateY(-3px);
}

.pricing-card.featured {
    border-color: var(--teal);
    background: rgba(125, 221, 211, 0.2);
}

.price {
    font-size: 1.8rem; /* Reduced size */
    font-weight: bold;
    color: var(--teal);
    margin-bottom: 0.2rem;
}

.price-unit {
    font-size: 0.75rem; /* Reduced size */
    color: moccasin;
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq {
    padding: 10px 0; /* Tighter padding */
    background: white;
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 0.5rem; /* Reduced margin */
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--teal);
}

.faq-question {
    background: var(--light-gray);
    padding: 0.6rem; /* Reduced padding */
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.85rem; /* Reduced size */
}

.faq-question:hover {
    background: var(--teal);
    color: var(--navy);
}

.faq-question.active {
    background: var(--teal);
    color: var(--navy);
}

.faq-toggle {
    font-size: 1.1rem; /* Reduced size */
    transition: transform 0.3s ease;
}

.faq-toggle.active {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.faq-answer.active {
    max-height: 200px;
}

.faq-answer-content {
    padding: 0.6rem; /* Reduced padding */
    color: var(--dark-gray);
    font-size: 0.8rem; /* Reduced size */
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--navy);
    color: white;
    padding: 0.5rem 0; /* Tighter padding */
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Reduced gap */
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.8rem; /* Reduced size */
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--teal);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--navy));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, #2563EB 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    width: 90px;
    height: 90px;
    border: 3px solid rgba(125, 221, 211, 0.3);
    border-top: 3px solid var(--teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.2rem;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-dots {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.loading-dot {
    width: 9px;
    height: 9px;
    background: var(--teal);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0s;
}

.loading-progress {
    width: 220px;
    height: 3px;
    background: rgba(125, 221, 211, 0.3);
    border-radius: 2px;
    margin-top: 1.2rem;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), #ffffff);
    border-radius: 2px;
    animation: loadProgress 3s ease-in-out;
}


@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.feature-icon {
    animation: float 3s ease-in-out infinite;
}

.feature-icon:nth-child(odd) {
    animation-delay: 0.5s;
}

.cta-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.cta-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
    flex: 1;
    text-align: right;
}

.main {
    transition: filter 0.5s ease-in-out;
    padding-top: 55px; /* Consistent with header height */
}

.main-blurred {
    filter: blur(8px);
}

/* Responsive */
@media (max-width: 1000px) {
    .nav-cta {
        font-size: 0.9rem;
        padding: 0.4rem 1.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 5px;
    }

    .nav {
        padding: 0 0.5rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        height: 55px; /* Consistent height */
        min-height: 55px;
    }

    .header {
        height: 55px; /* Consistent height */
    }

    .logo {
        flex: 0 0 auto;
        justify-content: flex-start;
        order: 1;
        margin-top: 0;
        position: relative;
        z-index: 1002;
    }

    .logo img {
        height: 110px; /* Adjusted for smaller navbar */
        max-width: 320px;
        margin-top: 0;
        margin-bottom: 0;
        position: absolute;
        top: 50%;
        left: -10px;
        transform: translateY(-50%);
        z-index: 1002;
        background: none;
        pointer-events: auto;
        overflow: visible;
    }

    .trustpilot-badge {
        display: none;
        flex: 1;
        order: 2;
        margin: 0 1rem;
    }

    .trustpilot-link {
        transform: scale(0.8);
    }

    .mobile-menu-toggle {
        display: block;
        order: 3;
        flex: 0 0 auto;
        font-size: 1.8rem; /* Slightly smaller */
        background: none;
        border: none;
        color: var(--navy);
        cursor: pointer;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--light-gray);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0; /* Tighter padding */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        order: 4;
        width: 100vw;
        margin-top: 0;
    }

    .nav-links.show,
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 0.25rem 0; /* Tighter padding */
    }

    .nav-links a {
        display: block;
        padding: 0.25rem 0.5rem; /* Tighter padding */
        font-size: 0.95rem;
    }

    .nav-cta {
        padding: 0.4rem 1.2rem; /* Tighter padding */
        font-size: 0.9rem;
        margin: 0.3rem auto; /* Tighter margin */
        display: block;
        text-align: center;
        width: fit-content;
    }

    .features-grid,
    .steps-container,
    .team-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1rem; /* Tighter gap */
    }

    .trustpilot-header {
        padding: 1rem; /* Tighter padding */
    }

    .trustpilot-stars-large .star {
        font-size: 1.2rem;
    }

    .trustpilot-rating {
        font-size: 0.9rem;
    }

    .captcha-container .g-recaptcha {
        transform: scale(0.75);
    }

    .hero {
        padding: 10px 0 20px; /* Adjusted for main tag padding */
    }

    .hero h1 {
        font-size: 1.8rem; /* Tighter */
        line-height: 1.1;
    }

    .hero h2 {
        font-size: 1rem; /* Tighter */
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 0.9rem; /* Tighter */
        margin-bottom: 1rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem; /* Tighter */
    }

    .cta-primary,
    .cta-secondary {
        padding: 0.6rem 1.8rem; /* Tighter */
        font-size: 0.9rem;
        width: 90%;
        max-width: 280px;
    }

    .section-title {
        font-size: 1.6rem; /* Tighter */
    }

    .section-subtitle {
        font-size: 0.9rem; /* Tighter */
        margin-bottom: 1rem;
    }

    .feature-card {
        height: auto; /* Allow content to define height */
        min-height: 160px;
    }

    .feature-card-front,
    .feature-card-back {
        padding: 1rem; /* Tighter */
    }

    .feature-icon {
        font-size: 2.2rem;
        margin-bottom: 0.4rem;
    }

    .feature-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .pricing-card {
        padding: 1rem; /* Tighter */
    }

    .price {
        font-size: 1.6rem; /* Tighter */
    }

    .faq-question {
        padding: 0.8rem; /* Tighter */
        font-size: 0.85rem;
    }

    .faq-answer-content {
        padding: 0.8rem; /* Tighter */
    }

    .contact-form {
        padding: 1rem; /* Tighter */
        margin: 0 5px;
    }

    .footer {
        padding: 1rem 0; /* Tighter */
    }

    .footer-links {
        gap: 0.8rem;
        font-size: 0.8rem;
    }

    .footer img {
        height: 35px !important;
    }

    .video-section,
    .features,
    .how-it-works,
    .team,
    .pricing-preview,
    .faq,
    .contact {
        padding: 15px 0; /* Tighter section padding */
    }
}

@media (max-width: 480px) {
    .nav {
        height: 48px;
        min-height: 48px;
        padding: 0 0.25rem;
    }

    .header {
        height: 48px;
    }

    .logo {
        order: 1;
        flex: 0 0 50%;
        margin-top: 0;
        position: relative;
        z-index: 1002;
    }

    .logo img {
        height: 100px;
        max-width: 160px;
        margin-top: 0;
        margin-bottom: 0;
        position: absolute;
        top: 50%;
        left: -5px; /* Adjusted */
        transform: translateY(-50%);
        z-index: 1002;
        background: none;
        pointer-events: auto;
        overflow: visible;
    }

    .mobile-menu-toggle {
        order: 2;
        flex: 0 0 auto;
    }

    .trustpilot-badge {
        order: 3;
        flex: 1 1 100%;
        margin: 0.5rem 0 0 0;
        justify-content: center;
    }

    .trustpilot-link {
        transform: scale(0.7);
    }

    .nav-links {
        order: 4;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .cta-primary,
    .cta-secondary {
        width: 95%;
        font-size: 0.9rem;
        padding: 0.5rem 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card {
        height: auto;
        min-height: 150px;
    }

    .team-photo,
    .team-photo-fallback {
        width: 80px;
        height: 80px;
    }

    .team-photo-fallback {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .testimonial-card {
        padding: 1rem;
    }

    .captcha-container .g-recaptcha {
        transform: scale(0.6);
    }
}

/* Custom navbar responsiveness for <= 1000px */
@media (max-width: 1000px) {

    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide nav links initially */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--light-gray);
        padding: 0.5rem 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        margin-top: 0;
    }

    /* Show nav links when toggled */
    .nav-links.show,
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 0.25rem 0;
    }

    .nav-links a {
        display: block;
        padding: 0.4rem 0.8rem;
        font-size: 0.95rem;
    }

    .nav-cta {
        margin: 0.4rem auto;
        text-align: center;
        display: block;
        width: fit-content;
    }

    .nav {
        padding: 0 0.5rem;
        height: 55px;
        min-height: 55px;
    }

    .header {
        height: 55px;
    }

    .logo {
        flex: 1;
        order: 1;
        padding-left: 0;
        overflow: visible;
        margin-top: 0;
        position: relative;
        z-index: 1002;
    }

    .logo img {
        height: 110px;
        max-height: none;
        width: auto;
        max-width: 320px;
        object-fit: contain;
        margin-top: 0;
        margin-bottom: 0;
        overflow: visible;
        z-index: 1002;
        position: absolute;
        top: 50%;
        left: -5px;
        transform: translateY(-50%);
        pointer-events: auto;
    }

    .mobile-menu-toggle {
        order: 2;
        flex: 0 0 auto;
        padding-right: 0;
        font-size: 1.8rem;
    }

}

@media (max-width: 1090px) {
    .trustpilot-badge {
        display: none !important;
    }
}
