/* Custom styles that complement Tailwind */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
    background: #c4c6ca;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9fa2a9;
}

/* Selection color */
::selection {
    background: #ff8f6b;
    color: #1e2025;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger animation */
.hamburger-line {
    transition: all 0.3s ease;
}

#menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .card-hover {
        transition: none;
    }
    .card-hover:hover {
        transform: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .pulse-dot {
        animation: none;
    }
    .float-slow {
        animation: none;
    }
}
