/*
* THEDI - Hero Section Styles
*/

/* ---------- Variables for easy spacing control ---------- */
:root {
    --hero-text-pad-right: 30px; /* adjust text padding globally */
  }
  
  /* =========================
     Hero Base Styles
  ========================= */
  .hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #004b6b 0%, #366072 50%, #00374e 100%);
    height: 100vh;
    min-height: 700px;
}

/* Particle Background */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hero Content Container */
.hero-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content-wrapper {
    display: flex;
    position: relative;
    z-index: 100;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    gap: 0;
}

/* Left Content - FIXED */
.hero-text {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: var(--hero-text-pad-right);
    z-index: 5;
    position: relative;
}

.hero-text-inner {
    position: relative;
    transition: all 0.3s ease;
}

.hero-text-inner:hover {
    transform: translateY(-2px);
}

/* FIXED: Text Swiper Styles */
.hero-text-swiper {
    position: relative;
    min-height: 200px;
    overflow: hidden;
}

.hero-text-swiper .swiper-wrapper {
    position: relative;
    height: 100%;
}

.hero-text-swiper .swiper-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(30px);
}

.hero-text-swiper .swiper-slide-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.sc-slider-subtitle {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(81, 177, 70, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(81, 177, 70, 0.3);
    backdrop-filter: blur(10px);
}

.sc-slider-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(81, 177, 70, 0.2), transparent);
    transition: left 0.6s ease;
    border-radius: 25px;
}

.sc-slider-subtitle:hover {
    background: rgba(81, 177, 70, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(81, 177, 70, 0.3);
}

.sc-slider-subtitle:hover::before {
    left: 100%;
}

.slider-title {
    font-size: 2.0rem;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 30px 20px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.hero-btn-primary:hover {
    background-color: #fff;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.hero-btn-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.hero-btn-outline:hover::before {
    left: 100%;
}

/* Right Content - FIXED */
.hero-visual {
    flex: 0 0 60%;
    max-width: 60%;
    position: relative;
    height: 500px;
    z-index: 2;
    overflow: visible;
    border-radius: 20px;
    margin-left: -30%;
    width: 90%;
}

.hero-image-swiper,
.hero-image-swiper .swiper-wrapper,
.hero-image-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.hero-image-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.hero-image-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    transform: scale(1.1);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0, 0, 0, 0.0) 100%);
}

.hero-image-swiper .swiper-slide-active img {
    transform: scale(1);
}

/* Swiper Navigation Arrows - Clean Arrows Only */
.hero-swiper-next,
.hero-swiper-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-swiper-next {
    right: 25px;
}

.hero-swiper-prev {
    left: 25px;
}

.hero-swiper-next:hover,
.hero-swiper-prev:hover {
    color: #51b146;
    transform: translateY(-50%) scale(1.2);
    text-shadow: 0 4px 15px rgba(81, 177, 70, 0.6);
}

.hero-swiper-next::after,
.hero-swiper-prev::after {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.9rem;
}

.hero-swiper-next::after {
    content: '\f105'; /* fa-angle-right */
}

.hero-swiper-prev::after {
    content: '\f104'; /* fa-angle-left */
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50px;
}

.scroll-down:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-down:hover i {
    transform: translateY(0) scale(1.2);
    color: var(--accent-color);
}

.scroll-down i {
    font-size: 1.5rem;
    margin-top: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-divider .shape-fill {
    fill: #f3f3f3;
}

.dark-theme .wave-divider .shape-fill {
    fill: #1e1e1e;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    
    .hero-text, .hero-visual {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }
    
    .hero-text {
        margin-bottom: 40px;
        z-index: 5;
    }
    
    .hero-visual {
        margin-left: 0;
        width: 100%;
        z-index: 2;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .slider-title {
        font-size: 3rem;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .hero-swiper-next {
        right: 20px;
    }
    
    .hero-swiper-prev {
        left: 20px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 600px;
    }
    
    .slider-title {
        font-size: 2.0rem;
    }
    
    .sc-slider-subtitle {
        font-size: 1rem;
    }
    
    .hero-btn {
        padding: 12px 25px;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .hero-swiper-next,
    .hero-swiper-prev {
        font-size: 1.3rem;
    }
    
    .hero-swiper-next {
        right: 15px;
    }
    
    .hero-swiper-prev {
        left: 15px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 500px;
    }
    
    .slider-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-btn {
        width: 100%;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .hero-swiper-next,
    .hero-swiper-prev {
        font-size: 1.2rem;
    }
    
    .hero-swiper-next {
        right: 10px;
    }
    
    .hero-swiper-prev {
        left: 10px;
    }
}