/* Custom styles and animations */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #252533;
    border-radius: 4px;
}

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

/* Parallax animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-20px) rotate(12deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(-12deg); }
    50% { transform: translateY(-15px) rotate(-12deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.parallax-card-1 {
    animation: float-1 6s ease-in-out infinite;
}

.parallax-card-2 {
    animation: float-2 5s ease-in-out infinite;
}

.parallax-card-3 {
    animation: float-3 4s ease-in-out infinite;
}

/* Parallax background elements */
.parallax-slow {
    animation: float-1 8s ease-in-out infinite;
}

.parallax-fast {
    animation: float-2 4s ease-in-out infinite;
}

.parallax-medium {
    animation: float-3 6s ease-in-out infinite;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(15, 15, 20, 0.95) !important;
    backdrop-filter: blur(20px) !important;
}

/* Mobile menu transitions */
.mobile-link {
    transition: all 0.3s ease;
}

.mobile-link:hover {
    transform: translateX(8px);
}

/* Button hover effects */
a[href="#contact"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

a[href="#contact"]::before,
button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

a[href="#contact"]:hover::before,
button[type="submit"]:hover::before {
    left: 100%;
}

/* Service card hover glow */
.group:hover .w-16 {
    box-shadow: 0 0 30px currentColor;
}

/* Geometric shape rotation */
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid #ffb808;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #c04660;
    color: white;
}

/* Mobile menu open state */
body.menu-open {
    overflow: hidden;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

/* Smooth image loading */
img {
    loading: lazy;
}

/* Print styles */
@media print {
    nav,
    #contact,
    button,
    form {
        display: none;
    }
}
