﻿/* styles.css */

/* Custom Animations */
@keyframes image-pan {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fade-in-scale {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.animate-image-pan {
    animation: image-pan 30s ease-in-out infinite;
}

.animate-fade-in-scale {
    animation: fade-in-scale 0.4s ease-out forwards;
}

/* Intersection Observer Initial States */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Classes to apply when elements enter viewport */
.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Portfolio Filters */
.filter-btn {
    position: relative;
    padding-bottom: 0.25rem;
}

.filter-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #d4af37; /* accent color */
    transition: width 0.3s ease;
}

.filter-btn.active::after,
.filter-btn:hover::after {
    width: 100%;
}

/* Scrollbar customization for a premium feel */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Ensure smooth image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}

/* Masonry grid item fix to prevent column collapsing */
.portfolio-item {
    display: inline-block;
    width: 100%;
}


/* Reemplazo de columnas Tailwind por CSS nativo estable */
#portfolio-grid {
    display: block !important;
    column-count: 3;
    column-gap: 1.5rem;
    width: 100%;
}

@media (max-width: 1024px) {
    #portfolio-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    #portfolio-grid {
        column-count: 1;
    }
}

.portfolio-item {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 1.5rem;
}

.portfolio-item img {
    display: block;
    width: 100%;
    height: auto;
}