/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #B4935A 0%, #D4AF37 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(180, 147, 90, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(180, 147, 90, 0.5);
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
    }

    .back-to-top svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Custom yellow color class */
.text-yellow-brand {
    color: #E0C259 !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced smooth scrolling for navigation */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Scroll offset for fixed header */
@media (max-width: 768px) {
    #products {
        scroll-margin-top: 4rem;
    }
}

@media (min-width: 769px) {
    #products {
        scroll-margin-top: 5rem;
    }
}

/* Scroll offset for about section */
@media (max-width: 768px) {
    #about {
        scroll-margin-top: 4rem;
    }
}

@media (min-width: 769px) {
    #about {
        scroll-margin-top: 5rem;
    }
}

/* Mobile height fix for Right Section - Product Visual */
@media (max-width: 1024px) {
    .vision-section-right {
        min-height: 50vh;
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .vision-section-right {
        min-height: 40vh;
        height: 40vh;
    }
}

@media (max-width: 640px) {
    .vision-section-right {
        min-height: 60vh;
        height: 60vh;
    }
}

/* Mobile header logo fixes */
@media (max-width: 768px) {
    .header-logo {
        max-height: 2.5rem;
        width: auto;
        height: 2.5rem;
    }
}

@media (max-width: 640px) {
    .header-logo {
        max-height: 2rem;
        width: auto;
        height: 2rem;
    }
}

@media (max-width: 480px) {
    .header-logo {
        max-height: 3.75rem;
        width: auto;
        height: 1.75rem;
    }
}

/* Mobile header container improvements */
@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 0.75rem;
    }
}

/* Banner display styles */
.mob-ban {
    z-index: 1;
}

/* Ensure mobile banner covers full area */
@media (max-width: 768px) {
    .mob-ban {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        display: block !important;
    }

    /* Ensure content is above mobile banner */
    .content-container {
        position: relative;
        z-index: 10;
    }
}

/* Ensure desktop banner shows on larger screens */
@media (min-width: 769px) {
    .desktop-banner {
        display: block !important;
    }
}