/* style.css */
:root {
    --bg-main: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --brand-gold: #8c765c;
    --brand-hover: #735f49;
    --border-soft: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* NAVBAR HEADER */
.site-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   NAVBAR BRAND LOGO ALIGNMENT
   ========================================================================== */
.nav-brand {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px;
    text-decoration: none;
    
    /* Sleek Architectural Studio Typography Styling */
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700; /* Ultra-clean light weight for "Amezing" */
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 2px; /* Elegant spacing between letters */
    transition: transform 0.2s ease;
}

.nav-brand:hover {
    transform: translateY(-1px); /* Micro-interaction on hover */
}

/* Accent highlight styling for "Art" */
.nav-brand span {
    font-weight: 700; /* Bold, strong contrast weight for "Art" */
    color: #8c765c; /* Your signature brand gold tone */
    letter-spacing: 2px;
    margin-left: 2px;
    position: relative;
}

/* Optional subtle underline accent beneath the "Art" text */
.nav-brand span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 2px;
    width: 100%;
    height: 2px;
    background-color: #8c765c;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.nav-brand:hover span::after {
    transform: scaleX(1); /* Smoothly slides underline in when hovering */
}

.brand-logo-img {
    height: 40px; /* Constrains height to match navbar padding dimensions safely */
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); /* Enhances logo depth visibility */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--brand-gold); }

.admin-portal-btn {
    background: var(--text-dark);
    color: #ffffff !important;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
}
.admin-portal-btn:hover { background: var(--brand-gold); }

/* HERO HERO BACKGROUND CANVAS */
.hero-canvas {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), 
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 800px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.main-btn, .secondary-btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.main-btn { background: var(--brand-gold); color: #fff; }
.main-btn:hover { background: var(--brand-hover); }

.secondary-btn { background: #ffffff; color: var(--text-dark); }
.secondary-btn:hover { background: #cbd5e1; }

/* PORTFOLIO GRID CONTAINERS */
.portfolio-section {
    padding: 3rem 0rem;
}
.layouts-bg { background-color: #f1f5f9; }

.section-container {
    max-width: 1200px;
    margin: 0 auto;
        
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
    
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-divider {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brand-gold);
    margin: 0.8rem auto;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
   
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* CARDS STRUCTURAL ENGINE */
.project-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    background: #e2e8f0;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
}
.badge-completed { background: #def7ec; color: #03543f; }
.badge-under-construction { background: #fef3c7; color: #92400e; }
.badge-sanctioned { background: #e1effe; color: #1e429f; }
.badge-conceptual { background: #e5e7eb; color: #374151; }
.badge-layout { background: var(--text-dark); color: #fff; }

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-service {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    
}

.card-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-location {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card-meta {
    border-top: 1px solid var(--border-soft);
    padding-top: 1rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.read-more-btn {
    text-decoration: none;
    background: #f8fafc;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 0.7rem;
    border-radius: 4px;
    margin-top: 1.2rem;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.read-more-btn:hover {
    background: var(--brand-gold);
    color: #ffffff;
    border-color: var(--brand-gold);
}

/* NO DATA FALLBACKS */
.no-data-notice {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.no-data-notice i { font-size: 2.5rem; margin-bottom: 1rem; color: #cbd5e1; }

/* FOOTER BAR */
.site-footer {
    background: var(--text-dark);
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    border-top: 4px solid var(--brand-gold);
}

/*-----------------------------------------------------------------------*/
/* ==========================================================================
   WINDOW-FIT IMAGE FRAME FIX
   ========================================================================== */
.project-main-image-frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: #e2e8f0;
    
    /* Dynamic limits so it never scales larger than the user's monitor window height */
    width: 100% !important;
    height: 55vh !important; /* Locks height to 55% of the screen view window height */
    min-height: 320px !important;
    max-height: 480px !important; 
}

.project-main-image-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Changes from 'cover' to 'contain' so the entire blueprint fits without clipping */
    background: #fff; /* Dark sleek matte backing for blueprints */
    display: block;
}

.sub-blueprint-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; /* Locks small widths */
    gap: 1.5rem !important;
    width: 100% !important;
    margin-top: 1.5rem !important;
}

/* Individual thumbnail frame boxes */
.gallery-thumbnail-frame {
    position: relative !important;
    width: 100% !important;
    height: 130px !important; /* Constrains height completely so they look neat */
    background: #f8fafc;
    border-radius: 6px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    transition: transform 0.25s ease !important;
}

.gallery-thumbnail-frame:hover {
    transform: scale(1.03) !important;
}

/* The actual blueprint image inside the constrained frame */
.gallery-thumbnail-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Ensures the whole blueprint fits inside without getting cut off */
    background: #f1f5f9; /* Soft background fill padding */
    display: block !important;
}

/* Dark elegant translucent hover overlay effect */
.thumbnail-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(140, 118, 92, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 1.3rem !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}

.gallery-thumbnail-frame:hover .thumbnail-overlay {
    opacity: 1 !important;
}

/* ==========================================================================
   POPUP LIGHTBOX SLIDER UI SYSTEM
   ========================================================================== */
.project-main-image-frame:hover .thumbnail-overlay {
    opacity: 1 !important;
}

/* Slide movement buttons */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.4);
    color: #ffffff;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2010;
    transition: background 0.2s, transform 0.2s;
    user-select: none;
}
.slider-arrow:hover {
    background: #8c765c;
    transform: translateY(-50%) scale(1.1);
}
.prev-arrow { left: 40px; }
.next-arrow { right: 40px; }

/* Numeric fraction tracking layout overlay */
.slider-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.8);
    color: #ffffff;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 1px;
    z-index: 2010;
}
/* ==========================================================================
   FORTIFIED LIGHTBOX SLIDER UI SYSTEM (ANTI-ELEMENT INTERACTION OVERLAP)
   ========================================================================== */
.lightbox-modal {
    display: none !important; /* Forces the modal completely invisible on page load */
    position: fixed !important;
    z-index: 999999 !important; /* Sits completely above navigation headers */
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.95) !important; /* Sleek elegant dark backing */
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* This is the ONLY class configuration allowed to show the slider overlay */
.lightbox-modal.visible {
    display: flex !important;
}

/* Restricts layout sizing properties inside display boundaries */
.lightbox-content {
    max-width: 85% !important;
    max-height: 80vh !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    pointer-events: auto !important;
}

.lightbox-close {
    position: absolute !important;
    top: 25px !important;
    right: 35px !important;
    color: #f8fafc !important;
    font-size: 2.5rem !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    z-index: 1000000 !important;
}
.lightbox-close:hover {
    color: #8c765c !important;
}

/* Slide movement buttons */
.slider-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(30, 41, 59, 0.4) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 2rem !important;
    padding: 1rem 1.2rem !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    z-index: 1000000 !important;
    user-select: none !important;
}
.slider-arrow:hover {
    background: #8c765c !important;
}
.prev-arrow { left: 40px !important; }
.next-arrow { right: 40px !important; }

.slider-counter {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(30, 41, 59, 0.8) !important;
    color: #ffffff !important;
    padding: 0.4rem 1.2rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    z-index: 1000000 !important;
}

/* ==========================================================================
   STRICT SIDE-BY-SIDE DESKTOP / LAPTOP LAYOUT CONFIGURATION
   ========================================================================== */

/* This rule applies to laptops, monitors, and large screens (anything wider than 768px) */
@media screen and (min-width: 769px) {
    .project-summary-grid {
        display: grid !important;
        /* Left column gets 1.2 shares of space, Right column gets 0.8 shares */
        grid-template-columns: 1.2fr 0.8fr !important; 
        gap: 3.5rem !important; /* Premium wide spacing gap between left and right elements */
        margin-bottom: 4rem !important;
        align-items: start !important; /* Stops elements from stretching vertically */
    }

    .project-main-image-frame {
        display: block !important;
        width: 100% !important;
        height: 60vh !important; /* Perfect laptop window height proportion */
        max-height: 520px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    }

    .project-metadata-sidebar {
        display: block !important;
        width: 100% !important;
        padding: 2.5rem !important; /* Generous padding inside the summary box */
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
    .sub-blueprint-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; /* Spreads out evenly on mobile rows */
        gap: 1rem !important;
    }
    .gallery-thumbnail-frame {
        height: 110px !important; /* Slightly more compact sizing on smaller smartphones */
    }
}
/* ==========================================================================
   MOBILE WIDTH OVERFLOW STABILIZER FIX
   ========================================================================== */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important; /* Prevents horizontal scrollbars entirely */
}

@media screen and (max-width: 768px) {
    /* 1. Ensure page wrapper handles default spacing safely */
    .page-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-hidden: hidden;
        padding: 0 !important;
    }

    /* 2. Constrain the main container inside the viewport boundaries */
    .section-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem !important;  /* Safety structural padding gaps */
        padding-right: 1rem !important; /* Safety structural padding gaps */
        box-sizing: border-box !important;
    }

  .project-summary-grid {
        display: block !important; /* Removes columns entirely */
        width: 100% !important;
    }

    .project-main-image-frame {
        display: block !important;
        width: 100% !important;
        height: 260px !important; /* Compact box height for phones */
        margin-bottom: 2rem !important; /* Forces the summary box to sit below it */
    }

    .project-metadata-sidebar {
        display: block !important;
        width: 100% !important;
        padding: 1.5rem !important;
    }
    
    /* 4. Fine-tune title hierarchy sizing for mobile reading layout profiles */
    .project-view-title {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin: 0.6rem 0 0.3rem 0 !important;
    }
    
    .brand-logo-img {
        height: 36px; /* Scales down slightly on small phone screens */
    }
    
    .slider-arrow { padding: 0.6rem 0.8rem !important; font-size: 1.3rem !important; }
    .prev-arrow { left: 15px !important; }
    .next-arrow { right: 15px !important; }
}

/* ==========================================================================
   FIXES FOR SEPARATE ABOUT & CONTACT PAGES (APPENDED TO BOTTOM)
   ========================================================================== */

/* Page Wrapper spacing to push content down below the fixed navbar */
.page-wrapper {
    margin-top: 80px;
    min-height: 75vh;
}

/* Section Controls */
.site-section {
    padding: 5rem 2rem;
}
.bg-light {
    background-color: #f1f5f9;
}
.section-container {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Grid Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}
.about-text h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 1rem;
}
.about-text p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.feature-item {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.feature-item i {
    font-size: 1.5rem;
    color: #8c765c;
}
.feature-item p {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
}

/* Timeline Layout */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 3px solid #8c765c;
    padding-left: 1.8rem;
    margin-left: 0.5rem;
}
.timeline-item {
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1.8rem - 7px);
    top: 4px;
    width: 11px;
    height: 11px;
    background: #8c765c;
    border-radius: 50%;
}
.timeline-step {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.3rem;
}
.timeline-item p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Contact Layout */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-info h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.8rem;
}
.contact-info p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.info-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.info-details p {
    margin: 0;
    font-weight: 500;
    color: #1e293b;
}
.info-details i {
    color: #8c765c;
    margin-right: 8px;
    width: 20px;
}
.contact-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/*-------------------------------- works page --------*/
/* ==========================================================================
   CAROUSEL BANNER SYSTEM 
   ========================================================================== */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    margin-top: 75px;
    overflow: hidden;
    background: #0f172a;
}
.main-slider {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    padding-left: 10%;
}
.slide-item.active {
    opacity: 1;
    visibility: visible;
}
.slide-content {
    color: #ffffff;
    max-width: 600px;
    z-index: 5;
    transform: translateY(20px);
    transition: transform 0.6s ease;
}
.slide-item.active .slide-content {
    transform: translateY(0);
}
.slide-tag {
    font-size: 0.8rem;
    background: #8c765c;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 1px;
}
.slide-content h2 {
    font-size: 2.5rem;
    margin: 0.8rem 0 0.4rem 0;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.slide-content p {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}
.slider-action-btn {
    display: inline-block;
    text-decoration: none;
    color: #1e293b;
    background: #ffffff;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.2s;
}
.slider-action-btn:hover { background: #cbd5e1; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.slider-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.slider-dots .dot.active { background: #ffffff; }

/* ==========================================================================
   PORTFOLIO ROW BLOCKS & COMPACT CARDS
   ========================================================================== */
.row-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.8rem;
    margin-bottom: 2rem;
}
.title-meta { display: flex; align-items: center; gap: 1rem; }
.row-num { font-size: 1.5rem; font-weight: 300; color: #8c765c; font-family: monospace; }
.title-meta h2 { font-size: 1.5rem; font-weight: 700; color: #1e293b; }

.view-more-category-btn {
    text-decoration: none;
    color: #8c765c;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.view-more-category-btn:hover { color: #1e293b; }

/* 5-Column Grid Matrix Blueprint layout */
.works-deck-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 1.2rem;
}

.compact-work-card {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
    transition: transform 0.2s;
}
.compact-work-card:hover { transform: translateY(-4px); }

.card-media-frame {
    position: relative;
    height: 140px;
    background: #e2e8f0;
}
.card-media-frame img { width: 100%; height: 100%; object-fit: cover; }

.hover-overlay-mask {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30, 41, 59, 0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s ease;
}
.compact-work-card:hover .hover-overlay-mask { opacity: 1; }
.overlay-icon { color: #ffffff; font-size: 0.78rem; font-weight: 500; display: flex; align-items: center; gap: 4px; }

.card-status-pill {
    position: absolute;
    top: 8px; left: 8px;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
}
.card-status-pill.status-completed { background: #def7ec; color: #03543f; }
.card-status-pill.status-under-construction { background: #fef3c7; color: #92400e; }
.card-status-pill.status-layout { background: #1e293b; color: #ffffff; }

.card-details-info { padding: 0.8rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-details-info h3 { font-size: 0.92rem; font-weight: 600; color: #1e293b; line-height: 1.3; margin-bottom: 0.2rem; }
.card-details-info p { font-size: 0.78rem; color: #64748b; margin-bottom: 0.5rem; }
.card-details-info .service-tag { font-size: 0.7rem; font-weight: 600; color: #8c765c; margin-top: auto; text-transform: uppercase; }

.empty-grid-fallback { grid-column: 1/-1; padding: 3rem; text-align: center; color: #64748b; font-size: 0.9rem; }


/*-------------------------------- project single -----------*/
/* ==========================================================================
   STRICT SIDE-BY-SIDE DESKTOP / LAPTOP LAYOUT CONFIGURATION
   ========================================================================== */
.project-summary-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr !important; 
    gap: 3.5rem !important; 
    margin-bottom: 4rem !important;
    align-items: start !important;
}

.project-main-image-frame {
    position: relative !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    width: 100% !important;
    height: 55vh !important; 
    min-height: 320px !important;
    max-height: 480px !important; 
    background: #e2e8f0 !important;
}

.project-main-image-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; 
    background: #ffffff !important;
    display: block !important;
}

.project-metadata-sidebar {
    background: #ffffff !important;
    padding: 2.5rem !important; 
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

.sub-blueprint-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; 
    gap: 1.5rem !important;
    width: 100% !important;
    margin-top: 1.5rem !important;
}

.gallery-thumbnail-frame {
    position: relative !important;
    width: 100% !important;
    height: 130px !important; 
    background: #f8fafc !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    transition: transform 0.25s ease !important;
}

.gallery-thumbnail-frame:hover {
    transform: scale(1.03) !important;
}

.gallery-thumbnail-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; 
    background: #f1f5f9 !important;
    display: block !important;
}

.thumbnail-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(140, 118, 92, 0.4) !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 1.3rem !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}

.project-main-image-frame:hover .thumbnail-overlay,
.gallery-thumbnail-frame:hover .thumbnail-overlay {
    opacity: 1 !important;
}

/* ==========================================================================
   FORTIFIED LIGHTBOX SYSTEM (REMOVED BEIGE STAIN & FIXED ACTION TARGETS)
   ========================================================================== */
.lightbox-modal {
    display: none !important; 
    position: fixed !important;
    z-index: 999999 !important; 
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.95) !important; 
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.lightbox-modal.visible {
    display: flex !important;
}

.lightbox-content {
    max-width: 85% !important;
    max-height: 80vh !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.lightbox-close {
    position: absolute !important;
    top: 25px !important;
    right: 35px !important;
    color: #f8fafc !important;
    font-size: 2.5rem !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    z-index: 1000000 !important;
}
.lightbox-close:hover {
    color: #8c765c !important;
}
/* Slider Arrows */
.slider-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(30, 41, 59, 0.5) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 2rem !important;
    padding: 0.8rem 1.2rem !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    z-index: 1000000 !important;
    user-select: none !important;
    transition: background 0.2s;
}
.slider-arrow:hover { background: #8c765c !important; }
.prev-arrow { left: 30px !important; }
.next-arrow { right: 30px !important; }

/* Counter Tracker Badge */
.slider-counter {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(30, 41, 59, 0.85) !important;
    color: #ffffff !important;
    padding: 0.4rem 1.2rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    z-index: 1000000 !important;
}

/* ==========================================================================
   NAVIGATION BAR HEADER CORE COMPONENT
   ========================================================================== */
.site-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 10000; /* Stays fixed above all page body elements */
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 45px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-gold);
}

.menu-toggle {
    display: none !important; /* Hidden on Desktop / Laptop screens */
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10005;
}


/* ==========================================================================
   MOBILE WIDTH BREAKPOINTS
   ========================================================================== */
@media screen and (max-width: 768px) {
    .project-summary-grid {
        display: block !important; 
        width: 100% !important;
    }

    .project-main-image-frame {
        height: 260px !important; 
        margin-bottom: 2rem !important;
    }

    .project-metadata-sidebar {
        padding: 1.5rem !important;
    }

    .sub-blueprint-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 1rem !important;
    }

    .gallery-thumbnail-frame {
        height: 100px !important;
    }
    
    .menu-toggle {
        display: block !important; /* Appears only on small smartphone viewports */
    }

    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 70px !important; /* Perfectly drops directly below top bar edge */
        left: -100% !important; /* Safely kept off-screen by default */
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: #ffffff !important;
        gap: 2rem !important;
        padding-top: 3rem !important;
        transition: left 0.3s ease-in-out !important;
        z-index: 9999 !important;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }

    /* Pushes mobile side menu into active viewing range smoothly */
    .nav-menu.mobile-open {
        left: 0 !important;
    }

    .nav-link {
        font-size: 1.2rem !important;
        width: 100%;
        text-align: center;
        display: block !important;
    }
}


