/* 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, #4facfe 0%, #00f2fe 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-gradient: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%);
}

/* Animated Background */
.glass-background {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #4facfe 50%, #00d4ff 75%, #1e88e5 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
    padding-bottom: 0;
    margin-bottom: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating orbs for background */
.glass-background::before,
.glass-background::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.glass-background::before {
    width: 500px;
    height: 500px;
    background: rgba(79, 172, 254, 0.4);
    top: -100px;
    left: -100px;
    animation-delay: -5s;
}

.glass-background::after {
    width: 400px;
    height: 400px;
    background: rgba(0, 212, 255, 0.3);
    bottom: -100px;
    right: -100px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* 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), 0 0 40px rgba(79, 172, 254, 0.2);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.glass-card-strong::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    pointer-events: none;
}

/* 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.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.glass-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 212, 255, 0.1) 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(-8px) scale(1.02);
    box-shadow: 0 12px 48px 0 rgba(79, 172, 254, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(79, 172, 254, 0.4);
}

.glass-feature-card:hover::before {
    opacity: 1;
}

.glass-feature-card:hover .glass-feature-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(79, 172, 254, 0.4));
}

.glass-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
    display: inline-block;
}

.glass-feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.glass-feature-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 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(79, 172, 254, 0.15) 0%, rgba(0, 212, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Button glass styling */
.glass-button {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    padding: 0.75rem 2rem !important;
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.3) !important;
    transition: all 0.3s ease;
    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(79, 172, 254, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 6px 24px 0 rgba(79, 172, 254, 0.5), 0 0 20px rgba(0, 212, 255, 0.3) !important;
    transform: translateY(-2px);
    border-color: rgba(79, 172, 254, 0.5) !important;
}

.glass-button:hover::before {
    opacity: 1;
}

/* Heading styles */
.glass-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-subheading {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out 0.2s backwards;
}

/* 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.5rem;
    }
    
    .glass-carousel-container {
        border-radius: 16px;
    }
}

@media (max-width: 576px) {
    .glass-heading {
        font-size: 1.75rem;
    }
    
    .glass-logo-banner {
        padding: 1.5rem 2rem;
    }
    
    .glass-card-strong {
        padding: 2rem;
    }
}

/* Shimmer effect */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 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: shimmer 3s infinite;
}

/* Particle effect (optional decorative element) */
.glass-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.glass-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
    animation: particleFloat 15s linear infinite;
    opacity: var(--base-opacity, 0.6);
}

/* Multiple particle animation variations */
@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: calc(var(--base-opacity, 0.6) * 1.3);
    }
    50% {
        transform: translateY(50vh) translateX(50px) rotate(180deg);
        opacity: var(--base-opacity, 0.6);
    }
    90% {
        opacity: calc(var(--base-opacity, 0.6) * 0.5);
    }
    100% {
        transform: translateY(-10vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes particleFloatReverse {
    0% {
        transform: translateY(-10vh) translateX(100vw) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: calc(var(--base-opacity, 0.6) * 1.2);
    }
    50% {
        transform: translateY(50vh) translateX(50vw) rotate(-180deg);
        opacity: calc(var(--base-opacity, 0.6) * 1.3);
    }
    90% {
        opacity: calc(var(--base-opacity, 0.6) * 0.6);
    }
    100% {
        transform: translateY(100vh) translateX(0) rotate(-360deg);
        opacity: 0;
    }
}

@keyframes particleDrift {
    0% {
        transform: translate(0, 100vh) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: calc(var(--base-opacity, 0.6) * 1.1);
    }
    50% {
        transform: translate(-30px, 50vh) rotate(180deg);
        opacity: var(--base-opacity, 0.6);
    }
    80% {
        opacity: calc(var(--base-opacity, 0.6) * 0.7);
    }
    100% {
        transform: translate(-60px, -10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Slower, more subtle particle movements */
@keyframes particleFloatSlow {
    0% {
        transform: translateY(110vh) translateX(-20px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    15% {
        opacity: var(--base-opacity, 0.6);
    }
    50% {
        transform: translateY(55vh) translateX(30px) rotate(90deg) scale(1);
    }
    85% {
        opacity: calc(var(--base-opacity, 0.6) * 0.7);
    }
    100% {
        transform: translateY(-15vh) translateX(80px) rotate(180deg) scale(0.9);
        opacity: 0;
    }
}

@keyframes particleOrbit {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: var(--base-opacity, 0.6);
    }
    25% {
        transform: translate(40px, 30vh) rotate(90deg);
    }
    50% {
        transform: translate(0, 60vh) rotate(180deg);
    }
    75% {
        transform: translate(-40px, 30vh) rotate(270deg);
    }
    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 15px rgba(79, 172, 254, 0.7), 0 0 30px rgba(0, 212, 255, 0.4), 0 0 45px rgba(79, 172, 254, 0.2);
    animation-duration: 20s !important;
}

.glass-particle.medium {
    box-shadow: 0 0 12px rgba(79, 172, 254, 0.6), 0 0 24px rgba(0, 212, 255, 0.3);
}

.glass-particle.small {
    box-shadow: 0 0 8px rgba(79, 172, 254, 0.4), 0 0 16px rgba(0, 212, 255, 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;
}

/* Interactive particle attraction effect */
.glass-feature-card:hover ~ .glass-particles .glass-particle,
.glass-feature-card:hover + .glass-particles .glass-particle {
    animation-play-state: paused;
}

/* Reduce particle count and effects on mobile */
@media (max-width: 768px) {
    .glass-particles {
        opacity: 0.5;
    }
    
    .glass-particle.large,
    .glass-particle.medium {
        display: none;
    }
}

@media (max-width: 576px) {
    .glass-particles {
        display: none;
    }
}

/* 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;
}

/* Glowing particle trail effect */
@keyframes particleTrail {
    0% {
        box-shadow: 0 0 10px rgba(79, 172, 254, 0.5), 
                    0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(79, 172, 254, 0.8), 
                    0 0 40px rgba(0, 212, 255, 0.5),
                    0 0 60px rgba(79, 172, 254, 0.3);
    }
    100% {
        box-shadow: 0 0 10px rgba(79, 172, 254, 0.5), 
                    0 0 20px rgba(0, 212, 255, 0.3);
    }
}

.glass-particle.trail {
    animation: particleFloat 15s linear infinite, particleTrail 3s ease-in-out infinite;
}
