@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:opsz,wght@9..40,400;500;700&display=swap');

:root {
    --bg-main: #F5F5F0;
    --primary: #FF3B00;
    --secondary: #1A1A1A;
    --supporting: #E8E8E0;
    --highlight: #FFD600;
    --text-dark: #1A1A1A;
    --text-light: #F5F5F0;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-dark {
    background-color: var(--secondary);
    color: var(--text-light);
}

.bg-light {
    background-color: var(--bg-main);
    color: var(--text-dark);
}

.bg-supporting {
    background-color: var(--supporting);
    color: var(--text-dark);
}

.bg-primary {
    background-color: var(--primary);
    color: white;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 1px;
}

.text-center {
    text-align: center;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 4px;
    animation: pulse 1.5s infinite;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 59, 0, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #d63200;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 59, 0, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

/* 1. Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(245, 245, 240, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    border-color: var(--primary);
    padding: 8px 24px;
    font-size: 1.1rem;
}

.nav-cta:hover {
    color: white !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary);
}

/* 2. Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-img-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.9);
    transition: transform 5s ease;
}

.hero:hover .hero-img-bg {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.7);
    z-index: -1;
}

.hero-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--highlight);
    color: var(--secondary);
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(64px, 10vw, 120px);
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.hero-subtext {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* 3. Trust Bar */
.marquee-container {
    background-color: var(--supporting);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: marquee 20s linear infinite;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--secondary);
}

.marquee-content i {
    color: var(--primary);
    margin-right: 8px;
}

.marquee-dot {
    color: var(--primary);
    margin: 0 40px;
}

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

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

/* 4. What We Make */
.category-header {
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(48px, 6vw, 64px);
    letter-spacing: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border-radius: 12px;
}

.cat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cat-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.cat-body {
    padding: 40px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cat-card-center {
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cat-card-center:hover {
    transform: scale(1.05) translateY(-10px);
}

.cat-card-center .cat-img {
    height: 280px;
}

.cat-body h3 {
    font-size: 36px;
    margin-bottom: 16px;
    letter-spacing: 1px;
    color: white;
}

.cat-body p {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.5;
    color: white;
}

.cat-tag {
    font-family: var(--font-heading);
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.cat-card:hover .cat-tag {
    gap: 12px;
}

/* 5. Why Morex */
/* 5. Why Morex (Bento Grid) */
.bento-header {
    text-align: center;
    margin-bottom: 60px;
}

.bento-header h2 {
    font-size: clamp(48px, 6vw, 64px);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.bento-header p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 24px;
}

.bento-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-box:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 59, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.bento-wide {
    grid-column: span 2;
}

.bento-wide:first-child {
    background: linear-gradient(135deg, rgba(255, 59, 0, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 59, 0, 0.2);
}

.bento-square {
    grid-column: span 1;
}

.bento-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition);
}

.bento-box:hover .bento-icon {
    transform: scale(1.1) rotate(5deg);
}

.bento-box h3 {
    color: white;
    font-size: 28px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.bento-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
}

/* 6. Featured Products */
.featured-subtext {
    text-align: center;
    margin-bottom: 60px;
    font-size: 18px;
    color: var(--secondary);
    opacity: 0.8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.product-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 59, 0, 0.2);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f8f8f8;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--highlight);
    color: var(--secondary);
    padding: 4px 12px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    z-index: 2;
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--secondary);
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 20px;
}

.product-price .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-left: 8px;
}

.btn-add {
    margin-top: auto;
    background: #f5f5f0;
    color: var(--secondary);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-add:hover {
    background: var(--primary);
    color: white;
}

.featured-cta {
    text-align: center;
}

/* 7. About */
.about-container {
    display: flex;
    align-items: stretch;
    gap: 60px;
}

.about-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-right {
    width: 50%;
    position: relative;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-right:hover .about-img {
    transform: scale(1.05);
}

.about-left h2 {
    font-size: clamp(48px, 6vw, 64px);
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.about-left p {
    font-size: 18px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-left .bold-text {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 40px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

/* 8. Reviews (Replaced Contact) */
.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h2 {
    font-size: 64px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.contact-header p {
    font-size: 18px;
    color: var(--secondary);
    opacity: 0.8;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.quote-bg {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    color: rgba(0, 0, 0, 0.03);
    z-index: 0;
    transition: var(--transition);
}

.review-card:hover .quote-bg {
    color: rgba(255, 59, 0, 0.05);
    transform: scale(1.1) rotate(5deg);
}

.stars {
    color: var(--highlight);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.review-text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--secondary);
    margin-bottom: 30px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.reviewer-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
    position: relative;
    z-index: 1;
}

.reviewer-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--supporting);
}

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.reviewer-location {
    font-size: 13px;
    color: var(--secondary);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* 9. Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 80px 0 30px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 48px;
    margin-bottom: 32px;
    display: block;
    letter-spacing: 2px;
    color: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 15px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 60px;
}

.footer-social a {
    color: white;
    font-size: 28px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 40px;
    }

    .cat-card-center {
        transform: none;
        box-shadow: none;
    }

    .cat-card-center:hover {
        transform: translateY(-10px);
    }

    .about-container {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .about-left,
    .about-right {
        width: 100%;
    }

    .about-right {
        height: 300px;
        min-height: unset;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-wide {
        grid-column: span 2;
    }
    .bento-square {
        grid-column: span 1;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-wide, .bento-square {
        grid-column: span 1;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
    }
}
