/* ============================================
   MODERN HERO SECTION STYLES
   ============================================ */

.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: url('../assets/images/hero-background.png') center/cover no-repeat;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.3;
    display: block;
    z-index: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Hide video if it fails to load */
.hero-video:not([src]),
.hero-video[src=""] {
    display: none;
}

/* Show poster while video loads */
.hero-video[poster] {
    background-size: cover;
    background-position: center;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.92) 0%, rgba(6, 182, 212, 0.88) 50%, rgba(20, 184, 166, 0.90) 100%);
    z-index: 1;
}

.hero-modern-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    padding: var(--space-20) 0;
}

.hero-text-section {
    color: white;
}

.hero-modern-title {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
    color: white;
    margin-bottom: var(--space-6);
}

.hero-highlight {
    display: block;
    background: linear-gradient(90deg, #FBBF24, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: var(--space-3);
}

.hero-modern-subtitle {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-8);
    max-width: 90%;
}

.hero-image-section {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: translateY(0);
    transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover {
    transform: translateY(-10px);
}

.hero-feature-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-2xl);
}

/* Service Highlights Bar */
.hero-services-bar {
    position: relative;
    z-index: 3;
    background: white;
    margin-top: -80px;
    padding: var(--space-12) 0;
    box-shadow: var(--shadow-xl);
}

.hero-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.hero-service-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.hero-service-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: var(--shadow-md);
}

.hero-service-content h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-2);
}

.hero-service-content p {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-modern-content {
        gap: var(--space-12);
    }

    .hero-modern-title {
        font-size: var(--font-size-5xl);
    }
}

@media (max-width: 1024px) {
    .hero-modern-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .hero-image-section {
        order: -1;
    }

    .hero-modern-title {
        font-size: var(--font-size-4xl);
    }

    .hero-modern-subtitle {
        max-width: 100%;
    }

    .hero-services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .hero-services-bar {
        margin-top: var(--space-8);
    }
}

@media (max-width: 768px) {
    .hero-modern {
        min-height: auto;
        padding: var(--space-16) 0;
    }

    .hero-modern-content {
        padding: var(--space-12) 0;
    }

    .hero-modern-title {
        font-size: var(--font-size-3xl);
    }

    .hero-modern-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-services-bar {
        margin-top: 0;
        padding: var(--space-8) 0;
    }

    .hero-service-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .hero-service-content h3 {
        font-size: var(--font-size-base);
    }

    .hero-service-content p {
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    .hero-modern {
        padding: var(--space-12) 0;
    }

    .hero-modern-title {
        font-size: var(--font-size-2xl);
    }

    .hero-modern-subtitle {
        font-size: var(--font-size-sm);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}