/* Sangam Jewellers Custom Luxury Styling */

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #FAFAFA;
}
::-webkit-scrollbar-thumb {
    background: #C8A24D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A97C22;
}

/* Gold Shimmer Cards */
.gold-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.gold-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(200, 162, 77, 0.15), 0 8px 10px -6px rgba(200, 162, 77, 0.1);
}

/* Gold Gradient Text */
.text-gold-gradient, .gold-gradient-text {
    background: linear-gradient(135deg, #DFBA6B 0%, #C8A24D 50%, #946F25 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Gold Gradient Button */
.bg-gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #C8A24D 50%, #AA7C11 100%);
}

.bg-gold-gradient:hover {
    background: linear-gradient(135deg, #E2BD44 0%, #D4AF37 50%, #B88916 100%);
}

/* Glowing Border */
.border-gold-glow {
    box-shadow: 0 0 15px rgba(200, 162, 77, 0.2);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════════════
   MASTER RESPONSIVE OVERFLOW & FLUID TYPOGRAPHY ENGINE (320px to 4K)
   ═══════════════════════════════════════════════════════════════════════ */

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

*, ::before, ::after {
    max-width: 100%;
    box-sizing: border-box;
}

/* Force all sections & hero wrappers to clip absolute blurred glows on mobile */
section, header, footer, main {
    max-width: 100% !important;
    overflow-x: hidden;
}

/* Fluid Responsive Clamps */
.fluid-h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.25rem) !important;
    line-height: 1.15 !important;
}

.fluid-h2 {
    font-size: clamp(1.6rem, 3.5vw + 0.8rem, 3rem) !important;
    line-height: 1.2 !important;
}

.fluid-h3 {
    font-size: clamp(1.2rem, 2vw + 0.5rem, 2rem) !important;
    line-height: 1.25 !important;
}

.fluid-body {
    font-size: clamp(0.75rem, 1vw + 0.4rem, 0.95rem) !important;
    line-height: 1.6 !important;
}

/* Responsive Touch Targets */
button, a, input, select, textarea {
    touch-action: manipulation;
}

/* Responsive Media Scaling */
img, svg, video, iframe, canvas {
    max-width: 100% !important;
    height: auto;
}

/* Table Responsive Overflow Guard */
.responsive-table-wrapper, table {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Mobile Screen Breakpoint Protection (320px - 480px) */
@media (max-width: 640px) {
    .container, .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl, .max-w-2xl, .max-w-xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }

    /* Prevent Button & Text Clipping on Small Screens */
    .btn-gold-primary, .btn-gold-outline, .btn-gold-cta {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 0.75rem !important;
        max-width: 100% !important;
        white-space: normal !important;
    }

    /* Prevent absolute background blur circles from pushing mobile viewport */
    .blur-\[150px\], .blur-\[180px\], .blur-\[120px\] {
        width: 100% !important;
        height: 100% !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
    }
}

