/* Information Gallery Section Styles */
.info-gallery-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(5, 10, 20, 0.95) 0%, 
        rgba(15, 25, 40, 0.95) 50%, 
        rgba(5, 10, 20, 0.95) 100%);
}

/* Section Header */
.info-gallery-section .section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.info-gallery-section .section-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.info-gallery-section .section-badge:hover::before {
    left: 100%;
}

.info-gallery-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.info-gallery-section .section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
    position: relative;
}

.info-gallery-section .section-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

/* Gallery Cards */
.info-gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 300px; /* Fixed height for consistency */
}

.info-gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.5);
}

.info-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.info-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.05);
}

.info-gallery-card:hover .info-image {
    transform: scale(1.05);
}

/* Background Shapes */
.info-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.1));
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

.info-shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}

.info-shape-2 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    right: -75px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .info-gallery-section .section-title {
        font-size: 2.2rem;
    }
    
    .info-gallery-card {
        height: 300px;
    }
}

@media (max-width: 992px) {
    .info-gallery-section .section-title {
        font-size: 2rem;
    }
    
    .info-gallery-card {
        height: 280px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .info-gallery-section {
        padding: 3rem 0;
    }
    
    .info-gallery-section .section-title {
        font-size: 1.8rem;
    }
    
    .info-gallery-card {
        height: 240px;
        margin-bottom: 1.5rem;
    }
    
    .info-gallery-card:hover {
        transform: translateY(-5px);
    }
    
    .info-shape-1,
    .info-shape-2 {
        display: none; /* Hide decorative shapes on mobile */
    }
}

@media (max-width: 576px) {
    .info-gallery-section {
        padding: 2.5rem 0;
    }
    
    .info-gallery-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .info-gallery-section .section-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
    }
    
    .info-gallery-card {
        height: 350px;
        border-radius: 12px;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    .info-image-wrapper,
    .info-image {
        border-radius: 12px;
    }
    
    /* Full width images on small mobile screens without cropping */
    .info-image {
        object-fit: contain;
        object-position: center;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 480px) {
    .info-gallery-section .section-title {
        font-size: 1.3rem;
    }
    
    .info-gallery-card {
        height: 320px;
        border-radius: 10px;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    .info-image-wrapper,
    .info-image {
        border-radius: 10px;
    }
    
    /* Ensure full width without cropping on very small screens */
    .info-image {
        object-fit: contain;
        object-position: center;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 400px) {
    .info-gallery-section {
        padding: 2rem 0;
    }
    
    .info-gallery-section .section-title {
        font-size: 1.2rem;
    }
    
    .info-gallery-card {
        height: 300px;
        border-radius: 8px;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    .info-image-wrapper,
    .info-image {
        border-radius: 8px;
    }
    
    /* Full screen width on smallest screens without cropping */
    .info-image {
        object-fit: contain;
        object-position: center;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.05);
    }
}

/* Extra small screens - full bleed images */
@media (max-width: 320px) {
    .info-gallery-card {
        height: 280px;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        border-radius: 0;
    }
    
    .info-image-wrapper,
    .info-image {
        border-radius: 0;
    }
    
    .info-image {
        object-fit: contain;
        object-position: center;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.05);
    }
}

/* Loading animation */
.info-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.info-image[src] {
    background: none;
    animation: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Accessibility improvements */
.info-gallery-card {
    cursor: default;
}

.info-gallery-card:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .info-gallery-section {
        background: white !important;
        color: black !important;
    }
    
    .info-gallery-section .section-title,
    .info-gallery-section .section-badge {
        color: black !important;
    }
    
    .info-gallery-card {
        break-inside: avoid;
        background: white !important;
        border: 1px solid #ccc !important;
    }
}
