/* =========================================
   0. FONTS & ROOT VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Jost:wght@300;400;500;600&display=swap');

:root {
    --primary-bg: #020b12; /* Deepest Navy */
    --gold-accent: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --text-white: #FFFFFF;
    --soft-blue: #b0c4de;
}

* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: 'Jost', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
img { max-width: 100%; height: auto; }

/* =========================================
   1. SITE HEADER
   ========================================= */
.site-header {
    position: absolute; top: 0; left: 0; width: 100%; z-index: 1000;
    background: transparent !important; padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.flex-header { display: flex; justify-content: space-between; align-items: center; }
.logo a { text-decoration: none; }
.logo h1 {
    font-family: 'Playfair Display', serif; color: #fff; font-size: 24px; letter-spacing: 3px; margin: 0;
}
.logo span {
    display: block; font-size: 10px; background: var(--gold-gradient); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: 4px; text-align: right; font-weight: 700;
}
.main-nav ul { list-style: none; display: flex; gap: 35px; margin: 0; padding: 0; }
.main-nav a {
    text-decoration: none; color: #fff; font-size: 13px; text-transform: uppercase;
    letter-spacing: 1px; font-weight: 500; transition: 0.3s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-accent); }
.btn-contact {
    border: 1px solid rgba(255, 255, 255, 0.3); padding: 10px 25px; 
    color: #fff !important; text-decoration: none; transition: 0.3s;
}
.btn-contact:hover { border-color: var(--gold-accent); background: var(--gold-accent); color: #000 !important; }

/* =========================================
   2. HERO SECTION (SHARIF METAL STYLE COLLAGE)
   ========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 50%, #0a2e46 0%, #020b12 80%);
    display: flex; align-items: center; overflow: hidden; padding-top: 100px;
}
.hero-wrapper {
    display: flex; align-items: center; justify-content: space-between;
    gap: 50px; width: 100%;
}

/* Left Text */
.hero-text-col { flex: 1; z-index: 10; max-width: 600px; }
.brand-tag {
    color: var(--gold-accent); letter-spacing: 4px; font-size: 13px; font-weight: 700;
    margin-bottom: 20px; display: inline-block; border-bottom: 1px solid var(--gold-accent); padding-bottom: 5px;
}
.hero-text-col h1 {
    font-family: 'Playfair Display', serif; font-size: 65px; line-height: 1.1;
    color: #fff; margin-bottom: 30px; letter-spacing: 1px;
}
.gold-text-shine { color: var(--gold-accent); font-style: italic; }
.hero-text-col p {
    color: #b0c4de; font-size: 18px; line-height: 1.7; margin-bottom: 40px; max-width: 500px;
}

/* Right Collage Animation */
.hero-collage-col {
    flex: 1.2; position: relative; height: 600px;
    display: flex; justify-content: center; align-items: center;
}
.collage-wrapper { position: relative; width: 100%; height: 100%; }

/* Cards Common Style */
.collage-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.3s;
    display: flex; justify-content: center; align-items: center;
    flex-direction: column;
}
.collage-card img { width: 100%; height: 100%; object-fit: contain; }

/* Main Card (Center Big) */
.main-card {
    width: 320px; height: 420px;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 5;
    background: radial-gradient(circle, #1a2530 0%, #020b12 100%);
    border: 1px solid var(--gold-accent);
}
.main-card .card-info {
    position: absolute; bottom: 20px; left: 0; right: 0; text-align: center;
}
.main-card .card-info span { color: var(--gold-accent); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.main-card .card-info h5 { color: #fff; margin: 5px 0 0; font-family: 'Playfair Display', serif; }

/* Sub Cards (Floating) */
.sub-card-1 {
    width: 200px; height: 200px;
    top: 5%; right: 5%; z-index: 4;
}
.sub-card-2 {
    width: 180px; height: 180px;
    bottom: 10%; left: 5%; z-index: 6;
}

/* Animations */
.float-anim-1 { animation: float 6s ease-in-out infinite; }
.float-anim-2 { animation: float 8s ease-in-out infinite reverse; }
.float-anim-3 { animation: float 7s ease-in-out infinite 1s; }

@keyframes float { 0%,100% { transform: translate(-50%, -50%) translateY(0); } 50% { transform: translate(-50%, -50%) translateY(-20px); } }

/* Glow Background */
.glow-circle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    z-index: 1;
}

/* =========================================
   3. COMPONENTS (Buttons, etc)
   ========================================= */
.btn-main-shine {
    background: var(--gold-gradient); color: #000; padding: 15px 40px; 
    font-weight: 700; text-decoration: none; display: inline-block;
    transition: 0.3s;
}
.btn-main-shine:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(179, 135, 40, 0.3); }

.gold-divider { height: 3px; background: var(--gold-gradient); }
.center-align { width: 80px; margin: 30px auto; }
.left-align { width: 60px; margin-bottom: 30px; }
.link-arrow {
    color: #fff; text-decoration: none; border-bottom: 1px solid var(--gold-accent);
    padding-bottom: 5px; font-weight: 600; letter-spacing: 1px;
}

/* =========================================
   4. HOME PAGE SECTIONS
   ========================================= */
/* Features */
.features-strip {
    background: #05101A; padding: 50px 0; margin-top: -50px; position: relative; z-index: 20;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 15px; color: #fff; border-right: 1px solid rgba(255,255,255,0.1); }
.feature-item:last-child { border-right: none; }
.feature-item i { font-size: 30px; color: var(--gold-accent); }
.feature-item h4 { margin: 0; font-size: 16px; font-weight: 700; }
.feature-item span { font-size: 12px; color: #888; text-transform: uppercase; }

/* Philosophy */
.brand-philosophy { padding: 120px 0; background: #020b12; }
.philosophy-wrapper { display: flex; align-items: center; gap: 80px; }
.philosophy-images { flex: 1; position: relative; height: 500px; }
.ph-img-1 { width: 80%; height: 80%; object-fit: cover; position: absolute; top: 0; left: 0; border: 1px solid rgba(255,255,255,0.1); }
.ph-img-2 { width: 50%; height: 60%; object-fit: cover; position: absolute; bottom: 0; right: 0; border: 5px solid #020b12; }
.philosophy-text-col { flex: 1; }
.philosophy-text-col h2 { font-family: 'Playfair Display', serif; font-size: 48px; color: #fff; line-height: 1.2; margin-bottom: 20px; }

/* Showcase & Grid */
.featured-showcase { padding: 100px 0; background: #05101A; }
.showcase-row { display: flex; align-items: center; gap: 80px; }
.showcase-img { flex: 1; height: 550px; overflow: hidden; border-radius: 4px; }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; }
.showcase-text { flex: 1; }
.showcase-text .sub-title { color: var(--gold-accent); letter-spacing: 4px; display: block; margin-bottom: 10px; }
.showcase-text h3 { font-family: 'Playfair Display', serif; font-size: 50px; color: #fff; margin-bottom: 25px; line-height: 1.1; }

.category-grid-section { padding: 100px 0; background: #020b12; }
.section-title { text-align: center; color: #fff; font-family: 'Playfair Display', serif; font-size: 40px; margin-bottom: 50px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cat-card { position: relative; height: 450px; display: block; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.cat-card:hover img { transform: scale(1.1); }
.cat-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; }
.cat-overlay h3 { color: #fff; border: 1px solid rgba(255,255,255,0.5); padding: 15px 40px; letter-spacing: 3px; }

/* Product Cards */
.product-grid-wrapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: #0a1f30; border: 1px solid rgba(255,255,255,0.05); position: relative; }
.prod-img-box { height: 260px; background: #fff; padding: 20px; display: flex; align-items: center; justify-content: center; }
.prod-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hover-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.product-card:hover .hover-overlay { opacity: 1; }
.btn-quick-view { background: var(--gold-accent); color: #000; padding: 10px 20px; text-decoration: none; font-weight: 700; }
.prod-info { padding: 20px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.prod-info h4 { color: #fff; font-size: 16px; margin: 5px 0; }
.prod-info .price { color: var(--gold-accent); font-weight: 700; }

.cta-section { padding: 140px 0; text-align: center; background: linear-gradient(rgba(2,11,18,0.8), rgba(2,11,18,0.8)), url('../img/showcase_1.jpg') fixed center/cover; }
.cta-form { max-width: 500px; margin: 30px auto 0; display: flex; gap: 10px; }
.cta-form input { flex: 1; padding: 15px; border: none; outline: none; }
.cta-form button { padding: 15px 30px; background: var(--gold-accent); border: none; font-weight: 700; cursor: pointer; }

/* =========================================
   5. PRODUCT PAGE LAYOUT (FIXED GRID)
   ========================================= */
.products-page-layout { display: flex; gap: 40px; padding: 60px 0; min-height: 100vh; align-items: flex-start; }
.dark-sidebar { flex: 0 0 250px; background: #05101A; padding: 30px; border: 1px solid rgba(255,255,255,0.05); }
.dark-sidebar a { color: #b0c4de; display: block; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); text-decoration: none; }
.dark-sidebar a:hover, .dark-sidebar a.active { color: var(--gold-accent); }
.product-listing-area { flex: 1; min-width: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* =========================================
   6. INNER PAGES (Title, Detail, Contact)
   ========================================= */
.page-title-strip, .contact-page-title {
    background: radial-gradient(circle at center, #0a2e46 0%, #020b12 100%);
    padding: 200px 0 80px; text-align: center; margin-top: -120px; border-bottom: 1px solid #1a1a1a;
}
.page-title-strip h1 { font-family: 'Playfair Display', serif; font-size: 45px; color: #fff; margin-bottom: 10px; }
.page-title-strip p { color: var(--gold-accent); letter-spacing: 2px; text-transform: uppercase; }

.detail-page-strip { padding: 160px 0 40px; }
.product-detail-wrapper { display: flex; gap: 50px; padding: 50px 0; }
.detail-image-box { flex: 1; background: #05101A; padding: 40px; display: flex; justify-content: center; }
.detail-image-box img { max-width: 100%; max-height: 450px; object-fit: contain; }
.detail-info-box { flex: 1; }
.product-title { font-family: 'Playfair Display', serif; font-size: 36px; color: #fff; }
.product-price { font-size: 28px; color: var(--gold-accent); font-weight: 700; margin: 20px 0; }

.contact-wrapper { display: flex; gap: 50px; }
.contact-info, .contact-form { flex: 1; background: #0a1f30; padding: 40px; border-radius: 8px; }
.contact-form { background: #fff; color: #000; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; margin-bottom: 20px; }

/* =========================================
   7. FOOTER
   ========================================= */
.site-footer { background: #020b12; color: var(--soft-blue); padding-top: 50px; border-top: 3px solid var(--gold-accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 30px; }
.footer-col h4 { color: #fff; font-family: 'Playfair Display', serif; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col a { color: var(--soft-blue); text-decoration: none; }
.copyright-bar { border-top: 1px solid rgba(255,255,255,0.05); padding: 15px 0; text-align: center; font-size: 13px; }
.copyright-bar .container { display: flex; justify-content: space-between; }

/* =========================================
   8. MOBILE RESPONSIVE
   ========================================= */
.mobile-menu-icon { display: none; cursor: pointer; color: #fff; font-size: 24px; }

@media (max-width: 992px) {
    .main-nav ul { display: none; }
    .mobile-menu-icon { display: block; }
    .main-nav ul.mobile-active {
        display: flex !important; flex-direction: column; position: fixed; top: 80px; left: 0; width: 100%;
        background: rgba(2, 11, 18, 0.98); padding: 30px 0; gap: 20px; text-align: center; z-index: 1001;
    }

    /* Hero Fixes */
    .hero-section { padding-top: 140px; height: auto; text-align: center; }
    .hero-wrapper { flex-direction: column-reverse; }
    .hero-text-col h1 { font-size: 40px; }
    .hero-collage-col { height: 400px; width: 100%; }
    .main-card { width: 220px; height: 280px; }
    .sub-card-1 { width: 140px; height: 140px; top: 0; right: 0; }
    .sub-card-2 { width: 120px; height: 120px; bottom: 0; left: 0; }

    /* General Stacking */
    .features-grid { grid-template-columns: 1fr; }
    .philosophy-wrapper, .showcase-row, .contact-wrapper, .products-page-layout { flex-direction: column; gap: 40px; }
    .philosophy-images, .showcase-img { width: 100%; height: 350px; }
    .philosophy-text-col, .showcase-text, .detail-info-box { text-align: center; }
    .grid-3, .product-grid { grid-template-columns: 1fr; }
    .cta-form { flex-direction: column; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; }
    .copyright-bar .container { flex-direction: column; gap: 5px; }
}

/* Animations */
#preloader { position: fixed; inset: 0; background: #020b12; z-index: 10000; display: flex; justify-content: center; align-items: center; }
.loader-logo { font-family: 'Playfair Display', serif; font-size: 40px; color: #fff; animation: pulseGold 2s infinite; }
@keyframes pulseGold { 50% { opacity: 0.5; color: var(--gold-accent); } }
.cursor-dot { position: fixed; width: 8px; height: 8px; background: var(--gold-accent); border-radius: 50%; pointer-events: none; z-index: 9999; }
.cursor-outline { position: fixed; width: 40px; height: 40px; border: 1px solid rgba(212, 175, 55, 0.5); border-radius: 50%; pointer-events: none; z-index: 9999; }











/* =========================================
   8. MOBILE RESPONSIVE FIX (FINAL)
   ========================================= */
.mobile-menu-icon { display: none; cursor: pointer; color: #fff; font-size: 24px; }

@media (max-width: 992px) {
    /* 1. Header & Nav */
    .container { width: 90%; } /* মোবাইলে একটু বেশি স্পেস */
    .main-nav ul { display: none; } /* পিসি মেনু হাইড */
    .mobile-menu-icon { display: block; } /* মোবাইল মেনু আইকন শো */
    
    /* মোবাইল মেনু যখন ওপেন হবে */
    .main-nav ul.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 70px; left: 0; width: 100%;
        background: rgba(2, 11, 18, 0.98);
        padding: 30px 0;
        gap: 20px;
        text-align: center;
        border-bottom: 2px solid var(--gold-accent);
        z-index: 1001;
    }

    /* 2. Hero Section Fix */
    .hero-section {
        padding-top: 120px;
        padding-bottom: 60px;
        height: auto; /* হাইট অটো করা হলো */
        text-align: center;
    }
    .hero-wrapper {
        flex-direction: column-reverse; /* ইমেজ উপরে, টেক্সট নিচে */
        gap: 40px;
    }
    .hero-text-col {
        padding: 0;
        max-width: 100%;
    }
    .hero-text-col h1 { font-size: 42px; margin-bottom: 15px; }
    .hero-text-col p { font-size: 16px; margin: 0 auto 30px; }
    .hero-btns { justify-content: center; }

    /* 3. Hero Collage Fix (মোবাইলে একটার পর একটা না দেখিয়ে সুন্দর ফিক্সড সাইজ) */
    .hero-collage-col {
        height: 350px; /* ফিক্সড হাইট */
        width: 100%;
        margin-bottom: 20px;
    }
    /* মেইন কার্ড */
    .main-card {
        width: 200px;
        height: 260px;
        margin-left: -100px; /* সেন্টারে আনার জন্য */
        margin-top: -130px;
    }
    /* ছোট কার্ডগুলো */
    .sub-card-1 {
        width: 120px; height: 120px;
        top: 0; right: 10px;
    }
    .sub-card-2 {
        width: 110px; height: 110px;
        bottom: 0; left: 10px;
    }

    /* 4. Features Strip */
    .features-strip { padding: 40px 0; margin-top: 0; }
    .features-grid {
        grid-template-columns: 1fr; /* এক কলাম */
        gap: 30px;
    }
    .feature-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 15px;
        justify-content: center; /* সেন্টারে */
    }
    .feature-item:last-child { border-bottom: none; }

    /* 5. Sections Stacking (Philosophy, Showcase) */
    .philosophy-wrapper, 
    .showcase-row, 
    .contact-wrapper, 
    .products-page-layout, 
    .product-detail-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    /* ইমেজ সাইজ ঠিক করা */
    .philosophy-images, 
    .showcase-img, 
    .detail-image-box {
        width: 100%;
        height: 300px; /* ইমেজের হাইট ফিক্সড */
    }
    
    /* টেক্সট এলাইনমেন্ট */
    .philosophy-text-col, 
    .showcase-text, 
    .detail-info-box {
        text-align: center;
    }
    .gold-divider.left-align { margin: 20px auto; } /* ডিভাইডার সেন্টারে */

    /* 6. Grids (Category, Products, Blog) */
    .grid-3, 
    .product-grid,
    .footer-grid {
        grid-template-columns: 1fr; /* সব ১ কলাম */
        gap: 30px;
    }

    /* 7. Forms & Footer */
    .cta-form, .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    .cta-form input, .newsletter-form input {
        width: 100%;
        text-align: center;
    }
    .cta-form button, .newsletter-form button {
        width: 100%;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%); /* ফুটার টাইটেল আন্ডারলাইন সেন্টারে */
    }
    .footer-col { text-align: center; }
    .footer-col ul li { display: flex; justify-content: center; }
    
    .copyright-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* 8. Sidebar (Product Page) */
    .dark-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
    /* ফিল্টারগুলো যাতে খুব বেশি লম্বা না হয় */
    .dark-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .dark-sidebar a {
        border: 1px solid rgba(255,255,255,0.1);
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* Tablet Fix (iPad etc) */
@media (min-width: 600px) and (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}