/* Modern Glassmorphism & Effects - GalaDevs */

:root {
    /* Enhanced Color Palette */
    --primary: #22397E;
    --primary-dark: #1a2c61;
    --primary-light: #3a5199;
    --primary-accent: #4A6FA5;
    --dark-blue: #1a2c61;
    --darker-blue: #131f45;
    --extra-dark: #2d4a8a;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(34, 57, 126, 0.1);
    --blur: blur(16px);
    --blur-lg: blur(24px);
    --blur-xl: blur(40px);
    
    /* Modern Gradients */
    --gradient-mesh: 
        radial-gradient(at 40% 20%, rgba(34, 57, 126, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(58, 81, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(74, 111, 165, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(107, 143, 196, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(26, 44, 97, 0.1) 0px, transparent 50%);
    
    --gradient-primary: linear-gradient(135deg, #22397E 0%, #4A6FA5 100%);
    --gradient-hero: linear-gradient(135deg, rgba(34, 57, 126, 0.9) 0%, rgba(74, 111, 165, 0.8) 100%);
}

[data-theme="dark"] {
    --glass-bg: rgba(15, 20, 25, 0.6);
    --glass-border: rgba(34, 57, 126, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(34, 57, 126, 0.2);
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px 0 rgba(34, 57, 126, 0.2);
    border-color: rgba(34, 57, 126, 0.3);
}

.glass-card-strong {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

[data-theme="dark"] .glass-card-strong {
    background: rgba(15, 20, 25, 0.8);
}

/* Glass Header */
.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(34, 57, 126, 0.1);
    box-shadow: 0 4px 24px rgba(34, 57, 126, 0.08);
}

[data-theme="dark"] .glass-header {
    background: rgba(10, 14, 26, 0.85);
    border-bottom-color: rgba(34, 57, 126, 0.2);
}

/* Glass Header Responsive Enhancements */
@media (max-width: 1024px) {
    .glass-header {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
}

@media (max-width: 768px) {
    .glass-header {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 2px 16px rgba(34, 57, 126, 0.06);
    }
}

@media (max-width: 450px) {
    .glass-header {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

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

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(34, 57, 126, 0.2) 50%,
        transparent 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(34, 57, 126, 0.3),
                0 0 40px rgba(34, 57, 126, 0.2),
                0 0 60px rgba(34, 57, 126, 0.1);
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(34, 57, 126, 0.4),
                0 0 60px rgba(34, 57, 126, 0.3),
                0 0 90px rgba(34, 57, 126, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Parallax Background */
.parallax-bg {
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Morphing Border */
.morph-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                var(--gradient-primary) border-box;
    border-radius: 1.25rem;
}

/* Frosted Glass Button */
.btn-glass {
    background: rgba(34, 57, 126, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 57, 126, 0.2);
    color: var(--primary);
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-glass:hover {
    background: rgba(34, 57, 126, 0.2);
    border-color: rgba(34, 57, 126, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 57, 126, 0.2);
}

.btn-glass-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-glass-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(34, 57, 126, 0.3);
}

/* Smooth Scroll Snap */
.scroll-snap {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.scroll-snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Card Hover Scale */
.hover-scale {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(34, 57, 126, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Gradient Border Animation */
@keyframes gradient-border {
    0%, 100% {
        border-color: #22397E;
    }
    50% {
        border-color: #4A6FA5;
    }
}

.animated-border {
    animation: gradient-border 3s ease-in-out infinite;
}

/* Text Reveal Animation */
@keyframes text-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-reveal {
    animation: text-reveal 0.8s ease-out forwards;
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: text-reveal 0.6s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

/* Magnetic Button Effect */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Perspective Card */
.perspective-card {
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.perspective-card:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Blob Animation */
@keyframes blob {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.blob {
    animation: blob 8s ease-in-out infinite;
}

/* Micro Interactions */
.micro-interaction {
    transition: all 0.2s ease;
}

.micro-interaction:hover {
    transform: scale(1.02);
}

.micro-interaction:active {
    transform: scale(0.98);
}

/* Loading Skeleton */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(34, 57, 126, 0.05) 0%,
        rgba(34, 57, 126, 0.15) 50%,
        rgba(34, 57, 126, 0.05) 100%
    );
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Enhanced Shadows */
.shadow-intense {
    box-shadow: 0 20px 60px rgba(34, 57, 126, 0.25),
                0 10px 40px rgba(34, 57, 126, 0.15);
}

.shadow-soft {
    box-shadow: 0 5px 20px rgba(34, 57, 126, 0.08),
                0 2px 8px rgba(34, 57, 126, 0.05);
}

/* Neon Glow */
.neon-glow {
    text-shadow: 0 0 10px rgba(34, 57, 126, 0.8),
                 0 0 20px rgba(34, 57, 126, 0.6),
                 0 0 30px rgba(34, 57, 126, 0.4),
                 0 0 40px rgba(34, 57, 126, 0.2);
}

/* Smooth Transitions */
.smooth-all {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.smooth-transform {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Background Patterns */
.dots-pattern {
    background-image: radial-gradient(rgba(34, 57, 126, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.grid-pattern {
    background-image: 
        linear-gradient(rgba(34, 57, 126, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 57, 126, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}
