/* About Section Styles - Tigal Water Splash */

/* Base Image Containers */
.image-container {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-container:hover {
    transform: translateY(-4px);
}

/* Hero Images */
.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.5s ease;
    display: block;
}

.main-hero:hover .hero-image {
    transform: scale(1.05);
}

/* Secondary Images */
.secondary-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.3s ease;
    display: block;
}

.secondary:hover .secondary-image {
    transform: scale(1.1);
}

/* Statistics Images */
.stat-image-container {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    display: block;
}

.stat-placeholder {
    width: 120px;
    height: 120px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-image-container,
.stat-card:hover .stat-placeholder {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Value Images */
.value-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    height: 200px;
}

.value-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    display: block;
}

.value-placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.value-card:hover .value-image {
    transform: scale(1.1);
}

/* Image Overlays */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.8) 0%, rgba(20, 184, 166, 0.8) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: inherit;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: all 0.3s ease;
    padding: 1rem;
}

.image-container:hover .overlay-content {
    transform: translateY(0);
}

/* Value Overlays */
.value-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(16, 185, 129, 0.9) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: inherit;
}

.value-card:hover .value-overlay {
    opacity: 1;
}

.value-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    padding: 1rem;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.3);
}

/* Image Placeholders */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: inherit;
    border: 2px dashed #9ca3af;
}

.hero-placeholder {
    height: 400px;
}

.secondary-placeholder {
    height: 180px;
}

.placeholder-content {
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

/* Gallery Enhancements */
.about-image-gallery {
    position: relative;
}

.secondary-images-grid {
    position: relative;
}

.secondary-images-grid::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #f0f9ff 0%, #f0fdfa 100%);
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.5;
}

/* Animation Enhancements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-card:nth-child(odd) .stat-image-container {
    animation: float 3s ease-in-out infinite;
}

.stat-card:nth-child(even) .stat-placeholder {
    animation: pulse 2s ease-in-out infinite;
}

/* Loading States */
.image-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
    z-index: 10;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Hover Focus Effects */
.image-container:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: inherit;
}

.image-container.focused {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-image,
    .hero-placeholder {
        height: 300px;
    }
    
    .secondary-image,
    .secondary-placeholder {
        height: 120px;
    }
    
    .value-image-container {
        height: 150px;
    }
    
    .stat-image-container,
    .stat-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .overlay-content h3 {
        font-size: 1.25rem;
    }
    
    .overlay-content p {
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .hero-image,
    .hero-placeholder {
        height: 250px;
    }
    
    .secondary-image,
    .secondary-placeholder {
        height: 100px;
    }
    
    .stat-image-container,
    .stat-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .overlay-content h3 {
        font-size: 1.125rem;
    }
    
    .overlay-content p {
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .image-overlay,
    .value-overlay {
        display: none;
    }
    
    .hero-image,
    .secondary-image,
    .value-image,
    .stat-image {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .image-placeholder,
    .stat-placeholder,
    .value-placeholder {
        border-color: #000;
        background: #f9f9f9;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .image-overlay,
    .value-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .overlay-content,
    .value-icon {
        color: white;
        background: black;
    }
    
    .image-placeholder,
    .stat-placeholder,
    .value-placeholder {
        border-color: #333;
        background: #fff;
        color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .image-container,
    .hero-image,
    .secondary-image,
    .value-image,
    .stat-image,
    .stat-image-container,
    .stat-placeholder,
    .overlay-content,
    .value-icon {
        transition: none;
        animation: none;
    }
    
    .image-container:hover {
        transform: none;
    }
    
    .main-hero:hover .hero-image,
    .secondary:hover .secondary-image,
    .value-card:hover .value-image {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .image-placeholder,
    .stat-placeholder,
    .value-placeholder {
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
        border-color: #6b7280;
        color: #d1d5db;
    }
    
    .placeholder-content {
        color: #9ca3af;
    }
}

/* Additional Utility Classes */
.about-image-gallery {
    scroll-margin-top: 5rem;
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.value-card {
    transition: all 0.3s ease;
    position: relative;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Image Error State */
.image-container.error {
    opacity: 0.7;
}

.image-container.error .image-placeholder {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #f87171;
    color: #dc2626;
}

/* Loading Success State */
.image-container.loaded {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Accessibility Improvements */
.image-container[tabindex] {
    outline: none;
}

.image-container[tabindex]:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
