/*
 * PREMIUM EFFECTS CSS
 * ==================
 * Efek-efek premium dan animasi canggih untuk website modern
 */

/* ===== GLASS MORPHISM EFFECTS ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(44, 90, 160, 0.1);
}

.glass-dark {
    background: rgba(44, 90, 160, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(44, 90, 160, 0.2);
}

/* ===== FLOATING ELEMENTS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(-10px); }
    50% { transform: translateY(0px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation.reverse {
    animation: floatReverse 6s ease-in-out infinite;
}

.float-animation.delay-1 {
    animation-delay: 1s;
}

.float-animation.delay-2 {
    animation-delay: 2s;
}

.float-animation.delay-3 {
    animation-delay: 3s;
}

/* ===== GRADIENT ANIMATIONS ===== */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animated {
    background: linear-gradient(270deg, 
        var(--primary-blue), 
        var(--secondary-teal), 
        var(--primary-blue-light),
        var(--secondary-green));
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(44, 90, 160, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

.hover-tilt {
    transition: transform 0.3s ease;
}

.hover-tilt:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(10deg);
}

/* ===== SHIMMER EFFECTS ===== */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shimmer 2s infinite;
}

/* ===== PULSE EFFECTS ===== */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.pulse-effect {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== GLOW EFFECTS ===== */
.glow-blue {
    box-shadow: 0 0 20px rgba(44, 90, 160, 0.3);
}

.glow-blue:hover {
    box-shadow: 0 0 30px rgba(44, 90, 160, 0.5);
}

.glow-teal {
    box-shadow: 0 0 20px rgba(23, 162, 184, 0.3);
}

.glow-teal:hover {
    box-shadow: 0 0 30px rgba(23, 162, 184, 0.5);
}

.text-glow {
    text-shadow: 0 0 10px rgba(44, 90, 160, 0.5);
}

/* ===== RIPPLE EFFECTS ===== */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple-effect:active::after {
    width: 300px;
    height: 300px;
}

/* ===== PARTICLE EFFECTS ===== */
.particles-bg {
    position: relative;
    overflow: hidden;
}

.particles-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(44, 90, 160, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(23, 162, 184, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(44, 90, 160, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, rgba(23, 162, 184, 0.1) 1px, transparent 1px);
    background-size: 100px 100px, 80px 80px, 120px 120px, 90px 90px;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* ===== GRADIENT TEXT EFFECTS ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.gradient-text-animated {
    background: linear-gradient(270deg, 
        var(--primary-blue), 
        var(--secondary-teal), 
        var(--primary-blue-light));
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

/* ===== MORPHING EFFECTS ===== */
@keyframes morph {
    0%, 100% { border-radius: 20px 40px 60px 80px; }
    25% { border-radius: 80px 20px 40px 60px; }
    50% { border-radius: 60px 80px 20px 40px; }
    75% { border-radius: 40px 60px 80px 20px; }
}

.morphing-shape {
    animation: morph 8s ease-in-out infinite;
}

/* ===== PARALLAX EFFECTS ===== */
.parallax-slow {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-medium {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-fast {
    transform: translateZ(0);
    will-change: transform;
}

/* ===== REVEAL ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal-up {
    animation: slideInUp 0.8s ease forwards;
}

.reveal-left {
    animation: slideInLeft 0.8s ease forwards;
}

.reveal-right {
    animation: slideInRight 0.8s ease forwards;
}

.reveal-scale {
    animation: fadeInScale 0.8s ease forwards;
}

/* ===== STAGGER ANIMATIONS ===== */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease 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; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* ===== INTERACTIVE BACKGROUNDS ===== */
.interactive-bg {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
    position: relative;
    overflow: hidden;
}

.interactive-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ===== LOADING ANIMATIONS ===== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0, -30px, 0); }
    70% { transform: translate3d(0, -15px, 0); }
    90% { transform: translate3d(0, -4px, 0); }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(44, 90, 160, 0.1);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-blue);
    animation: bounce 1.4s ease-in-out both infinite;
}

/* ===== SCROLL TRIGGERED ANIMATIONS ===== */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.scroll-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.scroll-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .particles-bg::before {
        background-size: 60px 60px, 50px 50px, 70px 70px, 55px 55px;
    }
    
    .hover-lift:hover {
        transform: translateY(-4px);
    }
    
    .float-animation {
        animation-duration: 4s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-animation,
    .gradient-animated,
    .shimmer-effect::before,
    .pulse-effect,
    .morphing-shape,
    .particles-bg::before,
    .interactive-bg::before {
        animation: none;
    }
    
    .hover-lift,
    .hover-scale,
    .hover-rotate,
    .hover-tilt {
        transition: none;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}