/* ================================================
   SheraAI LMS - ULTRA PREMIUM GLASSMORPHISM V3
   Author: SheraAI Technologies | Shaheer
   Version: 3.0.0 - World-Class Edition
   ================================================ */

/* ===== Extended Premium Variables ===== */
:root {
    /* Ultra Glassmorphism */
    --frost-blur: 24px;
    --frost-blur-heavy: 48px;
    --frost-saturation: 180%;
    --glass-frost: rgba(255, 255, 255, 0.03);
    --glass-frost-light: rgba(255, 255, 255, 0.08);
    --glass-frost-medium: rgba(255, 255, 255, 0.12);
    --glass-inner-glow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    --glass-outer-glow: 0 0 40px rgba(99, 102, 241, 0.1);
    
    /* Aurora Colors */
    --aurora-1: rgba(99, 102, 241, 0.4);
    --aurora-2: rgba(139, 92, 246, 0.3);
    --aurora-3: rgba(6, 182, 212, 0.3);
    --aurora-4: rgba(16, 185, 129, 0.2);
    
    /* Neon Effects */
    --neon-intense: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 40px var(--primary);
    --neon-subtle: 0 0 10px rgba(99, 102, 241, 0.3), 0 0 20px rgba(99, 102, 241, 0.2);
    --neon-border: 0 0 1px var(--primary), 0 0 2px var(--primary), 0 0 4px var(--primary);
    
    /* 3D Depth System */
    --depth-layer-1: 0 1px 2px rgba(0, 0, 0, 0.05);
    --depth-layer-2: 0 4px 8px rgba(0, 0, 0, 0.1);
    --depth-layer-3: 0 8px 16px rgba(0, 0, 0, 0.15);
    --depth-layer-4: 0 16px 32px rgba(0, 0, 0, 0.2);
    --depth-layer-5: 0 32px 64px rgba(0, 0, 0, 0.25);
    
    /* Premium Gradients */
    --gradient-aurora: linear-gradient(135deg, var(--aurora-1), var(--aurora-2), var(--aurora-3));
    --gradient-premium: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6B8DD6 100%);
    --gradient-gold: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    --gradient-cosmic: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    
    /* Animation Timings */
    --spring-bounce: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --spring-smooth: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-back: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== Aurora Background Effect ===== */
.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, var(--aurora-1), transparent),
        radial-gradient(ellipse 60% 40% at 80% 20%, var(--aurora-2), transparent),
        radial-gradient(ellipse 70% 50% at 50% 80%, var(--aurora-3), transparent);
    animation: auroraShift 20s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes auroraShift {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: translateX(5%) translateY(-5%) scale(1.05);
        filter: hue-rotate(15deg);
    }
    50% {
        transform: translateX(-3%) translateY(3%) scale(0.95);
        filter: hue-rotate(-15deg);
    }
    75% {
        transform: translateX(-5%) translateY(-3%) scale(1.03);
        filter: hue-rotate(10deg);
    }
}

/* ===== Noise Texture Overlay ===== */
.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* ===== Ultra Premium Glass Cards ===== */
.ultra-glass {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(var(--frost-blur)) saturate(var(--frost-saturation));
    -webkit-backdrop-filter: blur(var(--frost-blur)) saturate(var(--frost-saturation));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow:
        var(--glass-inner-glow),
        var(--depth-layer-3),
        var(--glass-outer-glow);
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.ultra-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
}

.ultra-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transition: left 0.8s var(--ease-out-expo);
}

.ultra-glass:hover::after {
    left: 150%;
}

.ultra-glass:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        var(--glass-inner-glow),
        var(--depth-layer-5),
        0 0 60px rgba(99, 102, 241, 0.2),
        inset 0 0 30px rgba(99, 102, 241, 0.05);
}

/* ===== Neon Border Card ===== */
.neon-card {
    position: relative;
    background: rgba(15, 23, 42, 0.8);
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 2rem;
}

.neon-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.neon-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    border-radius: inherit;
    z-index: -1;
}

.neon-card:hover::before {
    opacity: 1;
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { opacity: 0.5; filter: blur(2px); }
    50% { opacity: 1; filter: blur(4px); }
}

/* ===== Frosted Glass Panel ===== */
.frost-panel {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(var(--frost-blur-heavy)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--frost-blur-heavy)) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* ===== Liquid Glass Effect ===== */
.liquid-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(99, 102, 241, 0.1),
        transparent,
        rgba(139, 92, 246, 0.1),
        transparent
    );
    animation: liquidRotate 10s linear infinite;
}

@keyframes liquidRotate {
    100% { transform: rotate(360deg); }
}

.liquid-glass > * {
    position: relative;
    z-index: 1;
}

/* ===== Holographic Card ===== */
.holo-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 50%, 
        rgba(6, 182, 212, 0.1) 100%
    );
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.holo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: holoShine 3s ease-in-out infinite;
}

@keyframes holoShine {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

/* ===== Premium Button Styles ===== */
.btn-ultra {
    position: relative;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    padding: 16px 36px;
    font-weight: 600;
    color: white;
    overflow: hidden;
    transition: all 0.4s var(--spring-smooth);
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-ultra::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
}

.btn-ultra:hover::before {
    left: 100%;
}

.btn-ultra:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(99, 102, 241, 0.5),
        0 0 20px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ultra:active {
    transform: translateY(-2px) scale(1.01);
}

/* ===== Glowing Button ===== */
.btn-glow-intense {
    position: relative;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-light);
    padding: 14px 34px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.4s ease;
}

.btn-glow-intense::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-primary);
    border-radius: inherit;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-glow-intense:hover {
    color: white;
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--neon-subtle);
}

.btn-glow-intense:hover::before {
    opacity: 0.5;
}

/* ===== Animated Text Gradient ===== */
.text-gradient-animate {
    background: linear-gradient(
        90deg,
        #fff 0%,
        #a5b4fc 25%,
        #818cf8 50%,
        #a5b4fc 75%,
        #fff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradientFlow 4s linear infinite;
}

@keyframes textGradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ===== Glowing Text ===== */
.text-glow-intense {
    text-shadow: 
        0 0 10px rgba(99, 102, 241, 0.5),
        0 0 20px rgba(99, 102, 241, 0.3),
        0 0 40px rgba(99, 102, 241, 0.2);
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
}

/* ===== Floating Particles ===== */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
        transform: scale(1);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-10vh) translateX(100px) scale(0.5);
        opacity: 0;
    }
}

/* ===== Cursor Trail ===== */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
    mix-blend-mode: screen;
    transition: transform 0.1s ease;
}

/* ===== Premium Nav Enhancement ===== */
.navbar.scrolled {
    background: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.4s var(--spring-smooth);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
    box-shadow: 0 0 10px var(--primary);
}

.nav-link:hover {
    color: white;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* ===== Hero Enhancements ===== */
.hero-visual {
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--aurora-1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(60px);
    animation: heroGlow 5s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

/* ===== Premium Phone Mockup ===== */
.phone-frame {
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: var(--gradient-primary);
    border-radius: 45px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(15px);
    animation: phoneGlow 3s ease-in-out infinite;
}

@keyframes phoneGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Phone Reflection */
.phone-frame::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 30%;
    height: 40%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 50%
    );
    border-radius: 20px;
    pointer-events: none;
}

/* ===== Feature Card Premium ===== */
.feature-card {
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.05)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.feature-card .feature-icon {
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 0 20px rgba(99, 102, 241, 0.4),
        0 0 40px rgba(99, 102, 241, 0.2);
}

/* ===== Role Card Premium ===== */
.role-detail-card {
    position: relative;
    overflow: hidden;
}

.role-detail-card .role-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
    transition: all 0.5s var(--spring-smooth);
}

.role-detail-card:hover .role-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ===== Pricing Card Premium ===== */
.pricing-highlight {
    position: relative;
    text-align: center;
    padding: 4rem;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.05) 100%
    );
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.pricing-highlight::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.2;
    filter: blur(20px);
}

.price-tag {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.price-tag .price {
    font-size: 5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.price-tag .period {
    font-size: 1.5rem;
    color: var(--gray-400);
}

/* ===== Contact Method Premium ===== */
.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    transition: all 0.4s ease;
}

.contact-method:hover {
    transform: translateX(10px);
    border-color: rgba(99, 102, 241, 0.3);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

/* ===== Form Premium ===== */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--gray-200);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.2),
        0 0 20px rgba(99, 102, 241, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-300);
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--primary-light);
}

/* ===== Download Cards Premium ===== */
.download-option {
    text-align: center;
    padding: 3rem;
    transition: all 0.5s var(--spring-smooth);
}

.download-option:hover {
    transform: translateY(-10px);
}

.download-option .platform-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    transition: all 0.4s ease;
}

.download-option:hover .platform-icon {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

/* ===== Footer Premium ===== */
.footer {
    position: relative;
    background: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary),
        var(--secondary),
        var(--primary),
        transparent
    );
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 3rem;
}

.footer a {
    position: relative;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary-light);
    padding-left: 10px;
}

.footer a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

.footer a:hover::before {
    width: 5px;
}

/* ===== Mobile Optimizations ===== */
@media (max-width: 768px) {
    .ultra-glass:hover {
        transform: translateY(-4px) scale(1);
    }
    
    .btn-ultra:hover {
        transform: translateY(-2px) scale(1);
    }
    
    .cursor-trail,
    .cursor-glow {
        display: none !important;
    }
    
    .price-tag .price {
        font-size: 3.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    .aurora-bg::before,
    .liquid-glass::before,
    .ultra-glass::after,
    .particle {
        animation: none !important;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}

/* ===== Selection Color ===== */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}
