/* hero.css - Enhanced Theme */
.hero-py {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100vh - 75px);
    /* Subtract approximate navbar height */
    min-height: 550px;
    /* Safety for very small viewports */
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    /* Add some internal padding for safety */
}

/* Ensure container takes full width for centering */
.hero-py .container {
    width: 100%;
}

/* Background Layer with Effects */
.hero-py::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 8, 8, 0.6) 0%, rgba(10, 31, 64, 0.4) 100%),
        url('../assets/images/hero-robots-bg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: heroBackgroundEffect 40s linear infinite alternate;
    transition: filter 0.5s ease;
}

/* Add a second animated overlay for a "pulsing" light effect */
.hero-py::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(191, 38, 38, 0.15) 0%, transparent 70%);
    z-index: -1;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroBackgroundEffect {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    100% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

@keyframes heroGlow {
    0% {
        opacity: 0.3;
        transform: scale(0.9);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.hero-glass-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 60px 40px;
    margin-bottom: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: inline-block;
}

.hero-icon-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: var(--transition);
}

.hero-icon-card:hover {
    background: var(--bg-main);
    color: var(--text-main);
    transform: translateY(-5px);
}

/* Mobile Responsiveness for Hero Ratio */
@media (max-width: 991px) {
    .hero-py {
        height: auto;
        min-height: 100vh;
        padding: 80px 0;
    }
}