/* --- Variables & Root --- */
:root {
    --bs-primary: rgb(19, 136, 212);
    --bs-primary-rgb: 19, 136, 212;
    --bs-secondary: rgb(194, 194, 194);
    --bs-secondary-rgb: 194, 194, 194;
    --bs-success: rgb(26, 179, 148);
    --bs-success-rgb: 26, 179, 148;
    --bs-info: rgb(35, 198, 200);
    --bs-info-rgb: 35, 198, 200;
    --bs-warning: rgb(248, 172, 89);
    --bs-warning-rgb: 248, 172, 89;
    --bs-danger: rgb(231, 85, 101);
    --bs-danger-rgb: 231, 85, 101;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-link-color: var(--bs-primary);
}

/* --- Base & Scroll --- */
[id='contact'] {
    scroll-margin-top: 100px;
}

.nav-pills {
    --bs-nav-pills-border-radius: var(--bs-border-radius);
    --bs-nav-pills-link-active-color: #fff;
    --bs-nav-pills-link-active-bg: var(--bs-primary);
}

.overlay {
    background-color: rgba(var(--bs-primary-rgb), 0.4);
}

/* --- Navbar --- */
.navbar.transition {
    transition: background-color 0.3s ease-in-out;
}

.navbar-transparent {
    background-color: transparent !important;
    transition: background-color 0.3s ease-in-out;
}

.navbar-transparent.scrolled {
    background-color: var(--bs-primary) !important;
}

@media (max-width: 991px) {

    .navbar-transparent .navbar-collapse.show,
    .navbar-transparent .navbar-collapse.collapsing {
        background-color: var(--bs-primary);
    }

    .navbar-transparent:has(.navbar-collapse.show),
    .navbar-transparent:has(.navbar-collapse.collapsing),
    .navbar-transparent.scrolled {
        background-color: var(--bs-primary) !important;
    }
}

/* --- Hero & Backgrounds --- */
.hero-overlay-gradient {
    background: linear-gradient(90deg,
            rgba(11, 15, 25, 0.85) 0%,
            rgba(19, 136, 212, 0.6) 40%,
            rgba(19, 136, 212, 0.1) 100%);
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-gradient-cyan {
    background: linear-gradient(120deg, #1388D4, #5eb8ef);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Decorative Elements (Waves) --- */
.waves {
    position: relative;
    width: 100%;
    height: 10vh;
    min-height: 70px;
    max-height: 100px;
}
.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}
.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

/* --- Icons & Helpers --- */
.icon-circle,
.icon-circle-sm,
.icon-box,
.icon-70 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}
.icon-circle-sm {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.icon-70 {
    border-radius: 50%;
    width: 70px;
    height: 70px;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.hero-icon-lg {
    font-size: 8rem;
}

.hero-icon-md {
    font-size: 6rem;
}

.hero-icon-sm {
    font-size: 4rem;
}

.hero-icon-xs {
    font-size: 5rem;
}

/* Position helpers */
.top-10 {
    top: 10%;
}

.bottom-10 {
    bottom: 10%;
}

.end-5 {
    right: 5%;
}

.end-10 {
    right: 10%;
}

.start-5 {
    left: 5%;
}

.start-42 {
    left: 42%;
}

/* Sizing helpers */
.mw-700 {
    max-width: 700px;
}

.h-8px {
    height: 8px !important;
}

.mw-600 {
    max-width: 600px;
}

.mh-80 {
    max-height: 80px;
}

.w-60px {
    width: 60px;
}

.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.tracking-wider {
    letter-spacing: 0.15em;
}

.truncate-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Cards & General UI --- */
.card.shadow-sm:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transition: box-shadow 0.3s ease-in-out;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* --- Testimonials --- */
.testimonial-carousel {
    position: relative;
}

.testimonial-snap-area {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.testimonial-snap-area::-webkit-scrollbar {
    display: none;
}

.testimonial-item-snap {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    min-width: 300px;
}

.testimonial-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.testimonial-pagination .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dee2e6;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-pagination .dot.active {
    background-color: var(--bs-primary);
    transform: scale(1.2);
}

.testimonial-pagination .dot:hover {
    background-color: var(--bs-primary);
    opacity: 0.7;
}

.testimonial-logo {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.testimonial-item-snap:hover .testimonial-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.testimonial-icon {
    width: 50px;
    height: 50px;
}

/* --- Clients & Blog --- */
.logo-client {
    filter: grayscale(100%);
    transition: filter 0.3s;
    height: 80px;
    width: 100%;
    max-width: 180px;
    object-fit: contain;
    object-position: center;
    padding: 10px;
}
.logo-client:hover {
    filter: none;
}
.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.breadcrumb-item.active {
    max-width: 70%;
}

/* --- Case Studies --- */
.case-study-flow {
    transition: all 0.5s ease;
}

.cs-image-wrapper {
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    z-index: 1;
}

.case-study-flow:hover .cs-image-wrapper {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(19, 136, 212, 0.2) !important;
}

.cs-vessel-img,
.cs-placeholder-bg {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.cs-logo-overlay {
    position: absolute;
    bottom: 5%;
    right: 3%;
    z-index: 2;
}

.cs-logo-overlay.left {
    right: auto;
    left: 20px;
}

.cs-logo-overlay img,
.cs-logo-overlay div {
    max-height: 70px;
    border: 4px solid #fff;
}

.journey-year {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 900;
    opacity: 0.12;
    line-height: 1;
    padding: 1rem;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* --- Module Specific --- */
.module-mockup {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.module-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

.module-reveal-card .reveal-text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.module-reveal-card:hover .reveal-text {
    max-height: 80px;
    opacity: 1;
}

/* --- Keyframes & Animations --- */
@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Scroller Masks */
.scroller {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 5%, white 80%, transparent);
    cursor: grab;
}

.scroller.active {
    cursor: grabbing;
}

.scroll-content {
    display: flex;
}

/* --- Media Queries --- */

/* Desktop only (lg and up) */
@media (min-width: 992px) {
    .testimonial-pagination .dot:nth-child(n+6) {
        display: none;
    }

    .mb-lg-n3 {
        margin-bottom: -2.2rem !important;
    }

    .card.rounded-5 {
        border: 4px solid #fff !important;
        transition: transform 0.3s ease-in-out;
    }

    .card.rounded-5:hover {
        transform: translateY(-8px);
        z-index: 10;
    }

    .module-reveal-card {
        min-height: 105px;
    }
}

/* --- Card Glow Effects --- */
.glow-primary {
    border: 1px solid rgba(var(--bs-primary-rgb), 0.1) !important;
    box-shadow: 0 15px 45px -10px rgba(var(--bs-primary-rgb), 0.35),
        inset 0 0 8px rgba(var(--bs-primary-rgb), 0.05) !important;
}

.glow-primary:hover {
    box-shadow: 0 25px 60px -12px rgba(var(--bs-primary-rgb), 0.55),
        inset 0 0 12px rgba(var(--bs-primary-rgb), 0.1) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.2) !important;
}

.glow-success {
    border: 1px solid rgba(var(--bs-success-rgb), 0.1) !important;
    box-shadow: 0 15px 45px -10px rgba(var(--bs-success-rgb), 0.35),
        inset 0 0 8px rgba(var(--bs-success-rgb), 0.05) !important;
}

.glow-success:hover {
    box-shadow: 0 25px 60px -12px rgba(var(--bs-success-rgb), 0.55),
        inset 0 0 12px rgba(var(--bs-success-rgb), 0.1) !important;
    border-color: rgba(var(--bs-success-rgb), 0.2) !important;
}

.glow-info {
    border: 1px solid rgba(var(--bs-info-rgb), 0.1) !important;
    box-shadow: 0 15px 45px -10px rgba(var(--bs-info-rgb), 0.35),
        inset 0 0 8px rgba(var(--bs-info-rgb), 0.05) !important;
}

.glow-info:hover {
    box-shadow: 0 25px 60px -12px rgba(var(--bs-info-rgb), 0.55),
        inset 0 0 12px rgba(var(--bs-info-rgb), 0.1) !important;
    border-color: rgba(var(--bs-info-rgb), 0.2) !important;
}

.glow-warning {
    border: 1px solid rgba(var(--bs-warning-rgb), 0.1) !important;
    box-shadow: 0 15px 45px -10px rgba(var(--bs-warning-rgb), 0.35),
        inset 0 0 8px rgba(var(--bs-warning-rgb), 0.05) !important;
}

.glow-warning:hover {
    box-shadow: 0 25px 60px -12px rgba(var(--bs-warning-rgb), 0.55),
        inset 0 0 12px rgba(var(--bs-warning-rgb), 0.1) !important;
    border-color: rgba(var(--bs-warning-rgb), 0.2) !important;
}

.glow-danger {
    border: 1px solid rgba(var(--bs-danger-rgb), 0.1) !important;
    box-shadow: 0 15px 45px -10px rgba(var(--bs-danger-rgb), 0.35),
        inset 0 0 8px rgba(var(--bs-danger-rgb), 0.05) !important;
}

.glow-danger:hover {
    box-shadow: 0 25px 60px -12px rgba(var(--bs-danger-rgb), 0.55),
        inset 0 0 12px rgba(var(--bs-danger-rgb), 0.1) !important;
    border-color: rgba(var(--bs-danger-rgb), 0.2) !important;
}

/* --- Layout Helpers --- */
@media (min-width: 992px) {
    .px-lg-6 {
        padding-left: 4.5rem !important;
        padding-right: 4.5rem !important;
    }
}

/* Tablet only (md to lg) */
@media (min-width: 768px) and (max-width: 991px) {
    .testimonial-pagination .dot:nth-child(7) {
        display: none;
    }
}

/* Below Desktop (md and down) */
@media (max-width: 991px) {
    .testimonial-item-snap {
        flex: 0 0 calc(50% - 10px);
    }

    .module-mockup {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Mobile (sm and down) */
@media (max-width: 767px) {
    .testimonial-item-snap {
        flex: 0 0 calc(100% - 20px);
    }

    .hero-bg img,
    .hero-bg video {
        object-position: 70% center;
    }
}