/* ========== CUSTOM STYLES ========== */

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

/* Perspective for 3D */
.perspective-1000 {
    perspective: 1000px;
}

/* Hero particles */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(20, 184, 166, 0.4);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-40px) translateX(20px);
        opacity: 0.8;
    }
}

/* Navbar scrolled state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-link {
    color: #134e4a !important;
}

#navbar.scrolled .nav-link:hover {
    color: #0d9488 !important;
}

#navbar.scrolled h1 {
    color: #134e4a !important;
}

#navbar.scrolled p {
    color: #0d9488 !important;
}

#navbar.scrolled #menu-btn {
    color: #134e4a !important;
}

/* Service card hover glow */
.service-card:hover {
    border-color: rgba(13, 148, 136, 0.3);
}

/* Form focus */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#mobile-menu.open {
    max-height: 500px;
    display: block;
}

/* Back to top visible */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .particle {
        display: none;
    }
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdfa;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}
