/* Custom styles for Custom Recycling */

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Apply animations to sections */
section {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Hero section specific animation */
#hero h1 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

#hero p {
    animation: fadeInUp 1s ease-out 0.4s both;
}

#hero .flex {
    animation: fadeInUp 1s ease-out 0.6s both;
}

#hero .grid {
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Service cards animation */
.group {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.group:nth-child(1) { animation-delay: 0.1s; }
.group:nth-child(2) { animation-delay: 0.2s; }
.group:nth-child(3) { animation-delay: 0.3s; }
.group:nth-child(4) { animation-delay: 0.4s; }
.group:nth-child(5) { animation-delay: 0.5s; }
.group:nth-child(6) { animation-delay: 0.6s; }

/* Hover effects */
a {
    transition: all 0.3s ease;
}

/* Button hover effects */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}

/* Selection color */
::selection {
    background: #34d399;
    color: #0a1628;
}

/* Mobile menu animation */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar transition */
#navbar {
    transition: background-color 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Floating card animation */
.absolute.-bottom-8 {
    animation: float 3s ease-in-out infinite;
}

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

/* Pulse animation for dot */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .absolute.-bottom-8 {
        display: none;
    }
}

/* Print styles */
@media print {
    #navbar, #mobile-menu {
        display: none;
    }
    
    section {
        animation: none;
    }
}
