/* Custom styles and animations */
* {
    scroll-behavior: smooth;
}

/* Blob animations */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 50px) scale(1.05);
    }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blob 20s ease-in-out infinite;
}

.blob-1 {
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: #1e40af;
}

.blob-2 {
    top: 60%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: #f59e0b;
    animation-delay: -5s;
}

.blob-3 {
    bottom: 10%;
    left: 30%;
    width: 250px;
    height: 250px;
    background: #7c3aed;
    animation-delay: -10s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a1128;
}

::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #fcd34d;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.inactive {
    opacity: 0;
    pointer-events: none;
}

/* Geometric accent shapes */
.geo-accent {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-style: solid;
}

.geo-circle {
    border-radius: 50%;
    border: 3px solid #f59e0b;
}

/* Hover effects for cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Button hover glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
}

/* Gallery hover overlay */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(10, 17, 40, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
