/* VitalVault Index Page Enhancements */

/* Custom rounded border radius */
.rounded-3xl {
    border-radius: 1.5rem !important;
}

/* Enhanced hero section */
.hero-title {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Feature cards hover effects */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 175, 55, 0.2) !important;
}

.feature-icon {
    transition: all 0.3s ease;
}

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

/* Blog cards hover effects */
.blog-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-12px);
    border-color: rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 175, 55, 0.2) !important;
}

.blog-card:hover .card-img-top {
    transform: scale(1.1);
}

.blog-card .badge {
    transition: all 0.3s ease;
}

.blog-card:hover .badge {
    transform: scale(1.05);
}

/* Enhanced buttons */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-enhanced::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.6s ease;
    z-index: -1;
}

.btn-enhanced:hover::before {
    left: 100%;
}

/* Glass effects enhancement */
.glass-enhanced {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.glass-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

/* Testimonial enhancements */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light), var(--color-primary));
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
    filter: blur(1px);
}

/* Hero logo container animation */
.logo-container {
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Section spacing improvements */
.section-spacing {
    padding: 6rem 0;
}

/* Enhanced input group styling */
.input-group-enhanced .form-control {
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.input-group-enhanced .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.input-group-enhanced .input-group-text {
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-right: none;
}

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

/* Enhanced text shadows for better readability */
.text-shadow-enhanced {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

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

/* Responsive improvements */
@media (max-width: 768px) {
    .feature-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .blog-card:hover {
        transform: translateY(-6px);
    }
    
    .section-spacing {
        padding: 4rem 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .section-spacing {
        padding: 3rem 0;
    }
}

/* Enhanced loading states */
.loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Enhanced focus styles for accessibility */
.focus-enhanced:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

/* Print styles */
@media print {
    .bg-marble {
        background: white !important;
    }
    
    .glass, .card {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .text-accent {
        color: #333 !important;
    }
}
