/* Custom Animations */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: auto;
}

@keyframes drift1 {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-30px, 20px, 0);
    }
}
@keyframes drift2 {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(20px, -20px, 0);
    }
}

.animate-drift-1 {
    animation: drift1 24s ease-in-out infinite alternate;
}
.animate-drift-2 {
    animation: drift2 28s ease-in-out infinite alternate;
}

@keyframes fall {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}
.animate-fall {
    animation: fall 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}


/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Services Background - Desktop Only */
@media (min-width: 768px) {
    .services-bg {
        background-image: url('assets/bg.jpg');
        background-attachment: fixed;
        background-size: cover;
        background-position: center;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #030303;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00f3ff;
}

/* Selection */
::selection {
    background: rgba(0, 243, 255, 0.2);
    color: #fff;
}

/* Mobile Menu Hamburger Animation */
#mobile-menu-toggle.mobile-menu-open .mobile-menu-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#mobile-menu-toggle.mobile-menu-open .mobile-menu-icon span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}
#mobile-menu-toggle.mobile-menu-open .mobile-menu-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay Animations */
#mobile-menu {
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease-out;
}

#mobile-menu.mobile-menu-visible {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu-panel {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.99);
    transition:
        opacity 220ms ease-out,
        transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

#mobile-menu.mobile-menu-visible #mobile-menu-panel {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    #mobile-menu,
    #mobile-menu-panel,
    #mobile-menu-toggle .mobile-menu-icon span {
        transition: none !important;
    }
}

