/* Texas Wild Child's Icehouse — Custom Styles */

/* Base reset & typography */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: #6B0F1A;
    color: #F5F0EB;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* Image lazy loading fade */
img {
    display: block;
    max-width: 100%;
}

/* Prevent overflow scroll on mobile */
html, body {
    overflow-x: hidden;
}

/* Smooth image rendering */
img {
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
}

/* Navbar transition base */
#navbar {
    backface-visibility: hidden;
}

/* Card hover perspective */
#experience .group {
    perspective: 1000px;
}

/* Custom input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0B0808 inset !important;
    -webkit-text-fill-color: #F5F0EB !important;
    caret-color: #F5F0EB;
}

/* Mobile menu transitions */
#mobile-menu {
    backface-visibility: hidden;
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active,
a:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Gold gradient text fallback */
.gold-shimmer {
    color: #C9A84C;
}

/* Reduced motion: disable all custom animations */
@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;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .gold-line {
        background: Highlight;
    }
    .gold-line-wide {
        background: Highlight;
    }
}

/* Print styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    #navbar, #contact, footer {
        display: none;
    }
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        color: #666;
    }
}
