/* ===========================================
   HERO CAROUSEL — Full-Screen Modern Design
   =========================================== */

/* Force Inter font globally for this page */
body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, select {
    font-family: 'Inter', 'Open Sans', sans-serif;
}

/* ---- Section wrapper ---- */
.hero-carousel-section {
    position: relative;
    width: 100vw;
    height: calc(100vh - var(--header-h, 130px));
    min-height: 480px;
    overflow: hidden;
    background: #0a1628;
    /* Break out of any container padding */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* ---- Slides wrapper ---- */
.hero-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ---- Individual slide ---- */
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
    pointer-events: auto;
}

.hero-slide.leaving {
    opacity: 0;
    transform: scale(0.97);
    z-index: 2;
}

/* ---- Gradient Overlay ---- */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(5, 14, 38, 0.88) 0%,
        rgba(9, 50, 130, 0.60) 50%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through to content */
}

/* ---- Slide Content / Caption ---- */
.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8vw;
    max-width: 760px;
}

/* Animated entry for content when slide becomes active */
.hero-slide .hero-tag,
.hero-slide .hero-title,
.hero-slide .hero-subtitle,
.hero-slide .hero-cta {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active .hero-tag    { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.hero-slide.active .hero-title  { opacity: 1; transform: translateY(0); transition-delay: 0.40s; }
.hero-slide.active .hero-subtitle{ opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.hero-slide.active .hero-cta    { opacity: 1; transform: translateY(0); transition-delay: 0.70s; }

/* Category Tag */
.hero-tag {
    display: inline-block;
    background: rgba(9, 76, 164, 0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 2px;
    margin-bottom: 18px;
    width: fit-content;
    backdrop-filter: blur(4px);
    border-left: 3px solid #4da3ff;
}

/* Main Title */
.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4.8rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 18px 0;
    text-shadow: 0 2px 30px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
}

/* Subtitle */
.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    margin: 0 0 32px 0;
    max-width: 540px;
}

/* CTA Button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #094ca4;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 3px;
    text-decoration: none !important;
    width: fit-content;
    border: 2px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease,
                box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(9, 76, 164, 0.5);
    position: relative;
    z-index: 999;
    pointer-events: auto !important;
}
.hero-cta:hover {
    background: transparent;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(9, 76, 164, 0.4);
}
.hero-cta .fa {
    font-size: 13px;
    transition: transform 0.2s ease;
}
.hero-cta:hover .fa {
    transform: translateX(4px);
}

/* ---- Progress Bar ---- */
.hero-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #4da3ff 0%, #094ca4 100%);
    z-index: 20;
    will-change: width;
}

/* ---- Navigation Arrows ---- */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.10);
    border: 1.5px solid rgba(255, 255, 255, 0.30);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    outline: none;
    padding: 0;
}
.hero-arrow:hover {
    background: rgba(9, 76, 164, 0.85);
    border-color: #094ca4;
    transform: translateY(-50%) scale(1.08);
}
.hero-arrow-prev { left: 28px; }
.hero-arrow-next { right: 28px; }

/* ---- Dot Indicators ---- */
.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 8vw;
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-dot {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, width 0.3s;
    outline: none;
}
.hero-dot.active {
    background: #fff;
    width: 52px;
}

/* ---- Scroll-Down Indicator ---- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 28px;
    right: 8vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    color: rgba(255,255,255,0.65);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hero-scroll-line {
    width: 1.5px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===========================================
   MODERN TAGLINE / COMPANY TARGET SECTION
   =========================================== */
.bg-company-target.modern-tagline {
    background: linear-gradient(135deg, #0b1e45 0%, #0d3a8a 50%, #083070 100%) !important;
    padding: 28px 20px !important;
    text-align: center !important;
}

.tagline-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.tagline-main {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tagline-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4da3ff, transparent);
    margin: 12px auto;
    border-radius: 2px;
}

.tagline-items {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.78rem, 1.5vw, 0.92rem);
    font-weight: 500;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
}

.tagline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.tagline-item .fa {
    color: #4da3ff;
    font-size: 14px;
}
.tagline-sep {
    color: rgba(255,255,255,0.3);
    font-size: 18px;
    font-weight: 300;
}

/* ===========================================
   SCROLL REVEAL ANIMATION
   =========================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   IMPROVED SECTION STYLES (UI/UX polish)
   =========================================== */

/* Section header for "Our Clients" */
header.section-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0b2461;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
header.section-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #094ca4, #4da3ff);
    border-radius: 2px;
}
header.section-header {
    padding: 30px 0 10px;
}

/* Better btn-primary hover */
.btn-primary,
.company-content .btn {
    background: linear-gradient(135deg, #094ca4, #0d63d9) !important;
    border: none !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s !important;
    box-shadow: 0 3px 12px rgba(9, 76, 164, 0.35);
}
.btn-primary:hover,
.company-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(9, 76, 164, 0.45) !important;
    opacity: 0.92;
}

/* btn-readmore improvement */
.btn-readmore {
    border-radius: 3px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.btn-readmore:not(.bg-diretormessage .btn-readmore):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 76, 164, 0.4) !important;
}

/* Contact form modern inputs */
.form-contact-top .form-control {
    border-radius: 4px !important;
    border: 1.5px solid #dde2ea;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 14px;
}
.form-contact-top .form-control:focus {
    border-color: #094ca4;
    box-shadow: 0 0 0 3px rgba(9, 76, 164, 0.12);
}

/* Branch section improvement */
.branch {
    background: #f8fafd;
    border-top: 3px solid #094ca4;
}

/* ===========================================
   RESPONSIVE ADJUSTMENTS
   =========================================== */
@media (max-width: 991px) {
    .hero-carousel-section {
        height: calc(80vh - var(--header-h, 130px));
        min-height: 380px;
    }
    .hero-slide-content {
        padding: 0 6vw;
        max-width: 92vw;
    }
    .hero-dots {
        left: 6vw;
    }
    .hero-scroll-indicator {
        right: 6vw;
    }
}

@media (max-width: 767px) {
    .hero-carousel-section {
        height: calc(65vh - var(--header-h, 100px));
        min-height: 320px;
    }
    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .hero-arrow-prev { left: 12px; }
    .hero-arrow-next { right: 12px; }
    .hero-slide-content {
        padding: 0 5vw;
    }
    .hero-scroll-indicator {
        display: none;
    }
    .tagline-sep { display: none; }
    .tagline-items {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-carousel-section {
        min-height: 280px;
    }
    .hero-cta {
        padding: 11px 20px;
        font-size: 13px;
    }
}
