@import url('variables.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.home_page_nav, .other_page_nav {
    background-color: var(--hero-bg-color);
    position: relative;
    z-index: 1000;
}

main {
    background-color: var(--body-bg-color);
}

/* NAVBAR */

#navMenu {
    display: flex;
}

.menu-toggle {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 991px) {
    #navMenu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--hero-bg-color);
        padding: 0 30px;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        z-index: 999;
        
        /* Slide Animation Setup */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
        opacity: 0;
    }

    #navMenu.active {
        max-height: 500px; /* Adjust based on menu height */
        padding: 30px;
        opacity: 1;
    }

    #navMenu li {
        padding: 15px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    #navMenu.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered animation for list items */
    #navMenu.active li:nth-child(1) { transition-delay: 0.1s; }
    #navMenu.active li:nth-child(2) { transition-delay: 0.2s; }
    #navMenu.active li:nth-child(3) { transition-delay: 0.3s; }
    #navMenu.active li:nth-child(4) { transition-delay: 0.4s; }

    #navMenu li:last-child {
        border-bottom: none;
    }
}

/* HERO SECTION */

.hero_section {
    background-color: var(--hero-bg-color);
    position: relative;
    overflow: hidden;
    min-height: 700px;
}

@media (min-width: 991px) {
    .hero_section {
        height: 100vh;
    }
}

@media (min-width: 1500px) {
    .hero_section {
        height: 77vh;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-size: cover; */
    /* background-position: center; */
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-bg.active {
    opacity: 1;
    z-index: 2;
}

.switch-block {
    position: relative;
    z-index: 10;
}

.switch-btn {
    width: 60px;
    height: 4px;
    background-color: white;
    opacity: 0.5;
    border-radius: 30px;
    margin-right: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch-btn.active {
    opacity: 1;
    /* width: 80px; */
    
}
.switch-btn.active {
    opacity: 1;
}

/* ROTATOR ANIMATION */

:root {
    --orbit-size: 1400px;
    --card-max-size: 500px;
    --orbit-speed: 1.4s;
    --straighten-speed: 1.2s;
}

.rotator-section {
    position: absolute;
    width: var(--orbit-size);
    height: var(--orbit-size);
    right: calc(var(--orbit-size) / -2.1);
    bottom: calc(var(--orbit-size) / -2.1);
    z-index: 5;
}

.rotator-main {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform var(--orbit-speed) cubic-bezier(0.7, 0, 0.3, 1);
}

.circle_img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: contain;
    pointer-events: none;
    opacity: 0.5;
}

.sqr_img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    width: auto;
    height: auto;
    max-width: var(--card-max-size);
    max-height: var(--card-max-size);
    z-index: 5;
    transition: transform var(--straighten-speed) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.orbit-moving .sqr_img {
    transition: transform var(--orbit-speed) cubic-bezier(0.7, 0, 0.3, 1);
}

.sqr_img img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: var(--card-max-size);
    object-fit: contain;
}

.sqr_img.active-vertical {
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* @keyframes rotateAnimation {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
} */

.rotating-element {
    animation: rotateAnimation 8s infinite ease-in-out;
    transform-origin: center;
}

@keyframes rotateAnimation {

    /* Start from 360° */
    0% {
        transform: rotate(360deg);
    }

    /* Rotate anti-clockwise to 270° */
    20% {
        transform: rotate(270deg);
    }

    /* Pause at 270° */
    25% {
        transform: rotate(270deg);
    }

    /* Rotate to 180° */
    45% {
        transform: rotate(180deg);
    }

    /* Pause at 180° */
    50% {
        transform: rotate(180deg);
    }

    /* Rotate to 90° */
    70% {
        transform: rotate(90deg);
    }

    /* Pause at 90° */
    75% {
        transform: rotate(90deg);
    }

    /* Rotate to 0° */
    95% {
        transform: rotate(0deg);
    }

    /* Pause at 0° */
    100% {
        transform: rotate(0deg);
    }
}

.collection_para {
    position: relative;
    padding-left: 20px;
    /* space for line */
}

.collection_para::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 60%;
    background-color: var(--light-gold);
}


@media (min-width: 992px) {
    .step-pattern-section {
        padding-top: 320px;
        padding-bottom: 180px;
    }

    .product-step-carousel.owl-carousel .owl-stage-outer {
        overflow: visible !important;
    }

    .product-step-carousel .owl-item:nth-child(1) .bag_card {
        transform: translateY(-220px);
        z-index: 1;
    }

    .product-step-carousel .owl-item:nth-child(2) .bag_card {
        transform: translateY(-130px);
        z-index: 1;
    }

    .product-step-carousel .owl-item:nth-child(3) .bag_card {
        transform: translateY(-40px);
        z-index: 1;
    }

    .product-step-carousel .owl-item:nth-child(4) .bag_card {
        transform: translateY(40px);
        z-index: 1;
    }
}

@media (max-width: 1199px) {
    .step-pattern-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

.bag_card {
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative; /* Ensure z-index works */
}

.bag_card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.wave_line {
    position: absolute;
    /* top: 40%; */
    top: 200px;
    left: 49%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 999 !important; /* Extremely high z-index to stay on top */
    opacity: 1;
    pointer-events: none;
}


.featured_card {
    width: 100%;
    margin-bottom: 2rem;
}

.featured_card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

@media (max-width: 991px) {
    .featured_card {
        margin-bottom: 3rem;
    }
    
    .featured_card .mt-5 {
        margin-top: 1.5rem !important;
    }
}




details {
    /* min-width: 700px; */
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

summary {
    list-style: none;
    cursor: pointer;

    font-size: 18px;
    font-weight: 600;
    color: #c7881d;
}

/* Remove default arrow */
summary::-webkit-details-marker {
    display: none;
}


.arrow-icon {
    transition: transform 0.3s ease;
}

/* Rotate icon when open */
details[open] .arrow-icon {
    transform: rotate(90deg);
}

.content-wrapper {
    height: 100px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: red;
}

details[open] .content-wrapper {
    height: 300px;
}

.content {
    margin-top: 18px;
    line-height: 1.7;
    font-size: 15px;
}

.trusted-box {
    position: relative;
    padding: 50px 40px;
    z-index: 1;
}

.trusted-box::before {
    content: "";
    position: absolute;

    top: 0;
    left: -410px;
    right: 0;
    bottom: 0;

    background-color: var(--feature-bg-color);
    z-index: -1;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}


.flot-box {
    background-image: none;

}

@media (min-width: 1200px) {
    .flot-box {
        background-image: url("../assets/flot-bg.png");
        background-repeat: no-repeat;
    }
}

.client-carousel .item {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.client-carousel .owl-stage {
    display: flex;
    align-items: center;
}


/* POPUP MODAL AND MASONRY GALLERY */

.grid {
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.grid.loaded {
    opacity: 1;
}

.grid-item {
    width: 33.333%;
    padding: 10px;
}

.grid-item img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

@media(max-width:768px){
    .grid-item{
        width:50%;
    }
}

@media(max-width:576px){
    .grid-item{
        width:100%;
    }
}


/* FOOTER */

footer {
    background-color: var(--footer-color);
}