/**
 * Enhanced Visual Sections with Dynamic Backgrounds
 */

.visual-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
}

.visual-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.visual-section .container {
    position: relative;
    z-index: 2;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.image-card {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
}

.image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    transition: background 0.3s ease;
}

.image-card:hover::before {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

.image-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.image-card-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.parallax-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    position: relative;
}

@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* Animated gradient backgrounds */
.gradient-animated {
    background: linear-gradient(-45deg, #0a2447, #134e70, #1e5f8a, #0a2447);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Gold accent theme */
.gold-accent {
    border-left: 4px solid #ffd700;
    padding-left: 20px;
}

.gold-glow {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.gold-border {
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
