/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in > *:nth-child(1) { transition-delay: 0.1s; }
.fade-in > *:nth-child(2) { transition-delay: 0.2s; }
.fade-in > *:nth-child(3) { transition-delay: 0.3s; }
.fade-in > *:nth-child(4) { transition-delay: 0.4s; }
.fade-in > *:nth-child(5) { transition-delay: 0.5s; }
.fade-in > *:nth-child(6) { transition-delay: 0.6s; }

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

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Subtle gradient text option */
.gradient-text {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* Project card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Input autofill style */
input:-webkit-autofill,
textarea:-webkit-autofill {
    box-shadow: 0 0 0 30px white inset !important;
}
