

/* Hero styles moved to global page-hero */

/* Lightbox Improvements */
.lightbox-nav {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    font-size: 24px !important;
    cursor: pointer !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10002 !important;
    transition: all 0.3s ease !important;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.lightbox-prev {
    left: 20px !important;
}

.lightbox-next {
    right: 20px !important;
}

.lightbox-image {
    cursor: pointer !important;
}

/* Mobile fixes for title animation */
@media (max-width: 768px) {
    .hero-portfolio h1 {
        font-size: 4rem;
        margin-left: 20px;
    }

    .lightbox-nav {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .hero-portfolio h1 {
        font-size: 3rem;
        margin-left: 15px;
    }
}

.hero-portfolio p {
    font-size: 1.2rem;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-filters {
    padding: 40px 0;
    background: white;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid #333;
    color: #333;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    background: rgb(54, 54, 80);
    border-color: rgb(54, 54, 80);
    color: white;
}

.filter-btn.active {
    background: rgb(54, 54, 80);
    border-color: rgb(54, 54, 80);
    color: white;
    position: relative;
}

/* Shining border effect for active button */
.filter-btn.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent,
        transparent,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    background-size: 400% 400%;
    animation: shine 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes shine {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    align-items: stretch;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(1);
    visibility: hidden;
    aspect-ratio: 16/10;
}

.portfolio-item.visible {
    opacity: 1;
    visibility: visible;
}

.portfolio-item.hidden {
    opacity: 0 !important;
    transform: scale(0.8) translateY(-20px) !important;
    pointer-events: none;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    visibility: hidden !important;
    display: none !important;
}

.portfolio-item.filtering {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-year {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 400;
}

.portfolio-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-year-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Tablet view - 2 columns */
@media (max-width: 1000px) and (min-width: 769px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile view - 1 column */
@media (max-width: 768px) {
    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .filter-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portfolio-item {
        min-height: auto;
    }

    .hero-portfolio h1 {
        font-size: 4.5rem;
        margin-left: 20px;
    }

    .logo-image {
        height: 45px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-info {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.lightbox-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.lightbox-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .lightbox-nav {
        display: none;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }

    .lightbox-info {
        position: relative;
        bottom: 0;
        margin-top: 20px;
    }
}

.portfolio-media {
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-media {
    transform: scale(1.05);
}

.lightbox-content {
    width: min(90vw, 1280px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-frame {
    position: relative;
    width: min(90vw, 1280px);
    height: min(85vh, 760px);
}

.lightbox-image {
    object-fit: contain;
}
