/* Glassomorphic Theme Styles */

:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Animated Background - Clean white */
.glass-background {
    position: relative;
    min-height: 100vh;
    background: white;
    overflow: hidden;
}

/* Remove floating orbs */
.glass-background::before,
.glass-background::after {
    display: none;
}

/* Glass Card Styling */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
    background: rgba(255, 255, 255, 0.2);
}

/* Enhanced glass card with stronger blur */
.glass-card-strong {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 3rem;
}

/* Logo banner glass effect */
.glass-logo-banner {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.4);
    padding: 2.5rem 3.5rem;
    transition: all 0.4s ease;
    animation: fadeInScale 0.8s ease-out;
}

.glass-logo-banner:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.5);
    transform: scale(1.02);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Feature cards container */
.glass-features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

/* Individual feature card */
.glass-feature-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.15);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.glass-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glass-feature-card:nth-child(1) { animation-delay: 0.1s; }
.glass-feature-card:nth-child(2) { animation-delay: 0.2s; }
.glass-feature-card:nth-child(3) { animation-delay: 0.3s; }
.glass-feature-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 56px 0 rgba(102, 126, 234, 0.25), 0 0 30px rgba(118, 75, 162, 0.15);
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.9);
}

.glass-feature-card:hover::before {
    opacity: 1;
}

.glass-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #003f7f;
    filter: drop-shadow(0 4px 8px rgba(0, 63, 127, 0.3));
}

.glass-feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.glass-feature-description {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    text-shadow: none;
}

/* Carousel glass overlay */
.glass-carousel-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    position: relative;
}

.glass-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.08) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Button glass styling */
.glass-button {
    background: rgba(255, 255, 255, 0.28) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 14px !important;
    padding: 0.85rem 2.5rem !important;
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    box-shadow: 0 6px 20px 0 rgba(31, 38, 135, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.glass-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.38) !important;
    box-shadow: 0 8px 28px 0 rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.glass-button:hover::before {
    opacity: 1;
}

/* Heading styles */
.glass-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease-out backwards;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-subheading {
    font-size: 1.25rem;
    color: #4a5568;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out 0.2s backwards;
}

/* Hero section glass styling */
.glass-hero-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 28px;
    margin-bottom: 3rem;
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.45);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.glass-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 3rem;
}

.glass-hero-logo {
    max-width: 450px;
    width: 90%;
    margin-bottom: 2rem;
    filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Stats card glass styling */
.glass-stat-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.15);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2d3748;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.glass-stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 56px 0 rgba(102, 126, 234, 0.25), 0 0 30px rgba(118, 75, 162, 0.15);
    background: rgba(255, 255, 255, 0.75);
}

.glass-stat-number {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #2d3748;
}

.glass-stat-label {
    font-size: 1rem;
    opacity: 0.85;
    text-shadow: none;
    color: #4a5568;
}

/* Quick action button glass styling */
.glass-action-button {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 18px !important;
    color: #2d3748 !important;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 110px;
}

.glass-action-button:hover {
    background: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 10px 32px 0 rgba(102, 126, 234, 0.25), 0 0 25px rgba(118, 75, 162, 0.15) !important;
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.9) !important;
}

.glass-action-button .mud-button-label,
.glass-action-button .mud-icon-root,
.glass-action-button svg {
    color: #2d3748 !important;
    fill: #2d3748 !important;
}

/* Particle effect */
.glass-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.glass-particle {
    position: absolute;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    pointer-events: none;
    --base-opacity: 0.5;
}

/* Enhanced glow for particles */
.glass-particle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(118, 75, 162, 0.6), transparent 70%);
    opacity: 0.7;
    filter: blur(8px);
}

/* Particle size variations */
.glass-particle.small {
    width: 8px;
    height: 8px;
    background: rgba(102, 126, 234, 0.4);
}

.glass-particle.medium {
    width: 16px;
    height: 16px;
    background: rgba(118, 75, 162, 0.5);
}

.glass-particle.large {
    width: 24px;
    height: 24px;
    background: rgba(75, 192, 200, 0.4);
}

/* Particle animation */
@keyframes particleFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: var(--base-opacity, 0.6);
    }
    90% {
        opacity: calc(var(--base-opacity, 0.6) * 0.5);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0;
    }
}

/* Add glow effect for larger particles */
.glass-particle.large {
    box-shadow: 0 0 18px rgba(102, 126, 234, 0.6), 0 0 36px rgba(118, 75, 162, 0.4), 0 0 54px rgba(75, 192, 200, 0.2);
    animation-duration: 20s !important;
}

.glass-particle.medium {
    box-shadow: 0 0 14px rgba(102, 126, 234, 0.5), 0 0 28px rgba(118, 75, 162, 0.3);
}

.glass-particle.small {
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.4), 0 0 20px rgba(118, 75, 162, 0.2);
}

/* Pulsing particle effect */
@keyframes particlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: var(--base-opacity, 0.6);
    }
    50% {
        transform: scale(1.3);
        opacity: calc(var(--base-opacity, 0.6) * 1.5);
    }
}

.glass-particle.pulse {
    animation: particlePulse 4s ease-in-out infinite;
}

/* Glowing particle trail effect */
@keyframes particleTrail {
    0% {
        box-shadow: 0 0 12px rgba(102, 126, 234, 0.5), 
                    0 0 24px rgba(118, 75, 162, 0.3);
    }
    50% {
        box-shadow: 0 0 24px rgba(102, 126, 234, 0.8), 
                    0 0 48px rgba(118, 75, 162, 0.5),
                    0 0 72px rgba(75, 192, 200, 0.3);
    }
    100% {
        box-shadow: 0 0 12px rgba(102, 126, 234, 0.5), 
                    0 0 24px rgba(118, 75, 162, 0.3);
    }
}

.glass-particle.trail {
    animation: particleFloat 15s linear infinite, particleTrail 3s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-features-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .glass-logo-banner {
        padding: 2rem;
    }
    
    .glass-heading {
        font-size: 2rem;
    }
    
    .glass-subheading {
        font-size: 1.1rem;
    }
    
    .glass-feature-card {
        padding: 1.75rem;
    }
    
    .glass-carousel-container,
    .glass-hero-section {
        border-radius: 20px;
    }
    
    .glass-hero-content {
        padding: 2rem;
    }
    
    .glass-hero-logo {
        max-width: 300px;
    }
    
    .glass-particles {
        opacity: 0.5;
    }
    
    .glass-particle.large,
    .glass-particle.medium {
        display: none;
    }
}

@media (max-width: 576px) {
    .glass-heading {
        font-size: 1.75rem;
    }
    
    .glass-logo-banner {
        padding: 1.5rem 2rem;
    }
    
    .glass-card-strong {
        padding: 2rem;
    }
    
    .glass-stat-number {
        font-size: 2.25rem;
    }
    
    .glass-hero-section {
        min-height: 350px;
    }
    
    .glass-particles {
        display: none;
    }
}

/* Shimmer effect */
@keyframes shimmer {
    0% { background-position: -1200px 0; }
    100% { background-position: 1200px 0; }
}

.glass-shimmer {
    position: relative;
    overflow: hidden;
}

.glass-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmering 3.5s infinite;
    pointer-events: none;
}

/* Section spacing */
.glass-section {
    margin-bottom: 3rem;
}

.glass-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* Z-index layering for proper stacking */
.glass-background > .container-fluid {
    position: relative;
    z-index: 2;
}

/* Scroll fade effect for particles */
@keyframes scrollFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-particles.visible {
    animation: scrollFade 1s ease-out;
}
