/* Custom Styles for Portfolio Website */

/* Spotlight gradient effect */
.spotlight-gradient {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 30;
    transition: all 300ms;
    background: radial-gradient(600px at 1082px 754px, rgba(29, 78, 216, 0.15), transparent 80%);
}
/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Custom scrollbar styling (optional) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgb(15 23 42);
}

::-webkit-scrollbar-thumb {
    background: rgb(71 85 105);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(100 116 139);
}

/* Smooth scrolling for all links */
html {
    scroll-behavior: smooth;
}

/* Focus visible styling for better accessibility */
*:focus-visible {
    outline: 2px solid rgb(94 234 212);
    outline-offset: 2px;
}

/* Navigation indicator animation */
.nav-indicator {
    transition-property: width, background-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Link hover effects */
a {
    transition: color 150ms ease-in-out;
}

/* Image lazy loading placeholder */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Backdrop blur support */
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
    .backdrop-blur {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Responsive utilities */
@media (max-width: 640px) {
    .spotlight-gradient {
        background: radial-gradient(400px at 50% 300px, rgba(29, 78, 216, 0.15), transparent 80%);
    }
}