/* Custom Scrollbar - Light Theme Default */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f9fafb; /* gray-50 */
}
::-webkit-scrollbar-thumb {
    background: #e5e7eb; /* gray-200 */
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0077CC; 
}

/* Custom Scrollbar - Dark Theme */
.dark ::-webkit-scrollbar-track {
    background: #1A1A1A; 
}
.dark ::-webkit-scrollbar-thumb {
    background: #242424; 
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #0077CC; 
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Scroll Animations Initial State */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-up {
    transform: translateY(15px);
}

/* Active state for intersection observer */
.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Make FAQ icon rotate smoothly */
.faq-icon {
    transition: transform 0.3s ease;
}

/* New Animations for Interactivity */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes gradient-x {
    0%, 100% {
        background-size: 200% 200%;
        background-position: left center;
    }
    50% {
        background-size: 200% 200%;
        background-position: right center;
    }
}
.animate-gradient-text {
    animation: gradient-x 4s ease infinite;
    background-size: 200% auto;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 119, 204, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(0, 119, 204, 0.4); transform: scale(1.01); }
}
.animate-pulse-glow:hover {
    animation: pulse-glow 2.5s infinite;
}

/* Enhanced Tech Pills */
.tech-pill {
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.tech-pill:hover {
    transform: scale(1.05) translateY(-3px) !important;
    box-shadow: 0 8px 15px -3px rgba(0, 119, 204, 0.2) !important;
    z-index: 10;
    position: relative;
    border-color: rgba(0, 119, 204, 0.8) !important;
}

/* Card Hover Enhancements */
.project-card {
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(0, 119, 204, 0.15);
}

/* Modal Entry Animation Enhancements */
#tech-modal-content, #project-modal-content {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Shimmer Effect for Buttons */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.animate-shimmer {
    background-size: 200% auto;
    background-image: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 4s infinite linear;
}
