/* 
   MENARD--FRANCAIS Premium Design System 
   --------------------------------------
   Theme: Dark, Glassmorphism, Neon Accents, Premium Production
*/

:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --bg-panel: #141414;
    --primary: #6366f1;
    /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent: #22d3ee;
    /* Cyan */
    --accent-glow: rgba(34, 211, 238, 0.4);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);

    /* Glassmorphism */
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    --backdrop-blur: blur(12px);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-hero);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Layout Core */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    opacity: 0.08;
    /* Reduced opacity */
    z-index: -1;
    pointer-events: none;
    filter: blur(120px);
    /* Increased blur */
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0.08;
    /* Reduced opacity */
    z-index: -1;
    pointer-events: none;
    filter: blur(120px);
    /* Increased blur */
}

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    /* Darker header */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hero);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Footer (Redesigned) */
footer {
    background: linear-gradient(to top, #000000, rgba(10, 10, 10, 0.5));
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.footer-logo p {
    max-width: 500px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    margin-bottom: 2rem;
}

.footer-nav-links a {
    color: var(--text-main);
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
    gap: 0.5rem;
}

/* Gallery Hover Effect */
.gallery-item img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Feature Card Hover */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.3) !important;
}

/* Hero Image 3D Effect */
.hero img:hover {
    transform: scale(1.02);
}

/* Components */
.card {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--backdrop-blur);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(99, 102, 241, 0.3);
}

.section-padding {
    padding: 8rem 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

input,
textarea,
select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* SHOP Premium Modifications */
.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    background: #0f0f0f;
}

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.product-image-container {
    height: 220px;
    /* Balanced height */
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #000;
}

.blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.6) saturate(1.2);
    transform: scale(1.2);
    /* Remove soft edges */
    z-index: 0;
}

.product-image-container img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Shows full text */
    transition: transform 0.5s ease;
    padding: 0;
    /* No padding needed with blur */
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-price-badge {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    color: #a5b4fc;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Custom Options Premium UI */
.custom-input-group {
    margin-bottom: 1.2rem;
}

.custom-input-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.9rem;
}

.custom-textarea:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
}

.options-container {
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.option-row:last-child {
    border-bottom: none;
}

.option-row:hover {
    color: white;
}

.option-checkbox {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    margin-right: 10px;
    cursor: pointer;
}


/* Hero & Main Components */
.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-text h1 {
    font-size: 4rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}


/* Responsive */
/* Responsive Design */

/* Tablet & Mobile */
@media (max-width: 1024px) {
    :root {
        --container-width: 95%;
    }

    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding-top: 120px !important;
    }
}

/* Mobile Only */
@media (max-width: 768px) {

    /* Layout */
    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 0.95rem;
    }

    /* Header & Nav */
    header {
        height: 70px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 0;
        gap: 0;
        overflow: hidden;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 999;
    }

    .nav-links.active {
        height: 100vh;
        padding-top: 2rem;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for links */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-link {
        display: block;
        padding: 1.5rem;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    }

    .menu-toggle {
        display: block;
        font-size: 1.4rem;
        color: white;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    /* Shop Grid */
    .product-card {
        margin-bottom: 1rem;
    }

    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th,
    td {
        padding: 1rem;
    }

    /* Footer */
    .footer-content {
        gap: 2rem;
    }

    .footer-nav-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }

    .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        padding: 2rem 1rem !important;
        overflow-y: auto;
    }

    /* Grid Fixes */
    .responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem !important;
    }

    .hero-text {
        text-align: center !important;
    }

    .hero-text p {
        margin: 0 auto 3rem !important;
    }

    .cta-group {
        justify-content: center !important;
    }

    /* Prevent overflow on small screens */
    .hero-visual {
        display: none !important;
        /* Hide abstract shape on tiny mobiles to save space */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .nav-link {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .grid-2-to-1 {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}