/* Base Styles & Reset */
:root {
    --primary: #4733FF;
    --primary-dark: #3521e6;
    --secondary: #FF6B35;
    --dark: #151A30;
    --dark-light: #2a3158;
    --light: #F9FAFC;
    --gray: #718096;
    --gray-light: #E2E8F0;
    --success: #38b2ac;
    --gradient-primary: linear-gradient(135deg, #4733FF 0%, #8367ff 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6B35 0%, #ff8c67 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 5rem 0;
    position: relative;
}

section:nth-child(even) {
    background-color: #f5f7fb;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.center {
    text-align: center;
}

.highlight {
    color: var(--primary);
    position: relative;
    z-index: 1;
    display: inline-block; /* Ensure the span is treated as a block for proper highlighting */
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(71, 51, 255, 0.1);
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-text {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.btn-text i {
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
}

.btn-text:hover i {
    opacity: 1;
    transform: translateX(5px);
}

/* Header & Navigation */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.header.scrolled {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.header.scrolled .logo-text {
    color: var(--primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a.btn-primary {
    color: white;
}

.nav-list a.btn-primary::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    height: 2px;
    width: 100%;
    background-color: var(--dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 10rem 0 5rem;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, rgba(71, 51, 255, 0.1) 0%, rgba(71, 51, 255, 0) 70%);
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-image {
    min-width: 400px;
    flex: 1;
    position: relative;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.shape-divider .shape-fill {
    fill: #f5f7fb;
}

/* Two Columns Layout */
.two-columns {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.two-columns .content,
.two-columns .image-container {
    flex: 1;
    min-width: 400px;
}

.two-columns.reverse {
    flex-direction: row-reverse;
}

/* Section Header */
.section-header {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature List */
.feature-list {
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-list li .icon {
    width: 24px;
    margin-right: 1rem;
    color: var(--primary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(71, 51, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.result-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.result-card .icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(71, 51, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

/* Algorithm Features */
.algorithm-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature:hover {
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(71, 51, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    margin-right: 1.5rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    margin-bottom: 0.5rem;
}

.feature-content p {
    margin-bottom: 0;
}

/* Risk Free Section */
.risk-free-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.risk-free-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.risk-free-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-number {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(71, 51, 255, 0.1);
    margin-bottom: 1rem;
}

/* Process Steps */
.process-steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background-color: var(--gray-light);
}

.step {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 1.5rem;
    flex-shrink: 0;
    z-index: 1;
}

.step-content {
    flex: 1;
}

.step-content ul {
    margin-left: 1.5rem;
}

.step-content li {
    margin-bottom: 0.5rem;
    position: relative;
}

.step-content li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.process-cta {
    margin-top: 3rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

/* Next Steps */
.next-steps {
    margin: 2rem 0;
}

.next-steps .step {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    background-color: white;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.next-steps .step-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(71, 51, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1rem;
}

.next-steps .step-text h4 {
    margin-bottom: 0.25rem;
}

.next-steps .step-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Contact Form */
.form-container {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(71, 51, 255, 0.2);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-right: 4rem;
}

.footer-logo .logo-text {
    color: white;
}

.footer-logo p {
    color: var(--gray);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    flex: 1;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
}

.contact-info li {
    display: flex;
    align-items: center;
    color: var(--gray);
}

.contact-info li i {
    margin-right: 0.75rem;
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s forwards;
}

/* Ensure the highlight span inside h1 is visible */
h1.animate-in .highlight {
    opacity: 1;
    display: inline-block;
    visibility: visible !important;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Ensure the highlight span is visible during the animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    1% {
        opacity: 0.01; /* Start with very low opacity */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .two-columns {
        flex-direction: column;
    }

    .two-columns.reverse {
        flex-direction: column;
    }

    .feature-list li {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: white;
        z-index: 1001;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
    }

    .service-card,
    .result-card,
    .risk-free-card,
    .benefit-card {
        padding: 1.5rem;
    }
}



/* Contact Section Improvements */

/* Make the two columns more flexible */
.cta .two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
}

/* Adjust the content column */
.cta .content {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
}

/* Make the form container wider */
.cta .form-container {
    flex: 1;
    min-width: 450px;
    max-width: 650px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Make the form elements more pleasant */
.cta .contact-form .form-group {
    margin-bottom: 20px;
}

.cta .contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.cta .contact-form input,
.cta .contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cta .contact-form input:focus,
.cta .contact-form textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

.cta .contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.cta .contact-form button {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta .contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .cta .two-columns {
        flex-direction: column;
    }

    .cta .content,
    .cta .form-container {
        max-width: 100%;
        min-width: 100%;
    }
}

/* Enhance the form success message */
.cta .form-success {
    text-align: center;
    padding: 40px 20px;
}

.cta .form-success i {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 20px;
}

/* Make the steps more visually appealing */
.cta .next-steps {
    margin-top: 30px;
}

.cta .step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: transform 0.3s;
}

.cta .step:hover {
    transform: translateX(5px);
}

.cta .step-icon {
    background-color: #4a90e2;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.cta .step-icon i {
    font-size: 20px;
}

.cta .step-text h4 {
    margin: 0 0 5px 0;
    color: #222;
}

.cta .step-text p {
    margin: 0;
    color: #555;
}
