/* ===================== Keyframes ===================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* ===================== Global ===================== */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===================== Variables ===================== */
:root {
    --bg1-color: #013365;
    --bg3-color: #ffffff;
    --button-color: #e9292f;
    --text-color: #6B7280;
    --sub-text: #000000;
    --gold-color: #dda83d;
}

/* ===================== Hero Section ===================== */
.brands-hero {
    height: 500px;
    background: linear-gradient(135deg, var(--bg1-color), #3a4db3);
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.brands-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('httpsa://www.transparenttextures.com/patterns/dark-denim-3.png');
    opacity: 0.8;
    pointer-events: none;
}

.brands-hero-content {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out forwards;
}

.brands-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #fff 20%, var(--gold-color) 40%, var(--gold-color) 60%, #fff 80%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    font-weight: 700;
}

.brand-header img {
    width: 60%;
    margin: auto;
    height: 100%;
    position: relative;
    z-index: 11111111111111111111;
    margin: -50px auto;
}

.brands-hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color: var(--bg3-color);
}

.brands-hero-content .btn {
    display: inline-block;
    background-color: var(--gold-color);
    color: var(--light-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(201, 160, 77, 0.3);
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.brands-hero-content .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.brands-hero-content .btn:hover::before {
    left: 100%;
}

.brands-hero-content .btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 160, 77, 0.4);
    animation: none;
}





/* ===================== Brand Cards ===================== */
.section-brands-showcase {
    background-color: #e2e8f0;
    text-align: center;
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-heading h2 {
    color: var(--button-color);
}

.section-heading h2 svg {
    margin-bottom: 5px;
}

.section-heading p {
    max-width: 800px;
    margin: 10px auto;
    font-size: 1rem;
    color: var(--sub-text);
}

.brand-card {
    background: var(--bg3-color);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: auto;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    transform: translateY(50px);
    position: relative;
    text-align: start;
    margin-bottom: 50px;
}

.brand-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.brand-header {
    background: #f6eeee;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.brand-text {
    padding-right: 50px;
    margin-top: 100px;
    gap: 50px;
    display: flex;
    flex-direction: column;
    width: 50%;
}

.brand-text h3 {
    color: var(--bg1-color);
    font-size: 1.80rem;
    font-weight: 600;
}

.brand-content video {
    height: 700px;
    object-fit: cover;
}

.brand-text h4 {
    color: var(--bg1-color);
}

.brand-logo {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    transition: var(--transition);
}

.brand-logo img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

.brand-card:hover .brand-logo {
    transform: translateY(-5px);
}

.brand-card:hover .brand-logo img {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.brand-card-hlp {
    width: 100%;
    height: 100%;
}

.brand-text-left {
    margin-left: 50px;
    padding: 0;
}

.brand-tagline {
    font-size: 1.6rem;
    color: #111;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    font-weight: 500;
    display: none;
}

.brand-text ul li {
    line-height: 1.8;
    text-align: start;
    font-size: 14px;
}

.brand-text p {
    text-align: justify;
}

.brand-content {
    display: flex;
    gap: 50px;
    padding: 0;
    opacity: 1 !important;
    transform: none;
}

.brand-content img,
.brand-content video {
    width: 50%;
}

.brand-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.brand-image img,
.brand-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.brand-card:hover .brand-image img {
    transform: scale(1.03);
}

.brand-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.brand-info h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    bottom: -10px;
    left: 0;
    transition: width 0.3s ease;
}

.brand-info h3:hover::after {
    width: 100px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    transition: var(--transition);
    padding: 10px;
    border-radius: 8px;
}

.feature-icon {
    color: var(--accent-color);
    font-size: 10px;
    margin-right: 15px;
    margin-top: 3px;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: rotate(15deg) scale(1.2);
}

.feature-text {
    flex: 1;
}

/* Hidden state */
.brand-content img,
.brand-content video,
.brand-content .brand-text {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

/* Left animation */
.brand-content.left-in img,
.brand-content.left-in video {
    transform: translateX(-50px);
}

/* Right animation */
.brand-content.right-in img,
.brand-content.right-in video {
    transform: translateX(50px);
}

/* Active states */
.brand-content.show img,
.brand-content.show video {
    opacity: 1;
    transform: translateX(0);
}

.brand-content.show .brand-text {
    opacity: 1;
    transform: translateY(0);
}

/* Logo hidden state */
.brand-header img {
    opacity: 0;
    transform: scale(0);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Logo active state */
.brand-header.show img {
    opacity: 1;
    transform: scale(1);
}






/* ===================== Floating & Wave ===================== */
.floating {
    animation: float 6s ease-in-out infinite;
}

.wave {
    animation-name: wave;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

/* ===================== Marketplace Icons ===================== */
.marketplace-icons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    /* margin-top: 65px; */
    margin: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.marketplace-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.marketplace-icon img {
    border-radius: 50%;
}

.marketplace-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.marketplace-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.marketplace-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}



/* ===================== Products section ===================== */
.section.products-showcase {
    width: 90%;
    margin: auto;
    text-align: center;
    padding: 100px 0;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;

}

.product-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* Optional: image zoom on hover */
.product-card .product-image img {
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Optional: marketplace icons pop up slightly */
.product-card .marketplace-icons {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-card:hover .marketplace-icons {
    transform: translateY(-5px);
    opacity: 1;
}

.section.products-showcase .section-heading {
    text-align: center;
    margin-bottom: 20px;
}

.products-showcase .section-heading h2 {
    color: var(--bg1-color) !important;
    text-transform: uppercase;
}

.section.products-showcase>p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 16px;
    color: var(--sub-text);
}

/* Wrapper with arrows */
.products-slider-wrapper {
    position: relative;
}

.products-grid {
    display: flex;
    gap: 20px;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 111;
    scroll-behavior: smooth;
    transition: transform 0.5s ease;
}

.products-grid-hlp-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.products-showcase .section-heading h2 {
    margin-bottom: 0 !important;
}

.product-info {
    padding: 20px;
}

.product-image {
    position: relative;
}

.product-imagesh::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
}

.product-info p {
    font-size: 14px !important;
}

.product-card {
    flex: 0 0 calc(25% - 15px);
    background: #fff;
    border-radius: 12px;
    /* height: 100%; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.product-info h4 {
    color: var(--bg1-color);
    margin-top: 20px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    font-size: 28px;
    padding: 8px 12px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: #eee;
}

.slider-btn.left {
    left: -20px;
}

.slider-btn.right {
    right: -20px;
}


/* Arrows container */
.marketplace-arrow.icons {
    display: flex;
    justify-content: space-between;
    position: absolute;
    align-items: center;
    width: 110%;
    height: 100%;
    top: 0;
    z-index: 11111;
    left: -5%;
}

/* Individual arrow buttons */
.marketplace-arrow.icons .marketplace-arrow {
    background-color: black;
    border: none;
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    color: white;
}

.products-grid-hlp {
    padding: 10px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.marketplace-arrow.icons .marketplace-arrow:hover {
    background-color: #eee;
    transform: scale(1.1);
    color: black;
}



/* ✅ Responsive */
@media (max-width: 1200px) {
    .product-card {
        flex: 0 0 calc(33.33% - 15px);
    }
}

@media (max-width: 992px) {
    .product-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .product-card {
        flex: 0 0 100%;
    }

    .brand-content.show .brand-text {
        padding: 0 20px !important;
        text-align: justify !important;
    }
}






/* ===================== Responsive ===================== */
@media (min-width: 576px) and (max-width:768px) {

    .product-info,
    .product-info3,
    .product-info2 {
        width: 100% !important;
    }

    .marine-extract-body-wash,
    .product-image2,
    .product-image5,
    .product-image,
    .product-image3,
    .product-image6,
    .product-image4 {
        width: 100% !important;
    }

    .product-image {
        height: 300px !important;
        margin: 0  !important;
    }


    .product-card .product-image img {
        height: 100%;
        object-fit: cover;
    }
}

@media(max-width:992px) {
    .brand-content {
        flex-direction: column;
        margin-bottom: 50px;
    }

    .brand-content-reverse {
        flex-direction: column-reverse !important;
    }

    .brand-image {
        height: 300px;
    }

    .brand-info {
        padding: 30px;
    }

    .brands-hero h1 {
        font-size: 2.8rem;
    }

    .brand-text {
        width: 100%;
        text-align: center;
        /* padding-right: 0 !important; */
        margin-left: 0 !important;
    }

    .brand-content img,
    .brand-content video {
        width: 70%;
        margin: auto;
    }

    .brand-content video {
        height: auto;
    }

    .brand-text ul {
        width: 60%;
        margin: auto;
    }

    .brand-text p {
        text-align: center;
    }

    .brand-content.show .brand-text {
        padding: 0 50px;
    }
}

@media(max-width:768px) {
    .brand-video {
        width: 300px;
        height: 300px;
    }

    .section {
        padding: 60px 20px;
    }

    .brand-header {
        padding: 30px 20px;
    }

    .brand-logo img {
        max-width: 150px;
    }

    .brand-tagline {
        font-size: 1.1rem;
    }

    .brand-info h3 {
        font-size: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        /* gap: 10px; */
    }

    .product-image {
        height: 40%;
    }

    .product-info h4 {
        font-size: 22px;
    }

    .product-info p {
        font-size: 12px;
    }

    .dropdown-toggle-drop {
        padding: 5px 9px;
        font-size: 12px !important;
    }

    .feature-text {
        font-size: 14px;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-grid {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media(max-width:576px) {
    .brands-hero h1 {
        font-size: 1.8rem;
    }

    .brands-hero p {
        font-size: 1rem;
    }

    .testimonial {
        padding: 30px 20px;
    }

    .testimonial-content {
        font-size: 1rem;
    }

    .brand-cta h2 {
        font-size: 2rem;
    }

    .brand-cta p {
        font-size: 1rem;
    }

    .marketplace-icons {
        margin-top: 20px;
    }

    .brand-content img,
    .brand-content video {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

    .brand-text p {
        text-align: justify !important;
        font-size: 14px !important;
        margin-bottom: 0 !important;
        list-style: inside;
    }

    .brand-text h3 {
        font-size: 22px !important;
        /* text-align: left; */
    }

    .brand-text h4 {
        text-align: left;
        color: var(--bg1-color);
        font-size: 22px;
        font-weight: 600;
    }

    .marketplace-arrow.icons .marketplace-arrow {
        z-index: 111111;
    }

    .products-grid {
        z-index: 11 !important;
    }

    .brand-content video {
        height: 400px;
    }

    .product-card .product-image img {
        height: 300px;
        width: 100%;
        object-fit: cover;
    }

    .brand-text {
        gap: 20px !important;
    }

    .product-card {
        height: 100%;
    }

    .brand-text ul {
        padding: 0 0 0 40px !important;
    }
}