/* VirtualFit Pro - Enhanced Custom Styles */

/* Root Variables */
:root {
    --primary: #7c3aed;
    --secondary: #2563eb;
    --accent: #f43f5e;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #0f172a;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #f43f5e 100%);
    --gradient-secondary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #f43f5e 0%, #7c3aed 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
}

/* Glass Morphism Effect */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

/* Animated Gradient Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: blob 8s infinite ease-in-out;
    mix-blend-mode: multiply;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #7c3aed 0%, #f43f5e 100%);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    top: 40%;
    right: -250px;
    animation-delay: 3s;
}

.blob-3 {
    width: 550px;
    height: 550px;
    background: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
    bottom: -250px;
    left: 20%;
    animation-delay: 6s;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(50px, -20px) scale(1.05);
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Pulse Animation */
@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

/* Line Clamp Utility */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Metric Bar Animation */
.metric-bar {
    transition: width 1.5s ease-in-out;
}

/* Counter Animation */
.counter {
    display: inline-block;
    min-width: 60px;
}

/* Testimonial Card Hover Effects */
.testimonial-card {
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    border-radius: 1rem;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.testimonial-card:hover::before {
    opacity: 0.05;
}

/* Chart Container Styles */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Enhanced Button Styles */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

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

/* Virtual Try-On Demo Styles */
.try-on-demo {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.try-on-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    pointer-events: none;
}

/* Navigation Scroll Effect */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* Feature Card Animation */
.feature-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px) rotateZ(-1deg);
}

/* Pricing Card Special Effects */
.pricing-popular {
    position: relative;
    animation: pulse-slow 3s infinite;
}

.pricing-popular::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Section Transitions */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2), transparent);
}

/* Icon Hover Effects */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--primary);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .blob {
        filter: blur(150px);
        opacity: 0.3;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
}