/* Custom styles that complement Tailwind — minimal, targeted overrides */

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

/* Coral bar accent under headings */
.coral-bar {
    background: linear-gradient(90deg, #E85D4A, #F07868);
    height: 4px;
    border-radius: 2px;
    width: 60px;
    transition: width 0.3s ease;
}
.coral-bar:hover {
    width: 100px;
}

/* Selection color */
::selection {
    background: #E85D4A;
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
    background: #E85D4A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F07868;
}

/* Mobile menu line animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#closeMenu .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#closeMenu .menu-line:nth-child(2) {
    opacity: 0;
}
#closeMenu .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Prevent flash of unstyled content */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
