/* Landing Page Custom Styles - Purple Theme */
.landing-page {
    scroll-behavior: smooth;
}

/* Purple Theme Variables */
:root {
    --primary-color: #7c3aed;
    --secondary-color: #5b21b6;
    --accent-color: #8b5cf6;
    --purple-light: #a78bfa;
    --purple-dark: #4c1d95;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced hover effects */
.benefit-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Button enhancements */
.btn-cta {
    position: relative;
    overflow: hidden;
}

.btn-cta::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;
}

.btn-cta:hover::before {
    left: 100%;
}

/* Modal enhancements */
.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

/* Testimonials Carousel Enhancements */
.testimonials-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.testimonial {
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.testimonial-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

/* Carousel Controls Enhancement */
.carousel-control-prev,
.carousel-control-next {
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    transform: translateY(-50%) scale(1.1);
}

/* Carousel Indicators Enhancement */
.carousel-indicators [data-bs-target] {
    transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target]:hover {
    transform: scale(1.2);
}

.carousel-indicators .active {
    background-color: var(--secondary-color);
    transform: scale(1.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Loading states */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .benefit-item {
        margin-bottom: 1.5rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    /* Carousel mobile adjustments */
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: -20px;
    }
    
    .carousel-control-next {
        right: -20px;
    }
    
    .carousel-indicators {
        bottom: -40px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn-cta {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
    }
    
    .benefit-icon i {
        font-size: 1.2rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn-login,
    .modal,
    .footer {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: #000 !important;
    }
    
    .section-alt {
        background: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #000080;
        --text-dark: #000000;
        --text-light: #333333;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-animate {
        opacity: 1;
        transform: none;
    }
}

/* Focus styles for accessibility */
.btn-cta:focus,
.btn-login:focus,
.btn-modal-login:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}
