/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 0;
    /* Reset padding as nav is absolute */
}

/* Navigation Tabs */
.hero-nav {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-tab {
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    background-color: transparent;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.hero-tab:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.05);
}

.hero-tab.active {
    background-color: #000;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Optional: Add a subtle shine effect to active tab */
.hero-tab.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Hero Content Wrapper */
.hero-content {
    display: none;
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.hero-content.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container to hold image and dots */
.ppe-wrapper {
    position: relative;
    display: inline-block;
    width: auto;
    font-family: sans-serif;
}

.ppe-image {
    display: block;
    width: auto;
    height: 800px;
}

/* Remove list styling */
.ppe-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Updated PPE Intro Styles */
.ppe-intro {
    padding: 4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #ffffff, #f8f9fa);
}

.ppe-intro h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.ppe-intro h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.ppe-intro p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #2c3e50;
    border-left: var(--border-left-color);
    padding-left: 2rem;
    max-width: 600px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.5px;
    text-align: justify;
}

/* Common styles for the list item (the anchor point) */
.item {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 101;
    /* Ensure it's above the nav buttons */
}

/* --- THE GLOWING DOT --- */

.item i.dot {
    display: block;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: background-color 0.3s;
}

/* The Ripple Animation Circles */
.item i.dot::before,
.item i.dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(234, 255, 0, 0.6);
    z-index: 1;
    animation: pulse 2s infinite;
}

/* Delay the second ripple for a continuous effect */
.item i.dot::after {
    animation-delay: 1s;
}

/* Keyframes for the ripple */
@keyframes pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}

/* --- INTERACTION (HOVER) --- */

/* Change color on hover */
.item.active i.dot {
    background-color: #ffc107;
}

.item.active i.dot::before,
.item.active i.dot::after {
    background-color: rgba(255, 193, 7, 0.6);
}

/* --- THE TOOLTIP (INFO BOX) --- */
.details {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    width: 180px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Small arrow pointing down to the dot */
.details::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

/* Show tooltip on hover */
.item.active .details {
    opacity: 1;
    visibility: visible;
    bottom: 35px;
}

/* Brand Logos in Tooltip */
.brand-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.brand-logos a {
    display: block;
    line-height: 0;
}

.brand-logos img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #eee;
    transition: transform 0.2s;
    pointer-events: auto;
}

.brand-logos img:hover {
    transform: scale(1.1);
}

/* --- MOBILE RESPONSIVENESS --- */
@media screen and (max-width: 1150px) {
    .hero-section {
        padding-top: 4rem;
        /* Add space for the absolute nav */
    }

    .hero-nav {
        width: 90%;
        justify-content: center;
        top: 1rem;
    }

    .hero-tab {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
    }

    .ppe-wrapper {
        width: fit-content;
        max-width: 100%;
        display: block;
        margin: 2rem auto 0;
        /* Add top margin here instead of padding */
        position: relative;
        background-color: transparent;
        /* Remove background from wrapper */
    }

    .ppe-image {
        height: auto;
        max-height: 50vh;
        max-width: 100%;
        object-fit: contain;
        display: block;
        /* Remove any extra space */
    }

    .ppe-intro {
        padding: 2rem 1.5rem;
        text-align: center;
        width: 100%;
    }

    .ppe-intro h2 {
        font-size: 2rem;
    }

    .ppe-intro p {
        font-size: 1rem;
    }

    /* Adjust tooltip position for mobile to prevent overflow */
    .details {
        width: 150px;
        padding: 8px;
        font-size: 0.9rem;
        bottom: 30px;
    }

    /* Ensure tooltips near edges don't overflow */
    .item[style*="left: 5%"] .details,
    .item[style*="left: 10%"] .details {
        left: 0;
        transform: translateX(0);
    }

    .item[style*="left: 5%"] .details::after,
    .item[style*="left: 10%"] .details::after {
        left: 20px;
    }

    .item[style*="left: 90%"] .details,
    .item[style*="left: 95%"] .details {
        left: auto;
        right: 0;
        transform: translateX(0);
    }

    .item[style*="left: 90%"] .details::after,
    .item[style*="left: 95%"] .details::after {
        left: auto;
        right: 20px;
    }
}