/* ============================================
   FLEX BOX SHIPPING - Index Page Styles
   Styles specific to index.html
   ============================================ */

/* === Swiper Hero Slider === */
.swiper-container {
    width: 100%;
    height: 100vh;
}
.swiper-slide {
    overflow: hidden;
}
.swiper-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease-in-out;
    transform: scale(1) translate(0, 0) rotate(0deg);
}

/* === Kenburns Animation Classes === */
.kenburns-top-right {
    transform-origin: 85% 15%;
    background-position: 85% 15%;
}
.kenburns-bottom-left {
    transform-origin: 15% 85%;
    background-position: 15% 85%;
}
.kenburns-center {
    transform-origin: center center;
    background-position: center center;
}
.kenburns-top-left {
    transform-origin: 15% 15%;
    background-position: 15% 15%;
}
.kenburns-bottom-right {
    transform-origin: 85% 85%;
    background-position: 85% 85%;
}

/* Active slide animations with different movements */
.swiper-slide-active .kenburns-top-right { transform: translate(0, 0); }
.swiper-slide-active .kenburns-bottom-left { transform: translate(0, 0); }
.swiper-slide-active .kenburns-center { transform: translate(0, 0); }
.swiper-slide-active .kenburns-top-left { transform: translate(0, 0); }
.swiper-slide-active .kenburns-bottom-right { transform: translate(0, 0); }

/* === Swiper Navigation === */
.swiper-button-next, .swiper-button-prev {
    --swiper-navigation-color: #fff;
    color: #fff !important;
    border-color: #fff !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.swiper-container:hover .swiper-button-next,
.swiper-container:hover .swiper-button-prev {
    opacity: 0.7;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    opacity: 1 !important;
}

/* === Swiper Pagination === */
.swiper-container {
    --swiper-pagination-bullet-size: 0;
    --swiper-pagination-bullet-width: 18px;
    --swiper-pagination-bullet-height: 5px;
    --swiper-pagination-bullet-border-radius: 5px;
    --swiper-pagination-bullet-inactive-color: rgba(255, 255, 255, 0.35);
    --swiper-pagination-bullet-inactive-opacity: 1;
    --swiper-pagination-color: #fff;
    --swiper-pagination-bottom: 40px;
}

.swiper-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.swiper-pagination-bullet {
    transition: all 0.3s ease !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.7) !important;
}

.swiper-pagination-bullet-active {
    width: 30px !important;
    background: #fff !important;
    opacity: 1 !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 4px rgba(255, 255, 255, 0.3) !important;
}

@media (max-width: 768px) {
    .swiper-container {
        --swiper-pagination-bullet-width: 16px;
        --swiper-pagination-bullet-height: 4px;
        --swiper-pagination-bottom: 30px;
    }
    .swiper-pagination { gap: 6px; }
    .swiper-pagination-bullet-active { width: 30px !important; }
}

/* === Partner Logo Circle Animation === */
.logo-circle-container {
    position: relative;
    width: 100%;
    margin: 2rem auto 0;
    max-width: 500px;
    height: 500px;
}
.central-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.central-logo img {
    max-width: 70%;
    height: auto;
}
.logo-circle-animator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotate 40s linear infinite;
}
.logo-circle-container:hover .logo-circle-animator {
    animation-play-state: paused;
}
.logo-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px;
}
.logo-wrapper img {
    max-width: 100%;
    height: auto;
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotate-reverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* Desktop positioning - evenly distributed around 360 degrees */
@media (min-width: 769px) {
    .logo-wrapper:nth-child(1) { transform: rotate(0deg) translateY(-180px); }      /* MSC - 12 o'clock */
    .logo-wrapper:nth-child(2) { transform: rotate(40deg) translateY(-180px); }     /* CMA CGM */
    .logo-wrapper:nth-child(3) { transform: rotate(80deg) translateY(-180px); }     /* Maersk */
    .logo-wrapper:nth-child(4) { transform: rotate(120deg) translateY(-180px); }    /* COSCO */
    .logo-wrapper:nth-child(5) { transform: rotate(160deg) translateY(-180px); }    /* SM Korea */
    .logo-wrapper:nth-child(6) { transform: rotate(200deg) translateY(-180px); }    /* ArcelorMittal */
    .logo-wrapper:nth-child(7) { transform: rotate(240deg) translateY(-180px); }    /* Rio Tinto */
    .logo-wrapper:nth-child(8) { transform: rotate(280deg) translateY(-180px); }    /* Oldendorff */
    .logo-wrapper:nth-child(9) { transform: rotate(320deg) translateY(-180px); }    /* Fortescue */
}

/* Mobile layout - flat grid instead of circle */
@media (max-width: 768px) {
    .logo-circle-container {
        height: auto;
        max-width: none;
        padding: 0;
    }

    .central-logo {
        display: none;
    }
    .logo-circle-animator {
        position: static;
        animation: none;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
        padding: 0 1rem;
    }
    .logo-wrapper {
        position: static;
        transform: none;
        width: 100%;
        height: 100px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 1.5rem;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .logo-wrapper:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
    .logo-wrapper img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        transform: rotate(0deg) !important;
    }
}
@media (max-width: 480px) {
    .central-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 2rem;
    }
    .logo-circle-animator {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 350px;
        padding: 0 0.5rem;
    }
    .logo-wrapper {
        height: 80px;
        padding: 1rem;
    }
}

/* === Contact Info Styles === */
.contact-info-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}
.contact-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #2069ab;
    overflow: hidden;
}
.contact-info-text {
    flex: 1;
    min-width: 0; /* Allows text to wrap */
}
.contact-info-title {
    font-weight: 600;
    color: #2069ab;
    margin-bottom: 0.25rem;
}
.contact-info-value {
    word-break: break-word;
}

/* === Contact Section Padding === */
#contact-section {
    position: relative;
    padding-bottom: 80px; /* Space for floating contact */
}
