/* Custom styles — supplementing Tailwind */

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

/* Selection color */
::selection {
    background-color: rgba(123, 45, 142, 0.15);
    color: #2c1030;
}

/* Subtle image loading fade */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .hero-gradient {
        animation: none;
        background: linear-gradient(135deg, #2c1030 0%, #502254 25%, #713079 50%, #a352b0 75%, #d97706 100%);
    }
    .service-card:hover {
        transform: none;
    }
    img:hover {
        transform: none;
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5fc;
}
::-webkit-scrollbar-thumb {
    background: #d9aedf;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c07ecb;
}
