/* Custom overrides and utility styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0F0F0F;
}
::-webkit-scrollbar-thumb {
    background: #2D2D2D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F2665C;
}

/* Selection color */
::selection {
    background: rgba(242, 102, 92, 0.3);
    color: #fff;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
}

/* Ensure contrast on all interactive elements */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #F2665C;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply initial animations to hero elements */
#hero h1,
#hero p,
#hero .flex-wrap {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#hero h1 { animation-delay: 0.1s; opacity: 0; }
#hero p { animation-delay: 0.3s; opacity: 0; }
#hero .flex-wrap { animation-delay: 0.5s; opacity: 0; }
