/* Landing Page Styles */
:root {
    --accent-color: #5D3FD3;
    --accent-hover: #4930A8;
    --accent-light: #8A6FEA;
    --accent-very-light: #EAE5FF;
}

/* Dark theme variables */
[data-bs-theme="dark"] {
    --landing-bg: #121212;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --section-bg: #1a1a1a;
    --footer-bg: #151515;
}

/* Light theme variables */
[data-bs-theme="light"] {
    --landing-bg: #f8f9fa;
    --text-primary: #333;
    --text-secondary: #6c757d;
    --card-bg: #fff;
    --border-color: #dee2e6;
    --section-bg: #f0f0f0;
    --footer-bg: #f8f9fa;
}

body {
    background-color: var(--landing-bg);
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Navbar Styles */
.landing-navbar {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.landing-navbar.scrolled {
    background-color: var(--landing-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
}

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

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, rgba(93, 63, 211, 0.1) 0%, rgba(93, 63, 211, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('/img/landing/grid-pattern.svg') repeat;
    opacity: 0.125;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-weight: 800;
    background: linear-gradient(to right, var(--accent-color), #9066FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.cta-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-buttons .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.cta-buttons .btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.cta-buttons .btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.cta-buttons .btn-outline-primary:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--accent-light));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

/* Features Section */
.features-section {
    background-color: var(--landing-bg);
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--accent-light));
    transition: transform 0.3s;
    transform: scaleX(0);
    transform-origin: left;
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--section-bg);
}

.step-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

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

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--landing-bg);
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
}

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

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: -25px;
    left: -15px;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid var(--accent-color);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: var(--text-secondary);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color), #9066FF);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('/img/landing/grid-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cta-section .cta-buttons {
    position: relative;
    z-index: 1;
}

.cta-section .btn-primary {
    background-color: white;
    border-color: white;
    color: var(--accent-color);
}

.cta-section .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-outline-primary {
    color: white;
    border-color: white;
}

.cta-section .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Footer Styles */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.footer h5 {
    font-weight: 600;
    color: var(--text-primary);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(93, 63, 211, 0.1);
    color: var(--accent-color);
    transition: transform 0.3s, background-color 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
    background-color: var(--accent-color);
    color: white;
}

.footer hr {
    border-color: var(--border-color);
    opacity: 0.3;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 100px 0 40px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card, .step-card, .testimonial-card {
        margin-bottom: 1.5rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .footer [class*="col-"] {
        margin-bottom: 2rem;
    }
}

/* Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility Improvements */
.btn:focus, a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-image img {
        animation: none;
    }

    .fade-in {
        transition: none;
    }

    .cta-buttons .btn:hover,
    .feature-card:hover,
    .step-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}