@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&family=Assistant:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&display=swap');

/* 
   Rahat Stainless Steel - Design System 
   Theme: Chef's Edge Inspired (Premium, Dark, Minimalist)
*/

:root {
    /* Brand Colors */
    --brand-primary: var(--theme-surface);
    --brand-secondary: #261645;
    --brand-accent: var(--theme-accent); /* Light vibrant purple as requested */
    --brand-accent-hover: var(--theme-secondary);
    
    /* Text Colors */
    --bg-main: var(--theme-bg);
    --bg-surface: var(--theme-surface);
    --brand-accent: var(--theme-accent);
    --text-white: var(--theme-text);
    --text-light: var(--theme-text);
    --border-color: var(--theme-text);
    --font-heading: 'Jost', sans-serif;
    --font-body: 'Assistant', sans-serif;
    --font-nav: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
}

/* --- Resets & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--theme-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Layout Utilities */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 4%; }
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--theme-text);
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Silver Metallic Global Title Style --- */
.silver-title {
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    background: linear-gradient(to bottom, #ffffff 0%, #b3b3c6 30%, #ffffff 50%, #8c8c9e 70%, #d9d9e6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.9)) !important;
    letter-spacing: 4px !important;
    line-height: 1.2 !important;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 2rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); letter-spacing: 1px; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; letter-spacing: 3px; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary, .btn-accent {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    color: var(--theme-text);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 2px 5px rgba(255,255,255,0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
    border-color: var(--theme-text);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), inset 0 2px 5px rgba(255,255,255,0.4);
    transform: translateY(-3px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--theme-btn-start), var(--theme-btn-end));
    color: var(--theme-accent-text);
    border: 1px solid color-mix(in srgb, var(--theme-btn-start) 60%, transparent);
    box-shadow: 0 8px 32px color-mix(in srgb, var(--theme-accent-text) 30%, transparent), inset 0 2px 5px rgba(255,255,255,0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-btn-start) 80%, white), var(--theme-btn-end));
    border-color: color-mix(in srgb, var(--theme-accent-text) 50%, transparent);
    box-shadow: 0 12px 40px var(--theme-btn-start), inset 0 2px 5px rgba(255,255,255,0.5);
    transform: translateY(-3px);
}

/* ==========================================================================
   FUTURISTIC STEEL HEADER (Based on the attached image)
   ========================================================================== */
.fh-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 90px;
    z-index: 1000;
    background-color: #020406;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 4px 4px; /* Small mesh texture */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #111;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

.fh-panel {
    width: 95%;
    max-width: 1700px;
    height: 70px;
    background: linear-gradient(90deg, #000000 0%, #000000 15%, transparent 35%), linear-gradient(180deg, #1f2735 0%, #0c1017 49%, #05070a 50%, #151a24 100%);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* 3D Chrome Frame */
    border-top: 1px solid #a0aab8;
    border-bottom: 1px solid #4a5463;
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.5),
        inset 0 -1px 3px rgba(255, 255, 255, 0.2),
        0 0 0 2px #050608, /* Inner dark gap */
        0 0 0 4px #738092, /* Outer thick steel border */
        0 20px 50px rgba(0,0,0,0.9);
}

/* Flashing Light effect on top edge */
.fh-panel::before {
    content: '';
    position: absolute;
    top: -1px; left: 15%; width: 70%; height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    box-shadow: 0 0 15px #fff, 0 0 5px #fff;
    z-index: 10;
}

.fh-logo {
    display: flex;
    align-items: center;
    padding: 0 30px;
    height: 100%;
}
.fh-logo .brand-logo {
    max-height: 55px;
    mix-blend-mode: screen;
}

.fh-separator {
    width: 2px;
    height: 60%;
    background: linear-gradient(180deg, transparent, #4a5463, transparent);
    transform: skewX(-15deg);
    box-shadow: 1px 0 2px rgba(0,0,0,0.8);
}

.fh-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    height: 100%;
}
.fh-nav ul {
    display: flex;
    height: 100%;
    margin: 0; padding: 0;
    list-style: none;
}
.fh-nav ul li {
    display: flex;
    align-items: center;
    position: relative;
}
.fh-nav ul li > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 15px; /* Reduced from 25px to keep menu on one line */
    height: 100%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,1);
}
.fh-nav ul li > a:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255,255,255,0.8);
}
.fh-nav ul li > a .nav-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 5px;
    fill: currentColor;
    stroke: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,1)) drop-shadow(0 0 3px rgba(255,255,255,0.4));
}
.fh-nav ul li > a span {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
}

/* Active State */
.fh-nav ul li.active > a, .fh-nav ul li.active > a span, .fh-nav ul li.active > a .nav-icon {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255,255,255,0.8);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.6));
}
.fh-nav ul li.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 25%;
    width: 50%;
    height: 4px;
    background: #ffffff;
    box-shadow: 0 0 15px #ffffff, 0 0 30px #ffffff;
    border-radius: 3px 3px 0 0;
}

.fh-actions {
    display: flex;
    align-items: center;
    padding: 0 30px;
    gap: 15px;
    height: 100%;
}

.fh-search {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #1f2735 0%, #05070a 100%);
    border: 1px solid #738092;
    border-radius: 30px;
    padding: 5px 15px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,1), 0 1px 3px rgba(255,255,255,0.3);
    width: 250px;
}
.fh-search .search-icon {
    width: 16px; height: 16px;
    fill: #ffffff;
    stroke: none;
    margin-right: 8px;
}
.fh-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0;
    outline: none;
    font-family: 'Assistant', sans-serif;
    font-size: 0.85rem;
}
.fh-search input::placeholder {
    color: #d9d9e6;
}
.fh-search button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
}
.fh-search button svg {
    width: 18px; height: 18px;
    stroke: currentColor;
    transition: 0.3s;
}
.fh-search button:hover svg {
    color: #ffffff;
    filter: drop-shadow(0 0 8px #ffffff);
}

.fh-btn {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, #3a4759 0%, #05070a 100%);
    border: 1px solid #d9d9e6;
    display: flex; align-items: center; justify-content: center;
    color: #ffffff;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.6), 0 2px 10px rgba(0,0,0,0.9);
    transition: all 0.3s ease;
}
.fh-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: inset 0 2px 8px rgba(255,255,255,1), 0 0 20px rgba(255,255,255,0.8);
}
.fh-btn svg {
    width: 18px; height: 18px;
    fill: currentColor;
    stroke: none;
}
.fh-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: linear-gradient(135deg, #ffffff, #a0aab8);
    color: #050608;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* Submenu Dropdown for Categories */
.fh-nav ul li.has-dropdown > ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: linear-gradient(180deg, #18202c 0%, #0a0e14 100%);
    border: 1px solid #4a5463;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.9);
    flex-direction: column;
    height: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    z-index: 100;
}
.fh-nav ul li.has-dropdown:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.fh-nav ul li.has-dropdown > ul li {
    width: 100%;
}
.fh-nav ul li.has-dropdown > ul li a {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 25px;
    font-size: 0.8rem;
    height: auto;
    color: #ffffff; /* Bright white text */
    text-shadow: 0 1px 2px rgba(0,0,0,1);
    transition: all 0.3s ease;
}
.fh-nav ul li.has-dropdown > ul li a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.15);
    padding-left: 30px;
    text-shadow: 0 0 15px rgba(255,255,255,0.9); /* White glow */
}
.fh-nav ul li.has-dropdown > ul li a .nav-icon { display: none; }

/* Body adjustment for taller header */
body { padding-top: 90px; }

/* --- Main Content --- */
.main-content { flex: 1; }

/* --- Hero Section --- */
.hero {
    position: relative; 
    width: 100%;
    height: calc(100vh - 80px);
    margin-top: 80px;
    padding-top: 0;
    background: var(--bg-main);
    text-align: left;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    object-fit: contain;
    object-position: right center;
    z-index: 0;
}

.hero .hero-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2; 
    max-width: 480px;
    margin: 0; 
    padding: 3.5rem 4rem 3.5rem 2.5rem; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 15, 30, 0.4) 0%, color-mix(in srgb, var(--theme-bg) 90%, transparent) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.8), inset -1px 0 0 rgba(255, 255, 255, 0.05);
    mask-image: none;
    -webkit-mask-image: none;
    overflow: hidden;
}

.hero .hero-content::before {
    content: '';
    position: absolute;
    top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
    transform: skewX(-25deg);
    animation: shineGlass 7s infinite;
    pointer-events: none;
}
@keyframes shineGlass {
    0% { left: -150%; }
    30% { left: 250%; }
    100% { left: 250%; }
}

@keyframes textReveal {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-family: var(--font-nav);
    color: var(--brand-accent);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 0 0 10px color-mix(in srgb, var(--theme-text) 40%, transparent);
    opacity: 0;
    animation: textReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
}

.hero-subtitle::before {
    content: '';
    width: 40px;
    height: 2px;
    background-color: var(--brand-accent);
    box-shadow: 0 0 10px var(--brand-accent);
}

.hero h1 { 
    margin-bottom: 1rem; 
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 2.8vw, 2.8rem);
    line-height: 1.1; 
    text-transform: uppercase;
    color: var(--theme-text);
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
    opacity: 0;
    animation: textReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.4s;
}

.hero p {
    font-size: 1rem; margin-bottom: 2rem; color: var(--theme-text);fff;
    font-weight: 400; max-width: 100%; margin-left: 0; line-height: 1.6;
    opacity: 0;
    animation: textReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.6s;
}

.hero-buttons {
    display: flex; gap: 20px; margin-bottom: 4rem;
    opacity: 0;
    animation: textReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.8s;
}

.hero-features {
    display: flex; flex-direction: column; gap: 15px; font-size: 0.95rem; color: var(--theme-text); font-family: var(--font-body);
    opacity: 0;
    animation: textReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 1.0s;
}

.hero-feature {
    display: flex; align-items: center; gap: 10px;
}

.hero-feature svg {
    color: var(--theme-text);
    text-shadow: 0 0 15px var(--brand-accent);
    width: 16px; height: 16px;
}

.hero-sm {
    position: relative; padding: 140px 0 60px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; background: var(--bg-surface);
}

/* --- Grids --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 320px)); justify-content: center; gap: 20px; }

/* ==========================================================================
   Collections Carousel (Marquee)
   ========================================================================== */
.amazing-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    background: linear-gradient(135deg, var(--theme-accent) 0%, var(--theme-text) 50%, var(--theme-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--theme-accent) 40%, transparent));
    margin-bottom: 5px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 4px !important;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, color-mix(in srgb, var(--theme-accent) 50%, transparent), transparent);
    margin: 0;
    box-shadow: 0 0 15px color-mix(in srgb, var(--theme-accent) 60%, transparent);
}

.collections-section {
    position: relative;
    background: radial-gradient(circle at center, color-mix(in srgb, color-mix(in srgb, var(--theme-accent) 20%, black) 40%, transparent) 0%, transparent 70%);
}

.marquee-wrapper {
    width: 100%;
    overflow-x: auto;
    position: relative;
    padding: 40px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    scroll-behavior: auto; /* changed from smooth to auto so JS doesn't lag */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.marquee-wrapper::-webkit-scrollbar {
    display: none;
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    padding: 0 5vw; /* padding for the mask */
    cursor: grab;
}

.marquee-track:active {
    cursor: grabbing;
}

.collection-card {
    position: relative;
    width: 320px;
    height: auto;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* 3D Realistic Bevel, Double-Shade Border & Glass Effect */
    border: 2px solid transparent;
    background-image: 
        linear-gradient(160deg, color-mix(in srgb, color-mix(in srgb, var(--theme-accent) 30%, black) 80%, transparent) 0%, color-mix(in srgb, color-mix(in srgb, var(--theme-accent) 15%, black) 95%, transparent) 100%), 
        linear-gradient(135deg, rgba(255,255,255,0.4) 0%, color-mix(in srgb, var(--theme-accent) 10%, transparent) 50%, color-mix(in srgb, var(--theme-accent) 60%, transparent) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    /* The crucial bottom shadow/border from the example */
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.8), /* Drop shadow */
        inset 0 1px 1px rgba(255,255,255,0.15), /* Top inner highlight */
        inset 0 -4px 0px color-mix(in srgb, var(--theme-accent) 80%, transparent), /* Bottom 3D thick rim */
        inset 0 -15px 30px rgba(0,0,0,0.6); /* Bottom inner shading */
        
    padding: 16px;
    margin-bottom: 30px;
    text-decoration: none;
    overflow: hidden; /* Contains the flare */
}

.collection-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 45px rgba(0,0,0,0.9),
        inset 0 1px 1px rgba(255,255,255,0.2),
        inset 0 -4px 0px color-mix(in srgb, var(--theme-accent) 90%, transparent), 
        inset 0 -15px 30px rgba(0,0,0,0.6),
        0 0 30px color-mix(in srgb, var(--theme-accent) 40%, transparent);
    border-color: var(--theme-text);
    z-index: 2;
}

.collection-card .img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 3px solid #08040d; /* Dark frame */
    box-shadow: 0 8px 25px rgba(0,0,0,0.9); /* Inner drop shadow below image */
    flex-shrink: 0;
    z-index: 2; /* Sits above the flare */
}

/* Glass Flare Effect on the Card Background */
.collection-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: glass-flare 5s infinite;
    z-index: 1; /* Under the image, over the background */
    pointer-events: none;
}

@keyframes glass-flare {
    0% { left: -150%; }
    15% { left: 150%; }
    100% { left: 150%; } /* Wait for the rest of the 5s */
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.collection-card:hover img {
    transform: scale(1.1);
}

.glassy-title-box {
    position: static;
    margin-top: 18px;
    margin-bottom: 4px; /* Space from the bottom 3D rim */
    background: transparent;
    border: none;
    padding: 5px 0;
    text-align: left;
    box-shadow: none;
    z-index: 2; /* Sit above the flare */
    transition: all 0.3s ease;
}

.collection-card:hover .glassy-title-box {
    box-shadow: none;
    border-color: transparent;
    background: transparent;
    transform: none;
}

.glassy-title-box h3 {
    /* Crystal/Glassy title text */
    background: linear-gradient(to right, var(--theme-text) 30%, color-mix(in srgb, var(--theme-accent) 30%, white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    font-size: 1.5rem;
    margin: 0;
    font-family: var(--font-heading);
    text-transform: capitalize;
    font-weight: 800;
    letter-spacing: 0px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
    white-space: normal;
    overflow: visible;
}

.center-btn-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
}

.collection-card:hover .center-btn-wrapper {
    opacity: 1;
    transform: scale(1);
}

.center-btn-wrapper .btn {
    background: linear-gradient(135deg, var(--theme-btn-start), var(--theme-btn-end));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--theme-btn-start) 50%, transparent);
    color: var(--theme-accent-text);
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.center-btn-wrapper .btn:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-btn-start) 80%, white), var(--theme-btn-end));
    transform: translateY(-3px);
    box-shadow: 0 12px 40px color-mix(in srgb, var(--theme-btn-start) 40%, transparent);
}
.category-link { display: none; } /* Hide link, keep it clean like Chef's Edge */

.product-card {
    background: #181324;
    border-radius: 20px;
    padding: 16px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #000;
    box-shadow: 
        inset 2px 2px 5px rgba(255, 255, 255, 0.1),
        inset -3px -3px 8px rgba(0, 0, 0, 0.8),
        10px 10px 20px rgba(0,0,0,0.9),
        -2px -2px 10px color-mix(in srgb, var(--theme-accent) 5%, transparent);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* Sweeping Glass Glare on Hover */
.product-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 60%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: 3;
    pointer-events: none;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 20px color-mix(in srgb, var(--theme-accent) 5%, transparent);
    pointer-events: none;
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        inset 2px 2px 5px rgba(255, 255, 255, 0.15),
        inset -3px -3px 8px rgba(0, 0, 0, 0.9),
        15px 20px 30px rgba(0,0,0,1),
        0 0 25px color-mix(in srgb, var(--theme-accent) 25%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent);
}

.product-card:hover .product-img-wrapper::before {
    left: 200%;
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255,255,255,0.4);
    border-left: 1px solid rgba(255,255,255,0.2);
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.9),
        0 8px 25px rgba(0,0,0,0.5);
    z-index: 1;
}

/* Glass reflection over the image */
.product-img-wrapper::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 45%, transparent 50%);
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 2;
}

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

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

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: color-mix(in srgb, var(--theme-accent) 85%, transparent);
    backdrop-filter: blur(8px);
    color: var(--theme-accent-text);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2;
}

.card-wishlist {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(20, 10, 30, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-text);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 2;
}

.card-wishlist:hover {
    background: color-mix(in srgb, var(--theme-accent) 60%, transparent);
    border-color: var(--theme-text);
    transform: scale(1.05);
}

.card-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    background: rgba(0,0,0,0.5);
    padding: 6px 10px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 2;
}

.card-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.card-dot.active {
    background: var(--theme-secondary);
    box-shadow: 0 0 6px rgba(200, 158, 255, 0.8);
    transform: scale(1.2);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-accent-text);
    margin: 0;
    line-height: 1.3;
    font-family: var(--font-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-subtitle {
    font-size: 0.8rem;
    color: var(--theme-text);
    margin: 0;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--theme-text);
    margin-top: 2px;
}

.card-rating svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
    fill: #ffbc00;
}

.card-price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--theme-text);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    z-index: 1;
}

.btn-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    border: none;
    font-family: var(--font-body);
}

.btn-buy {
    background: linear-gradient(135deg, var(--theme-btn-start), var(--theme-btn-end));
    backdrop-filter: blur(5px);
    color: var(--theme-accent-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-buy::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.5s ease;
}

.btn-buy:hover::before {
    left: 200%;
}

.btn-buy:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-btn-start) 80%, white), var(--theme-btn-end));
    box-shadow: 0 8px 25px color-mix(in srgb, var(--theme-accent-text) 50%, transparent);
    transform: translateY(-2px);
}

.btn-buy:active {
    transform: translateY(1px);
}

.btn-details {
    background: rgba(255, 255, 255, 0.05);
    color: var(--theme-text);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.btn-details::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.5s ease;
}

.btn-details:hover::before {
    left: 200%;
}

.btn-details:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--theme-text);
    transform: translateY(-2px);
    color: var(--theme-text);
}

.btn-details:active {
    transform: translateY(1px);
}

/* --- Craftsmanship Section --- */
.craft-section {
    background: var(--bg-surface); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.craft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.craft-img img { width: 100%; border-radius: var(--border-radius); }
.craft-text h2 { margin-bottom: 20px; }
.craft-text p { color: var(--theme-text); margin-bottom: 20px; font-size: 1.1rem; line-height: 1.8; }

/* --- Footer --- */
.site-footer { background-color: var(--bg-main); padding: 4rem 0 0 0; border-top: 1px solid var(--border-color); }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 3rem; }
.footer-column h3 { font-size: 1rem; margin-bottom: 1.5rem; color: var(--theme-text); }
.footer-column p, .footer-column a { color: var(--theme-text); font-size: 0.95rem; }
.footer-column ul li { margin-bottom: 0.8rem; }
.footer-column a:hover { color: var(--theme-text); text-shadow: 0 0 10px var(--brand-accent); }
.footer-bottom { border-top: 1px solid var(--border-color); text-align: center; padding: 1.5rem; color: var(--theme-text); font-size: 0.85rem; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .craft-grid { grid-template-columns: 1fr; }
    .mobile-menu-toggle { display: block; }
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 320px; height: 100vh;
        background: rgba(15, 10, 20, 0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid rgba(255,255,255,0.05); box-shadow: -15px 0 40px rgba(0,0,0,0.8);
        display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
        transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 999;
        padding: 80px 30px 40px; overflow-y: auto;
    }
    .main-nav.active { right: 0; }
    .main-nav::before {
        content: 'NAVIGATION'; position: absolute; top: 35px; left: 30px;
        font-size: 0.8rem; letter-spacing: 4px; color: var(--brand-accent); font-weight: 600;
        border-bottom: 1px solid color-mix(in srgb, var(--theme-accent) 30%, transparent); padding-bottom: 8px; width: calc(100% - 60px);
    }
    .main-nav ul { 
        flex-direction: column; gap: 0; width: 100%; margin-top: 20px; align-items: flex-start;
    }
    .main-nav ul li { 
        width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); 
        opacity: 0; transform: translateX(30px); transition: all 0.4s ease; position: relative;
    }
    .main-nav.active ul li { opacity: 1; transform: translateX(0); }
    
    /* Staggered animation */
    .main-nav.active ul li:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.active ul li:nth-child(2) { transition-delay: 0.15s; }
    .main-nav.active ul li:nth-child(3) { transition-delay: 0.2s; }
    .main-nav.active ul li:nth-child(4) { transition-delay: 0.25s; }
    .main-nav.active ul li:nth-child(5) { transition-delay: 0.3s; }
    .main-nav.active ul li:nth-child(6) { transition-delay: 0.35s; }
    .main-nav.active ul li:nth-child(7) { transition-delay: 0.4s; }
    .main-nav.active ul li:nth-child(8) { transition-delay: 0.45s; }
    .main-nav.active ul li:nth-child(9) { transition-delay: 0.5s; }
    
    .main-nav ul li a { 
        display: flex; justify-content: space-between; align-items: center; 
        padding: 18px 0; font-size: 1.05rem; font-weight: 500; color: var(--theme-text); width: 100%;
        text-transform: uppercase; letter-spacing: 1.5px; position: relative;
    }
    .main-nav ul li a:hover { 
        color: var(--theme-text); transform: translateX(10px); text-shadow: 0 0 10px var(--theme-text); 
    }
    .main-nav ul li a::before {
        content: ''; position: absolute; left: -15px; top: 50%; transform: translateY(-50%);
        width: 3px; height: 0; background: var(--brand-accent); transition: height 0.3s ease;
        border-radius: 4px;
    }
    .main-nav ul li a:hover::before { height: 50%; }
    .main-nav ul li.has-dropdown > a::after {
        content: '\203A'; font-size: 1.5rem; color: var(--brand-accent); font-weight: 300; transition: transform 0.4s ease;
    }
    .main-nav ul li.has-dropdown.expanded > a::after {
        transform: rotate(90deg);
    }
    
    /* Mobile Dropdown Fix & Premium Hierarchy */
    .main-nav ul li.has-dropdown > ul {
        position: static; display: none; width: 100%; padding: 0; margin: 0;
        background: color-mix(in srgb, var(--theme-accent) 5%, transparent); box-shadow: inset 0 5px 15px rgba(0,0,0,0.2);
        border: none; border-radius: 0;
    }
    .main-nav ul li.has-dropdown.expanded > ul {
        display: block;
        animation: fadeInMenu 0.3s ease forwards;
    }
    @keyframes fadeInMenu {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .main-nav ul li.has-dropdown > ul li {
        transform: none; opacity: 1; border-bottom: 1px solid rgba(255,255,255,0.02);
    }
    
    /* Level 1 Sub-categories */
    .main-nav ul li > ul > li > a {
        padding: 15px 20px 15px 35px; font-size: 0.95rem; color: var(--theme-text);
        border-left: 2px solid color-mix(in srgb, var(--theme-accent) 30%, transparent); font-weight: 400; text-transform: uppercase; letter-spacing: 1px;
    }
    .main-nav ul li > ul > li > a:hover, .main-nav ul li > ul > li.expanded > a {
        padding-left: 45px; background: var(--theme-overlay); border-left-color: var(--brand-accent); color: var(--theme-text);
    }
    
    /* Level 2 Sub-Sub-categories */
    .main-nav ul li > ul > li > ul > li > a {
        padding: 12px 20px 12px 55px; font-size: 0.85rem; color: var(--theme-text);
        border-left: 2px solid rgba(255,0,85, 0.3); font-weight: 300; text-transform: capitalize; letter-spacing: 0.5px;
    }
    .main-nav ul li > ul > li > ul > li > a:hover, .main-nav ul li > ul > li > ul > li.expanded > a {
        padding-left: 65px; background: rgba(255,0,85,0.1); border-left-color: #ff0055; color: var(--theme-text);
    }
}
@media (max-width: 768px) {
    .section-padding { padding: 3rem 0; }
    .hero { min-height: 500px; }
    .category-img { height: 400px; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    /* Header Mobile Fixes */
    .header-container { padding: 0 5px 0 0 !important; }
    .logo { flex: 1 1 auto; margin: 0 !important; padding: 0 !important; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; }
    .logo-link { margin: 0 !important; padding: 0 !important; display: block; }
    .logo img { width: 100% !important; max-width: 220px !important; height: auto !important; max-height: 80px !important; object-fit: contain; display: block; margin: 0; padding: 0; }
    .header-actions { gap: 8px; margin-left: auto; flex-shrink: 0; }
}














/* Third Level Fly-out Dropdown */
.fh-nav ul li.has-dropdown > ul li.has-dropdown {
    position: relative;
}
.fh-nav ul li.has-dropdown > ul li.has-dropdown > ul {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 2px;
    min-width: 220px;
    background: linear-gradient(180deg, #18202c 0%, #0a0e14 100%);
    border: 1px solid #4a5463;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.9);
    flex-direction: column;
    height: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    z-index: 101;
}
.fh-nav ul li.has-dropdown > ul li.has-dropdown:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.fh-nav ul li.has-dropdown > ul li.has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fh-nav ul li.has-dropdown > ul li.has-dropdown > a::after {
    content: "\203A"; /* Right arrow */
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 10px;
}


/* --- MOBILE RESPONSIVENESS FOR FUTURISTIC HEADER --- */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
        background: linear-gradient(180deg, #3a4759 0%, #05070a 100%);
        border: 1px solid #d9d9e6;
        color: #ffffff;
    }
    
    .fh-search {
        display: none; /* Hide large search bar on mobile to save space */
    }
    
    .fh-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #1f2735 0%, #05070a 100%);
        flex-direction: column;
        height: auto;
        padding: 20px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.9);
        border-top: 1px solid #738092;
        border-bottom: 1px solid #738092;
        display: none;
        z-index: 999;
    }
    
    .fh-nav.active {
        display: flex;
    }
    
    .fh-nav ul {
        flex-direction: column;
        width: 100%;
        height: auto;
    }
    
    .fh-nav ul li {
        width: 100%;
        margin-bottom: 5px;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .fh-nav ul li > a {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .fh-nav ul li > a .nav-icon {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .fh-nav ul li.active::after {
        left: 0;
        bottom: 0;
        width: 4px;
        height: 100%;
        border-radius: 0 3px 3px 0;
    }
    
    /* Mobile Submenu Accordion */
    .fh-nav ul li.has-dropdown > ul {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100%;
        box-shadow: none !important;
        border: none !important;
        background: rgba(0,0,0,0.2) !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding-left: 20px;
    }
    
    .fh-nav ul li.has-dropdown.expanded > ul {
        display: flex !important;
        flex-direction: column;
    }
    
    /* Third Level Mobile */
    .fh-nav ul li.has-dropdown > ul li.has-dropdown > ul {
        position: relative !important;
        left: 0 !important;
        width: 100%;
        padding-left: 20px;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    .fh-nav ul li.has-dropdown > ul li.has-dropdown.expanded > ul {
        display: flex !important;
        flex-direction: column;
    }
    
    .fh-panel {
        width: 100%;
        border-radius: 0;
    }
    .fh-separator {
        display: none;
    }
}
@media (max-width: 768px) {
    .fh-logo {
        padding: 0 10px 0 0; /* Zero left padding to make logo flush left */
        flex: 1; /* Stretch fully to push slant line to the right */
        width: auto;
    }
    .fh-logo .brand-logo {
        height: 60px; /* Maximize height */
        max-width: 95%; /* Use full available width */
        object-fit: contain;
        object-position: left center;
    }
    .fh-actions {
        padding: 0 5px 0 12px; /* 12px left padding pushes the divider away from the icons */
        gap: 6px; /* Even spacing between all icons */
    }
    .theme-switch { width: 48px; margin: 0; } /* Remove margin, let gap handle spacing */
    .theme-switch input:checked + .theme-switch-slider .theme-switch-thumb { transform: translateX(18px); }
    .fh-btn {
        width: 33px; /* Slightly smaller to save space */
        height: 33px;
    }
}


/* -- MOBILE ACCORDION FIXES -- */
@media (max-width: 1024px) {
    .fh-nav ul li.has-dropdown > ul li a {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        background: transparent !important; /* Remove sticky hover on mobile */
    }
    .fh-nav ul li.has-dropdown > ul li a:active {
        background: rgba(255,255,255,0.05) !important;
    }
    
    .fh-nav ul li.has-dropdown > ul li.has-dropdown > a::after {
        content: "\25BC"; /* Down arrow instead of right arrow */
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    .fh-nav ul li.has-dropdown > ul li.has-dropdown.expanded > a::after {
        transform: rotate(180deg);
    }
    
    /* Clean up the 3rd level */
    .fh-nav ul li.has-dropdown > ul li.has-dropdown > ul {
        padding-left: 15px !important;
        border-left: 1px solid rgba(255,255,255,0.1) !important;
        margin-left: 20px;
        width: calc(100% - 20px) !important;
    }
    .fh-nav ul li.has-dropdown > ul li.has-dropdown > ul li a {
        font-size: 0.75rem;
        color: #d9d9e6;
        padding: 10px 15px;
    }
}


/* -- MOBILE LOGO SLANT SEPARATOR -- */
@media (max-width: 1024px) {
    .fh-logo {
        position: relative;
        background: #000000;
        z-index: 5;
    }
    .fh-logo::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0px; /* Adjust slant width closer to logo */
        width: 15px; /* Shorter width so it stays snug to the logo */
        height: 100%;
        background: #000000;
        transform: skewX(-25deg); /* The slant angle */
        border-right: 2px solid #a0aab8; /* Sleek silver line */
        z-index: 10; /* Changed from -1 so it overlays any overflowing logo parts */
    }
}

/* ==========================================================================
   GLOBAL MOBILE FIXES FOR FRONTEND
   ========================================================================== */
@media (max-width: 992px) {
    .container { padding: 0 15px; }
    .grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    /* Grids & Layouts */
    .grid-3, .grid-4 { 
        grid-template-columns: 1fr; 
        gap: 15px; 
    }
    
    .section-padding { padding: 3rem 0; }
    
    /* Typography scaling */
    h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 1.8rem); margin-bottom: 1.5rem; }
    h3 { font-size: clamp(1.1rem, 4vw, 1.3rem); }
    
    /* Hero section scaling */
    .hero { height: auto; min-height: calc(100vh - 80px); }
    .hero .hero-content {
        position: relative;
        padding: 3rem 1.5rem;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(10, 10, 15, 0.75);
    }
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .hero-buttons .btn { width: 100%; }

    /* Tables */
    .table-responsive, table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    /* Prevent horizontal scrolling on ultra-small screens */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
}


/* --- Theme Toggle Switch (Pill Style) --- */
.theme-switch {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 55px;
    height: 28px;
    margin: 0 10px;
}
.theme-switch input { display: none; }
.theme-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    transition: 0.4s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.theme-switch-slider .sun-icon { color: #facc15; width: 13px; height: 13px; z-index: 1; margin-left: 2px; transition: 0.3s; }
.theme-switch-slider .moon-icon { color: #93c5fd; width: 13px; height: 13px; z-index: 1; margin-right: 2px; transition: 0.3s; }
.theme-switch-thumb {
    position: absolute;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #ffffff, #dddddd);
    border-radius: 50%;
    top: 2px;
    left: 3px;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.theme-switch input:checked + .theme-switch-slider {
    background-color: rgba(0,0,0,0.2);
    border-color: rgba(0,0,0,0.3);
}
.theme-switch input:checked + .theme-switch-slider .theme-switch-thumb {
    transform: translateX(25px);
    background: linear-gradient(135deg, #333333, #111111);
}

