/* Custom styles for Hacksteak Station */

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

/* Selection color */
::selection {
    background-color: rgba(15, 76, 92, 0.2);
    color: inherit;
}

/* Subtle grain texture overlay for hero */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 32, 40, 0.3) 0%,
        rgba(15, 76, 92, 0.5) 50%,
        rgba(10, 54, 66, 0.7) 100%
    );
    z-index: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button hover lift effect */
button[type="submit"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 76, 92, 0.3);
}

/* Card hover effects */
.bg-white\/5 {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.bg-white\/5:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Image aspect ratios to prevent layout shift */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
