/* Enhanced Services Dropdown Styles */
.services-dropdown {
    position: relative;
}

.services-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Enhanced About Us Dropdown Styles */
.about-dropdown {
    position: relative;
}

.about-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.about-dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    min-width: 220px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
    pointer-events: auto;
}

/* Ensure proper hover functionality for About Us */
.about-dropdown:hover .about-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Keep About Us dropdown visible when hovering over it */
.about-dropdown-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.about-dropdown-menu li {
    white-space: nowrap;
}

.about-dropdown-menu li a {
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 16px;
    display: block;
    text-decoration: none;
}

.about-dropdown-menu li a:hover {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.services-dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 8px;
    pointer-events: auto;
}

/* Ensure proper hover functionality */
.services-dropdown:hover .services-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Keep dropdown visible when hovering over it */
.services-dropdown-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.services-dropdown-menu li {
    white-space: nowrap;
}

.services-dropdown-menu li a {
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 16px;
    display: block;
    text-decoration: none;
}

.services-dropdown-menu li a:hover {
    border-left-color: #3b82f6;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.8) 0%, rgba(59, 130, 246, 0.6) 100%);
    transform: translateX(5px);
}

.services-dropdown-menu li a::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;
}

.services-dropdown-menu li a:hover::before {
    left: 100%;
}

/* Ensure the dropdown doesn't interfere with other elements */
.services-dropdown-menu li:last-child a {
    border-bottom: none;
}

/* Additional hover states for better UX */
.services-dropdown:hover > a {
    color: #93c5fd !important;
}

/* Enhanced Get Quote Button Styles */
.get-quote-btn {
    position: relative;
    overflow: hidden;
    border: 2px solid;
    z-index: 1;
}

/* Default transparent navbar state */
#navbar:not(.scrolled) .get-quote-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
    backdrop-filter: blur(5px);
}

#navbar:not(.scrolled) .get-quote-btn:hover {
    background-color: white;
    border-color: white;
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Scrolled navbar state */
#navbar.scrolled .get-quote-btn {
    background-color: transparent;
    border-color: #3b82f6;
    color: #3b82f6;
}

#navbar.scrolled .get-quote-btn:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Ripple effect for button */
.get-quote-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

.get-quote-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Mobile Services Dropdown */
.mobile-services-dropdown .mobile-dropdown-arrow {
    transition: transform 0.3s ease;
}

.mobile-services-dropdown.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-services-menu {
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-services-menu.show {
    max-height: 400px;
}

.mobile-services-menu li a {
    font-size: 0.9rem;
    position: relative;
}

.mobile-services-menu li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-services-menu li a:hover::before {
    opacity: 1;
    left: -10px;
}

/* our Services Section Styles */
.service-sticky {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.service-sticky.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Careers/About us Section Styles */



.careers-section {
    background: linear-gradient(90deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.9) 100%);
    position: relative;
    color: white;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.careers-parallax {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: url('../assets/bigstock-Logistics-and-transportation-o-366890989.jpg') center center/cover no-repeat;
    /* Maritime engineer working on ship */
    opacity: 0.3;
    filter: blur(2px);
}

.careers-content {
    position: relative;
    z-index: 2;
}

.section-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.careers-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.careers-description {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.careers-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: rotate(3deg);
    transition: all 0.5s ease;
}

.careers-image-container:hover {
    transform: rotate(0deg) scale(1.05);
}

.careers-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.careers-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(6, 182, 212, 0.5), transparent);
}

/* Media & Insights Section */
.media-section {
    background: var(--light-color);
    padding-bottom: 120px;
}

.media-header {
    text-align: center;
    margin-bottom: 3rem;
}

.media-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.media-nav-link {
    color: var(--dark-color);
    padding: 8px 20px;
    border-radius: 50px;
    margin: 0 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.media-nav-link.active,
.media-nav-link:hover {
    background: var(--primary-color);
    color: white;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-badge-blue {
    background: var(--primary-color);
}

.insight-badge {
    background: var(--accent-color);
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.5;
    min-height: 85px;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.btn-outline-primary-custom {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
}

/* Infinity Marquee Section */
.marquee-section {
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(59, 130, 246, 0.9) 100%);
    position: relative;
    overflow: hidden;
    padding: 0 0 50px;
    border-top: 4px solid var(--accent-color);
    border-bottom: 4px solid var(--accent-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) inset;
}

/* Main large text marquee styles */
.main-marquee-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--accent-color);
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.main-marquee-content {
    display: flex;
    animation: marquee-text 29s linear infinite;
    white-space: nowrap;
}

.main-marquee-content span {
    font-size: 2.5rem;
    font-weight: 800;
    padding-right: 50px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes marquee-text {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Items marquee styles */
.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 120px;
    display: flex;
    align-items: center;
}

.marquee-container:before,
.marquee-container:after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container:before {
    left: 0;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(30, 58, 138, 0) 100%);
}

.marquee-container:after {
    right: 0;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.9) 100%);
}

.marquee-track {
    display: flex;
    width: 200%;
    /* Double width to fit two sets of content */
    animation: marquee-scroll 39s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move by half of the width */
    }
}

.marquee-content {
    display: flex;
    flex: 1;
    white-space: nowrap;
    will-change: transform;
}

.marquee-item {
    display: flex;
    align-items: center;
    margin: 0 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    min-width: 280px;
    height: 80px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.marquee-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation-play-state: paused;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.main-marquee-content:hover {
    animation-play-state: paused;
}

.marquee-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    color: var(--accent-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.marquee-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-marquee-content span {
        font-size: 1.8rem;
    }

    .marquee-item {
        min-width: 220px;
        margin: 0 20px;
        padding: 15px;
    }

    .marquee-icon {
        font-size: 2rem;
    }

    .marquee-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .careers-title {
        font-size: 2.2rem;
    }

    .people-powered-title {
        font-size: 2rem;
    }

    .careers-image-container {
        margin-top: 30px;
    }
}

