/* 
=====================================================
  AGOID INTERIOR - World Class Portfolio Stylesheet
  File: portfolio.css
  Description: Advanced styling for Masonry Grid, 
  Ultra Modal, Moodboard, and Hero Section.
  Updated: Premium Floating Bar & 3D Card Styles
  Status: Merged & Optimized (No Duplicates)
=====================================================
*/

/* --- 1. Root Variables & Global Settings --- */
:root {
    /* --- UPDATED BRAND COLORS (Cyan & Pink) --- */
    --primary-bg: #0A0A2A;   /* Original Dark Blue */
    --secondary-bg: #14143a; /* Card Background */
    --card-bg: #1a1a40;
    
    /* Replaced Gold with Brand Cyan */
    --accent-gold: #33D5E5;  /* Cyan (taking the place of Gold) */
    --accent-cyan: #33D5E5;
    --accent-pink: #E849E8;
    
    --text-main: #FFFFFF;
    --text-muted: #cccccc;
    
    /* Fonts Config */
    --font-heading: 'Poppins', sans-serif; 
    --font-body: 'Poppins', sans-serif;
    
    /* Gradients & Glass */
    --gradient-glow: linear-gradient(135deg, rgba(51, 213, 229, 0.1), rgba(232, 73, 232, 0.1));
    --glass-bg: rgba(22, 22, 50, 0.7);
    --glass-border: rgba(51, 213, 229, 0.2); 

    /* Dimensions & Spacing */
    --header-height: 80px;
    
    /* Animations */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- FIX 3 (Part A): Stop Horizontal Scrolling on Mobile --- */
html, body {
    overflow-x: hidden;      /* Hides anything wider than the screen */
    width: 100%;             /* Locks width to viewport */
    position: relative;
    max-width: 100vw;        /* Double safety */
}

/* --- Global Typography Update --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

/* Reset specific to this page if needed */
body.portfolio-page {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary-bg);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* --- 2. Preloader Animation --- */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loader-content {
    text-align: center;
}
.logo-mark {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-gold);
    animation: pulseLogo 2s infinite;
}
.loading-bar {
    width: 150px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    margin-top: 20px;
    border-radius: 3px;
    overflow: hidden;
}
.bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-gold);
    animation: loadBar 1.5s ease-in-out forwards;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.95); opacity: 0.8; }
}
@keyframes loadBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* --- 3. HERO SECTION: FINAL RESPONSIVE FIX (UPDATED) --- */

/* =========================================
   HERO SECTION: UNIVERSAL DEVICE FIX
   ========================================= */

.portfolio-hero {
    position: relative;
    width: 100%;
    
    /* 1. Height Logic Fix */
    height: 100vh;       /* Default */
    min-height: 800px;   /* ছোট স্ক্রিনেও কন্টেন্ট চ্যাপ্টা হবে না */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Desktop: Center */
    overflow: hidden;
    padding: 0 20px;
}

/* Video Background */
.hero-bg-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-bg-video video {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.1); filter: brightness(0.65); /* টেক্সট পড়ার সুবিধার জন্য ডার্ক */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,42,0.8), rgba(10,10,42,0.4), rgba(10,10,42,1));
    z-index: 2;
}

/* Content Wrapper */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
    
    /* Flexbox দিয়ে সব আইটেমের মধ্যে গ্যাপ তৈরি করা */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* এলিমেন্টগুলোর মধ্যে ফিক্সড গ্যাপ */
    margin-top: 60px; /* হেডার থেকে দূরত্ব */
}

/* Badge */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px; border-radius: 30px;
    font-size: 0.9rem; color: var(--accent-cyan);
    text-transform: uppercase; font-weight: 600;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* রেসপন্সিভ ফন্ট */
    font-weight: 800; line-height: 1.1;
    color: #fff; text-align: center;
    margin: 0;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #ddd; text-align: center;
    max-width: 650px; font-weight: 300;
    margin: 0;
}

/* Search Bar Wrapper */
.smart-search-wrapper {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 15px; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%; max-width: 600px;
    margin: 10px 0; /* উপরে নিচে গ্যাপ */
}

.search-input-group {
    display: flex; align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px; padding: 8px 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.search-icon { color: var(--accent-cyan); margin-right: 10px; font-size: 1.1rem; }
#smart-search { flex-grow: 1; background: transparent; border: none; color: #fff; font-size: 1rem; }
.btn-search-action { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink)); border: none; color: #fff; cursor: pointer; }

/* 2. Trending Tags Fix (One Line Scroll) */
.popular-tags {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.popular-tags span {
    font-size: 0.8rem; color: #ccc; white-space: nowrap;
}

.tag-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd; padding: 5px 12px;
    border-radius: 20px; font-size: 0.75rem;
    white-space: nowrap; /* টেক্সট ভাঙবে না */
    cursor: pointer;
}

/* 3. Scroll Indicator Overlap Fix */
.scroll-indicator {
    /* Absolute পজিশন সরিয়ে ফ্লো-তে নিয়ে আসা হলো */
    position: relative; 
    margin-top: 40px; /* সার্চ বার থেকে নিরাপদ দূরত্ব */
    
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    opacity: 0.8; z-index: 10;
    animation: fadeInUp 1s forwards 1s; opacity: 0;
}

.scroll-indicator .mouse {
    width: 24px; height: 38px;
    border: 2px solid #fff; border-radius: 20px; position: relative;
}
.scroll-indicator .wheel {
    width: 4px; height: 6px; background: var(--accent-cyan);
    border-radius: 2px; position: absolute; top: 6px; left: 50%;
    transform: translateX(-50%); animation: scroll-wheel 2s infinite;
}
.scroll-indicator span { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: #fff; }

/* =========================================
   MOBILE SPECIFIC FIXES (iPhone SE/XR/Small Android)
   ========================================= */
@media (max-width: 768px) {
    .portfolio-hero {
        /* মোবাইলে সেন্টার নয়, উপর থেকে শুরু হবে যাতে কন্টেন্ট কেটে না যায় */
        justify-content: flex-start;
        padding-top: 130px; /* হেডারের নিচে থেকে শুরু */
        height: auto; /* ফিক্সড হাইট বাদ */
        min-height: 100vh; /* অন্তত স্ক্রিন সমান হবে */
        padding-bottom: 50px; /* নিচে জায়গা */
    }

    .hero-content {
        margin-top: 0;
        gap: 15px; /* মোবাইলে গ্যাপ একটু কম */
    }

    /* Trending Tags Fix: Horizontal Scroll */
    .popular-tags {
        justify-content: flex-start; /* বাম থেকে শুরু */
        overflow-x: auto; /* স্ক্রল হবে */
        flex-wrap: nowrap; /* এক লাইনে থাকবে */
        padding-bottom: 5px; /* স্ক্রলবারের জন্য জায়গা */
        -webkit-overflow-scrolling: touch; /* স্মুথ স্ক্রল */
    }
    
    /* Hide Scrollbar */
    .popular-tags::-webkit-scrollbar { display: none; }

    /* Scroll Indicator Fix */
    .scroll-indicator {
        margin-top: 30px; /* মোবাইলে দূরত্ব */
    }
}

/* Keyframes for Hero Animations */
@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- 4. PREMIUM FLOATING FILTER BAR (UPDATED & MERGED) --- */
.filter-sticky-bar {
    position: sticky;
    /* Adjust this value based on your main Header height */
    top: 80px;
    z-index: 90; /* Lower than header (usually 1000), higher than content */
    margin: 0 auto 40px;
    padding: 15px 25px;
    background: rgba(22, 22, 50, 0.85); /* Darker for better contrast */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    max-width: 1200px;
    transition: all 0.4s ease;
}

/* Mobile Filter Toggle Button (Hidden on Desktop) */
#mobile-filter-toggle-btn {
    display: none;
}

/* Scrolled State */
.filter-sticky-bar:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 40px rgba(51, 213, 229, 0.15);
}

.filter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Tab Buttons */
.filter-tabs {
    background: rgba(0,0,0,0.2);
    padding: 5px;
    border-radius: 40px;
    display: flex;
    gap: 5px;
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #aaa;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(232, 73, 232, 0.4);
}

/* Dropdowns Style Update */
.filter-dropdowns {
    display: flex;
    gap: 15px;
}

.custom-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ddd;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 0.85rem;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-trigger:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-cyan);
    color: #fff;
}

/* --- UPDATE: Scoped Dropdown Menu to prevent Header Conflict --- */
.custom-dropdown .dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px;
    min-width: 180px; /* This will now only apply to filter dropdowns */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    z-index: 101;
}

.custom-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown .dropdown-menu label {
    display: block;
    padding: 8px 10px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
    font-size: 0.9rem;
}

.custom-dropdown .dropdown-menu label:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.custom-dropdown .dropdown-menu input {
    margin-right: 8px;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#sort-select {
    background: var(--primary-bg);
    color: #fff;
    border: 1px solid var(--glass-border);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

/* Moodboard Heart Button */
.moodboard-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(232, 73, 232, 0.2);
    cursor: pointer;
    position: relative;
}

.moodboard-toggle:hover {
    background: var(--accent-pink);
    color: #fff;
    box-shadow: 0 0 20px rgba(232, 73, 232, 0.6);
    transform: scale(1.1);
}

.moodboard-toggle .badge {
    position: absolute;
    top: -5px; right: -5px;
    background: #fff;
    color: var(--accent-pink);
    font-size: 0.75rem;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.active-filters-row {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.filter-tag {
    background: rgba(255,255,255,0.1);
    padding: 3px 10px;
    border-radius: 15px;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-all {
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
}

/* --- 5. Masonry Grid (ATTRACTIVE CARDS & 3D HOVER) --- */
.portfolio-content {
    padding: 40px 0;
    background: var(--primary-bg);
}

/* Container Spacing Fix */
.portfolio-content .container-fluid {
    padding-left: 40px;  /* Left Space Increased */
    padding-right: 40px; /* Right Space Increased */
    max-width: 1600px;   /* Optional: Limit max width for huge screens */
    margin: 0 auto;
    overflow-x: hidden;
}

/* Responsive adjust for mobile */
@media (max-width: 768px) {
    .portfolio-content .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.portfolio-grid-main {
    margin: 0 -15px; /* Gutter offset */
    width: 100%;
}

/* Grid Sizing (Preserved) */
.grid-sizer, .portfolio-grid-item {
    width: 25%; /* 4 Columns by default */
}

.portfolio-grid-item.width-2 {
    width: 50%; /* Double width for featured items */
}

/* Responsive Grid Widths */
@media (max-width: 1200px) {
    .grid-sizer, .portfolio-grid-item { width: 33.333%; }
    .portfolio-grid-item.width-2 { width: 66.666%; }
}
@media (max-width: 900px) {
    .grid-sizer, .portfolio-grid-item { width: 50%; }
    .portfolio-grid-item.width-2 { width: 100%; }
}
@media (max-width: 600px) {
    .grid-sizer, .portfolio-grid-item { width: 100%; }
}

/* --- UPDATED CARD STYLES START HERE --- */
.portfolio-grid-item {
    margin-bottom: 30px; /* স্পেসিং */
    padding: 10px; /* গ্যাপ */
    will-change: transform, opacity;
}

.card-inner {
    background: #151530; /* একটু হালকা নীল ব্যাকগ্রাউন্ড */
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* বাউন্সি এফেক্ট */
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Hover Effect: The Magic Happens Here */
.portfolio-grid-item:hover .card-inner {
    transform: translateY(-10px) scale(1.02); /* উপরে উঠবে এবং একটু বড় হবে */
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 
                0 0 0 1px var(--accent-cyan); /* চিকন সায়ান বর্ডার */
    z-index: 10;
}

/* Image Wrapper */
.media-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    aspect-ratio: 4/3;
    width: 100%;
}

.portfolio-grid-item.tall .media-wrapper {
    aspect-ratio: 3/4;
}

.media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-grid-item:hover .media-wrapper img {
    transform: scale(1.1); /* ইমেজে স্লো জুম হবে */
}

/* Video Preview on Hover */
.hover-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.portfolio-grid-item:hover .hover-video {
    opacity: 1;
}

/* Badges Polish */
.badge-overlay {
    position: absolute;
    z-index: 5;
    padding: 15px;
}
.badge-overlay.top-left { top: 0; left: 0; }
.badge-overlay.top-right { top: 0; right: 0; }

.badge {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-featured { background: var(--accent-gold); color: #000; }
.badge-360 { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.badge-interactive { border: 1px solid #fff; color: #fff; }

.save-btn {
    width: 35px; height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: #000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
}

.save-btn:hover {
    background: var(--accent-pink);
    color: #fff;
    transform: scale(1.1);
}

/* Quick View Overlay (Hover Action) */
.overlay-content {
    background: rgba(15, 15, 35, 0.85); /* Darker, cleaner glass */
    backdrop-filter: blur(12px);
    padding: 8px 10px; 
    border-radius: 50px; /* Pill shape */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    /* Center positioning */
    position: absolute;
    bottom: 30px; /* একটু উপরে */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 6;
    opacity: 0;
    transition: var(--transition-fast);
    
    width: auto;
    min-width: 200px;
}

.portfolio-grid-item:hover .overlay-content {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quick-view-btn {
    background: linear-gradient(90deg, var(--accent-cyan), #2abac9);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: 0.3s;
    letter-spacing: 1px;
    cursor: pointer;
    white-space: nowrap;
}

.quick-view-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(51, 213, 229, 0.5);
}

/* Quick View Icon Style */
.expand-icon-btn {
    position: absolute;
    top: 15px;
    right: 50px; /* Heart button এর পাশে */
    z-index: 10;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 8px; /* Square with radius */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    opacity: 0; /* Initially Hidden */
}

/* Hover করলে দেখাবে */
.card-inner:hover .expand-icon-btn {
    opacity: 1;
}

.expand-icon-btn:hover {
    background: var(--accent-cyan);
    color: #000;
}

/* Card Info Area */
.card-info {
    padding: 20px;
    background: linear-gradient(180deg, #151530 0%, #0e0e24 100%);
}

/* Header: Title + Heart */
.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.info-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #fff;
}

.save-icon-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
}
.save-icon-btn:hover { color: var(--accent-pink); }

/* Middle Row: Tags & Colors */
.info-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-tags-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #bbb;
}

.tag-text {
    text-transform: capitalize;
}

.tag-style {
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-divider { color: #555; }

.project-colors-simple {
    display: flex;
    gap: -5px; /* Overlap effect */
}

.project-colors-simple .color-dot {
    width: 18px;
    height: 18px;
    border: 2px solid var(--card-bg); /* Ring effect */
    margin-left: -5px;
}
.project-colors-simple .color-dot:first-child { margin-left: 0; }

/* Divider */
.card-divider {
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0 0 12px 0;
}

/* Footer: Stats & Share */
.info-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-group {
    display: flex;
    gap: 12px;
}

.stats {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stats i { font-size: 0.85rem; }
.stats .fa-heart { color: var(--accent-pink); }

/* Share Button */
.share-btn-card {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-btn-card:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}

/* No Results State */
.no-results-state {
    text-align: center;
    padding: 80px 20px;
}
.no-results-state img { width: 150px; opacity: 0.5; margin-bottom: 20px; }
.no-results-state h3 { font-size: 1.5rem; margin-bottom: 10px; }
.btn-secondary { background: transparent; border: 1px solid var(--accent-gold); color: var(--accent-gold); padding: 10px 25px; border-radius: 5px; cursor: pointer; }

/* Load More Button Redesign */
.load-more-wrapper { padding: 40px 0; text-align: center; }

#load-more-btn {
    margin-top: 50px;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    cursor: pointer;
}

#load-more-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 30px rgba(51, 213, 229, 0.4);
    transform: translateY(-5px);
}

/* =======================================================
   6. THE ULTRA MODAL (WORLD CLASS INTELLIGENT LAYOUT)
   ======================================================= */

.portfolio-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 15, 0.95); /* Deep Cinematic Dark */
    backdrop-filter: blur(15px);
    z-index: 99999;
    display: none; /* Hidden via JS */
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* No scroll on body */
}

.portfolio-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* --- DESKTOP CONTAINER (INTELLIGENT GRID) --- */
.modal-container {
    background: #0e0e24;
    width: 90%;
    max-width: 1600px; /* Wide Screen Support */
    height: 90vh; /* Fixed height for clean look */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    position: relative;
    display: flex; /* Flexbox for Side-by-Side */
    flex-direction: row;
    animation: zoomModal 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes zoomModal {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

/* --- LEFT COLUMN: INTELLIGENT MEDIA VIEWER --- */
.modal-media-column {
    flex: 2; /* 66% Width */
    background: #000;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* View Tabs (Floating Top Center) */
.view-tabs {
    position: absolute;
    top: 25px;
    z-index: 20;
    background: rgba(30, 30, 60, 0.8);
    backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 50px;
    display: flex;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.v-tab {
    background: transparent;
    color: #ccc;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.v-tab.active {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 10px rgba(255,255,255,0.2);
}

/* Image Container - The Magic Part */
.viewer-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* No padding to avoid gaps */
}

/* INTELLIGENT IMAGE SCALING */
.viewer-container img, .viewer-container video {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Keeps ratio, never crops */
    /* যদি ছবি ছোট হয় তবে সেটিকে সুন্দর দেখানোর জন্য শ্যাডো */
    box-shadow: 0 0 50px rgba(0,0,0,0.8); 
}

/* Hotspots */
.hotspot-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none;
}
.hotspot-point {
    position: absolute; width: 20px; height: 20px; background: rgba(255,255,255,0.9);
    border-radius: 50%; cursor: pointer; pointer-events: auto; animation: pulse 2s infinite; z-index: 10;
}

/* --- RIGHT COLUMN: DETAILS SCROLLABLE --- */
.modal-info-column {
    flex: 1; /* 33% Width */
    min-width: 400px;
    background: linear-gradient(180deg, #151535 0%, #0a0a20 100%);
    padding: 40px;
    overflow-y: auto; /* Independent Scroll */
    border-left: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Custom Scrollbar */
.modal-info-column::-webkit-scrollbar { width: 6px; }
.modal-info-column::-webkit-scrollbar-track { background: #0a0a20; }
.modal-info-column::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* Header Actions */
.modal-header-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.user-profile { display: flex; align-items: center; gap: 15px; }
.user-profile img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--accent-cyan); }
.brand-name { display: block; font-weight: 700; color: #fff; font-size: 1.1rem; }
.post-time { display: block; font-size: 0.8rem; color: var(--text-muted); }
.action-buttons { display: flex; gap: 10px; }
.btn-icon {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff;
    width: 42px; height: 42px; border-radius: 12px; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: var(--accent-cyan); color: #000; border-color: var(--accent-cyan); }

/* Project Title & Specs */
#modal-title { 
    font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 20px; color: #fff; line-height: 1.2;
}
.project-specs {
    display: flex; gap: 15px; margin-bottom: 25px;
    background: rgba(255,255,255,0.03); padding: 15px; border-radius: 12px;
}
.spec-item { 
    flex: 1; display: flex; flex-direction: column; gap: 5px; color: #ddd; font-size: 0.9rem; font-weight: 600; 
}
.spec-item i { color: var(--accent-cyan); font-size: 1.2rem; }

.description-text { line-height: 1.8; color: #ccc; margin-bottom: 25px; font-size: 1rem; }

/* Desktop Close & Nav Buttons */
.modal-close-icon {
    position: absolute; top: 20px; right: 25px;
    background: rgba(255,255,255,0.1); color: #fff; width: 45px; height: 45px;
    border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 100;
    border: 1px solid rgba(255,255,255,0.2); transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.modal-close-icon:hover { background: var(--accent-pink); transform: rotate(90deg); }

.modal-nav-btn {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); color: #fff;
    width: 60px; height: 60px; border-radius: 50%; cursor: pointer;
    font-size: 1.5rem; transition: 0.3s; z-index: 2002;
    display: flex; align-items: center; justify-content: center;
}
.modal-nav-btn:hover { background: #fff; color: #000; transform: translateY(-50%) scale(1.1); }
.modal-nav-btn.prev { left: 30px; }
.modal-nav-btn.next { right: 30px; }

/* Detail Grid */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; background: rgba(255,255,255,0.03); padding: 15px; border-radius: 10px; }
.detail-item h5 { color: var(--accent-cyan); font-size: 0.8rem; margin-bottom: 5px; text-transform: uppercase; }
.detail-item p { color: #fff; font-size: 0.95rem; }

/* =======================================================
   MOBILE RESPONSIVE (INTELLIGENT ADAPTATION)
   ======================================================= */
@media (max-width: 1024px) {
    .modal-container {
        flex-direction: column; /* Stack for Tablets/Mobile */
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: hidden;
        background: #000;
    }
    
    .modal-content-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 100%;
    }

    /* MEDIA COLUMN (Mobile) */
    .modal-media-column {
        flex: none;
        width: 100%;
        height: auto;
        min-height: auto;
        background: #000;
        padding-top: 60px; /* Space for Close Button & Tabs */
        padding-bottom: 20px;
    }

    .viewer-container img {
        max-height: 60vh; /* Don't cover full screen height */
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .view-tabs {
        top: 20px;
        background: rgba(0,0,0,0.5);
    }

    /* INFO COLUMN (Mobile) - Seamless join */
    .modal-info-column {
        flex: 1;
        width: 100%;
        min-width: 100%;
        padding: 30px 20px 80px 20px;
        background: #0e0e24;
        border-radius: 25px 25px 0 0;
        margin-top: -15px; /* Overlap to remove gap */
        border-left: none;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
        z-index: 10;
        overflow: visible;
    }

    .modal-nav-btn { display: none; } /* Hide arrows on mobile */
    
    .modal-close-icon {
        position: fixed;
        top: 15px;
        right: 15px;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(5px);
        z-index: 30000;
        width: 35px; height: 35px;
    }
    
    #modal-title { font-size: 1.6rem; }
}

/* --- 7. Moodboard Drawer (Right Panel) --- */
.moodboard-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 350px; height: 100vh;
    background: var(--secondary-bg);
    z-index: 3000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transform: translateX(100%); /* Hidden by default */
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; flex-direction: column;
}

.moodboard-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px;
    background: var(--card-bg);
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
#close-drawer-btn { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }

.drawer-body { flex: 1; padding: 20px; overflow-y: auto; }
.drawer-footer { padding: 20px; background: var(--card-bg); border-top: 1px solid rgba(255,255,255,0.1); }

.moodboard-item-card {
    display: flex; gap: 10px; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 8px; margin-bottom: 10px;
    animation: slideInRight 0.3s ease;
}
@keyframes slideInRight { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.moodboard-item-card img { width: 60px; height: 60px; object-fit: cover; border-radius: 5px; }
.mb-details h5 { margin: 0 0 5px 0; font-size: 0.9rem; }
.mb-price { font-size: 0.8rem; color: var(--accent-gold); }
.mb-remove { color: red; cursor: pointer; margin-left: auto; font-size: 0.9rem; }

.total-est { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; display: flex; justify-content: space-between; }
.btn-block { width: 100%; display: block; text-align: center; }

/* --- 8. Auxiliary Modals (Share/Collection) --- */
.dialog-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 4000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.dialog-modal.active { opacity: 1; visibility: visible; }

.dialog-content {
    background: var(--card-bg); padding: 30px; border-radius: 15px;
    width: 90%; max-width: 400px; position: relative;
    border: 1px solid var(--accent-cyan);
    transform: scale(0.8); transition: 0.3s;
}
.dialog-modal.active .dialog-content { transform: scale(1); }

.dialog-close { position: absolute; top: 10px; right: 10px; background: none; border: none; color: #fff; cursor: pointer; }

.share-options { display: flex; justify-content: space-around; margin: 20px 0; }
.share-icon { font-size: 1.5rem; color: #fff; transition: 0.2s; }
.share-icon:hover { color: var(--accent-gold); transform: translateY(-3px); }

.copy-link { display: flex; margin-top: 15px; }
.copy-link input { flex: 1; padding: 8px; background: #000; border: 1px solid #333; color: #ccc; }
#copy-btn { padding: 8px 15px; background: var(--accent-cyan); border: none; cursor: pointer; color: #000; font-weight: 600; }

/* --- 9. Responsive Adjustments --- */
@media (max-width: 768px) {
    .portfolio-grid-main { margin: 0 -8px; }
    
    .modal-content-wrapper { flex-direction: column; }
    .modal-media-column { height: 300px; min-height: 300px; }
    .modal-nav-btn { display: none; /* Hide arrows on mobile */ }
    
    /* REMOVED: .filter-wrapper { flex-direction: column; align-items: flex-start; } */
    /* REMOVED: .filter-dropdowns { flex-wrap: wrap; } */
    /* This logic is now handled in the new block at the bottom */
}

@media (max-width: 480px) {
    /* REMOVED: .filter-tabs { width: 100%; overflow-x: auto; white-space: nowrap; } */
    /* This logic is now handled in the new block at the bottom */
    .smart-search-wrapper { width: 100%; }
}

/* --- NEW FILTER STYLES --- */

/* Wide Menu for Room Types */
.wide-menu {
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
}

.filter-group-title {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-weight: 700;
    padding: 5px 10px;
    margin-top: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Hidden Utility Class for Dynamic Filtering */
.d-none {
    display: none !important;
}

/* --- COLOR SWATCHES --- */
.color-menu {
    min-width: 200px;
    padding: 15px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.2s;
    display: block;
}

.color-swatch input {
    display: none; /* Hide checkbox */
}

.color-swatch:hover { transform: scale(1.2); border-color: #fff; }
.color-swatch input:checked + span, /* If needed logic */
.color-swatch:has(input:checked) {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--accent-cyan);
    border-color: transparent;
}

/* Color Definitions */
.color-swatch.white { background: #ffffff; }
.color-swatch.black { background: #000000; border-color: #555; }
.color-swatch.beige { background: #F5F5DC; }
.color-swatch.gray { background: #808080; }
.color-swatch.blue { background: #1E90FF; }
.color-swatch.green { background: #2E8B57; }
.color-swatch.red { background: #DC143C; }
.color-swatch.yellow { background: #FFD700; }

/* --- DYNAMIC TAGS ON CARD --- */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.tag-pill {
    font-size: 0.7rem;
    color: #aaa;
    background: rgba(255,255,255,0.05);
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: capitalize;
}

.tag-pill.highlight {
    color: var(--accent-cyan);
    border: 1px solid rgba(51, 213, 229, 0.2);
}

/* --- ADVANCED COLOR FILTER STYLES --- */
.wide-color-menu {
    min-width: 280px;
    padding: 15px;
}

.color-grid-advanced {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns */
    gap: 12px;
}

/* Color Definitions */
.color-swatch.white { background: #ffffff; border: 1px solid #ddd; }
.color-swatch.beige { background: #F5F5DC; }
.color-swatch.cream { background: #FFFDD0; }
.color-swatch.gray { background: #808080; }
.color-swatch.charcoal { background: #36454F; }
.color-swatch.black { background: #000000; border: 1px solid #333; }
.color-swatch.brown { background: #8B4513; }
.color-swatch.blue { background: #1E90FF; }
.color-swatch.navy { background: #000080; }
.color-swatch.teal { background: #008080; }
.color-swatch.green { background: #2E8B57; }
.color-swatch.olive { background: #808000; }
.color-swatch.yellow { background: #FFD700; }
.color-swatch.gold { background: #D4AF37; }
.color-swatch.red { background: #DC143C; }
.color-swatch.pink { background: #FFC0CB; }

/* --- COLOR INDICATORS ON CARD (New Feature) --- */
.project-colors {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #bbb;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 10px;
    border-radius: 8px;
    width: fit-content;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
}

/* Tooltip on hover */
.color-dot:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    white-space: nowrap;
    z-index: 10;
}

.color-label {
    text-transform: capitalize;
}

/* --- 1. RESET FILTER BAR --- */
.active-filters-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    animation: fadeIn 0.3s ease;
}

.filter-label {
    font-size: 0.85rem;
    color: #ccc;
}

.filter-label strong {
    color: var(--accent-cyan);
}

.clear-filter-btn {
    background: rgba(232, 73, 73, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-filter-btn:hover {
    background: #e74c3c;
    color: #fff;
}

/* --- 2. CLICKABLE TAGS IMPROVEMENT --- */
.clickable-filter {
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px dashed transparent; /* Subtle hint */
}

/* Hover Effect: Glow & Underline */
.clickable-filter:hover {
    color: var(--accent-cyan) !important; /* Force color change */
    text-shadow: 0 0 5px rgba(51, 213, 229, 0.5);
    border-bottom-color: var(--accent-cyan);
}

/* Tag Style (Specifically for the pill style tags) */
.tag-pill.clickable-filter:hover {
    background: rgba(51, 213, 229, 0.15);
    border: 1px solid var(--accent-cyan);
    transform: translateY(-1px);
}

/* --- 10. MOBILE FILTER REDESIGN (Responsive Overrides) --- */
/* This block ensures mobile specific filter styles without breaking desktop layout */
@media (max-width: 768px) {
    /* Filter Bar Container Styling */
    .filter-sticky-bar {
        padding: 10px 15px;
        margin-bottom: 20px;
        width: 95%;
        border-radius: 15px;
        /* Mobile Sticky Fix */
        top: 75px; 
    }
    
    /* Sync with scrolled header if header class changes */
    body:has(.header.scrolled) .filter-sticky-bar {
        top: 75px;
    }

    .filter-wrapper {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    /* Tabs: Horizontal Scroll (Like Apps) */
    .filter-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        background: transparent;
        width: 100%; /* Ensure width allows scrolling */
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none; 
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 6px 16px;
        font-size: 0.8rem;
    }

    /* Dropdowns: 2 Column Grid */
    .filter-dropdowns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .filter-actions {
        display: none; 
    }
}

/* --- 11. NEW FEATURES ADDITION (Step 3 Update) --- */

/* --- 1. COMPARISON BAR --- */
.compare-bar {
    position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%);
    background: rgba(10, 10, 42, 0.95); backdrop-filter: blur(10px);
    border: 1px solid var(--accent-cyan);
    border-radius: 50px; padding: 10px 30px;
    display: flex; align-items: center; gap: 20px;
    z-index: 9999; transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.compare-bar.active { bottom: 30px; }

.compare-thumbnails img {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff;
    margin-left: -10px; object-fit: cover;
}
.btn-compare-now {
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
    color: #fff; border: none; padding: 8px 20px; border-radius: 20px; font-weight: 600; cursor: pointer;
}

/* Compare Checkbox on Grid Item */
.compare-checkbox {
    position: absolute; top: 15px; left: 15px; z-index: 20;
    width: 20px; height: 20px; cursor: pointer; accent-color: var(--accent-cyan);
    opacity: 0; transition: 0.3s;
}
.portfolio-grid-item:hover .compare-checkbox, .compare-checkbox:checked { opacity: 1; }

/* --- 2. DESIGNER PROFILE CARD --- */
.designer-card {
    display: flex; align-items: center; gap: 15px;
    background: rgba(255,255,255,0.05); padding: 15px; border-radius: 10px;
    margin-bottom: 20px; border-left: 3px solid var(--accent-cyan);
}
.designer-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.designer-info h5 { margin: 0; color: #fff; font-size: 1rem; }
.designer-info p { margin: 0; font-size: 0.8rem; color: #aaa; }
.btn-ask { 
    margin-left: auto; background: var(--accent-cyan); color: #000; 
    border: none; padding: 5px 12px; border-radius: 15px; font-size: 0.8rem; cursor: pointer; 
}

/* --- 3. MATERIAL BOARD --- */
.material-board { display: flex; gap: 10px; margin-top: 10px; }
.mat-circle {
    width: 45px; height: 45px; border-radius: 50%; overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2); position: relative; cursor: help;
}
.mat-circle img { width: 100%; height: 100%; object-fit: cover; }
.mat-tooltip {
    position: absolute; bottom: -25px; left: 50%; transform: translateX(-50%);
    background: #000; color: #fff; font-size: 0.7rem; padding: 2px 5px;
    border-radius: 4px; opacity: 0; transition: 0.2s; white-space: nowrap; pointer-events: none;
}
.mat-circle:hover .mat-tooltip { opacity: 1; bottom: -30px; }

/* --- 4. DYNAMIC ESTIMATOR (In Modal) --- */
.estimator-box {
    background: rgba(51, 213, 229, 0.1); border: 1px solid var(--accent-cyan);
    padding: 15px; border-radius: 10px; margin-top: 20px;
}
.estimator-input {
    display: flex; gap: 10px; margin-top: 10px;
}
.estimator-input input {
    width: 60%; padding: 8px; border-radius: 5px; border: none;
}
.est-result {
    font-size: 1.2rem; font-weight: 700; color: var(--accent-cyan); margin-top: 10px; display: block;
}

/* --- 5. FLOOR PLAN TABS --- */
.view-tabs {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.6); padding: 5px; border-radius: 30px; z-index: 20; display: flex;
}
.v-tab {
    background: transparent; color: #fff; border: none; padding: 8px 15px;
    border-radius: 20px; cursor: pointer; font-size: 0.85rem; transition: 0.3s;
}
.v-tab.active { background: #fff; color: #000; }

/* =========================================
   FIXES & IMPROVEMENTS
   ========================================= */

/* --- FIX 1: Designer Profile (Trust Section) --- */
.designer-section-wrapper {
    margin: 20px 0;
    animation: fadeIn 0.5s ease;
}

.designer-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid var(--accent-cyan);
    transition: transform 0.3s ease;
}

.designer-card:hover {
    transform: translateX(5px);
    background: rgba(255,255,255,0.08);
}

.designer-img {
    width: 55px; height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-cyan);
}

.designer-info h5 {
    font-size: 1rem; color: #fff; margin: 0 0 2px 0;
}

.designer-info p {
    font-size: 0.8rem; color: #aaa; margin: 0;
}

.btn-ask {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex; align-items: center; gap: 5px;
    text-decoration: none;
}

.btn-ask:hover {
    background: var(--accent-cyan);
    color: #000;
}


/* --- FIX 2: Good Looking Hover Overlay --- */

/* Reset Overlay Layout */
.overlay-content {
    background: rgba(15, 15, 35, 0.85); /* Darker, cleaner glass */
    backdrop-filter: blur(12px);
    padding: 8px 10px; 
    border-radius: 50px; /* Pill shape */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    /* Center positioning logic remains same */
    width: auto;
    min-width: 200px;
}

/* Style the View Button */
.quick-view-btn {
    background: linear-gradient(90deg, var(--accent-cyan), #2abac9);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: 0.3s;
}

.quick-view-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(51, 213, 229, 0.5);
}

/* Style the Compare Section inside Overlay */
.compare-toggle-wrapper {
    margin-top: 0 !important; /* Override inline style */
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.compare-label {
    font-size: 0.8rem !important;
    color: #fff !important;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
}

.compare-label:hover {
    color: var(--accent-cyan) !important;
}

/* Custom Checkbox Design */
.compare-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px; height: 16px;
    border: 2px solid #aaa;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    margin-right: 5px;
    vertical-align: middle;
    transition: 0.2s;
    cursor: pointer;
    opacity: 1 !important; /* Force visible */
}

.compare-checkbox:checked {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.compare-checkbox:checked::after {
    content: '✔';
    font-size: 10px;
    color: #000;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
}


/* --- FIX 3: Compare Bar "Clear" Button & Aesthetics --- */

.compare-bar {
    background: rgba(10, 10, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    /* Keep existing positioning */
}

.btn-clear {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ccc;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-clear:hover {
    border-color: #ff5555;
    color: #ff5555;
    background: rgba(255, 85, 85, 0.1);
}

.btn-compare-now {
    /* Improve existing gradient */
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    box-shadow: 0 4px 15px rgba(51, 213, 229, 0.3);
    transition: 0.3s;
}

.btn-compare-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 213, 229, 0.5);
}


/* --- FIX 4: Comparison Modal Table Design --- */

.large-dialog {
    max-width: 900px;
    width: 95%;
    background: #0f0f25; /* Deep dark bg */
    border: 1px solid var(--glass-border);
}

.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.comparison-table th {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid var(--accent-cyan);
}

.th-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.th-content img {
    width: 80px; height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: #ddd;
}

.comparison-table .feature-col,
.comparison-table .label-cell {
    text-align: left;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(0,0,0,0.2);
    width: 150px;
}

.comparison-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* --- 12. NEW ADDITION: Design Category Badge --- */
/* --- Design Category Badge Styling --- */
.design-cat-badge {
    position: absolute;
    bottom: 15px; /* ইমেজের নিচে */
    left: 15px;
    background: rgba(10, 10, 42, 0.9); /* গাঢ় ব্যাকগ্রাউন্ড */
    color: var(--accent-gold); /* গোল্ডেন টেক্সট */
    border: 1px solid var(--accent-gold);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    cursor: help; /* কার্সর নিলে টুলটিপ বোঝাবে */
    transition: all 0.3s ease;
}

/* হোভার করলে একটু গ্লো করবে */
.design-cat-badge:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-2px);
}

/* মডালের আইকনের কালার */
.detail-item .fa-crown {
    color: var(--accent-gold);
    margin-right: 5px;
}

/* --- FIX 3 (Part B): Stop Horizontal Scrolling on Mobile (Overrides) --- */
/* Ensure the grid container doesn't push width out */
.portfolio-grid-main {
    width: 100%;
    margin: 0 auto;         /* Remove negative margins causing the issue */
}

.portfolio-content .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;     /* Additional safety for the grid area */
}

/* Fix Hero width specifically */
.portfolio-hero {
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
}

/* =========================================
   LATEST REQUESTED FIXES (Bottom Overrides)
   ========================================= */

/* --- FIX 1: Compare Checkbox Alignment in Overlay --- */

/* 1. Reset the wrapper to align items side-by-side */
.compare-toggle-wrapper {
    margin-top: 0 !important;
    padding-left: 15px; 
    border-left: 1px solid rgba(255,255,255,0.3);
    display: flex;              /* Enforce Flexbox */
    align-items: center;        /* Vertically Center Content */
    height: 100%;               /* Match height of neighbors */
}

/* 2. Fix the Label to hold text and box together */
.compare-label {
    display: flex !important;   /* Force Flex */
    align-items: center !important; /* Vertically Center Text & Box */
    gap: 8px;                   /* Space between Checkbox and Text */
    margin: 0 !important;
    padding-top: 2px;          /* Micro-adjustment for visual balance */
    cursor: pointer;
    color: #fff !important;
    font-size: 0.85rem !important;
}

/* 3. Fix the Checkbox specifically inside the label */
.compare-label .compare-checkbox {
    position: relative !important; /* Override absolute positioning */
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    display: inline-block !important;
    opacity: 1 !important;         /* Ensure it is visible */
    width: 16px;
    height: 16px;
    transform: translateY(-1px);   /* Slight lift to match text baseline perfectly */
}

/* --- FIX 2: Moodboard Drawer Close Button Visibility --- */

/* Ensure the Drawer is on top of EVERYTHING (including the header) */
.moodboard-drawer {
    z-index: 99999 !important; 
}

/* Style the Header to push button to the right */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Style the Close Button explicitly */
#close-drawer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1); /* Visible background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#close-drawer-btn:hover {
    background: var(--accent-pink); /* Pink on hover */
    transform: rotate(90deg);       /* Cool rotation effect */
    border-color: var(--accent-pink);
}

/* =========================================
   STEP 1: UPDATE - STICKY FILTER & MOBILE TOGGLE
   ========================================= */

/* --- FIX 1: Sticky Filter Bar Position & Mobile Toggle --- */
.filter-sticky-bar {
    position: sticky;
    /* Adjust this value based on your main Header height */
    top: 80px;
    z-index: 90; /* Lower than header (usually 1000), higher than content */
    margin: 0 auto 40px;
    padding: 15px 25px;
    background: rgba(22, 22, 50, 0.85); /* Darker for better contrast */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

/* Mobile Filter Toggle Button (Hidden on Desktop) */
#mobile-filter-toggle-btn {
    display: none;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .filter-sticky-bar {
        top: 60px; /* Mobile header is usually smaller */
        padding: 10px 15px;
        border-radius: 0 0 20px 20px; /* Rounded bottom corners */
        overflow: hidden;
        max-height: 500px; /* Allow full height initially */
        transition: max-height 0.5s ease, padding 0.3s ease;
    }

    /* Collapsed State Class (Added via JS) */
    .filter-sticky-bar.collapsed {
        max-height: 40px; /* Only show the toggle button area */
        padding: 5px 15px;
        border-color: transparent;
        background: rgba(22, 22, 50, 0.95);
    }

    /* Hide content when collapsed */
    .filter-sticky-bar.collapsed .filter-wrapper,
    .filter-sticky-bar.collapsed .active-filters-bar {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }

    /* Show the toggle button on mobile */
    #mobile-filter-toggle-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        color: var(--accent-cyan);
        background: transparent;
        border: none;
        padding: 5px;
        cursor: pointer;
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    #mobile-filter-toggle-btn i {
        transition: transform 0.4s ease;
    }

    /* Rotate arrow when collapsed */
    .filter-sticky-bar.collapsed #mobile-filter-toggle-btn i {
        transform: rotate(180deg);
    }

    /* Small text hint */
    .toggle-hint {
        font-size: 0.7rem;
        margin-left: 8px;
        color: #aaa;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}

/* --- FIX 2: Professional Filter Animation (MixItUp Fix) --- */
/* We will handle the animation logic in JS, but this ensures smooth hardware acceleration */
.portfolio-grid-item {
    will-change: transform, opacity;
}

/* --- PORTFOLIO MODAL CALCULATOR STYLES --- */

.port-calc-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.pc-header h5 {
    color: var(--accent-cyan);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pc-group {
    margin-bottom: 15px;
}

.pc-group label {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 5px;
}

/* Inputs */
.port-calc-wrapper input[type="number"],
.port-calc-wrapper input[type="text"],
.port-calc-wrapper input[type="email"],
.port-calc-wrapper input[type="tel"],
.port-calc-wrapper select {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Area Row */
.area-input-box {
    display: flex;
    gap: 10px;
}
.area-input-box input { flex: 1; }
.area-input-box select { flex: 1; }

/* Radio Buttons for Category */
.pc-radio-group {
    display: flex;
    gap: 5px;
    background: rgba(0,0,0,0.3);
    padding: 4px;
    border-radius: 8px;
}

.pc-radio-group label {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    margin: 0;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    color: #fff;
    transition: 0.3s;
    font-size: 0.8rem;
}

.pc-radio-group input { display: none; }

.pc-radio-group label:hover { background: rgba(255,255,255,0.1); }
.pc-radio-group label.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Result Box */
.pc-result-box {
    background: rgba(51, 213, 229, 0.05);
    border: 1px solid var(--accent-cyan);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

.pc-result-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: var(--accent-cyan);
}

.pc-cost-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #ddd;
}

.pc-cost-row.discount { color: #ff6b6b; }

.pc-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    border-top: 1px dashed rgba(255,255,255,0.2);
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.pc-error-msg {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 10px;
    line-height: 1.4;
}

/* Proposal Form */
.pc-proposal-box {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    animation: slideDown 0.3s ease;
}

.pc-proposal-box h6 {
    color: #fff;
    margin-bottom: 10px;
}

.pc-proposal-box input {
    margin-bottom: 10px;
}

.prop-actions {
    display: flex;
    gap: 10px;
}

.btn-whatsapp-sm {
    flex: 1;
    background: #25D366;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-pdf-sm {
    flex: 1;
    background: #FF5252;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

.hidden { display: none; }

/* =========================================
   NEW PROJECT CALCULATOR STYLES (MODAL)
   ========================================= */

.pc-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.pc-header h4 {
    color: var(--accent-cyan);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pc-header p {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0 0 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

/* Grid Layout */
.pc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.pc-input-group label {
    display: block;
    font-size: 0.8rem;
    color: #ddd;
    margin-bottom: 8px;
    font-weight: 500;
}

.full-width { grid-column: span 2; }

/* Inputs */
.pc-input-group input, 
.pc-input-group select {
    width: 100%;
    background: #0f0f25;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.pc-input-group input:focus, .pc-input-group select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(51, 213, 229, 0.2);
}

.area-wrapper {
    display: flex;
    gap: 10px;
}
.area-wrapper input { flex: 1; }
.area-wrapper select { flex: 1; }

/* Category Tiles */
.pc-cats {
    display: flex;
    gap: 10px;
}

.pc-cat-item {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    color: #ccc;
}

.pc-cat-item:hover { background: rgba(255,255,255,0.1); }

.pc-cat-item.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Error */
.pc-error {
    background: rgba(255, 80, 80, 0.1);
    border-left: 3px solid #ff5050;
    color: #ff8080;
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.5;
    display: none;
}

/* Results Box */
.pc-results {
    margin-top: 20px;
    background: rgba(51, 213, 229, 0.05);
    border: 1px solid var(--accent-cyan);
    border-radius: 10px;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

.pc-res-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.pc-badge {
    background: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    border: 1px solid rgba(51, 213, 229, 0.3);
}

.pc-cost-breakdown .pc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #ddd;
}

.pc-row.discount { color: #ff6b6b; }
.pc-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.pc-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 10px 0;
}

.mt-3 { margin-top: 15px; }

/* Proposal Form */
.pc-proposal-form {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    animation: slideDown 0.3s ease;
}

.pc-proposal-form h5 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.pc-proposal-form input { margin-bottom: 10px; }

.prop-btns { display: flex; gap: 10px; }

.btn-wa { flex: 1; background: #25D366; color: #fff; border:none; padding:10px; border-radius:6px; cursor:pointer; font-weight:600; }
.btn-pdf { flex: 1; background: #FF5252; color: #fff; border:none; padding:10px; border-radius:6px; cursor:pointer; font-weight:600; }

.hidden { display: none; }

/* Mobile Adjustments */
@media (max-width: 600px) {
    .pc-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .prop-btns { flex-direction: column; }
}


/* --- PROJECT CALCULATOR STYLES (Paste at bottom of portfolio.css) --- */

.pc-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.pc-header h4 {
    color: var(--accent-cyan);
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pc-header p {
    font-size: 0.8rem;
    color: #aaa;
    margin: 5px 0 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

/* Input Grid */
.pc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.full-width { grid-column: span 2; }

.pc-input-group label {
    display: block;
    font-size: 0.8rem;
    color: #ddd;
    margin-bottom: 6px;
}

.pc-input-group input, 
.pc-input-group select {
    width: 100%;
    background: #0f0f25;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
}

.area-wrapper {
    display: flex;
    gap: 10px;
}
.area-wrapper input { flex: 1; }
.area-wrapper select { flex: 1; }

/* Category Buttons */
.pc-cats {
    display: flex;
    gap: 8px;
}

.pc-cat-item {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    color: #aaa;
}

.pc-cat-item.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Results Area */
.pc-results {
    margin-top: 20px;
    background: rgba(51, 213, 229, 0.05);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 15px;
    animation: fadeIn 0.4s ease;
}

.pc-res-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.pc-badge {
    background: #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--accent-cyan);
    border: 1px solid rgba(51, 213, 229, 0.3);
}

.pc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #ddd;
}

.pc-row.discount { color: #ff6b6b; }
.pc-row.total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed rgba(255,255,255,0.2);
}

/* Proposal Form */
.pc-proposal-form {
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    animation: slideDown 0.3s ease;
}

.pc-proposal-form h5 { color: #fff; margin-bottom: 10px; font-size: 0.95rem; }
.pc-proposal-form input { margin-bottom: 10px; }

.prop-btns { display: flex; gap: 10px; }
.btn-wa { flex: 1; background: #25D366; color: #fff; border:none; padding:10px; border-radius:5px; cursor:pointer; }
.btn-pdf { flex: 1; background: #FF5252; color: #fff; border:none; padding:10px; border-radius:5px; cursor:pointer; }

.pc-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 10px;
    background: rgba(255,0,0,0.1);
    padding: 8px;
    border-radius: 4px;
}

.hidden { display: none; }

/* Mobile */
@media (max-width: 600px) {
    .pc-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .prop-btns { flex-direction: column; }
}

/* =========================================
   STEP 2: HEADER SAFETY OVERRIDE
   (Add this to prevent line-breaks in header menu)
   ========================================= */

/* Use this if you cannot edit style.css directly, it attempts to target main header dropdowns */
.dropdown-menu li a {
    white-space: nowrap !important;
}

/* =======================================================
   WORLD CLASS MOBILE RESPONSIVE FIX (INTELLIGENT LAYOUT)
   ======================================================= */

@media (max-width: 768px) {
    
    /* --- 1. FILTER DROPDOWN FIX --- */
    .filter-dropdowns, .custom-dropdown {
        position: static;
    }

    .custom-dropdown .dropdown-menu {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.95);
        width: 85vw; /* স্ক্রিনের ৮৫% জায়গা নেবে */
        max-width: 320px;
        max-height: 60vh;
        overflow-y: auto;
        background: #151530;
        border: 1px solid var(--accent-cyan);
        box-shadow: 0 0 50px rgba(0,0,0,0.9);
        border-radius: 16px;
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .custom-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

    /* --- 2. MODAL LAYOUT (THE MAIN FIX) --- */
    
    .portfolio-modal-overlay {
        padding: 0 !important;
        background: #050511; /* ডিপ ডার্ক ব্যাকগ্রাউন্ড */
        align-items: flex-start;
        z-index: 99999;
    }

    .modal-container {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        background: #000;
        overflow-y: auto; /* পুরো পেজ স্ক্রল হবে */
        overflow-x: hidden;
    }

    .modal-content-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 100%; /* কন্টেন্ট কম হলেও স্ক্রিন জুড়েই থাকবে */
    }

    /* --- MEDIA COLUMN (IMAGE & TABS) --- */
    .modal-media-column {
        width: 100%;
        /* হাইট অটো, তবে স্ক্রিনের ৬০% এর বেশি নয় যাতে নিচের কন্টেন্ট দেখা যায় */
        height: auto;
        max-height: 60vh; 
        background: #000;
        display: flex;
        flex-direction: column;
        position: relative;
        flex-shrink: 0; /* ইমেজ যেন চ্যাপ্টা না হয় */
    }

    /* Gallery / Floor Plan Tabs (উপরে ভাসমান) */
    .view-tabs {
        position: absolute !important;
        top: 20px;
        left: 50%;
        transform: translateX(-50%) !important;
        width: auto;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        padding: 4px;
        border-radius: 50px;
        z-index: 20;
        display: flex;
        gap: 5px;
        border: 1px solid rgba(255,255,255,0.1);
    }

    .v-tab {
        /* ফন্ট সাইজ ডিভাইসের চওড়া অনুযায়ী ছোট-বড় হবে */
        font-size: clamp(0.75rem, 3vw, 0.9rem); 
        padding: 6px 16px;
        white-space: nowrap;
    }

    /* Image Container */
    .viewer-container {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: flex-start; /* ইমেজ টপ থেকে শুরু হবে */
        justify-content: center;
        overflow: hidden;
    }

    .viewer-container img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* ইমেজ ক্রপ করে পুরো জায়গা ভরাট করবে */
        object-position: center;
        display: block;
    }

    /* --- INFO COLUMN (DETAILS) - NO GAP FIX --- */
    .modal-info-column {
        width: 100%;
        flex-grow: 1; /* বাকি জায়গা ভরাট করবে */
        padding: 30px 20px 80px 20px !important;
        background: linear-gradient(180deg, #0e0e24 0%, #050510 100%);
        border-radius: 24px 24px 0 0; /* উপরে সুন্দর কার্ভ */
        margin-top: -25px; /* নেগেটিভ মার্জিন দিয়ে গ্যাপ রিমুভ করা হলো */
        position: relative;
        z-index: 10;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    }

    /* --- INTELLIGENT TYPOGRAPHY (CLAMP FUNCTION) --- */
    /* এই অংশটি টেক্সট সাইজকে ডিভাইসের সাথে মানানসই করবে */

    /* প্রোফাইল সেকশন */
    .modal-header-actions {
        margin-bottom: 20px;
    }
    .brand-name {
        font-size: clamp(0.9rem, 4vw, 1.1rem); /* রেসপন্সিভ ফন্ট */
    }

    /* টাইটেল */
    #modal-title {
        font-size: clamp(1.5rem, 6vw, 2rem); /* ছোট মোবাইলে ১.৫, বড়তে ২ */
        line-height: 1.2;
        margin-top: 10px;
        margin-bottom: 15px;
    }

    /* স্পেসিফিকেশন আইকন বক্স */
    .project-specs {
        display: grid;
        grid-template-columns: 1fr 1fr; /* দুই কলাম */
        gap: 12px;
        background: rgba(255,255,255,0.03);
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 25px;
    }
    
    .spec-item {
        font-size: clamp(0.8rem, 3.5vw, 0.95rem);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* বিবরণ */
    .description-text {
        font-size: clamp(0.9rem, 4vw, 1rem);
        line-height: 1.6;
        color: #ccc;
    }

    /* বাটন সাইজিং */
    .modal-cta-block .btn-group {
        display: flex;
        gap: 10px;
    }
    
    .btn-primary-sm, .btn-outline-sm {
        padding: clamp(10px, 3vw, 14px) 0; /* বাটন প্যাডিং রেসপন্সিভ */
        font-size: clamp(0.9rem, 4vw, 1rem);
        border-radius: 8px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* মেটেরিয়াল সেকশন */
    .material-board {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 15px;
    }
    .mat-circle {
        width: clamp(45px, 12vw, 60px);
        height: clamp(45px, 12vw, 60px);
    }

    /* ক্লোজ বাটন */
    .modal-close-icon {
        top: 20px;
        right: 20px;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(5px);
        z-index: 30000;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255,255,255,0.2);
    }
}

/* =======================================================
   SHARE MODAL Z-INDEX FIX (Global)
   ======================================================= */
/* শেয়ার বাটন ক্লিক করলে যাতে সবার উপরে আসে */
#share-modal {
    z-index: 200000 !important;
}

/* =======================================================
   WORLD CLASS INTELLIGENT MODAL STYLES (PREMIUM FIX)
   ======================================================= */

/* 1. Modal Overlay Backdrop (Cinematic Blur) */
.portfolio-modal-overlay {
    background: rgba(5, 5, 10, 0.85); /* Slightly transparent */
    backdrop-filter: blur(15px); /* Strong blur behind modal */
}

/* 2. Main Container Base Style */
.modal-container {
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: #0f0f1a; /* Dark Premium BG */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    /* Default Flex setup */
    display: flex;
    width: 90vw;
    height: 90vh;
    max-width: 1600px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* -----------------------------------------------------------
   INTELLIGENT LAYOUTS (Desktop Only > 1024px)
----------------------------------------------------------- */

/* SCENARIO A: LANDSCAPE (16:9) - CINEMATIC IMMERSION */
/* ইমেজ হবে বিশাল (75%), ডিটেইলস প্যানেল হবে ছোট (25%) */
@media (min-width: 1024px) {
    .modal-container.layout-landscape {
        flex-direction: row;
    }

    .modal-container.layout-landscape .modal-media-column {
        flex: 3.5; /* Takes 75% width */
        background: #000;
    }

    .modal-container.layout-landscape .modal-info-column {
        flex: 1; /* Takes 25% width */
        min-width: 350px;
        border-left: 1px solid rgba(255,255,255,0.05);
    }
}

/* SCENARIO B: PORTRAIT (9:16) - BALANCED SPLIT */
/* ইমেজ এবং টেক্সট সমান গুরুত্ব পাবে, ইমেজ ক্রপ হবে না */
@media (min-width: 1024px) {
    .modal-container.layout-portrait {
        width: 80vw; /* একটু কম চওড়া যাতে লম্বা ইমেজ ভালো দেখায় */
        max-width: 1200px;
    }

    .modal-container.layout-portrait .modal-media-column {
        flex: 1; /* 50% width */
        background: #050505;
        padding: 20px; /* ইমেজের চারপাশে স্পেস */
    }

    .modal-container.layout-portrait .viewer-container img {
        box-shadow: 0 0 30px rgba(0,0,0,0.5); /* ইমেজে শ্যাডো */
        border-radius: 8px;
    }

    .modal-container.layout-portrait .modal-info-column {
        flex: 1; /* 50% width */
        background: #121225;
    }
}

/* -----------------------------------------------------------
   VISUAL POLISH (THE "WOW" FACTOR)
----------------------------------------------------------- */

/* Media Column Clean Up */
.modal-media-column {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Image Fit Logic */
.viewer-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.viewer-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* ইমেজ কাটবে না */
    width: auto;
    height: auto;
    transition: transform 0.5s ease;
}

/* Info Column Styling (Glassmorphism Lite) */
.modal-info-column {
    padding: 40px;
    overflow-y: auto;
    background: linear-gradient(160deg, #14142d 0%, #0a0a1a 100%);
}

/* Typography & Details Cleanup */
#modal-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.project-specs {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
}

.description-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #b0b0c0;
    font-weight: 300;
}

/* "More Like This" Section Adjustment */
.related-projects-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Fixed height at bottom */
    background: linear-gradient(to top, #000 10%, transparent);
    z-index: 10;
    display: none; /* আপাতত হাইড রাখছি ক্লিনেজ এর জন্য, চাইলে অন করতে পারেন */
}

/* Custom Scrollbar for Info */
.modal-info-column::-webkit-scrollbar { width: 6px; }
.modal-info-column::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* Loading State Animation */
.modal-container.loading-layout {
    opacity: 0;
    transform: scale(0.95);
}

/* =======================================================
   ULTRA-RESPONSIVE PORTFOLIO MODAL (WORLD CLASS FIX)
   ======================================================= */

/* --- 1. BASE MODAL UPGRADE --- */
.portfolio-modal-overlay {
    background: rgba(0, 0, 0, 0.92); /* Deeper dark for immersion */
    backdrop-filter: blur(20px);
    z-index: 99999;
}

/* Desktop Base */
.modal-container {
    background: #0f0f1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    transition: all 0.4s ease;
}

/* --- 2. MOBILE PORTRAIT FIXES (The "Wider" Look) --- */
@media (max-width: 768px) {
    .modal-container {
        width: 96vw !important; /* স্ক্রিনের ৯৬% জায়গা নেবে */
        height: 92vh !important; /* হাইট ফিক্সড */
        border-radius: 16px !important; /* রাউন্ডেড কর্নার */
        margin: 4vh auto !important; /* মাঝখানের পজিশন */
        display: flex;
        flex-direction: column;
        background: #050510; /* Dark BG */
    }

    /* Media Column (Image Area) */
    .modal-media-column {
        width: 100%;
        /* ইমেজ এরিয়া হাইট একটু কমাবো যাতে ইনফো দেখা যায় */
        flex: 0 0 45%; 
        background: #000;
        position: relative;
    }

    /* Info Column (Details Area) */
    .modal-info-column {
        width: 100%;
        flex: 1; /* বাকি জায়গা */
        padding: 20px 20px 40px 20px !important; /* প্যাডিং কমানো হলো */
        background: linear-gradient(180deg, #101025 0%, #050510 100%);
        border-radius: 20px 20px 0 0;
        margin-top: -20px; /* ওভারল্যাপ ইফেক্ট */
        z-index: 10;
        overflow-y: auto;
    }

    /* --- TYPOGRAPHY FIX (Title resize) --- */
    #modal-title {
        /* ফন্ট সাইজ ডায়নামিক হবে, লাইন হাইট টাইট হবে */
        font-size: clamp(1.4rem, 5vw, 1.8rem) !important; 
        line-height: 1.2;
        margin-bottom: 10px;
        white-space: normal; /* লাইন ব্রেক এলাউড */
        
        /* ২ লাইনের বেশি হলে ... দেখাবে (Line Clamp) */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .project-specs {
        padding: 10px;
        gap: 8px;
    }
    
    .spec-item {
        font-size: 0.75rem; /* স্পেকস ফন্ট ছোট */
    }
}

/* --- 3. MOBILE LANDSCAPE FULLSCREEN (Rotation Logic) --- */
@media (max-width: 920px) and (orientation: landscape) {
    .portfolio-modal-overlay {
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .modal-container {
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none;
        background: #000;
        flex-direction: row; /* পাশাপাশি */
    }

    /* ইমেজ এরিয়া ১০০% হবে */
    .modal-media-column {
        flex: 1;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        background: #000;
    }

    /* ইমেজকে পারফেক্ট ফিট করা */
    .viewer-container img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* পুরো ছবি দেখাবে */
    }

    /* ইনফো কলাম হাইড করা (User Request: Full Screen Image) */
    .modal-info-column {
        display: none !important; 
    }

    /* কন্ট্রোলস (গ্যালারি বাটন, ক্লোজ বাটন) ভাসমান থাকবে */
    .view-tabs, .modal-close-icon {
        position: absolute;
        z-index: 50;
        transition: opacity 0.3s ease;
    }
    
    .view-tabs { top: 15px; left: 50%; transform: translateX(-50%); }
    .modal-close-icon { top: 15px; right: 15px; }

    /* Next/Prev বাটন শো করা ল্যান্ডস্কেপে */
    .modal-nav-btn {
        display: flex !important; /* Force show */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.3);
        width: 50px; height: 50px;
        border: 1px solid rgba(255,255,255,0.2);
    }
    .modal-nav-btn.prev { left: 15px; }
    .modal-nav-btn.next { right: 15px; }
}

/* --- 4. TOGGLE UI (Touch Interaction) --- */
/* জাভাস্ক্রিপ্ট দিয়ে এই ক্লাসটি টগল করা হবে */
.ui-hidden .view-tabs,
.ui-hidden .modal-close-icon,
.ui-hidden .design-cat-badge,
.ui-hidden .modal-nav-btn {
    opacity: 0;
    pointer-events: none;
}

/* =========================================
   NEW FEATURES STYLES (Zoom, Sticky Bar, Toast)
   ========================================= */

/* --- 1. Custom Toast Notification --- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 15, 35, 0.95);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--accent-cyan);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.toast.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast i { color: var(--accent-cyan); font-size: 1.1rem; }
.toast.error { border-color: #ff5555; }
.toast.error i { color: #ff5555; }

/* --- 2. Sticky Bottom Action Bar (Mobile Only) --- */
.mobile-sticky-cta {
    display: none; /* Desktop e hide thakbe */
}

@media (max-width: 768px) {
    .portfolio-modal-overlay.active .mobile-sticky-cta {
        display: flex; /* Modal open holei dekhabe */
    }

    .mobile-sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 35, 0.95);
        backdrop-filter: blur(10px);
        padding: 15px;
        gap: 10px;
        z-index: 200000; /* Sobar upore */
        border-top: 1px solid rgba(255,255,255,0.1);
        animation: slideUp 0.3s ease-out;
    }

    .btn-sticky-quote, .btn-sticky-wa {
        flex: 1;
        padding: 12px;
        border-radius: 8px;
        font-weight: 600;
        text-align: center;
        border: none;
        cursor: pointer;
        font-size: 0.9rem;
        text-decoration: none;
        display: flex; align-items: center; justify-content: center; gap: 5px;
    }

    .btn-sticky-quote {
        background: var(--accent-cyan);
        color: #000;
    }

    .btn-sticky-wa {
        background: #25D366;
        color: #fff;
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* --- 3. Image Pan & Zoom Styles --- */
.viewer-container img {
    cursor: zoom-in; /* Indicate zoom is available */
}
.viewer-container.is-zoomed img {
    cursor: grab;
}
.viewer-container.is-zoomed img:active {
    cursor: grabbing;
}

/* --- 4. Skeleton Loading Animation --- */
.skeleton-loader {
    background: linear-gradient(90deg, #0f0f25 25%, #1a1a40 50%, #0f0f25 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; /* ইমেজের নিচে থাকবে, কিন্তু লোড না হওয়া পর্যন্ত দেখা যাবে */
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* লোড হওয়ার পর ইমেজ ফেড-ইন হবে */
.media-wrapper img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.media-wrapper img.loaded {
    opacity: 1;
}

/* Skeleton লুকানোর ক্লাস */
.skeleton-hidden {
    display: none;
}

/* --- 5. Smart Empty State --- */
.empty-content {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.5s ease;
}

.empty-suggestions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-suggestion {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-suggestion:hover {
    background: var(--accent-cyan);
    color: #000;
}

/* --- 7. Smart Share Card Design --- */
.share-card-design {
    width: 600px;
    height: 800px;
    background: #0f0f1a;
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--accent-gold);
    font-family: 'Poppins', sans-serif;
}

.sc-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.sc-brand { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: 2px; }
.sc-tag { background: var(--accent-gold); color: #000; padding: 5px 15px; border-radius: 20px; font-weight: 600; }

.sc-image-wrapper {
    width: 100%; height: 450px; overflow: hidden; border-radius: 10px; margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.2);
}
.sc-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.sc-body h2 { font-size: 32px; color: var(--accent-cyan); margin-bottom: 15px; }
.sc-meta { display: flex; gap: 20px; font-size: 18px; color: #ccc; margin-bottom: 40px; }
.sc-footer {
    margin-top: auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center;
}

/* --- 8. Context Aware Floating Button --- */
.context-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366; /* WhatsApp Green */
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999; /* মডালের নিচে থাকবে, কিন্তু পেজের উপরে */
    transition: all 0.3s ease;
    animation: pulseBtn 2s infinite;
}

.context-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.context-btn i { font-size: 1.2rem; }

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* মডাল ওপেন হলে বাটনটি হাইড করবো মোবাইলে (কারণ মোবাইলে স্টিকি বার আছে) */
@media (max-width: 768px) {
    .portfolio-modal-overlay.active ~ .context-btn {
        display: none;
    }
}

/* --- 9. Recently Viewed History Section --- */
.recent-history-section {
    background: #0f0f1a;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
}

.recent-history-section h4 {
    color: var(--accent-cyan);
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recent-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin; /* Firefox */
}

.recent-grid::-webkit-scrollbar { height: 6px; }
.recent-grid::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.recent-thumb {
    min-width: 120px;
    width: 120px;
    cursor: pointer;
    transition: 0.3s;
}

.recent-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.recent-thumb span {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-thumb:hover img {
    border-color: var(--accent-cyan);
    transform: scale(1.05);
}

/* =========================================
   NEW: GALLERY STRIP & BLUR-UP LOADING
   ========================================= */

/* --- 1. Thumbnail Strip --- */
.modal-gallery-strip {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    width: 100%;
    overflow-x: auto;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 20;
}

.gallery-thumb {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    object-fit: cover;
}

.gallery-thumb:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(51, 213, 229, 0.4);
    transform: scale(1.1);
}

/* --- 2. Smart Blur-Up Animation --- */
/* প্রাথমিক অবস্থা: ব্লার এবং একটু জুম করা */
.blur-up-img {
    filter: blur(20px);
    transform: scale(1.02); /* স্মুথ ট্রানজিশনের জন্য */
    transition: filter 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
    opacity: 0; /* লোড হওয়ার আগ পর্যন্ত হাইড */
}

/* লোড হওয়ার পর: ক্লিয়ার */
.blur-up-img.loaded {
    filter: blur(0);
    transform: scale(1);
    opacity: 1;
}

/* মোবাইল রেসপন্সিভ */
@media (max-width: 768px) {
    .modal-gallery-strip {
        justify-content: flex-start; /* স্ক্রল করার জন্য */
        padding: 10px;
    }
}

/* --- 10. Scroll-to-Hide Filter Bar (Mobile) --- */

/* যখন হাইড হবে তখন এই ক্লাসটি অ্যাড হবে */
.filter-sticky-bar.hide-on-scroll {
    transform: translateY(-120%); /* উপরে চলে যাবে */
    opacity: 0;
    pointer-events: none;
}

/* টগল বাটনটি (তীর) সবসময় দৃশ্যমান রাখার জন্য আলাদা স্টাইল */
/* নোট: আমরা আগের HTML এ টগল বাটনটি বারের ভেতরে রেখেছিলাম। 
   তাই পুরো বার হাইড করলে বাটনও হাইড হবে। 
   সমাধান: আমরা JS দিয়ে লজিক লিখব যাতে শুধু বারের বডি হাইড হয়, কিন্তু বাটন থাকে। */

@media (max-width: 768px) {
    /* ডিফল্ট অবস্থায় বারটি দেখাবে */
    .filter-sticky-bar {
        transition: transform 0.3s ease, opacity 0.3s ease, max-height 0.3s ease;
    }
    
    /* যখন স্ক্রল ডাউন হবে, আমরা 'collapsed' ক্লাসটি ফোর্সফুলি অ্যাড করব */
    /* এবং বারটি হাইড করব না, বরং ছোট করে দেব */
}

/* --- 11. Smart Search Suggestions --- */
.search-input-group {
    position: relative; /* রিলেটিভ পজিশন যাতে ড্রপডাউন ঠিকমতো বসে */
}

.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1a1a40;
    border: 1px solid rgba(51, 213, 229, 0.3);
    border-radius: 0 0 15px 15px;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none; /* শুরুতে হাইড থাকবে */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.suggestion-item {
    padding: 10px 15px;
    color: #ccc;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: 0.2s;
}

.suggestion-item:last-child { border-bottom: none; }

.suggestion-item:hover {
    background: rgba(51, 213, 229, 0.1);
    color: #fff;
    padding-left: 20px;
}

.suggestion-item i {
    color: var(--accent-cyan);
    font-size: 0.8rem;
}

/* ম্যাচ করা টেক্সট হাইলাইট করার জন্য */
.highlight-text {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* --- 12. Social Proof Counter --- */
.social-proof-counter {
    font-size: 0.85rem;
    color: #ff6b6b; /* রেডিশ পিঙ্ক (Live বোঝাতে) */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.social-proof-counter.visible {
    opacity: 1;
    transform: translateY(0);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    display: inline-block;
    animation: blinkLive 1.5s infinite;
}

@keyframes blinkLive {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* --- 13. Hover Video Styles --- */
.media-wrapper {
    position: relative;
    overflow: hidden; /* ভিডিও যেন বাইরে না যায় */
}

.hover-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 2; /* ইমেজের উপরে থাকবে */
    transition: opacity 0.4s ease;
    pointer-events: none; /* মাউস ইভেন্ট যাতে ইমেজে পাস হয় */
}

.portfolio-grid-item:hover .hover-video {
    opacity: 1;
}

/* --- 14. Dynamic Badges --- */
.badge-trending { background: #ff4757; color: #fff; margin-right: 5px; }
.badge-budget { background: #2ed573; color: #fff; margin-right: 5px; }
.badge-compact { background: #ffa502; color: #fff; }

/* ব্যাজগুলো যাতে নিচে নিচে না এসে পাশাপাশি আসে (যদি জায়গা থাকে) */
.badge-overlay.top-left {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 80%; /* ইমেজের পুরোটা ঢাকবে না */
}

/* --- 16. Email Lead Magnet --- */
.email-magnet-box {
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.email-magnet-box h5 {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.email-magnet-box p {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 10px;
}

.email-form {
    display: flex;
    gap: 10px;
}

.email-form input {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.email-form button {
    background: var(--accent-cyan);
    color: #000;
    border: none;
    padding: 0 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.email-form button:hover {
    background: #fff;
}