/* ==================== Custom CSS ==================== */

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Header scroll effect */
#header {
    background: transparent;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark #header.scrolled {
    background: rgba(29, 28, 62, 0.85);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Portfolio filter buttons */
.portfolio-filter {
    color: #6b7280;
    background-color: #f3f4f6;
}

.dark .portfolio-filter {
    color: #9ca3af;
    background-color: #26264b;
}

.portfolio-filter:hover {
    color: #0d859f;
    background-color: #e6f7fa;
}

.dark .portfolio-filter:hover {
    color: #23a8c6;
    background-color: #252555;
}

.portfolio-filter.active {
    color: #ffffff;
    background-color: #23a8c6;
}

/* Portfolio item transition */
.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item.hidden-item {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

/* Smooth section scrolling */
html {
    scroll-behavior: smooth;
}

/* Active nav link */
.nav-link.active {
    color: #23a8c6 !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #1d1c3e;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.dark ::-webkit-scrollbar-thumb {
    background: #45457d;
}

/* Selection */
::selection {
    background-color: #23a8c6;
    color: white;
}

/* Image loading */
img {
    transition: opacity 0.3s ease;
}
