/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.5;
    background-color: #fff;
    display: flex;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.inline-link {
    color: inherit;
    font-weight: 500;
    transition: opacity 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.inline-link:hover {
    border-bottom-color: #000;
    opacity: 0.8;
}

/* Sidebar Styles */
.sidebar {
    width: 300px;
    height: 100vh;
    background-color: #fff;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid #f0f0f0;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.sidebar-header {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    text-decoration: none;
    width: 100%;
}

.logo-img {
    height: 85px;
    /* Slightly increased for standalone presence */
    width: auto;
    object-fit: contain;
    display: block;
}

.tagline {
    font-size: 0.9rem;
    color: #888;
    font-weight: 300;
    text-align: center;
    /* Ensure tagline is also centered */
    line-height: 1.6;
    margin-top: 5px;
}

.sidebar-phone {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    margin-top: 15px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-phone:hover {
    border-bottom-color: #000;
    opacity: 0.7;
}

.sidebar-location {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f8f8f8;
    padding-top: 15px;
    width: 100%;
}

.location-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #aeaeae;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.location-dmv {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    /* Tighter gaps */
    font-size: 0.68rem;
    /* Slightly smaller for better fit */
    color: #3498db;
    font-weight: 700;
    letter-spacing: 0.03em;
    width: 100%;
}

.location-dmv span {
    white-space: nowrap;
    display: inline-block;
}

.location-dmv .sep {
    color: #3498db;
    font-size: 0.6rem;
    opacity: 0.5;
    margin: 0 2px;
}

/* Sidebar Navigation Hierarchy */
.primary-nav {
    margin-bottom: 25px;
    flex-shrink: 0;
}

.primary-nav>ul>li {
    margin-bottom: 20px;
}

.nav-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1.5px;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
    font-weight: 600;
}

.sub-nav {
    margin-top: 5px;
    padding-left: 15px;
    /* Indentation for subcategories */
    border-left: 1px solid #f0f0f0;
    margin-left: 2px;
}

.sub-nav li {
    margin-bottom: 10px;
}

.sub-nav .nav-link {
    font-size: 0.95rem;
    color: #666;
}

.sub-nav .nav-link:hover,
.sub-nav .nav-link.active {
    color: #000;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: 25px;
    border-top: 1px solid #f5f5f5;
    padding-top: 15px;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.social-icons a {
    color: #000;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.social-icons a.phone-link {
    margin: 0;
    padding: 8px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    background-color: transparent;
}

.phone-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: #000;
}

.phone-link:hover .phone-label {
    max-width: 150px;
    opacity: 1;
    margin-left: 10px;
}

.social-icons a:hover {
    opacity: 0.6;
}

/* Main Content Area */
.main-content {
    margin-left: 300px;
    width: calc(100% - 300px);
    padding: 60px;
    /* Balanced padding for a structured, architectural feel */
    max-width: 1400px;
    /* Stabilized container width to avoid over-stretching */
}

.content-section {
    display: none;
    /* Hidden by default */
}

.content-section.active {
    display: block;
    /* Visible when active */
}

/* Section Styling */
.section-label {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 60px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 4px;
    /* Stronger architectural tracking */
    padding-bottom: 20px;
}

/* About Section Specifics - Premium Aesthetic */
.about-section {
    padding-top: 20px;
}

.about-header {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding-bottom: 0;
}

.about-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
    opacity: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}

.about-logo:hover {
    transform: scale(1.02);
}

.about-grid {
    display: flex;
    justify-content: center;
    background-color: #fdfdfd;
    padding: 80px 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.about-text {
    max-width: 900px;
    column-count: 1;
}

.about-text p {
    margin-bottom: 24px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    font-weight: 300;
}

.about-text p:first-of-type {
    font-size: 1.4rem;
    color: #000;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 40px;
}

.about-text .inline-link {
    color: #3498db;
    font-weight: 600;
}

@media (max-width: 991px) {
    .about-grid {
        padding: 40px 30px 20px;
    }

    .about-text p:first-of-type {
        font-size: 1.25rem;
    }
}

/* Projects Grid Styling - Refined Editorial Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Architectural 3-column rhythm */
    grid-auto-rows: 1fr;
    /* Ensures all rows maintain equal height */
    gap: 40px;
    /* Refined for a curated, editorial rhythm in the full-width layout */
    margin-bottom: 40px;
}

.project-card {
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #fcfcfc;
    aspect-ratio: 4/5;
    border-radius: 6px;
    /* Slightly softer for a more premium look */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Deeper architectural shadow */
}

.project-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: contrast(1.03) brightness(1.02);
    /* Enhancing architectural crispness */
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
}

.project-card img[src*="Rendering23.jpg"],
.project-card img[src*="Rendering24.jpg"],
.project-card img[src*="Rendering25.jpg"],
.project-card img[src*="Rendering26.jpg"],
.project-card img[src*="Rendering27.jpg"],
.project-card img[src*="Rendering28.jpg"],
.project-card img[src*="Rendering29.jpg"],
.project-card img[src*="Rendering30.jpg"],
.project-card img[src*="Rendering31.jpg"],
.project-card img[src*="Rendering32.jpg"],
.project-card img[src*="Rendering33.jpg"],
.project-card img[src*="Rendering34.jpg"],
.project-card img[src*="Rendering35.jpg"],
.project-card img[src*="Rendering36.jpg"],
.project-card img[src*="Rendering37.jpg"],
.project-card img[src*="Rendering38.jpg"],
.project-card img[src*="Rendering39.jpg"],
.project-card img[src*="Rendering40.jpg"],
.project-card img[src*="Rendering16.jpg"],
.project-card img[src*="Rendering19.jpg"],
.project-card img[src*="Rendering20.jpg"],
.project-card img[src*="Rendering22.jpg"] {
    transform: rotate(90deg) scale(1.35) !important;
}


/* Lighting Overlay for a high-end photography feel */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.02) 100%);
    opacity: 0.5;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.project-card:hover .project-cover-img {
    transform: scale(1.08);
    filter: contrast(1.05) brightness(1.05);
}

.project-card:hover::after {
    opacity: 0.8;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background-color: #fcfcfc;
    /* Matches card background for a seamless look */
    display: block;
    position: relative;
    /* Consistent architectural sharp lines */
    aspect-ratio: 4/5;
    /* Mirroring the card verticality */
}

/* Modal / Project View Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    /* Increased to stay above mobile header (4000) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active {
    display: block;
    opacity: 1;
}

.modal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    transform: translateY(40px);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.back-btn {
    background: #f4f4f4;
    border: none;
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.back-btn i {
    margin-right: 8px;
}

.back-btn:hover {
    background-color: #111;
    color: #fff;
}

.close-icon {
    font-size: 2rem;
    cursor: pointer;
    font-weight: 300;
}

/* Gallery Grid within Modal - 3 columns, responsive */
.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    background-color: #f4f4f4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    cursor: zoom-in;
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.45s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item img[src*="Rendering23.jpg"],
.gallery-item img[src*="Rendering24.jpg"],
.gallery-item img[src*="Rendering25.jpg"],
.gallery-item img[src*="Rendering26.jpg"],
.gallery-item img[src*="Rendering27.jpg"],
.gallery-item img[src*="Rendering28.jpg"],
.gallery-item img[src*="Rendering29.jpg"],
.gallery-item img[src*="Rendering30.jpg"],
.gallery-item img[src*="Rendering31.jpg"],
.gallery-item img[src*="Rendering32.jpg"],
.gallery-item img[src*="Rendering33.jpg"],
.gallery-item img[src*="Rendering34.jpg"],
.gallery-item img[src*="Rendering35.jpg"],
.gallery-item img[src*="Rendering36.jpg"],
.gallery-item img[src*="Rendering37.jpg"],
.gallery-item img[src*="Rendering38.jpg"],
.gallery-item img[src*="Rendering39.jpg"],
.gallery-item img[src*="Rendering40.jpg"],
.gallery-item img[src*="Rendering16.jpg"],
.gallery-item img[src*="Rendering19.jpg"],
.gallery-item img[src*="Rendering20.jpg"],
.gallery-item img[src*="Rendering22.jpg"] {
    transform: rotate(90deg) scale(1.35) !important;
}


/* Fix for upside down home theatre images */
.gallery-item img[src*="Hometheatre10.jpg"],
.gallery-item img[src*="Hometheatre14.jpg"] {
    transform: rotate(90deg) scale(1.35) !important;
}

#gallery-lightbox-img[src*="Hometheatre10.jpg"],
#gallery-lightbox-img[src*="Hometheatre14.jpg"],
#gallery-lightbox-img[src*="Rendering23.jpg"],
#gallery-lightbox-img[src*="Rendering24.jpg"],
#gallery-lightbox-img[src*="Rendering25.jpg"],
#gallery-lightbox-img[src*="Rendering26.jpg"],
#gallery-lightbox-img[src*="Rendering27.jpg"],
#gallery-lightbox-img[src*="Rendering28.jpg"],
#gallery-lightbox-img[src*="Rendering29.jpg"],
#gallery-lightbox-img[src*="Rendering30.jpg"],
#gallery-lightbox-img[src*="Rendering31.jpg"],
#gallery-lightbox-img[src*="Rendering32.jpg"],
#gallery-lightbox-img[src*="Rendering33.jpg"],
#gallery-lightbox-img[src*="Rendering34.jpg"],
#gallery-lightbox-img[src*="Rendering35.jpg"],
#gallery-lightbox-img[src*="Rendering36.jpg"],
#gallery-lightbox-img[src*="Rendering37.jpg"],
#gallery-lightbox-img[src*="Rendering38.jpg"],
#gallery-lightbox-img[src*="Rendering39.jpg"],
#gallery-lightbox-img[src*="Rendering40.jpg"],
#gallery-lightbox-img[src*="Rendering16.jpg"],
#gallery-lightbox-img[src*="Rendering19.jpg"],
#gallery-lightbox-img[src*="Rendering20.jpg"],
#gallery-lightbox-img[src*="Rendering22.jpg"] {
    animation: lightboxZoomInRotate 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) forwards !important;
    max-width: 85vh;
    max-height: 90vw;
}

@keyframes lightboxZoomInRotate {
    from {
        transform: scale(0.8) rotate(90deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(90deg);
        opacity: 1;
    }
}



/* ─── Image Lightbox Overlay ─────────────────────────── */
#gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.3s ease forwards;
}

#gallery-lightbox.active {
    display: flex;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#gallery-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: lightboxZoomIn 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.88);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#gallery-lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 9001;
    transition: background 0.25s ease, transform 0.25s ease;
    line-height: 1;
}

#gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}





/* Project Overview Styling */
.project-overview {
    max-width: 800px;
    margin: 0 auto 60px auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s;
}

.modal.active .project-overview {
    opacity: 1;
    transform: translateY(0);
}

.project-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #000;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-transform: none;
}

.project-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.project-description p {
    margin-bottom: 25px;
}

.project-description h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 50px 0 25px 0;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 12px;
}

.project-description h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: #000;
}

.project-details-meta {
    margin: 40px auto 40px auto;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    font-weight: 600;
}

.project-details-meta span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-details-meta i {
    font-size: 0.9rem;
    color: #333;
    opacity: 0.7;
}

.project-features {
    margin: 60px 0;
    text-align: left;
    background: #fcfcfc;
    padding: 50px;
    border-radius: 4px;
}

.project-features h2 {
    margin-top: 0;
    text-align: left;
}

.project-features h2::after {
    left: 0;
    transform: none;
}

.project-features ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-features li {
    margin-bottom: 0;
    padding: 15px 0 15px 35px;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
    font-weight: 500;
}

.project-features li:first-child {
    border-top: none;
}

.project-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.project-seo-tags {
    margin-top: 80px;
    padding: 30px;
    background: #fdfdfd;
    text-align: left;
    font-size: 0.8rem;
    color: #888;
}

.project-seo-tags p {
    margin-bottom: 20px;
    line-height: 1.6;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
}

.project-seo-tags strong {
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.7rem;
    font-weight: 700;
}




/* Mobile Navigation & Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    z-index: 4000;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-logo-img {
    height: 35px;
    width: auto;
    margin-top: 5px;
    /* Fine-tune vertical position */
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #000;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
        padding: 40px 30px;
    }

    .main-content {
        margin-left: 250px;
        width: calc(100% - 250px);
        padding: 40px;
    }

    .drawer-side-panel {
        width: 80%;
        right: -80%;
        padding: 60px 40px;
    }

    .drawer-content {
        padding: 40px 20px;
    }

    /* Gallery: 2 columns on tablet */
    .modal-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 70px;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 70px);
        padding: 40px 20px;
        transform: translateY(-120%);
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
        border-right: none;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        visibility: hidden;
        opacity: 0;
        z-index: 3800;
        overflow-y: auto;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    .sidebar-header .logo,
    .sidebar-header .tagline {
        display: flex;
    }

    .sidebar-header .logo {
        margin-bottom: 20px;
    }

    .sidebar-header .tagline {
        font-size: 0.85rem;
        margin-bottom: 20px;
        color: #666;
        padding: 0 10px;
    }

    .sidebar-header {
        margin-bottom: 25px;
        width: 100%;
    }

    .sidebar-location {
        display: flex;
        background: #f9f9f9;
        padding: 15px;
        border-radius: 12px;
        margin-top: 0;
        border: 1px solid #f0f0f0;
    }

    .primary-nav ul li {
        margin-bottom: 5px;
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.4s ease;
    }

    .sidebar.active .primary-nav ul li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for nav items */
    .sidebar.active .primary-nav ul li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .sidebar.active .primary-nav ul li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .sidebar.active .primary-nav ul li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .sidebar.active .primary-nav ul li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .sidebar.active .primary-nav ul li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .sidebar.active .primary-nav ul li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .sidebar.active .primary-nav ul li:nth-child(7) {
        transition-delay: 0.4s;
    }

    .sidebar.active .primary-nav ul li:nth-child(8) {
        transition-delay: 0.45s;
    }

    .nav-link {
        font-size: 1.15rem;
        padding: 12px 20px;
        display: block;
        background: transparent;
        border-radius: 8px;
        margin: 0;
    }

    .nav-link.active {
        background: #000;
        color: #fff !important;
        font-weight: 500;
    }

    .sidebar-footer {
        display: block;
        margin-top: 40px;
        padding: 25px 0;
        border-top: 1px solid #f2f2f2;
    }

    .social-icons {
        display: flex;
        flex-wrap: wrap;
        /* Ensure all icons wrap and stay visible */
        justify-content: center;
        gap: 25px;
        width: 100%;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .social-icons a.phone-link {
        width: auto;
        height: auto;
        padding: 10px 20px;
        border-radius: 30px;
        background: #000;
        color: #fff;
    }

    .social-icons a.phone-link i {
        color: #fff;
    }

    .phone-label {
        max-width: none;
        opacity: 1;
        margin-left: 10px;
        font-size: 0.9rem;
        font-weight: 600;
        color: #fff;
    }

    .primary-nav {
        margin-bottom: 0;
    }

    .primary-nav ul li {
        margin-bottom: 15px;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 100px 20px 60px 20px;
        /* Top padding for fixed header */
        max-width: 100%;
    }

    .section-label {
        font-size: 1.6rem;
        margin-bottom: 40px;
        letter-spacing: 2px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        gap: 20px;
        margin-bottom: 0px;
    }

    .project-card {
        aspect-ratio: 16/10;
        /* Wider icons on mobile for impact */
    }

    .modal-content {
        padding: 40px 20px;
    }

    /* Gallery: 1 column on mobile */
    .modal-gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-title {
        font-size: 1.8rem;
    }

    .project-details-meta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .drawer-side-panel {
        width: 100%;
        right: -100%;
    }

    .drawer-hero-view {
        display: none;
        /* Hide background image on mobile for focus */
    }

    .drawer-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .drawer-content {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    /* No specific mobile-header-social styles needed here,
       as they are handled by default or smaller breakpoints */
}

@media (max-width: 480px) {
    .mobile-header {
        height: 60px;
        padding: 0 15px;
    }

    .sidebar {
        top: 60px;
    }

    .main-content {
        padding-top: 90px;
    }

    .project-card {
        aspect-ratio: 1/1;
    }

    /* Shrink social icons slightly on very small screens */
    .mobile-header-social {
        gap: 8px;
        margin-right: 10px;
    }

    .mobile-social-link {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }
}

/* Mobile Back Button */
.mobile-back-btn {
    display: none;
    background: none;
    border: none;
    color: #888;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 0;
    margin-bottom: 20px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .mobile-back-btn {
        display: flex;
    }
}

/* Mobile Landing Section Styles */
.mobile-only-section {
    display: none;
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
        background: #fff;
        justify-content: center;
    }

    .mobile-logo-link {
        margin: 0 auto;
    }

    .hamburger-btn {
        display: none !important;
    }

    .sidebar {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 0;
    }

    /* Mobile Landing Portal - The actual homepage on mobile */
    .mobile-only-section.active {
        display: block !important;
    }

    #mobile-landing {
        background: #fff;
        min-height: 100vh;
        z-index: 5000;
    }

    .mobile-landing-container {
        padding: 10px 30px 40px;
        display: flex;
        flex-direction: column;
    }

    .mobile-landing-header {
        margin-bottom: 40px;
    }

    .mobile-landing-logo {
        height: 85px;
        width: auto;
        margin-bottom: 25px;
    }

    .mobile-landing-title {
        font-size: 1.8rem;
        font-weight: 800;
        color: #000;
        margin-bottom: 10px;
    }

    .mobile-landing-tagline {
        font-size: 0.95rem;
        color: #888;
        line-height: 1.4;
    }

    .mobile-landing-nav {
        margin-bottom: 60px;
    }

    .mobile-nav-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mobile-landing-link {
        font-size: 1.3rem;
        font-weight: 500;
        color: #000;
        text-decoration: none;
    }

    .mobile-landing-footer {
        margin-top: auto;
        padding-top: 40px;
        border-top: 1px solid #f0f0f0;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .mobile-landing-phone-text {
        font-size: 1.5rem;
        font-weight: 700;
        color: #000;
        text-decoration: none;
    }

    .mobile-landing-socials-row {
        display: flex;
        gap: 35px;
        align-items: center;
    }

    .mobile-landing-socials-row a {
        font-size: 1.8rem;
        color: #444;
        transition: color 0.2s ease;
    }

    .mobile-landing-socials-row a:hover {
        color: #000;
    }

    /* Section content (Galleries) */
    .content-section {
        display: none;
        padding: 50px 20px 20px;
    }

    .content-section.active {
        display: block;
    }

    .section-label {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Fixed header logo should only show when not on landing */
    body:has(#mobile-landing.active) .mobile-header {
        display: none;
    }
}