/* SGKA Theme Main Stylesheet */
/* Combined CSS from index.html, projects.html, and project-detail.html */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background-color: #ffffff;
    font-weight: 300;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* All headers and titles use Roboto Bold */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

/* Main Layout - Sidebar + Content */
.main-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    min-width: 280px;
    background-color: #ffffff;
    border-right: 1px solid #e5e5e5;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 100;
    padding: 60px 40px;
}

.sidebar-brand {
    font-size: 14px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: #1a1a1a;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar-logo {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block !important;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.sidebar-brand-text {
    display: inline-block;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 25px;
}

.sidebar-nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    display: block;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: #666;
}

.sidebar-info {
    position: absolute;
    bottom: 60px;
    left: 40px;
    right: 40px;
    font-size: 12px;
    color: #999;
    line-height: 1.8;
}

.sidebar-info a {
    color: #1a1a1a;
    text-decoration: none;
}

.sidebar-social {
    position: absolute;
    bottom: 60px;
    left: 40px;
    right: 40px;
}

.sidebar-social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.sidebar-social-icon {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidebar-social-icon:hover {
    color: #1a1a1a;
}

.sidebar-social-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px;
    width: calc(100% - 280px);
    max-width: calc(100% - 280px);
    overflow-x: hidden;
    min-width: 0; /* Prevent flex item from overflowing */
    box-sizing: border-box;
}

/* Hide sidebar and make content full width on detail pages */
body.no-sidebar .sidebar {
    display: none !important;
}

body.no-sidebar .main-content {
    margin-left: 0 !important;
    width: 100% !important;
}

body.no-sidebar .main-wrapper {
    display: block;
}

body.no-sidebar .mobile-navbar {
    display: none !important;
}

/* Home Section */
.home-section {
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero {
    width: 100%;
    height: 100vh;
    position: relative;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-content {
    text-align: center;
    padding: 60px;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.home-hero-title {
    font-size: 48px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.2;
}

.home-hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 50px;
}

.home-featured-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Projects Section */
.projects-section {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.projects-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
}

.projects-container::-webkit-scrollbar {
    display: none;
}

.projects-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Projects Grid (for archive page) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 50vh;
    gap: 0;
}

/* Navigation Buttons */
.project-nav-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100vh;
    width: 80px;
    z-index: 30;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    color: #1a1a1a;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    pointer-events: auto;
}

.project-nav-btn.prev {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.773));
    left: 0;
}

.project-nav-btn.next {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.773));
    right: 0;
}

.project-nav-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.project-nav-btn-text {
    font-size: 13px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.project-nav-btn-arrow {
    font-size: 18px;
    line-height: 1;
}

/* Ensure buttons have visible background even when transparent */
.project-nav-btn.prev:not(.hidden) {
    background-color: transparent;
}

.project-nav-btn.prev:hover {
    background: linear-gradient(to right, rgb(4, 4, 4), rgba(0, 0, 0, 0.773));
    color: #ffffff;
}

.project-nav-btn.next:hover {
    background: linear-gradient(to left, rgb(4, 4, 4), rgba(0, 0, 0, 0.773));
    color: #ffffff;
}

.project-nav-btn.hidden {
    display: none !important;
}

/* Ensure buttons are visible by default */
.project-nav-btn:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* All Projects button mode */
.project-nav-btn.all-projects-mode {
    font-size: 12px;
    width: 120px;
    padding: 0 15px;
    letter-spacing: 0.1em;
    text-align: center;
}

.project-nav-btn.all-projects-mode .all-projects-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.project-nav-btn.all-projects-mode .arrow-icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.all-projects-link {
    width: calc((100vw - 280px) / 3);
    min-width: calc((100vw - 280px) / 3);
    flex-shrink: 0;
    scroll-snap-align: start;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    text-decoration: none;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #e5e5e5;
}

.all-projects-link:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.all-projects-link-text {
    font-size: 13px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 15px 40px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.all-projects-link-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.all-projects-link:hover .all-projects-link-text {
    color: #ffffff;
}

.all-projects-link:hover .all-projects-link-arrow {
    transform: translateX(5px);
}

.all-projects-link.mobile-view {
    display: none !important;
}

.project-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #f5f5f5;
    width: calc((100vw - 280px) / 3);
    min-width: calc((100vw - 280px) / 3);
    flex-shrink: 0;
    color: inherit;
    scroll-snap-align: start;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.project-item:nth-child(3n) {
    border-right: none;
}

.project-item:visited {
    color: inherit;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    font-weight: 300;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-item:hover .project-placeholder {
    transform: scale(1.03);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-item:hover .project-image {
    transform: scale(1.03);
}

.project-info {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #ffffff;
    opacity: 1;
    pointer-events: none;
}

.project-title {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 5px;
    letter-spacing: 0.02em;
}

.project-location {
    font-size: 11px;
    font-weight: 300;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Project sizes - all full height for horizontal scroll */
.project-large,
.project-medium,
.project-small {
    height: 100vh;
}

/* About Section */
.about-section {
    padding: 120px 60px;
    max-width: 800px;
}

.about-title {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
    margin-bottom: 25px;
}

/* Force bold font-weight for strong/b tags in about section */
.about-section .about-text strong,
.about-section .about-text b,
.about-text strong,
.about-text b,
.about-section strong,
.about-section b {
    font-weight: 700 !important;
    font-style: normal !important;
}

/* Contact Section */
.contact-section {
    padding: 120px 60px;
    max-width: 800px;
}

.contact-title {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.contact-info {
    margin-bottom: 50px;
}

.contact-item {
    margin-bottom: 30px;
    font-size: 15px;
    color: #666;
    font-weight: 300;
}

.contact-item strong {
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: #1a1a1a;
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-media-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
    clear: both;
}

.social-link {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.social-link:hover {
    color: #1a1a1a;
}

.social-link svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
    flex-shrink: 0;
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 30px;
}

.form-control {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    padding: 12px 0;
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 300;
    transition: border-color 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-bottom-color: #1a1a1a;
    box-shadow: none;
    outline: none;
}

.form-control::placeholder {
    color: #999;
    font-weight: 300;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.btn-submit:hover {
    background-color: #333;
}

.contact-form-message {
    max-width: 600px;
    margin-bottom: 30px;
    padding: 15px 20px;
    border-left: 3px solid;
    font-size: 15px;
    font-weight: 300;
}

.contact-form-message.success {
    background-color: #f0f9ff;
    border-color: #25c058;
    color: #1a1a1a;
}

.contact-form-message.error {
    background-color: #fff5f5;
    border-color: #e74c3c;
    color: #1a1a1a;
}

.contact-form-message p {
    margin: 0;
}

/* Divider */
.section-divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 0 60px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Mobile Menu Toggle */
/* Mobile Navigation Bar */
.mobile-navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1;
}

.mobile-navbar.show {
    transform: translateY(0);
    opacity: 1;
}

.mobile-navbar.hide {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.mobile-navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 100%;
    box-sizing: border-box;
}

.mobile-navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    flex: 1;
}

.mobile-navbar-logo-img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.mobile-navbar-brand-text {
    display: inline-block;
}

.mobile-navbar-burger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-navbar-burger:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.burger-line {
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-navbar-burger.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-navbar-burger.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-navbar-burger.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Legacy mobile menu toggle - hidden */
.mobile-menu-toggle {
    display: none !important;
}

/* Project Detail Styles */
.project-detail-section {
    padding: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.project-detail-images {
    width: 70%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f5f5f5;
}

.project-detail-images::-webkit-scrollbar {
    display: none;
}

.project-detail-images {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.back-link {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 10;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.project-detail-gallery {
    padding: 0;
}

.project-detail-gallery-item {
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.project-detail-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.project-detail-content {
    width: 40%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 60px;
    background-color: #ffffff;
}

.project-detail-content::-webkit-scrollbar {
    display: none;
}

.project-detail-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.project-detail-header {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

.project-detail-title {
    font-size: 30px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    line-height: 1.2;
}

.project-detail-location {
    font-size: 14px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.project-detail-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
}

.project-detail-specs {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
}

.project-detail-specs strong {
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: #1a1a1a;
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-detail-specs p {
    margin-bottom: 25px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
}

.project-detail-specs span {
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
}

/* Overlay for mobile menu */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .main-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .mobile-navbar {
        display: block;
    }
    
    /* Add padding to main-content to account for navbar */
    .main-content {
        padding-top: 61px !important;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 0 !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .sidebar.open {
        width: 100% !important;
        min-width: 100% !important;
        padding: 80px 30px 30px !important;
    }
    
    /* Hide sidebar brand/logo on mobile */
    .sidebar .sidebar-brand {
        display: none !important;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        box-sizing: border-box !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    .home-hero-title {
        font-size: 36px;
    }

    .home-hero-subtitle {
        font-size: 16px;
    }

    .projects-container {
        height: 100vh;
        width: 100% !important;
        max-width: 100% !important;
    }

    .project-item {
        width: calc(100% / 3) !important;
        min-width: calc(100% / 3) !important;
        max-width: calc(100% / 3) !important;
    }

    .all-projects-link {
        width: calc(100% / 3) !important;
        min-width: calc(100% / 3) !important;
        max-width: calc(100% / 3) !important;
    }

    .project-large,
    .project-medium,
    .project-small {
        height: 100vh;
    }

    .about-section,
    .contact-section {
        padding: 80px 30px;
    }

    .section-divider {
        margin: 0 30px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }

    .project-item:nth-child(3n) {
        border-right: 1px solid #e5e5e5;
    }

    .project-item:nth-child(2n) {
        border-right: none;
    }

    .project-item:nth-child(n+4) {
        border-bottom: 1px solid #e5e5e5;
    }

    .project-item:nth-child(n+5) {
        border-bottom: none;
    }

    .project-detail-hero {
        height: 70vh;
    }

    .project-detail-content {
        padding: 80px 30px;
    }

    .project-detail-title {
        font-size: 36px;
    }

    .project-detail-info {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .back-link {
        top: 20px;
        left: 20px;
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    html {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        -webkit-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
    }
    
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .sidebar {
        width: 0 !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .sidebar.open {
        width: 100% !important;
        min-width: 100% !important;
        padding: 80px 30px 30px !important;
    }
    
    /* Hide sidebar brand/logo on mobile */
    .sidebar .sidebar-brand {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 61px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        box-sizing: border-box !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    .sidebar:not(.open) {
        width: 0 !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .sidebar.open {
        width: 100% !important;
        min-width: 100% !important;
        padding: 80px 30px 30px !important;
    }

    .home-hero-content {
        padding: 40px 30px;
    }

    .home-hero-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .home-hero-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .about-title,
    .contact-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .about-text {
        font-size: 15px;
    }

    /* Change projects section to vertical rows on mobile */
    /* Change projects section to vertical grid on mobile (like projects-grid) */
    .projects-section {
        min-height: auto !important;
        height: auto !important;
        padding: 40px 0 !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        touch-action: pan-y !important;
        position: relative !important;
    }

    .projects-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-rows: 50vh !important;
        gap: 0 !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        height: auto !important;
        scroll-snap-type: none !important;
    }

    /* Hide navigation buttons on mobile */
    .project-nav-btn {
        display: none !important;
    }

    .project-item {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e5e5e5 !important;
        position: relative !important;
    }

    .project-item:last-child:not(.all-projects-link) {
        border-bottom: none !important;
    }

    .project-image {
        height: 100% !important;
        object-fit: cover !important;
    }

    .all-projects-link {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 80px !important;
        margin-top: 0 !important;
        border: none !important;
        border-top: 1px solid #e5e5e5 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #e5e5e5 !important;
    }
    
    .all-projects-link:hover {
        background-color: #f5f5f5 !important;
        color: #1a1a1a !important;
    }
    
    .all-projects-link-text {
        padding: 20px 40px !important;
        font-size: 14px !important;
    }

    .all-projects-link-text {
        padding: 12px 30px;
        font-size: 12px;
    }

    .all-projects-link.mobile-view {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #e5e5e5 !important;
        border: none !important;
        border-top: 1px solid #e5e5e5 !important;
    }

    .project-info {
        opacity: 1;
        bottom: 20px;
        left: 20px;
        transform: none;
        text-align: left;
    }

    .project-title {
        font-size: 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        height: auto;
        min-height: 100vh;
    }

    .project-item {
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        height: 50vh;
    }

    .project-item:last-child {
        border-bottom: none;
    }

    .project-detail-hero {
        height: 60vh;
    }

    .project-detail-content {
        padding: 60px 20px;
    }

    .project-detail-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .project-detail-location {
        font-size: 12px;
    }

    .project-detail-description,
    .project-detail-specs {
        font-size: 15px;
    }

    .back-link {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Mobile: Change project detail layout to vertical (images top, details bottom) */
    .project-detail-section {
        flex-direction: column !important;
        height: auto !important;
        overflow: visible !important;
    }

    .project-detail-images {
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        order: 1;
    }

    .project-detail-gallery {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 20px !important;
    }

    .project-detail-gallery-item {
        width: 100% !important;
        margin-bottom: 0 !important;
        aspect-ratio: 1;
        overflow: hidden;
        border-radius: 4px;
    }

    .project-detail-gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: transform 0.3s ease;
    }

    .project-detail-gallery-item img:hover {
        transform: scale(1.05);
    }

    .project-detail-content {
        width: 100% !important;
        height: auto !important;
        order: 2;
        padding: 40px 20px !important;
    }

    .gallery-image-clickable {
        cursor: pointer;
    }
}

/* Image Popup Modal Styles */
.image-popup-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-popup-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-popup-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: color 0.3s ease;
}

.image-popup-close:hover,
.image-popup-close:focus {
    color: #ffffff;
}

.image-popup-prev,
.image-popup-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: #f1f1f1;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 10001;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.3);
}

.image-popup-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.image-popup-prev {
    left: 0;
}

.image-popup-prev:hover,
.image-popup-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

@media (max-width: 768px) {
    .image-popup-content {
        max-width: 98%;
        max-height: 90vh;
    }

    .image-popup-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }

    .image-popup-prev,
    .image-popup-next {
        padding: 12px;
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    .sidebar-overlay.active {
        display: block;
    }
    
    /* Force main-content to full width on mobile */
    .main-wrapper .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Additional mobile-specific override */
@media screen and (max-width: 768px) {
    html body .main-wrapper .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* Ensure strong/b tags in about-text use bold font-weight - added at end for priority */
section#about .about-text > strong,
section#about .about-text strong,
.about-section .about-text strong,
.about-section .about-text > strong,
.about-text > strong,
.about-text strong,
.about-section .about-text > b,
.about-section .about-text b,
.about-text > b,
.about-text b {
    font-weight: 700 !important;
}
