/* enhanced.css - Sentuhan Premium */

/* Floating Particles Background */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

/* Animated Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, #0ea5e9, #3b82f6, #6366f1, #0ea5e9);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Typewriter Effect */
.typewriter-text {
    overflow: hidden;
    border-right: 2px solid #0ea5e9;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #0ea5e9; }
}

/* Enhanced Button */
.btn-jelajahi-enhanced {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(45deg, #0ea5e9, #3b82f6, #6366f1);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    box-shadow: 
        0 10px 30px rgba(14, 165, 233, 0.3),
        0 0 0 1px rgba(14, 165, 233, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-jelajahi-enhanced:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(14, 165, 233, 0.4),
        0 0 0 1px rgba(14, 165, 233, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: gradientShift 2s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Logo Glow Effect */
.logo-glow {
    position: relative;
    box-shadow: 
        0 0 60px rgba(14, 165, 233, 0.3),
        inset 0 0 20px rgba(14, 165, 233, 0.1);
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { 
        box-shadow: 
            0 0 60px rgba(14, 165, 233, 0.3),
            inset 0 0 20px rgba(14, 165, 233, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 90px rgba(14, 165, 233, 0.4),
            inset 0 0 30px rgba(14, 165, 233, 0.2);
    }
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.1), rgba(59, 130, 246, 0.05));
    backdrop-filter: blur(10px);
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(0, -40px) rotate(0deg); }
    75% { transform: translate(-20px, -20px) rotate(-5deg); }
}

/* Hover Effect for Cards */
.enhanced-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, 
        rgba(30, 41, 59, 0.8), 
        rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.enhanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.7s ease;
}

.enhanced-card:hover::before {
    left: 100%;
}

.enhanced-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 
        0 20px 40px rgba(14, 165, 233, 0.15),
        0 0 0 1px rgba(14, 165, 233, 0.1);
}

/* Highlight Text */
.highlight-text {
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to right, 
        rgba(14, 165, 233, 0.2), 
        rgba(59, 130, 246, 0.2));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlight-text:hover::after {
    transform: scaleX(1);
}

/* Custom Animations */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

/* Page Transitions */
.page-transition {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Optimizations */
@media (max-width: 768px) {
    .floating-shape {
        display: none;
    }
    
    .logo-glow {
        width: 120px;
        height: 120px;
    }
    
    .gradient-text {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .video-background,
    .floating-particles,
    .floating-shape,
    .btn-jelajahi-enhanced {
        display: none;
    }
}