:root {
    --majee-red: #cc1014;
    --majee-black: #0f0f0f;
    --majee-bg: #f5f2eb;
    --majee-white: #ffffff;
    --text-color: #333333;
    --font-primary: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--majee-black);
}

p {
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 400;
}

.panel {
    min-height: 100vh;
    padding: 100px 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* --- Navigation Overlay --- */
.menu-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100;
    background: var(--majee-black);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.menu-btn:hover {
    transform: scale(1.1);
}

.line {
    width: 24px;
    height: 2px;
    background: var(--majee-white);
    transition: 0.4s;
}

.menu-btn.active .line1 { transform: translateY(8px) rotate(45deg); }
.menu-btn.active .line2 { opacity: 0; }
.menu-btn.active .line3 { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: circle(0% at 100% 0%); 
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.nav-overlay.open {
    clip-path: circle(150% at 100% 0%);
}

.nav-content ul {
    list-style: none;
    text-align: center;
}

.nav-content li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s;
}

.nav-overlay.open .nav-content li {
    opacity: 1;
    transform: translateY(0);
}

.nav-content a {
    color: var(--majee-white);
    text-decoration: none;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    transition: color 0.3s;
}

.nav-content a:hover {
    color: var(--majee-red);
}

/* --- Hero Section --- */
.hero {
    background-color: var(--majee-red);
    color: var(--majee-white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding-top: 120px;
}
.hero h1 { color: var(--majee-white); font-size: clamp(2.5rem, 4vw, 5rem); font-weight: 900; }
.hero-highlight { font-size: clamp(3rem, 5vw, 6rem); }
.logo { display: flex; align-items: center; margin-bottom: 30px; }
.logo-m { width: clamp(40px, 5vw, 60px); height: clamp(40px, 5vw, 60px); background-color: var(--majee-white); color: var(--majee-black); font-size: clamp(20px, 3vw, 40px); font-weight: 900; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-right: 15px; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-weight: 800; letter-spacing: 2px; font-size: clamp(0.9rem, 1.5vw, 1.2rem); }
.logo-sub { font-size: clamp(0.6rem, 1vw, 0.8rem); letter-spacing: 1px; }
.hero-image-container { width: 100%; height: 70vh; border-radius: 300px 300px 0 0; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.hero-image-container img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.hero-footer { position: absolute; bottom: 20px; left: 5vw; font-size: 0.8rem; letter-spacing: 2px; font-weight: 600; text-align: center; width: 90vw;}

/* --- About Section --- */
.about { background-color: var(--majee-bg); align-items: center; text-align: center; }
.about-container { max-width: 800px; }
.about h2 { font-size: clamp(2.5rem, 5vw, 5rem); margin-bottom: 10px; }
.about h3 { font-size: clamp(1rem, 2vw, 2rem); margin-bottom: 30px; }

/* --- What We Do Grid --- */
.what-we-do { background: var(--majee-red); color: var(--majee-white); }
.wwd-header { text-align: center; margin-bottom: 50px; }
.wwd-header h2 { font-size: clamp(2rem, 4vw, 4rem); color: var(--majee-white); }
.wwd-header p { color: var(--majee-white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2px; background: var(--majee-red); border: 2px solid var(--majee-red); }
.service-card { background: var(--majee-black); color: var(--majee-white); padding: 50px 20px; text-align: center; font-weight: 800; font-size: 1.2rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center;}
.service-card:hover { background: var(--majee-white); color: var(--majee-red); transform: scale(1.05); z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

/* --- Dynamic Showcase Section --- */
.showcase { position: relative; width: 100%; }
.showcase-pinned { height: 100vh; width: 100%; display: flex; overflow: hidden; position: relative; }
.showcase-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--majee-white); z-index: 0; }
.showcase-content-wrapper { width: 50%; height: 100%; position: relative; z-index: 2; padding: 100px 5vw; display: flex; flex-direction: column; justify-content: center; }
.showcase-item { position: absolute; top: 50%; transform: translateY(-50%); opacity: 0; visibility: hidden; }
.showcase-item.active { opacity: 1; visibility: visible; }
.showcase-item h4 { font-size: clamp(0.8rem, 1vw, 1rem); letter-spacing: 2px; margin-bottom: 10px; }
.showcase-item h2 { font-size: clamp(2rem, 3.5vw, 4rem); margin-bottom: 20px; }
.showcase-image-wrapper { width: 50%; height: 100%; position: relative; z-index: 1; }
.showcase-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; }
.showcase-image.active { opacity: 1; visibility: visible; }
.showcase-image img { width: 100%; height: 100%; object-fit: cover; }

/* --- Custom Manufacturing --- */
.custom-mfg { background: var(--majee-red); color: white; text-align: center; }
.custom-mfg h1, .custom-mfg h2 { color: white; }
.custom-mfg h1 { font-size: clamp(2.5rem, 5vw, 5rem); margin-bottom: 20px; }
.custom-mfg h2 { font-size: clamp(0.8rem, 1vw, 1rem); letter-spacing: 2px; }
.mfg-circles { display: flex; justify-content: center; gap: 30px; margin-top: 50px; flex-wrap: wrap; }
.mfg-circle { width: 150px; height: 150px; border-radius: 50%; border: 2px solid white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; transition: background 0.3s, color 0.3s; }
.mfg-circle:hover { background: white; color: var(--majee-red); }

/* --- Factory Network (Horizontal Scroll) --- */
.factory-network { overflow: hidden; background: var(--majee-bg); }
.factory-pin { width: 300vw; height: 100vh; display: flex; align-items: center; padding: 0 5vw; gap: 10vw; }
.factory-header h2 { font-size: clamp(2.5rem, 4vw, 5rem); }
.factory-header { width: 50vw; flex-shrink: 0; }
.factory-scroll-container { display: flex; align-items: center; gap: 5vw; }
.large-img { width: 80vw; height: 70vh; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.large-img img { width: 100%; height: 100%; object-fit: cover; }
.factory-text { width: 40vw; font-size: clamp(1rem, 1.5vw, 1.5rem); font-weight: 600; }

/* --- Quality Assurance (Split Parallax) --- */
.quality-assurance { padding: 0; display: flex; flex-direction: row; background: var(--majee-black); color: white; }
.qa-split { display: flex; width: 100%; height: 100vh; }
.qa-image { width: 50%; height: 100%; overflow: hidden; }
.qa-image img { width: 100%; height: 120%; object-fit: cover; } 
.qa-content { width: 50%; padding: 10vw 5vw; display: flex; flex-direction: column; justify-content: center; }
.qa-content h4, .qa-content h2 { color: white; }
.massive-text { font-size: clamp(3rem, 6vw, 8rem); line-height: 1; margin-bottom: 20px; }

/* --- Logistics --- */
.logistics { padding: 0; justify-content: center; align-items: center; color: white; text-align: center; }
.logistics-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: brightness(0.5); }
.logistics-content { position: relative; z-index: 1; }
.logistics-content h2 { color: white; font-size: clamp(2.5rem, 5vw, 6rem); margin-bottom: 20px; }
.logistics-content p { font-size: clamp(1rem, 1.5vw, 1.5rem); }

/* --- NEW: Highly Attractive Why Majee Section --- */
.why-majee { background-color: var(--majee-black); color: var(--majee-white); text-align: center; position: relative; overflow: hidden;}
.why-majee::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(204,16,20,0.15) 0%, rgba(15,15,15,0) 70%);
    z-index: 0;
    pointer-events: none;
}
.why-majee h2 { color: var(--majee-white); font-size: clamp(2.5rem, 4vw, 5rem); margin-bottom: 60px; position: relative; z-index: 1; }
.reasons-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    max-width: 1400px; 
    margin: 0 auto; 
    position: relative; 
    z-index: 1;
}
.reason { 
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 20px;
    border-radius: 20px;
    font-size: 1.2rem; 
    font-weight: 800; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 20px; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.reason:hover {
    transform: translateY(-10px);
    background: var(--majee-red);
    border-color: var(--majee-red);
    box-shadow: 0 20px 40px rgba(204, 16, 20, 0.4);
}
.reason span { 
    font-size: 2.5rem; 
    color: var(--majee-red);
    background-color: rgba(255,255,255,0.1); 
    width: 70px; 
    height: 70px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    transition: all 0.4s ease;
}
.reason:hover span {
    color: var(--majee-white);
    background-color: rgba(0,0,0,0.2);
}

/* --- Project Journey --- */
.project-journey { background: var(--majee-white); color: var(--majee-black); text-align: center; overflow: hidden;}
.project-journey h2 { color: var(--majee-black); margin-bottom: 50px; font-size: clamp(2.5rem, 4vw, 5rem);}
.journey-container { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; height: 400px; }
.journey-path { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.journey-steps { display: flex; justify-content: space-between; position: absolute; width: 100%; top: 150px; }
.j-step { background: var(--majee-red); color: white; padding: 10px 20px; border-radius: 20px; font-weight: 800; opacity: 0; transform: translateY(20px); font-size: clamp(0.7rem, 1vw, 1rem); text-align: center; max-width: 150px;}

/* --- Global Reach --- */
.global-reach { padding: 0; align-items: flex-start; justify-content: flex-end; padding-bottom: 100px; }
.map-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.2; filter: grayscale(100%); }
.reach-content { position: relative; z-index: 1; max-width: 600px; margin-left: 5vw; background: rgba(255,255,255,0.9); padding: 50px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-radius: 20px; margin-top: 100px;}
.reach-content h2 { font-size: clamp(2rem, 4vw, 4rem); margin-bottom: 20px;}

/* --- Footer --- */
.footer { background-color: var(--majee-black); color: var(--majee-white); min-height: 50vh; }
.footer-contacts p { margin-bottom: 10px; opacity: 0.8; font-size: clamp(0.9rem, 1vw, 1.1rem); }

/* =========================================
   MOBILE RESPONSIVENESS (Media Queries)
   ========================================= */

@media (max-width: 1024px) {
    /* Adjust Project Journey for tablets and mobile */
    .journey-container { height: auto; padding-bottom: 50px; }
    .journey-path { display: none; } /* Hide SVG on smaller screens */
    .journey-steps { 
        position: relative; 
        top: 0; 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 30px; 
        padding-left: 40px;
    }
    .journey-steps::before {
        content: '';
        position: absolute;
        top: 0;
        left: 10px;
        width: 4px;
        height: 100%;
        background: #e0e0e0; /* Gray inactive track */
        border-radius: 2px;
    }
    .journey-line {
        position: absolute;
        top: 0;
        left: 10px;
        width: 4px;
        height: 0%; /* Animates to 100% via GSAP */
        background: var(--majee-red); /* Active red track */
        border-radius: 2px;
        z-index: 1;
    }
    .j-step { 
        position: relative !important;
        top: auto !important;
        left: auto !important;
        max-width: 100%; 
        width: 100%; 
        background: white;
        color: var(--majee-red);
        border: 2px solid var(--majee-red);
        text-align: left;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        font-size: 1rem;
    }
    .j-step::before {
        content: '';
        position: absolute;
        top: 50%;
        left: -40px;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        background: var(--majee-red);
        border-radius: 50%;
        border: 4px solid white;
        box-shadow: 0 0 0 2px var(--majee-red);
    }
    
    /* Factory Horizontal Scroll adjustment */
    .factory-pin { width: 400vw; }
    .large-img { width: 90vw; height: 50vh; }
}

@media (max-width: 768px) {
    .panel { padding: 80px 5vw; }
    
    .hero { grid-template-columns: 1fr; padding-top: 120px; gap: 20px; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-image-container { height: 50vh; border-radius: 150px 150px 0 0; }
    .hero-footer { position: relative; left: 0; bottom: 0; margin-top: 20px; width: 100%;}

    /* Dynamic Showcase -> Stack on mobile instead of pinned split screen */
    .showcase-pinned { flex-direction: column; height: auto !important; }
    .showcase-content-wrapper { width: 100%; height: auto; padding: 50px 5vw; min-height: 50vh; }
    .showcase-image-wrapper { width: 100%; height: 50vh; position: relative; }
    .showcase-item { position: relative; top: 0; transform: none; padding-bottom: 40px;}
    
    .custom-mfg h1 { font-size: 2.5rem; }
    .mfg-circle { width: 100px; height: 100px; font-size: 0.9rem; }
    
    /* Disable Factory Horizontal Scroll on Mobile, stack normally */
    .factory-pin { width: 100%; height: auto; display: flex; flex-direction: column; gap: 40px; padding: 80px 5vw; }
    .factory-header { width: 100%; text-align: center; }
    .factory-scroll-container { flex-direction: column; width: 100%; }
    .large-img { width: 100%; height: 40vh; }
    .factory-text { width: 100%; text-align: center; font-size: 1.2rem; }

    .qa-split { flex-direction: column; height: auto; }
    .qa-image { width: 100%; height: 40vh; }
    .qa-content { width: 100%; padding: 50px 5vw; text-align: center; }
    .massive-text { font-size: 3rem; }
    
    .reach-content { 
        margin-left: 0; 
        width: 100%; 
        margin-top: 50px; 
        text-align: center; 
        background: rgba(204, 16, 20, 0.9);
        color: white;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.2);
    }
    .reach-content h2 { color: white; }
    .map-bg { opacity: 0.4; filter: none; }
}

@media (max-width: 480px) {
    .menu-btn { top: 20px; right: 20px; width: 50px; height: 50px; }
    .reasons-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .hero-image-container { height: 40vh; }
}
