/* Ervais Landing Page Custom Styles */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Color Variables */
:root {
    --ervais-primary: #14A9FF;
    --ervais-primary-dark: #1089cc;
    --ervais-primary-light: #6fc5ff;
    --ervais-secondary: #2c3e50;
    --ervais-secondary-dark: #1a252f;
    --ervais-secondary-light: #95a5a6;
    --ervais-accent: #FFA500;
    --ervais-accent-dark: #cc8400;
    --ervais-accent-light: #ffc14d;
}

/* Navbar Enhancements */
.navbar-landing {
    transition: all 0.3s ease;
}

.navbar-landing .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-landing .nav-link:hover {
    color: var(--ervais-primary) !important;
}

.navbar-landing .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--ervais-primary);
    transition: width 0.3s ease;
}

.navbar-landing .nav-link:hover::after {
    width: 80%;
}

/* Button Animations */
.cta-button {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 169, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 169, 255, 0.3);
}

.btn-outline-primary:hover {
    background: var(--ervais-primary) !important;
    border-color: var(--ervais-primary) !important;
    color: white !important;
}

/* Feature Cards Animation */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Icon Container Animation */
.avatar-lg {
    transition: all 0.3s ease;
}

.feature-card:hover .avatar-lg {
    transform: scale(1.1) rotate(5deg);
}

/* Swiper Customization */
.swiper-pagination-bullet {
    background: var(--ervais-primary);
    opacity: 0.3;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

/* App Store Button Hover */
.app-store-btn {
    display: inline-block;
    transition: all 0.3s ease;
}

.app-store-btn:hover {
    transform: translateY(-5px);
}

.app-store-btn img {
    transition: all 0.3s ease;
}

.app-store-btn:hover img {
    filter: brightness(1.1);
}

/* Section Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    animation: fadeInUp 0.8s ease-out;
}

/* Footer Links */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #14A9FF !important;
    text-decoration: none;
}

/* Back to Top Button */
.landing-back-top {
    background: var(--ervais-primary) !important;
    border-color: var(--ervais-primary) !important;
    transition: all 0.3s ease;
}

.landing-back-top:hover {
    background: var(--ervais-primary-dark) !important;
    transform: translateY(-3px);
}

/* Badge Styles */
.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Image Shadows */
.feature-image {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-image {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* List Icons */
.list-unstyled li i {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.3rem !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .cta-button {
        padding: 10px 24px !important;
        font-size: 1rem !important;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Utility Classes */
.hover-text-white:hover {
    color: white !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--ervais-primary) 0%, var(--ervais-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
