/* ========================================================================
   GENERAL IMPROVEMENTS
   Global enhancements for UX, accessibility, and polish
   ======================================================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Better focus states for accessibility */
:focus {
    outline: 2px solid rgba(240, 93, 240, 0.7);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid rgba(240, 93, 240, 0.9);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Skip link for keyboard navigation (hidden until focused) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #f05df0;
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Better text selection */
::selection {
    background: rgba(240, 93, 240, 0.3);
    color: inherit;
}

/* Improved link transitions */
a {
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Better button/link cursor */
button,
[role="button"],
a[href] {
    cursor: pointer;
}

/* Loading state cursor */
[aria-busy="true"] {
    cursor: wait;
}

/* Disabled state */
[disabled],
[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Prevent layout shift from scrollbar */
html {
    scrollbar-gutter: stable;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #151518;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f05df0, #a040a0);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff70ff, #c050c0);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #f05df0 #151518;
}

/* Print styles */
@media print {

    .hero,
    .sd,
    #progress-container,
    .up-btn {
        display: none !important;
    }

    .content1 {
        transform: none !important;
        opacity: 1 !important;
    }
}