/* Base Noise Texture */
.noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Smooth Scrolling Fix for some mobile browsers */
html {
    scroll-behavior: smooth;
}

/* Animations for Mobile Drawer */
.nav-open #nav-content {
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
    pointer-events: auto !important;
}

.nav-open #nav-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Mobile minimum touch targets (44x44px for accessibility) */
.touch-target {
    min-width: 44px;
    min-height: 44px;
}

/* Active state for mobile touches (glassy feel) */
@media (hover: none) and (pointer: coarse) {
    .touch-target:active {
        transform: scale(0.96);
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Text Selection */
::selection {
    background-color: rgba(59, 130, 246, 0.3);
    /* Blue-500/30 */
    color: #ffffff;
}

/* Fade In Up Initial States */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Classes (Handled by Intersection Observer) */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Floating Animation for Background Icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(2deg);
    }
    66% {
        transform: translateY(10px) rotate(-2deg);
    }
}

.animate-float {
    animation: float 10s ease-in-out infinite;
}

/* Custom Pulse Animation */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.1);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

/* Skillset Card Styles */
.skill-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-card:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.skill-icon-container {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: #06b6d4;
    margin-bottom: 1.5rem;
}

/* Horizontal Scroll Styles */
#projects-viewport::-webkit-scrollbar {
    height: 4px;
}

#projects-viewport::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#projects-viewport::-webkit-scrollbar-thumb {
    background: #06b6d4;
    border-radius: 10px;
}

.snap-start {
    scroll-snap-align: start;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#scroll-indicator {
    transition: left 0.1s ease-out;
}

.cursor-grab {
    cursor: grab;
}

.cursor-grabbing {
    cursor: grabbing;
}

.select-none {
    user-select: none;
}