.gallery-section {
    padding: 4rem 0;
    background: var(--section-bg);
}

.gallery-container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 1600px;
    margin: 0 auto;
    width: 90%;
}

.gallery-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-nav .nav-item {
    background: none;
    border: 2px solid #e1e1e1;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-nav .nav-item i {
    font-size: 1.1rem;
}

.gallery-nav .nav-item:hover {
    border-color: #8DC63F;
    color: #8DC63F;
}

.gallery-nav .nav-item.active {
    background: #8DC63F;
    border-color: #8DC63F;
    color: white;
}

.gallery-view {
    position: relative;
    padding: 30px 0;
    perspective: 1500px;
    overflow: hidden;
    user-select: none;
}

.carousel-3d {
    position: relative;
    height: 800px;
    margin: 0 auto;
    max-width: 1400px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
}

.carousel-slide {
    position: absolute;
    width: 70%;
    height: 600px;
    left: 15%;
    transition: all 0.8s ease-in-out;
    opacity: 0;
    transform: translateZ(-500px) translateX(0) rotateY(35deg);
    cursor: pointer;
}

.carousel-slide.prev {
    opacity: 0.7;
    transform: translateZ(-250px) translateX(-100%) rotateY(35deg);
    cursor: pointer;
    filter: brightness(0.7);
}

.carousel-slide.next {
    opacity: 0.7;
    transform: translateZ(-250px) translateX(100%) rotateY(-35deg);
    cursor: pointer;
    filter: brightness(0.7);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateZ(0) translateX(0) rotateY(0);
    z-index: 10;
    filter: brightness(1);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px;
    color: white;
    border-radius: 0 0 12px 12px;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    opacity: 0;
}

.carousel-slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

/* Hover effects for better interaction feedback */
.carousel-slide.prev:hover,
.carousel-slide.next:hover {
    opacity: 0.9;
    filter: brightness(0.9);
    transform: translateZ(-200px) translateX(-90%) rotateY(30deg);
}

.carousel-slide.next:hover {
    transform: translateZ(-200px) translateX(90%) rotateY(-30deg);
}

/* Update visual indicators for navigation */
.gallery-view::before,
.gallery-view::after {
    content: '';
    position: absolute;
    top: calc(50% - 50px);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 2rem;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gallery-view::before {
    content: '\f104'; /* Font Awesome chevron-left */
    left: 20px;
}

.gallery-view::after {
    content: '\f105'; /* Font Awesome chevron-right */
    right: 20px;
}

.gallery-view::before:hover,
.gallery-view::after:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Make arrows clickable */
.gallery-view::before,
.gallery-view::after {
    pointer-events: auto;
}

/* Add pulse animation for arrows */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.gallery-view::before,
.gallery-view::after {
    animation: pulse 2s infinite;
}

/* Hide arrows on mobile but show on tablets */
@media (max-width: 576px) {
    .gallery-view::before,
    .gallery-view::after {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 1600px) {
    .gallery-container {
        width: 95%;
    }
}

@media (max-width: 1200px) {
    .gallery-container {
        width: 98%;
        padding: 1rem;
    }
    
    .carousel-3d {
        height: 700px;
    }
    
    .carousel-slide {
        height: 500px;
        width: 80%;
        left: 10%;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        width: 100%;
        padding: 0.5rem;
    }
    
    .carousel-3d {
        height: 600px;
    }
    
    .carousel-slide {
        height: 400px;
        width: 85%;
        left: 7.5%;
    }
    
    .gallery-section {
        padding: 2rem 0;
    }
}

/* New Features Grid Section */
.features-grid-section {
    padding: 6rem 0;
    background: var(--section-bg);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    grid-column: span 4;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.feature-card.large {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 400px;
}

.feature-card.wide {
    grid-column: span 8;
    min-height: 350px;
}

.feature-card img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
}

.feature-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-card:hover .feature-content {
    transform: translateY(0);
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .feature-card {
        grid-column: span 6;
    }
    
    .feature-card.large {
        grid-column: span 12;
    }
    
    .feature-card.wide {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .feature-card {
        grid-column: span 12;
        min-height: 250px;
    }
    
    .feature-card.large {
        min-height: 300px;
    }
    
    .feature-card.wide {
        min-height: 250px;
    }
    
    .features-grid {
        gap: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .lightbox-content img {
        max-width: 95%;
        max-height: 70vh;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

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

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
    transition: transform 0.1s ease;
    transform-origin: center center;
    cursor: zoom-in;
}

.close-lightbox {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.close-lightbox:hover {
    transform: scale(1.1);
}

.lightbox-caption {
    position: relative;
    margin-top: 20px;
    color: white;
    text-align: center;
    padding: 15px;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.lightbox-caption h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.lightbox-caption p {
    margin: 0;
    opacity: 0.9;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lightbox-modal {
        padding: 10px;
    }
    
    .lightbox-content img {
        max-width: 95vw;
        max-height: 75vh;
    }
    
    .close-lightbox {
        top: 10px;
        right: 10px;
    }
}

/* Add zoom indicator */
.lightbox-modal::after {
    content: 'Use mouse wheel or pinch to zoom';
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal:hover::after {
    opacity: 1;
}

.feature-card-stack {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card-stack .feature-card {
    grid-column: span 12;
    min-height: 200px; /* Adjust height to fit two cards in the space */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .feature-card-stack {
        grid-column: span 12;
    }
} 