/* Custom overrides and enhancements */

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f7f7f8;
}
::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

/* Selection color */
::selection {
    background: #ffd3c0;
    color: #0c0c0e;
}

/* Subtle pattern overlay for hero */
.hero-gradient {
    background-image:
        linear-gradient(135deg, rgba(28,28,31,0.92) 0%, rgba(63,63,70,0.88) 40%, rgba(255,140,102,0.85) 100%),
        url('https://images.pexels.com/photos/19546139/pexels-photo-19546139.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-gradient {
        background-attachment: fixed;
    }
}

/* Card image hover zoom */
.img-card img {
    transition: transform 0.5s ease;
}
.img-card:hover img {
    transform: scale(1.05);
}

/* Blob animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}
.blob {
    animation: float 6s ease-in-out infinite;
}
.blob:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 8s;
}
.blob:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 7s;
}

@media (prefers-reduced-motion: reduce) {
    .blob { animation: none; }
    .img-card img { transition: none; }
    .img-card:hover img { transform: none; }
    .hero-gradient { background-attachment: scroll; }
}
