body {
    /* Add any body styles you need */
}

.container {
    max-width: 3000px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.carousel {
    display: flex;
    transition: transform 0.3s ease;
    gap: 20px;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 0;
}

.carousel-item .gallery-item {
    width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    transition: background 0.3s ease;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Hide navigation arrows when not needed */
.carousel-nav.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .carousel-item {
        flex: 0 0 100%;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Project Flex Box */
.project-flex-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff57;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Text container */
.text-container {
    flex: 1;
}

.text-container h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: normal;
}

.text-container hr {
    border: none;
    height: 3px;
    margin-bottom: 25px;
    border-radius: 2px;
}

.text-container p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
}
@media (max-width: 480px) {
.text-container p {
    margin-bottom: 15px;
    font-size: 0.8rem;
    line-height: 1.5;
}
}
.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.gallery-container {
    flex: 1;
    width: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

/* Updated Gallery Items with Black Background and Centered Images */
.gallery-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4/3;
    background-color: #000000; /* Black background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px; /* Add some padding around the image */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Changed from cover to contain to show full image */
    display: block;
    transition: transform 0.5s ease;
    width: auto;
    height: auto;
}

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

/* Updated Carousel Styles for Black Background */
.carousel-image-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #5a2033; /* Black background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Add padding around the image */
}

.carousel-image-container:hover {
    transform: scale(1.02);
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Changed to contain to show full image */
}

.carousel-caption {
    margin-top: 15px;
    text-align: center;
    padding: 0 10px;
}

.carousel-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.carousel-description {
    font-size: 1em;
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
}

.carousel-counter {
    font-size: 0.9em;
    color: #888;
    font-weight: 500;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    z-index: 10;
    margin-left: 20px;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    /* margin-top: 20px; */
    gap: 8px;
    flex-wrap: wrap;
    padding:5px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #333;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: #999;
    transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
   max-width: 110%;
        padding: 2px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    background-color: #5a2033; /* Black background for lightbox too */
    padding: 20px; /* Add padding around lightbox image */
}

.lightbox-description {
    color: white;
    text-align: left;
    padding: 20px;
    max-width: 600px;
}

.lightbox-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.lightbox-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.close-btn:hover {
    color: #e74c3c;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

/* Mobile-First Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .project-flex-box {
        padding: 15px;
        margin: 0 10px;
        width: calc(100% - 20px);
        box-sizing: border-box;
    }
    
    .text-container h2 {
        font-size: 1.8rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        margin: 0 auto;
    }
    
    .gallery-item {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 10px;
        aspect-ratio: 4/3;
    }
    
    .gallery-item img {
        width: auto;
        max-width: 95%;
        height: auto;
        max-height: 95%;
    }
    
    .carousel-image-container {
        height: 250px;
        padding: 15px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .carousel-prev {
        left: -10px;
    }

    .carousel-next {
        right: -10px;
    }

    .carousel-title {
        font-size: 1.1em;
    }

    .carousel-description {
        font-size: 0.85em;
    }
    
    .lightbox-description {
        padding: 10px;
    }
    
    .lightbox-title {
        font-size: 1.2rem;
    }
    
    .lightbox-text {
        font-size: 0.9rem;
        line-height: normal;
    }
    
    .lightbox-image {
max-width: 110%;
        padding: 2px;
    }
    
    .nav-btn {
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .close-btn {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

/* Tablet Responsive */
@media (min-width: 481px) and (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    .gallery-item {
        width: 100%;
        max-width: 100%;
    }
    
    .project-flex-box {
        padding: 20px;
        margin: 0 15px;
        width: calc(100% - 30px);
    }
    
    .carousel-container {
        padding: 15px;
        margin: 15px auto;
    }

    .carousel-image-container {
        height: 350px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-prev {
        left: -15px;
    }

    .carousel-next {
        right: -15px;
    }

    .carousel-title {
        font-size: 1.2em;
    }

    .carousel-description {
        font-size: 0.9em;
    }
    
    .nav-btn {
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .close-btn {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    
    .gallery-item {
        width: 100%;
        max-width: 100%;
    }
}