/* ==========================================================================
   Ali Hassan Portfolio - Custom Engineering Theme Stylesheet
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Custom Selection Highlight */
::selection {
    background-color: #0d9488;
    color: #ffffff;
}

/* Hide default system cursor on desktop for custom physics cursor */
@media (min-width: 1024px) {
    body, a, button, input, textarea, [onclick] {
        cursor: none !important;
    }
}

/* ==========================================================================
   ADVANCED INTERACTIVE PHYSICS CURSOR STYLES
   ========================================================================== */

/* Base Cursor Wrapper */
.custom-gear-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    width: 0;
    height: 0;
}

/* Inner Circle (Shaft Hole) - Snaps instantly to actual mouse cursor */
.cursor-inner-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #0d9488;
    border: 1  px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(13, 148, 136, 0.8);
}

/* Outer Rotating Gear (With spring-lag inertia and smooth teal aesthetic glow effects) */
.cursor-gear {
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    color: #0d9488;
    transform: translate(-50%, -50%);
    animation: spinGear 6s linear infinite;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 0 2px rgba(13, 148, 136, 0.4));
}

@keyframes spinGear {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==========================================================================
   MODAL LIGHTBOX OVERLAY STYLES
   ========================================================================== */

#project-modal-overlay {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.3s ease;
}

/* Modal Inner Box Custom Scrollbar */
#project-modal-content::-webkit-scrollbar {
    width: 6px;
}
#project-modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}
#project-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}
#project-modal-content::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}