html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* project-detail.css */

/* General fade-in animation for content sections */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* New Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem; /* Tailwind rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Tailwind shadow-lg */
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Tailwind shadow-xl */
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Slightly increased height for better visual */
    object-fit: cover;
    display: block;
    border-radius: 0.75rem; /* Match parent */
    transition: transform 0.3s ease-in-out;
}

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

.gallery-item::after { /* Overlay for hover effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(37, 201, 31, 0.2); /* Primary color with transparency */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 0.75rem;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* New Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.lightbox-overlay.active {
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 95%; /* Slightly larger */
    max-height: 95%;
    background-color: #1a1a1a; /* Dark background for image */
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.8); /* More pronounced scale effect */
    transition: transform 0.4s ease-in-out;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh; /* Adjusted height */
    display: block;
    margin: auto;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 2.5rem; /* Larger close button */
    font-weight: normal;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-close:hover {
    color: #primary; /* Use primary color on hover */
    background-color: rgba(0, 0, 0, 0.7);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3.5rem; /* Larger nav arrows */
    cursor: pointer;
    padding: 0.5rem;
    user-select: none;
    transition: color 0.2s ease-in-out;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
}

.lightbox-nav:hover {
    color: #primary; /* Use primary color on hover */
    background-color: rgba(0, 0, 0, 0.7);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}