/* Custom overrides and enhancements beyond Tailwind */

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

/* Ensure hero doesn't get cut off */
#hero {
    scroll-margin-top: 0;
}

/* Selection color */
::selection {
    background: rgba(79, 212, 184, 0.3);
    color: #E8EDF5;
}

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

/* Prevent image drag */
img {
    -webkit-user-drag: none;
    user-select: none;
}

/* Reduced motion */
@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; }
    .reveal, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
    }
    .float-anim, .float-anim-2, .float-anim-3 {
        animation: none;
    }
    .gold-shimmer {
        animation: none;
        background: linear-gradient(90deg, #D4A843, #E8C060);
        background-size: auto;
        -webkit-background-clip: text;
        background-clip: text;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 640px) and (orientation: landscape) {
    #hero { min-height: auto; padding: 100px 0 60px; }
    .float-anim, .float-anim-2, .float-anim-3 { display: none; }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .card-dark, .card-gold {
        border: 2px solid ButtonText;
    }
}
