/* ============================================
   BLISS FOOD COMPANY - PREMIUM DESIGN SYSTEM
   ============================================ */

/* ========== GOOGLE FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
    /* Colors - Brand Palette */
    --color-primary-h: 355;
    --color-primary-s: 85%;
    --color-primary-l: 50%;
    /* Vibrant Red */
    --color-primary: hsl(var(--color-primary-h), var(--color-primary-s), var(--color-primary-l));
    --color-primary-light: hsl(var(--color-primary-h), var(--color-primary-s), 60%);
    --color-primary-dark: hsl(var(--color-primary-h), var(--color-primary-s), 40%);

    --color-accent-h: 48;
    --color-accent-s: 100%;
    --color-accent-l: 50%;
    /* Vibrant Golden Yellow */
    --color-accent: hsl(var(--color-accent-h), var(--color-accent-s), var(--color-accent-l));
    --color-accent-light: hsl(var(--color-accent-h), var(--color-accent-s), 65%);
    --color-accent-dark: hsl(var(--color-accent-h), var(--color-accent-s), 40%);

    /* Core Theme Variables (Light Mode as Default for FMCG) */
    --bg-main: #ffffff;
    --bg-content: #f8f9fa;
    --bg-surface: #f1f3f5;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-input: #ffffff;

    --text-main: #1a1a1a;
    --text-muted: #6c757d;
    --text-contrast-low: #adb5bd;
    --text-on-btn: #ffffff;

    --border-color: #dee2e6;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.98);

    /* Selection */
    --selection-bg: var(--color-primary);
    --selection-text: #ffffff;

    /* Constants */
    --color-dark: #212529;
    --color-dark-light: #f8f9fa;
    --color-white: #ffffff;
    --color-gray: #6c757d;
    --color-gray-light: rgba(255, 255, 255, 0.80);
}

/* ========== DARK MODE OVERRIDES (Optional) ========== */
body.dark-mode {
    --bg-main: #0d0d0d;
    --bg-content: #1a1a1a;
    --bg-surface: #2d2d2d;
    --bg-card: #1f1f1f;
    --bg-glass: rgba(0, 0, 0, 0.8);
    --bg-input: #2d2d2d;

    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    --text-contrast-low: #6c757d;
    --text-on-btn: #ffffff;

    --border-color: #404040;
    --nav-bg: rgba(13, 13, 13, 0.95);
    --nav-bg-scrolled: rgba(13, 13, 13, 0.98);

    --selection-bg: var(--color-accent);
    --selection-text: #1a1a1a;

    --color-dark: #000000;
}

:root {

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    --gradient-hero: linear-gradient(135deg,
            hsl(355, 78%, 15%) 0%,
            hsl(355, 78%, 25%) 50%,
            hsl(45, 95%, 20%) 100%);
    --gradient-overlay: linear-gradient(180deg,
            hsla(220, 15%, 12%, 0.95) 0%,
            hsla(220, 15%, 12%, 0.85) 100%);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;

    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    --font-size-xl: clamp(1.375rem, 1.2rem + 0.75vw, 1.75rem);
    --font-size-2xl: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
    --font-size-3xl: clamp(2.25rem, 2rem + 1.25vw, 3rem);
    --font-size-4xl: clamp(3rem, 2.5rem + 2vw, 4.5rem);
    --font-size-5xl: clamp(4rem, 3rem + 4vw, 6rem);

    /* Spacing */
    --spacing-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
    --spacing-sm: clamp(0.75rem, 0.7rem + 0.25vw, 1rem);
    --spacing-md: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
    --spacing-lg: clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
    --spacing-xl: clamp(2rem, 1.5rem + 2vw, 4rem);
    --spacing-2xl: clamp(3rem, 2rem + 4vw, 6rem);
    --spacing-3xl: clamp(4rem, 3rem + 5vw, 8rem);

    /* Layout */
    --container-max: 1400px;
    --container-padding: clamp(1.5rem, 4vw, 3rem);
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px hsla(220, 15%, 12%, 0.1);
    --shadow-md: 0 4px 16px hsla(220, 15%, 12%, 0.15);
    --shadow-lg: 0 8px 32px hsla(220, 15%, 12%, 0.2);
    --shadow-xl: 0 16px 48px hsla(220, 15%, 12%, 0.25);
    --shadow-glow: 0 0 30px hsla(var(--color-accent-h), var(--color-accent-s), var(--color-accent-l), 0.3);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-index */
    --z-preloader: 10000;
    --z-floating-btn: 9999;
    --z-modal: 9998;
    --z-navbar: 1000;
    --z-dropdown: 999;
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

button {
    font-family: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    transition: var(--transition-base);
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

::selection {
    background-color: var(--selection-bg);
    color: var(--selection-text);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.text-muted {
    color: var(--color-gray);
}

/* ========== CONTAINER & LAYOUT ========== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-gray-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-on-btn);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--color-dark);
    box-shadow: var(--shadow-lg);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 40px hsla(var(--color-accent-h), var(--color-accent-s), var(--color-accent-l), 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-glow);
}

.btn-glass {
    background: var(--bg-input);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ========== CARDS ========== */
.card {
    background: var(--color-dark-light);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    opacity: 1;
}

.card-glass {
    background: var(--bg-input);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-premium {
    background: linear-gradient(135deg, var(--color-dark-light) 0%, var(--color-dark) 100%);
    border: 1px solid var(--border-color);
}

/* ========== PRELOADER ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: var(--z-preloader);
    gap: 1.5rem;
}

.preloader-logo {
    max-width: 160px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(216, 30, 38, 0.15);
    animation: pulse 2s ease-in-out infinite;
}

.preloader-text {
    font-size: 0.95rem;
    text-align: center;
    max-width: 500px;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.preloader-progress {
    width: 240px;
    height: 4px;
    background: #f1f3f5;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.preloader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #D81E26, #FFC800);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: transparent;
    z-index: var(--z-navbar);
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    height: 50px;
    transition: var(--transition-smooth);
}

.navbar.scrolled .navbar-logo {
    height: 40px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.navbar-link {
    font-weight: 500;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-smooth);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.navbar-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: transparent;
    padding: 0.5rem;
}

.navbar-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition-base);
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--color-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: rotate(15deg);
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

body.light-mode .theme-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

body.light-mode .theme-toggle .icon-sun {
    display: block;
}

body.light-mode .theme-toggle .icon-moon {
    display: none;
}

/* ========== FLOATING ACTION BUTTON ========== */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    z-index: var(--z-floating-btn);
    transition: all var(--transition-smooth);
    animation: float 3s ease-in-out infinite;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.floating-btn svg {
    width: 30px;
    height: 30px;
    fill: var(--color-white);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========== HERO ENHANCEMENTS & PRODUCT UNIVERSE ENHANCEMENTS ========== */

/* 3D Perspective for Tilt Card */
.tilt-card {
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease;
}

.tilt-card img {
    transform: translateZ(50px);
    /* Lift image off the surface */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.product-categories-grid a {
    will-change: transform, shadow;
}

@media (max-width: 1023px) {

    /* Disable staggered shift on smaller screens for better density */
    .product-categories-grid a.lg\:translate-y-12 {
        transform: none !important;
    }
}

.product-categories-grid .backdrop-blur-md {
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.product-categories-grid a:hover .backdrop-blur-md {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Legacy Milestones Hover Effect */
.legacy-milestones div {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.legacy-milestones div:hover {
    transform: translateY(-5px);
    border-color: rgba(216, 30, 38, 0.2);
}

.legacy-image-container {
    height: auto;
    max-height: 550px;
}

/* Floating animation for hero product card */
.hero-float {
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-12px) rotate(0.5deg);
    }

    66% {
        transform: translateY(-6px) rotate(-0.5deg);
    }
}

/* Hero badge spin */
.hero-badge-spin {
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.05) rotate(3deg);
    }
}

/* Gradient text for hero headings */
.text-gradient-brand {
    background: linear-gradient(135deg, #FFC800 0%, #FFE066 50%, #FFC800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== LUXURY HERO SECTION ========== */
/* Utilities */
.text-center {
    text-align: center;
}

/* Download Card Styles */
.download-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.download-card .icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    margin: 0 auto 1.5rem;
    transition: background 0.3s ease;
}

.download-card:hover .icon-wrapper {
    background: rgba(212, 175, 55, 0.2);
}

/* Brand Card Alignment */
.brand-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xl);
    text-align: center;
}

.brand-card .logo-container {
    height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.brand-card .logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 !important;
    /* Override inline styles */
}

.mt-auto {
    margin-top: auto;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure horizontal centering for flex items */
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: var(--bg-surface);
    /* Deep dark reddish-black */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 60% 40%, rgba(184, 28, 35, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
    z-index: 0;
}

.hero-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

.hero-text h1 span.text-gradient {
    display: block;
    font-style: italic;
    font-weight: 400;
    margin-top: 0.5rem;
    background: linear-gradient(90deg, #D4AF37, #F9E29C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 500px;
    border-left: 2px solid #b81c23;
    padding-left: 1.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-cta .btn {
    padding: 1rem 2rem;
    border-radius: 4px;
    /* More corporate rectangular feel with slight rounds */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Visual Showcase */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-display {
    position: relative;
    width: 400px;
    height: 500px;
}

.hero-main-img {
    position: absolute;
    width: 320px;
    z-index: 3;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: floatHero 6s ease-in-out infinite;
}

.hero-sub-img {
    position: absolute;
    width: 260px;
    z-index: 2;
    top: 100px;
    right: -40px;
    opacity: 0.8;
    filter: grayscale(0.2) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    animation: floatHero 8s ease-in-out infinite reverse;
}

.glow-ring {
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

@keyframes floatHero {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Badges section */
.hero-badges {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-item h4 {
    font-size: 1.8rem;
    color: #D4AF37;
    margin: 0;
}

.badge-item span {
    font-size: 0.7rem;
    color: var(--text-contrast-low);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(-1deg);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes float4 {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(-2deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
    z-index: 3;
}

.scroll-indicator::after {
    content: '';
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom,
            var(--color-accent) 0%,
            var(--color-accent) 50%,
            transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--color-accent);
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, 15px);
        opacity: 0.7;
    }
}

/* ========== PREMIUM SECTION LAYOUTS ========== */
.section {
    padding: 80px 0;
    position: relative;
    background: var(--bg-content);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-contrast-low);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
}

/* Luxury Grid Layouts */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Premium Card Overhaul */
.card-premium,
.card-glass,
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 3rem 2rem;
    transition: all 0.5s cubic-bezier(0.2, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-premium:hover,
.card-glass:hover,
.category-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Timeline Luxury Rebuild */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.3), transparent);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 0;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--bg-main);
    border: 3px solid #D4AF37;
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    top: 10px;
}

.timeline-content {
    width: 42%;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.4s ease;
}

.timeline-content:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.timeline-content h4 {
    color: #D4AF37;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
    }
}

/* Slider Customizations */
.product-slider {
    padding: 60px 0;
    overflow: visible;
}

.product-slide {
    background: var(--bg-main);
    border: 1px solid rgba(255, 215, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

/* RFQ Section & Form Premium Styling */
.rfq-section {
    background: linear-gradient(180deg, var(--bg-content) 0%, var(--bg-main) 100%);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: #D4AF37;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    padding: 1.2rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    background: rgba(184, 28, 35, 0.05);
    border-color: #b81c23;
    box-shadow: 0 0 15px rgba(184, 28, 35, 0.1);
}

#rfqForm .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1.25rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 1rem;
    letter-spacing: 2px;
}

/* Footer Luxury */
.footer {
    background: var(--bg-main);
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    padding: 100px 0 50px;
}

/* Standard Animation & Fade Utility */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== PREMIUM FOOTER SYSTEM ========== */
.footer {
    background: var(--bg-main);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-brand img {
    height: 70px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer h5 {
    color: #D4AF37;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #D4AF37;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #b81c23;
    border-color: #b81c23;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(184, 28, 35, 0.3);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .social-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
    }
}

/* ========== MARQUEE ANIMATION ========== */
.brand-marquee {
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.brand-marquee-track {
    display: flex;
    gap: 5rem;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.brand-marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.brand-marquee-item img {
    height: 80px;
    width: auto;
    filter: grayscale(1) invert(var(--logo-invert, 0)) brightness(var(--logo-brightness, 2));
    opacity: 0.6;
    transition: all 0.4s ease;
}

body.light-mode {
    --logo-invert: 1;
    --logo-brightness: 0.5;
}

.brand-marquee-item img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

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

    100% {
        transform: translateX(-50%);
    }
}

/* ========== PRODUCT SLIDER TRACK ========== */
.product-slider {
    position: relative;
    overflow: hidden;
}

.product-slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-slide {
    flex: 0 0 300px;
    height: 400px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: zoom-in;
}

.product-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-slide:hover img {
    transform: scale(1.05);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #b81c23;
    border-color: #b81c23;
    transform: scale(1.1);
}

/* ========== AMBIENT EFFECTS ========== */
.ambient-light {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 28, 35, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

.glow-ring {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* Subtle Hover Reflection */
.card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--text-contrast-low) 0%, transparent 40%);
    transform: translate(-100%, -100%);
    transition: all 0.6s ease;
}

.card-premium:hover::before {
    transform: translate(0, 0);
}

/* ============================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATION
   ============================================ */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
    :root {
        --container-padding: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text p {
        margin: 0 auto 3rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
    }

    .product-display {
        width: 300px;
        height: 400px;
        margin: 0 auto;
    }

    .hero-main-img {
        width: 250px;
    }

    .hero-sub-img {
        width: 200px;
        top: 50px;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Tablets & Mobile Devices */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    /* Navbar Mobile */
    .navbar-toggle {
        display: flex;
        z-index: 1001;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .navbar-menu.active {
        right: 0;
    }

    .navbar-cta {
        display: flex;
        margin-right: 1rem;
    }

    .navbar-cta .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Grid Adjustments */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Timeline Mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
    }

    /* Typography */
    .section-title {
        font-size: 2.2rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    /* Forms */
    .grid-2 {
        gap: 0;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }

    .hero-main-img {
        width: 200px;
    }

    .hero-sub-img {
        width: 150px;
        top: 30px;
        right: -20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-badges {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .social-links {
        align-items: center;
        justify-content: center;
    }

    .brand-marquee-track {
        gap: 2rem;
    }

    .brand-marquee-item img {
        height: 50px;
    }
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

@media (max-width: 991px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
}

/* Products Page Specific Mobile Fixes */
@media (max-width: 991px) {
    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
        width: 100% !important;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .section>.container>div[style*="grid-template-columns: 280px 1fr"] {
        grid-template-columns: 1fr !important;
    }
}