/* public/css/styles.css */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-image {
    transition: transform 0.3s ease;
}
.product-image:hover {
    transform: scale(1.05);
}

.feature-card {
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-video {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-video:hover {
    background: rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        border-radius: 10px;
    }
}

/* Image Modal Styles - Separate from video modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    padding: 20px;
}

.image-modal-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .image-modal-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .image-modal-content {
        padding: 10px;
        border-radius: 8px;
        max-width: 95vw;
        max-height: 95vh;
    }
    .image-modal-content img {
        max-height: 85vh;
    }
}

/* Product Modal Styles */
.product-modal {
    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(8px);
}

.product-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1200px;
    max-height: 1200px;
    width: 90vw;
    height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-content img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Responsive adjustments for Product Modal */
@media (max-width: 1400px) {
    .product-modal-content {
        max-width: 1000px;
        max-height: 1000px;
    }
}

@media (max-width: 1200px) {
    .product-modal-content {
        max-width: 900px;
        max-height: 900px;
    }
}

@media (max-width: 992px) {
    .product-modal-content {
        max-width: 800px;
        max-height: 800px;
        width: 95vw;
        height: 95vh;
    }
}

@media (max-width: 768px) {
    .product-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 8px;
    }
}

/* Leaflet Popup Style */
.leaflet-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    max-width: 95vw;
    max-height: 95vh;
    background: white;
    border-radius: 10px;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.leaflet-popup img {
    display: block;
    width: 100%;
    height: auto;
}