/* Custom styles that extend Tailwind */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
    /* Prevent layout shift on mobile if no nav width */
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f4f6f9;
}
::-webkit-scrollbar-thumb {
    background: #c5d0e0;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #97aed0;
}

/* Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Staggered delay for children */
.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; }

/* Active Nav Dot Indicator */
.nav-dot.active {
    background-color: #2fb38f; /* mint-500 */
    color: white;
    transform: scale(1.1);
}

/* Mobile Link Hover Effect */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #2fb38f;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}
