/* NUR LAB Premium Design System */

:root {
    /* Premium Dark Palette */
    --primary: #ef4444;
    /* Brighter Red */
    --primary-glow: rgba(239, 68, 68, 0.4);
    --secondary: #121214;
    /* Deep Gray-Black */
    --accent: #ff4d4d;
    /* Neon Red */

    /* Neutral Colors - Dark Mode Focused */
    --bg-main: #020203;
    /* Almost Black */
    --bg-card: rgba(10, 10, 12, 0.95);
    --bg-glass: rgba(8, 8, 10, 0.92);

    --text-main: #ffffff;
    /* Pure White */
    --text-muted: #e2e8f0;
    /* Very Light Slate */
    --text-dim: #94a3b8;
    /* Muted Slate */
    /* Gaps & Gradients */
    --gradient-hero: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
    --gradient-glow: linear-gradient(135deg, var(--primary) 0%, #7f1d1d 100%);

    /* Borders & Glass */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    background: rgba(220, 38, 38, 0.2);
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
    display: none;
    /* Hidden on mobile */
}

@media (min-width: 1024px) {
    .cursor-follower {
        display: block;
    }
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    background: rgba(220, 38, 38, 0.4);
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', 'Tiro Bangla', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text Readability Overrides */
.text-muted {
    color: var(--text-muted) !important;
}

.text-dim {
    color: var(--text-dim) !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* Global Components */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

/* Tool Specific Readability Enhancements - Ultra Precise */
.tool-premium-wrapper,
.tool-container {
    color: #ffffff !important;
}

.tool-premium-wrapper label,
.tool-premium-wrapper .form-label {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: block !important;
    margin-bottom: 10px !important;
    opacity: 1 !important;
}

.tool-premium-wrapper .text-muted,
.tool-premium-wrapper p {
    color: #e2e8f0 !important;
    opacity: 1 !important;
    line-height: 1.6 !important;
}

.tool-premium-wrapper h1,
.tool-premium-wrapper h2,
.tool-premium-wrapper h3,
.tool-premium-wrapper h4,
.tool-premium-wrapper h5,
.tool-premium-wrapper h6 {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

.tool-premium-wrapper .form-control-premium,
.tool-premium-wrapper input,
.tool-premium-wrapper textarea,
.tool-premium-wrapper select {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.tool-premium-wrapper .form-control-premium::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Results and special readouts */
.tool-premium-wrapper [id^="res-"],
.tool-premium-wrapper .display-1,
.tool-premium-wrapper .display-2,
.tool-premium-wrapper .display-3,
.tool-premium-wrapper .display-4,
.tool-premium-wrapper .display-5 {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4) !important;
}

.tool-premium-wrapper .text-primary {
    color: var(--primary) !important;
    filter: brightness(1.5);
}



.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

/* Mega Menu */
.mega-menu-trigger {
    position: relative;
    display: flex;
    align-items: center;
}

.mega-menu-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    width: 1340px;
    max-width: 98vw;
    background: #0f0f11;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    display: flex;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.mega-menu-trigger:hover .mega-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

/* Mega Sidebar */
.mega-sidebar {
    width: 230px;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 0;
    border-right: 1px solid var(--glass-border);
}

.mega-cat-item {
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 3px solid transparent;
}

.mega-cat-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    color: #fff;
    padding-left: 2.5rem;
}

.mega-cat-item.active {
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 100%);
    color: var(--primary);
    border-left-color: var(--primary);
    text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
}

.mega-cat-item i {
    width: 20px;
    text-align: center;
    color: var(--text-dim);
}

.mega-cat-item:hover i,
.mega-cat-item.active i {
    color: var(--primary);
}

/* Mega Main Content */
.mega-main {
    flex: 1;
    padding: 3.5rem;
    background: radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.05), transparent 70%);
    display: none;
    animation: megaFadeIn 0.5s ease-out;
}

@keyframes megaFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-main.active {
    display: block;
}

.mega-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.mega-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.mega-links a:hover {
    background: rgba(var(--primary-rgb), 0.1) !important;
    border-color: rgba(var(--primary-rgb), 0.3) !important;
    color: var(--primary) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.mega-links a i {
    transition: transform 0.3s ease;
}

.mega-links a:hover i {
    transform: scale(1.2);
}

.mega-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
    background: rgba(var(--primary-rgb), 0.1) !important;
    border-color: rgba(var(--primary-rgb), 0.3) !important;
}

.featured-column {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.featured-card h4 {
    margin: 1rem 0 0.5rem;
}

.badge {
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Shop Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 4rem 0;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-image {
    height: 250px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
}

.product-info {
    padding: 2rem;
}

.category-tag {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 1rem;
}

/* Animations Reveal */

/* Ensure sections have a base Z-index to stay above background */
section {
    position: relative;
    z-index: 10;
}

/* Utility Classes */
.py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-10 {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

.text-center {
    text-align: center;
}

@media (max-width: 1024px) {
    .mega-menu-content {
        width: 95vw;
    }
}

@media (max-width: 768px) {
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Header Layout */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.desktop-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.desktop-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.desktop-menu a:hover,
.desktop-menu a.active {
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s;
}

@media (max-width: 1024px) {
    .desktop-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}