/* Custom Styles for ArchiKhichi */

/* Hide scrollbar but keep functionality */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
body:not(.dark) ::-webkit-scrollbar-thumb {
    background: #ddd;
}

/* Animations classes for JS Intersection Observer */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up {
    transform: translateY(40px);
}

.fade-right {
    transform: translateX(-40px);
}

.fade-left {
    transform: translateX(40px);
}

/* Classes applied when element enters viewport */
.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Navbar active state */
.navbar-scrolled {
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}
.dark .navbar-scrolled {
    background-color: rgba(17, 17, 17, 0.95);
}
body:not(.dark) .navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    color: #111111;
}
/* Ensure logo and icons change color correctly in light mode when scrolled */
body:not(.dark) .navbar-scrolled a,
body:not(.dark) .navbar-scrolled button,
body:not(.dark) .navbar-scrolled svg {
    color: #111111;
}

/* Back to top button visibility */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Portfolio Filters */
.filter-btn.active {
    border-color: currentColor;
    opacity: 1;
}

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

/* Hero image scaling animation on load */
.hero-img {
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
