@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

/* Webkit Engine Custom Scrollbar Layout UI */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050816;
}
::-webkit-scrollbar-thumb {
    background: #838384;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* Intersection Observer Reveal Animation Styles */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.95); }

.active-reveal {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Typing cursor micro animation effect */
.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Ambient background grid decoration pattern layout */
.bg-grid-pattern {
    background-size: 30px 30px;
    background-image: linear-gradient(to right, rgba(59, 130, 246, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    display: none; /* Keeps the core dot hidden */
}

/* FIXED: Scaled down default size from 32px to 20px */
.custom-cursor-follower {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(8, 44, 100, 0.582);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: left 0.1s ease-out, top 0.1s ease-out, width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 100px rgba(59, 130, 246, 0.15);
    background-color: rgba(59, 130, 246, 0.02);
}

.custom-cursor.cursor-active {
    /* Maintained for script compatibility */
    width: 0;
    height: 0;
}

/* FIXED: Scaled down hover expansion size from 44px to 28px */
.custom-cursor-follower.cursor-active {
    width: 28px;
    height: 28px;
    border-color: rgba(96, 165, 250, 0.8);
    background-color: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
}

/* Morphing Dock Link Custom Overrides */
.nav-link-pill {
    position: relative;
    z-index: 10;
    transition: color 0.3s ease;
}

#nav-indicator {
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

#links-wrapper {
    transition: max-width 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                margin-left 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Responsive adjustments: Hide standard custom mouse items completely on mobile touch screens */
@media (pointer: coarse) {
    .custom-cursor, .custom-cursor-follower {
        display: none !important;
    }
}