/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    overflow: hidden;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.25);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-glow {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

/* Styling untuk tombol Jelajahi yang baru */
.btn-jelajahi {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(45deg, #0ea5e9, #3b82f6, #6366f1, #0ea5e9);
    background-size: 300% 300%;
    transition: all 0.6s ease;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
    border: none;
}

.btn-jelajahi::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: -1;
}

.btn-jelajahi::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(45deg, #0ea5e9, #3b82f6);
    border-radius: 9999px;
    z-index: -1;
}

.btn-jelajahi:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.4);
    background-position: 100% 100%;
}

.btn-jelajahi:hover::before {
    animation: shine 1s infinite;
}

.btn-jelajahi:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}

/* Efek partikel kilau */
.sparkle {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: sparkle 1s ease-out forwards;
}

@keyframes sparkle {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1);
        opacity: 0;
    }
}

/* enhanced.css - MOBILE FIXES */

/* Ensure mobile menu works properly */
@media (max-width: 1023px) {
    /* Fix for mobile menu positioning */
    #mobile-menu {
        height: calc(100vh - 4rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* Mobile menu item spacing */
    .mobile-dropdown-content {
        background: rgba(15, 23, 42, 0.7);
        border-left: 2px solid rgba(14, 165, 233, 0.3);
        margin-left: 0.5rem;
    }
    
    /* Fix for iOS backdrop blur */
    @supports (-webkit-touch-callout: none) {
        #mobile-menu {
            background: rgba(15, 23, 42, 0.98);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }
    }
    
    /* Better touch targets */
    .mobile-dropdown-toggle,
    #mobile-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

/* Fix for mobile video background */
@media (max-width: 768px) {
    .video-container {
        height: 100vh;
        min-height: -webkit-fill-available; /* For mobile browsers */
    }
    
    .video-container video {
        height: 100%;
        object-fit: cover;
    }
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
    #mobile-menu .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}