/* Hero section with animated screen mesh and aperture effect */
.hero-mesh {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.hero-mesh::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero/screen-mesh-hero.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    z-index: 1;
}

.hero-mesh-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

/* Aperture bokeh effect overlay */
.aperture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.bokeh-light {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 204, 68, 0.3) 0%, transparent 70%);
    filter: blur(20px);
    animation: float 8s ease-in-out infinite;
}

.bokeh-light:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 15%;
    animation-duration: 7s;
    animation-delay: 0s;
}

.bokeh-light:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 20%;
    animation-duration: 9s;
    animation-delay: -2s;
}

.bokeh-light:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 10%;
    animation-duration: 6s;
    animation-delay: -4s;
}

.bokeh-light:nth-child(4) {
    width: 180px;
    height: 180px;
    bottom: 15%;
    left: 25%;
    animation-duration: 8s;
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    25% {
        transform: translate(10px, -15px) scale(1.1);
        opacity: 0.25;
    }
    50% {
        transform: translate(-5px, 10px) scale(0.95);
        opacity: 0.20;
    }
    75% {
        transform: translate(15px, 5px) scale(1.05);
        opacity: 0.22;
    }
}

/* Screen mesh texture animation */
@keyframes meshShimmer {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.95;
    }
}

.hero-mesh::before {
    animation: meshShimmer 4s ease-in-out infinite;
}

/* Text styling for visibility over mesh */
.hero-mesh h1,
.hero-mesh h2,
.hero-mesh p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-mesh-content {
        padding: 2rem;
    }

    .bokeh-light {
        opacity: 0.5;
    }
}
