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

:root {
    --primary-red: #E31837;
    --primary-dark: #1A202C;
    --accent-gold: #D4AF37;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --bg-soft: #F8FAFC;
    --border-light: #E2E8F0;
    --radius-xl: 40px;
    --radius-lg: 24px;
    --radius-pill: 100px;
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glass: rgba(255, 255, 255, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Outfit', 'Prompt', sans-serif; }
html { scroll-behavior: smooth; }
body { background: white; color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

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

/* Header & Nav */
/* Header & Nav Improvements */
.main-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 12px 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-top-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
}

.logo-img {
    height: 70px;
    transition: transform 0.3s ease;
}

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

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

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 15px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 5px 0;
}

.nav-links a i {
    font-size: 14px;
    color: var(--primary-red);
    opacity: 0.7;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.btn-cta-line {
    background: #00B900;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 185, 0, 0.2);
}

.btn-cta-line:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 185, 0, 0.3);
    color: white;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
    padding: 10px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: 0.4s;
}

/* Hamburger Menu Animation */
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--primary-red); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--primary-red); }

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3); /* Lighter dark overlay */
    backdrop-filter: blur(8px); /* Blur the content BEHIND the overlay */
    -webkit-backdrop-filter: blur(8px);
    z-index: 1400;
    opacity: 0;
    pointer-events: none;
    transition: 0.5s ease;
}
.menu-overlay.active { opacity: 1; pointer-events: all; }


/* Hide mobile menu footer on desktop */
.menu-footer { display: none; }

@media (max-width: 900px) {
    .main-header { padding: 10px 0; background: white; }
    .logo-img { height: 50px !important; }
    .nav-actions { display: none; }
    .menu-toggle { display: flex; position: relative; z-index: 2001; }
    
    /* Move toggle to right when active */
    .menu-toggle.active { position: fixed; right: 30px; top: 25px; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 85%; height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 60px 40px;
        box-shadow: -20px 0 60px rgba(0,0,0,0.2);
        transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 2100; /* Higher than header and overlay */
        gap: 0;
        text-align: center;
    }


    .nav-links.active { right: 0; }

    .nav-links::before {
        content: "SAHASIN SELECTION";
        font-size: 13px;
        letter-spacing: 6px;
        color: var(--primary-red);
        font-weight: 600;
        margin-bottom: 50px;
        opacity: 0.8;
    }

    .nav-links li { 
        width: 100%; 
        opacity: 0; 
        transform: translateY(20px); 
        transition: 0.6s ease;
    }
    
    .nav-links.active li { opacity: 1; transform: translateY(0); }
    .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 a {
        font-size: 36px;
        font-weight: 600;
        color: var(--text-main);
        padding: 25px 0;
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }

    .nav-links a:last-child { border-bottom: none; }

    /* Footer in Drawer */
    .menu-footer {
        display: block;
        margin-top: 60px;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.6s ease 0.4s;
    }
    .nav-links.active .menu-footer { opacity: 1; transform: translateY(0); }
    
    .menu-footer p { font-size: 15px; color: var(--text-muted); line-height: 1.8; }
    .menu-socials { display: flex; gap: 25px; margin-top: 30px; justify-content: center; }
    .menu-socials a { font-size: 24px; color: var(--text-main); border: none; padding: 0; width: auto; }
}





/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&q=80&w=2070') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}
.hero h1 { font-size: 56px; margin-bottom: 20px; }
.hero p { font-size: 20px; max-width: 700px; margin: 0 auto 40px; }

/* Showroom Grid */
/* --- Classic Showroom Grid (for Home Page) --- */
.showroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin: 60px 0;
}

.product-card {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
}

.product-card.revealed { opacity: 1; transform: translateY(0); }

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: rgba(227, 24, 55, 0.1);
}

.product-card .product-image {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: left top;
    transition: transform 1s ease;
}

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

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

.product-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
}

.product-card .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card .contact-link {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card .product-price {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
    opacity: 0.8;
}


/* --- Bento Grid (for Dedicated Showroom Page) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 320px;
    grid-auto-flow: dense;
    gap: 24px;
    margin: 60px 0;
}

.bento-card {
    position: relative;
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
}

.bento-card.revealed { opacity: 1; transform: translateY(0); }

.bento-card.card-large { grid-column: span 2; grid-row: span 2; border-radius: var(--radius-xl); }
.bento-card.card-wide { grid-column: span 2; grid-row: span 1; }
.bento-card.card-tall { grid-column: span 1; grid-row: span 2; border-radius: var(--radius-xl); }

.bento-card:hover { 
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-premium);
    z-index: 10;
}

.bento-card .product-image { 
    width: 100%; height: 100%; 
    background-size: cover; background-position: left top;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-card:hover .product-image { transform: scale(1.1); }

.bento-overlay {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%);
    transition: all 0.4s ease;
}

.bento-card:hover .bento-overlay {
    background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.85) 100%);
}

.bento-details {
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-card:hover .bento-details { transform: translateY(0); }

.bento-details h3 { 
    font-size: 20px; font-weight: 600; 
    margin-bottom: 8px; color: white;
}

.bento-price { 
    font-size: 18px; font-weight: 700; color: white;
    display: inline-flex; align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-large .bento-details h3 { font-size: 32px; margin-bottom: 15px; }
.card-large .bento-price { font-size: 24px; padding: 12px 24px; }

@media (max-width: 1100px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .showroom-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .bento-grid { 
        grid-template-columns: 1fr; 
        grid-auto-rows: auto; 
        gap: 20px;
    }
    .showroom-grid { grid-template-columns: 1fr; }

    /* Mobile Bento Card Overhaul */
    .bento-card { 
        height: auto; 
        display: flex; 
        flex-direction: column;
        background: white;
        border: 1px solid var(--border-light);
        box-shadow: var(--shadow-sm);
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .bento-card .product-image {
        height: 280px;
        width: 100%;
        border-radius: 0;
    }

    .bento-overlay {
        position: static;
        padding: 20px;
        background: white !important;
        background-image: none !important;
    }

    .bento-details {
        transform: none !important;
    }

    .bento-details h3 {
        color: var(--text-main);
        font-size: 18px;
        margin-bottom: 10px;
    }

    .bento-price {
        background: var(--bg-soft);
        color: var(--primary-red);
        border: 1px solid var(--border-light);
    }
    
    .card-large .bento-details h3 { font-size: 20px; }
    .bento-card.card-large, .bento-card.card-wide, .bento-card.card-tall { grid-column: span 1; grid-row: span 1; }
}


/* Buttons */
.btn { 
    display: inline-flex; 
    align-items: center;
    gap: 10px;
    padding: 16px 32px; 
    border-radius: var(--radius-pill); 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 16px;
    border: none;
}

.btn-primary { 
    background: var(--primary-red); 
    color: white; 
    box-shadow: 0 10px 20px rgba(227, 24, 55, 0.2);
}
.btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(227, 24, 55, 0.3);
}

.btn-outline { 
    border: 1.5px solid var(--border-light); 
    background: transparent;
    color: var(--text-main); 
}
.btn-outline:hover { 
    background: var(--text-main); 
    color: white; 
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.hero .btn-outline { border-color: rgba(255,255,255,0.5); color: white; }
.hero .btn-outline:hover { background: white; color: var(--text-main); border-color: white; }

/* Contact */
.contact-section { padding: 100px 0; background: var(--bg-soft); }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; font-size: 18px; }
.contact-item i { width: 45px; height: 45px; background: white; color: var(--primary-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }

@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .contact-container { grid-template-columns: 1fr; }
    .showroom-grid { grid-template-columns: 1fr; }
}
