.main {
    width: 100%;
}

.infinity-design {
    display: block;
}

@media (min-width: 768px) {
    .infinity-design {
        display: none;
        color: white;

    }

    .infinity-design a {
        font-size: 16px;
    }
}




.navigation {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    box-shadow: 2px 3px 5px -2px white;
}

/* Navbar container */
.navbar {
    /* background-image: url(../images/navbar2.png); */
    background-color: lightgray;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 10px 0;
    position: relative;
    width: 100%;
    z-index: 1000;
    height: 70px;
}

/* Container fluid */
.container-fluid {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Navbar brand */
.navbar-brand {
    font-size: 19px;
    font-weight: 700;
    color: red;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;

    position: relative;
    z-index: 1001;
    font-family: "Bodoni MT", "Bodoni 72", Didot, "Didot LT STD", "Hoefler Text", Garamond, "Times New Roman", serif;



}

.navbar-brand span {
    color: black;
    font-family: "Bodoni MT", "Bodoni 72", Didot, "Didot LT STD", "Hoefler Text", Garamond, "Times New Roman", serif;

}

/* .navbar-brand:hover {
    transform: scale(1.03);
    font-size: 20px;
    color: black;
    padding: 10px;
   
} */

/* Infinity Design link */
.infinity-design a {
    font-size: 20px;
    font-weight: 700;
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
}

.infinity-design a:hover {
    color: #d3a625;

}

/* Navbar collapse */
.navbar-collapse {
    justify-content: center;
}

/* Navbar nav */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    list-style: none;
    font-weight: bold;
}

/* Nav item */
.nav-item {
    position: relative;
}

/* Nav link */
.nav-link {
    color: #bda687;
    font-size: 13px;
    font-weight: 300;
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    position: relative;
    z-index: 1001;
    font-weight: bold;
    transition: transform 0.25s ease, color 0.25s ease;
    font-family: "Libertinus Sans", sans-serif;

}

.nav-link:hover {
    color: #bda687;
    font-size: 15px;
    transform: scale(1.1);
}

/* Dropdown toggle */
.dropdown-toggle::after {
    border: none;
    content: '\25BC';
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    width: 1300px;
    max-width: 70vw;
    padding: 25px;
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    z-index: 1003;
    margin-top: 10px;
    min-height: 200px;
}

/* Ensure parent nav item is positioned */
.nav-item.dropdown {
    position: relative;
}

/* Dropdown links container */
.dropdown-links {
    list-style: none;
    width: 60%;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Dropdown links heading */
.dropdown-links h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

/* Dropdown item */
.dropdown-item {
    color: #1a1a1a;
    font-size: 1.1rem;
    padding: 12px 25px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 4px;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #d3a625;
    transform: translateX(5px);
    font-size: 1.2rem;
}

/* Dropdown image container */
.dropdown-image {
    width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Dropdown image */
.dropdown-menu img {
    width: 100%;
    height: 500px;
    max-height: 350px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Navbar toggler */
.navbar-toggler {
    border: none;
    padding: 10px;
    color: black;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}





@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #1a1a1a;
        /* Dark background for contrast */
        padding: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        max-height: calc(100vh - 70px);
        /* Prevent overflow */
        overflow-y: auto;
        /* Allow scrolling if content is long */
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        /* Reduced gap for compact layout */
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 8px 0;
        color: white;
        font-size: 1rem;
        font-weight: 500;
        /* Slightly bolder for readability */
    }

    .nav-item.dropdown.show .dropdown-menu {
        display: flex;
        flex-direction: column;
        /* Stack links and image vertically */
        align-items: center;
        justify-content: flex-start;
    }

    .dropdown-menu {
        display: none;
        /* Hidden by default */
        position: static;
        /* Prevent absolute positioning issues */
        width: 100%;
        max-width: 100%;
        min-height: auto;
        /* Remove fixed height */
        margin-top: 0;
        padding: 15px;
        border-radius: 0;
        /* Flat edges for mobile */
        box-shadow: none;
        /* Remove shadow for seamless integration */
        background-color: #ffffff;
        transform: none;
        /* Remove centering transform */
    }

    .dropdown-links {
        width: 100%;
        padding: 0;
        text-align: center;
        /* Center-align for better UX */
    }

    .dropdown-links h2 {
        font-size: 1.2rem;
        /* Smaller heading */
        margin-bottom: 10px;
    }

    .dropdown-item {
        font-size: 0.9rem;
        /* Smaller for mobile */
        padding: 8px 15px;
        white-space: normal;
        /* Allow text wrapping */
        text-align: center;
        border-radius: 4px;
    }

    .dropdown-item:hover {
        background-color: #f5f5f5;
        color: #d3a625;
        transform: none;
        /* Remove transform for mobile */
    }

    .dropdown-image {
        width: 100%;
        margin: 10px 0;
        /* Add spacing */
        order: -1;
        /* Image above links */
    }

    .dropdown-menu img {
        width: 100%;
        max-height: 180px;
        /* Smaller image for mobile */
        object-fit: cover;
        border-radius: 8px;
    }

    .dropdown-toggle {
        pointer-events: auto;
        /* Ensure clickable */
    }

    .dropdown-toggle::after {
        content: '\25BC';
        /* Ensure arrow is visible */
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        /* Flexible height */
        padding: 8px 0;
        /* Reduced padding */
    }

    .navigation {
        position: fixed;
        /* Fixed to stay at top */
        top: 0;
        z-index: 999;
    }

    .navbar-brand {
        font-size: 1.4rem;
        /* Adjusted for mobile */
        display: block;
        /* Ensure visible */
    }

    .infinity-design {
        display: block;
        /* Ensure logo visible */
        font-size: 1.2rem;
    }

    .infinity-design a {
        font-size: 1.2rem;
        /* Smaller logo text */
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .dropdown-item {
        font-size: 0.85rem;
    }

    .navbar-toggler {
        padding: 8px;
        /* Smaller toggler */
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
        /* Smaller for tiny screens */
        display: none;
    }

    .infinity-design a {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .dropdown-item {
        font-size: 0.8rem;
    }

    .dropdown-links h2 {
        font-size: 1rem;
    }

    .dropdown-menu img {
        max-height: 150px;
        /* Even smaller image */
    }
}







.explore-container {
    text-align: center;
}

/* Styles for Explore more text */
.text-center.center {
    color: black;
    /* White for visibility (adjust if needed) */
    font-size: 15px;
    margin-top: 200px;
    transition: transform 0.3s ease;
    /* Smooth zoom-out transition */
    display: inline-block;
    /* Ensure transform works */
    cursor: pointer;
    /* Indicate interactivity */
}

.text-center.center:hover {
    transform: scale(0.9);
    /* Zoom out to 90% on hover */
}

/* Styles for the section */
.section {
    opacity: 1;
    /* Default state */
    transform: translateY(0);
    /* Default position */
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Smooth animation */
}

/* Animation class for section when scrolled into view */
.section.animate-section {
    opacity: 0.9;
    /* Slight fade effect */
    transform: translateY(-20px);
    /* Slide up slightly */
    animation: bounce 0.5s ease-out;
    /* Optional bounce effect */
}

/* Keyframes for a subtle bounce effect */
@keyframes bounce {
    0% {
        transform: translateY(20px);
        /* Start below */
        opacity: 0.7;
    }

    60% {
        transform: translateY(-25px);
        /* Overshoot upward */
        opacity: 0.9;
    }

    100% {
        transform: translateY(-20px);
        /* Settle position */
        opacity: 0.9;
    }
}




/* Dropdown Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-toggle-sub::after {
    content: "›";
    float: right;
    font-size: 1.2em;
    margin-left: 5px;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* Hide submenu by default */
.dropdown-submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    background: white;
    border-left: 3px solid #ff9900;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 0 8px 8px 0;
    padding: 10px 0;
    z-index: 1001;
}

/* Show submenu on hover for desktop */
@media (min-width: 992px) {
    .dropdown-submenu:hover .dropdown-submenu-content {
        display: block;
        animation: fadeInRight 0.3s ease;
    }
}

/* Mobile styles (screens less than 992px) */
@media (max-width: 991.98px) {
    .dropdown-submenu {
        /* Remove position relative for mobile */
        position: static;
    }
    
    .dropdown-toggle-sub {
        /* Make it look like a regular dropdown item on mobile */
        display: block;
        width: 100%;
        text-align: left;
        padding: 0.5rem 1rem;
        color: #212529;
        text-decoration: none;
    }
    
    .dropdown-toggle-sub::after {
        /* Change arrow for mobile */
        content: "▸";
        float: right;
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }
    
    .dropdown-toggle-sub.active::after {
        /* Rotate arrow when active */
        transform: rotate(90deg);
    }
    
    .dropdown-submenu-content {
        /* Position as a nested menu for mobile */
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        border-left: none;
        border-top: 2px solid #ff9900;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: rgba(0, 0, 0, 0.02);
        margin-left: 15px;
        display: none;
        animation: none;
    }
    
    .dropdown-submenu-content.show {
        /* Show when toggled */
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .submenu-header {
        /* Adjust header for mobile */
        padding: 10px 15px;
        font-size: 0.85rem;
        background: rgba(255, 153, 0, 0.05);
    }
    
    .dropdown-subitem {
        /* Adjust subitems for mobile */
        padding: 8px 15px 8px 30px;
        font-size: 0.9rem;
    }
    
    .dropdown-subitem:hover {
        padding-left: 35px;
    }
}

/* Animation for mobile */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Optional: Add JavaScript toggle for mobile */
.dropdown-subitem {
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-subitem:hover {
    background: linear-gradient(90deg, rgba(255, 153, 0, 0.1) 0%, transparent 100%);
    padding-left: 25px;
}


/* Mobile styles (screens less than 992px) */
@media (max-width: 991.98px) {
    .dropdown-submenu {
        position: static;
        width: 100%;
    }
    
    .dropdown-toggle-sub {
        position: relative;
        display: block;
        width: 100%;
        text-align: left;
        padding: 0.5rem 1rem;
        color: #212529;
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .dropdown-toggle-sub::after {
        content: "▸";
        float: right;
        font-size: 1.2em;
        margin-left: 5px;
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }
    
    .dropdown-toggle-sub.active::after {
        transform: rotate(90deg);
    }
    
    .dropdown-submenu-content {
        position: static !important; /* Override any inline styles from JS */
        left: auto !important;
        top: auto !important;
        min-width: 100% !important;
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(0,0,0,0.1);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: rgba(0, 0, 0, 0.03);
        margin-left: 0;
        margin-top: 5px;
        display: none;
        animation: none;
    }
    
    .dropdown-submenu-content.show {
        display: block !important; /* Override any inline display styles */
        animation: slideDown 0.3s ease;
    }
    
    /* Adjust subitems for mobile */
    .dropdown-subitem {
        padding: 0.75rem 1rem 0.75rem 2rem !important; /* !important to override JS */
        font-size: 0.9rem;
        color: #666;
        border-left: none;
        display: block;
        width: 100%;
        text-align: left;
        background: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .dropdown-subitem:last-child {
        border-bottom: none;
    }
    
    .dropdown-subitem:hover {
        padding-left: 2rem !important;
        background: rgba(255, 153, 0, 0.1);
    }
}

/* Animation for mobile dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 200px;
        overflow: hidden;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 991.98px) {
    .dropdown-submenu-content {
        max-width: 100vw;
        overflow-x: hidden;
    }
}