/*
 * Hero Component
 * Hero sliders, banners, and main hero sections
 */

/* =============================================================================
   Hero Slider
   ============================================================================= */

.hero-slider-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider.swiper {
    width: 100%;
    height: 100%;
}

.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 44, 79, 0.15);
    z-index: 1;
}

/* =============================================================================
   Hero Content
   ============================================================================= */

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    padding: 0 1.25rem;
}

.hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.swiper-slide-active .hero-content .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.swiper-slide-active .hero-content .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.swiper-slide-active .hero-content .btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.2em;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: var(--line-height-tight);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--blue-invest-accent);
    line-height: var(--line-height-base);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
   Hero Buttons
   ============================================================================= */

.btn.btn-primary {
    background-color: var(--blue-invest-medium);
    color: var(--text-light);
    padding: 0.875rem 2.5rem;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    border-radius: 30px;
    transition: all var(--transition-base);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    text-decoration: none;
    outline: none;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
    background-color: var(--blue-invest-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.btn.btn-primary:active {
    transform: translateY(-1px);
}

.btn.btn-primary:focus-visible {
    box-shadow: var(--shadow-focus), 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
   Swiper Navigation
   ============================================================================= */

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: var(--text-light);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-round);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background-color: var(--blue-invest-medium);
    transform: scale(1.1);
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
}

/* Swiper Pagination */
.hero-slider .swiper-pagination {
    bottom: 2rem;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-slider .swiper-pagination-bullet-active {
    background-color: var(--blue-invest-accent);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(165, 200, 231, 0.5);
}

/* =============================================================================
   Homepage Project Items Hero Overlays
   ============================================================================= */

.homepage-projects-section .project-item a {
    position: relative;
    overflow: hidden;
}

.homepage-projects-section .project-item-image {
    position: relative;
    overflow: hidden;
}

.homepage-projects-section .project-item-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(13, 44, 79, 0.8) 100%
    );
    transition: all var(--transition-base);
}

.homepage-projects-section .project-item:hover .project-item-image::after {
    background: rgba(13, 44, 79, 0.3);
}

.homepage-projects-section .project-item img {
    transition: transform var(--transition-base);
}

.homepage-projects-section .project-item:hover img {
    transform: scale(1.05);
}

.homepage-projects-section .project-item h2 {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    color: var(--text-light);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-semibold);
    margin: 0;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0.9;
    transition: all var(--transition-base);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.homepage-projects-section .project-item:hover h2 {
    transform: translateY(0);
    opacity: 1;
}

/* =============================================================================
   Banner Sections
   ============================================================================= */

.banner-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 44, 79, 0.6);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1.25rem;
}

.banner-title {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: var(--line-height-relaxed);
}

/* =============================================================================
   CTA Sections
   ============================================================================= */

.cta-section {
    background: linear-gradient(135deg, var(--blue-invest-dark) 0%, var(--blue-invest-medium) 100%);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: var(--line-height-relaxed);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================================================
   Stats Section
   ============================================================================= */

.stats-section {
        padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 1rem;
        border-radius: var(--card-radius);
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--blue-invest-medium);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-body);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* =============================================================================
   Responsive Design
   ============================================================================= */

@media (max-width: 768px) {
    .hero-content {
        padding: 0 1rem;
        max-width: 95%;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: 2rem;
    }

    .btn.btn-primary {
        padding: 0.75rem 2rem;
        font-size: var(--font-size-small);
    }

    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        width: 45px;
        height: 45px;
    }

    .hero-slider .swiper-button-next::after,
    .hero-slider .swiper-button-prev::after {
        font-size: 1.125rem;
    }

    .hero-slider .swiper-pagination {
        bottom: 1.5rem;
    }

    .banner-section {
        padding: 4rem 0;
    }

    .banner-title {
        font-size: var(--font-size-h2);
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem 0.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .hero-slider .swiper-button-next::after,
    .hero-slider .swiper-button-prev::after {
        font-size: 1rem;
    }

    .hero-slider .swiper-pagination {
        bottom: 1rem;
    }

    .hero-slider .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .banner-section {
        padding: 3rem 0;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .stats-section {
        padding: 3rem 0;
    }
}

/* =============================================================================
   Accessibility and Motion
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    .hero-content > *,
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-pagination-bullet,
    .homepage-projects-section .project-item img,
    .homepage-projects-section .project-item h2 {
        transition: none;
    }

    .swiper-slide-active .hero-content .hero-title,
    .swiper-slide-active .hero-content .hero-subtitle,
    .swiper-slide-active .hero-content .btn {
        opacity: 1;
        transform: none;
        transition-delay: 0s;
    }

    .btn.btn-primary:hover,
    .stat-item:hover {
        transform: none;
    }
}

@media (prefers-contrast: high) {
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        border: 2px solid var(--text-light);
    }

    .hero-slider .swiper-pagination-bullet {
        border: 2px solid var(--text-light);
    }

    .btn.btn-primary {
        border: 2px solid var(--text-light);
    }
}

/* Focus management for hero elements */
.hero-slider .swiper-button-next:focus-visible,
.hero-slider .swiper-button-prev:focus-visible {
    outline: 2px solid var(--blue-invest-accent);
    outline-offset: 2px;
}

/* Ensure hero content is keyboard accessible */
.hero-content .btn:focus-visible {
    outline: 2px solid var(--blue-invest-accent);
    outline-offset: 4px;
}