/* css/style.css (Definitive, Final, and Complete Version) */

/* --- 1. Global Settings & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #007aff;
    --secondary-color: #ff9500;
    --accent-color-bright: #34c759;

    --text-primary: #1c1c1e;
    --text-secondary: #636366;
    --bg-main: #ffffff;
    --bg-app: #ffffff;
    --bg-hero-gradient-start: #f0f4ff;
    --bg-hero-gradient-end: #d9e7ff;
    --bg-card: #ffffff;
    --separator-color: #e5e5e5; /* A light gray for borders/separators */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --header-height-actual: 65px;
    --bottom-nav-height: 65px;
    --sidebar-width: 290px;
    --card-radius: 16px; /* Slightly reduced for a sharper look */
    --transition-speed: 0.3s; /* Consistent transition speed */
    --category-slider-gap: 1rem;
    /* RGB version of primary for use in rgba() box shadows etc. */
    --primary-rgb: 0, 122, 255;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-size: 16px; /* Base font size */
}

/* --- 2. App Shell Wrapper --- */
.app-container {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-app);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--bottom-nav-height);
}

main {
    flex-grow: 1;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.section {
    padding: 2.5rem 0;
}
.container.section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

/* --- 3. Header & Navigation --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    height: var(--header-height-actual);
    width: 100%;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

@media (min-width: 768px) {
    .main-header {
        display: block;
        position: sticky;
        top: 0;
    }
    .app-container > main {
         padding-top: var(--header-height-actual);
    }
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
}
.main-nav ul { list-style: none; display: flex; gap: 0.5rem; }
.main-nav a {
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.08);
}

/* --- Bottom Navigation Bar --- */
.bottom-nav-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(248, 248, 248, 0.92);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--separator-color);
    display: flex; justify-content: space-around;
    z-index: 1001;
}
.bottom-nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-grow: 1; color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease; }
.bottom-nav-link.active { color: var(--primary-color); }
.bottom-nav-link svg { width: 26px; height: 26px; margin-bottom: 3px; }
.bottom-nav-link span { font-size: 0.7rem; font-weight: 500; }

@media (min-width: 768px) {
    .bottom-nav-bar { display: none; }
    .app-container { padding-bottom: 0; }
}

.main-footer {
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-secondary);
    background-color: var(--bg-app);
    border-top: 1px solid var(--separator-color);
}

/* --- 4. Homepage Components --- */

/* Hero Section Enhancement */
.hero-section-wrapper {
    padding: 3rem 0 4rem 0;
    background: linear-gradient(145deg, var(--bg-hero-gradient-start), var(--bg-hero-gradient-end));
    overflow: hidden;
}
.hero-container-constrained {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}
.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.hero-text-content {
    padding: 1rem 0;
    text-align: center;
    max-width: 550px;
    order: 2;
}
.hero-model-container {
    width: 100%;
    max-width: 380px;
    height: 280px;
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    order: 1;
    background-color: transparent;
}
.hero-model-container model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
    border-radius: var(--card-radius);
}
.model-placeholder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(224, 224, 224, 0.5);
    color: var(--text-secondary);
    font-size: 0.9rem;
    z-index: 1;
    border-radius: var(--card-radius);
}

@media (min-width: 768px) { /* Hero Animation Base Styles (Desktop) */
    .hero-layout {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 3rem;
    }
    .hero-text-content {
        text-align: left;
        flex: 1 1 58%;
        padding-right: 2rem;
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        order: 1;
    }
    .hero-text-content.animate-in {
        opacity: 1;
        transform: translateX(0);
    }

    .hero-text-content > * {
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.5s ease-out 0.3s, transform 0.5s ease-out 0.3s;
    }
    .hero-text-content.animate-in > * {
        opacity: 1;
        transform: translateY(0);
    }
    .hero-text-content.animate-in > #dynamic-greeting { transition-delay: 0.4s; }
    .hero-text-content.animate-in > #dynamic-message { transition-delay: 0.5s; }
    .hero-text-content.animate-in > h1 { transition-delay: 0.6s; }
    .hero-text-content.animate-in > .hero-subtext { transition-delay: 0.7s; }
    .hero-text-content.animate-in > .hero-cta { transition-delay: 0.8s; }

    .hero-model-container {
        flex: 1 1 38%;
        height: 420px;
        max-width: 480px;
        opacity: 0;
        transform: scale(0.9) translateX(20px);
        transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
        order: 2;
    }
     .hero-model-container.animate-in {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

#dynamic-greeting {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}
.dynamic-message-hero {
    font-size: 1.05rem;
    color: var(--text-secondary);
    min-height: 1.5em;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease-in-out;
    position: relative;
}
.dynamic-message-hero::after {
    content: '|';
    font-weight: bold;
    animation: blink 1s step-end infinite;
    opacity: 1;
}
.dynamic-message-hero.typing-cursor-hidden::after {
    opacity: 0;
    animation: none;
}
@keyframes blink {
    from, to { color: transparent; }
    50% { color: var(--text-secondary); }
}
.dynamic-message-hero.fade-out {
    opacity: 0;
}

.hero-layout h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0.25rem 0 1rem 0;
    color: var(--text-primary);
}
.hero-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-inline: auto;
    line-height: 1.7;
}
.hero-cta {
    display: none; /* CTA button for hero currently hidden */
}

/* Category Slider on Homepage */
.category-slider-wrapper {
    width: 100%;
}
.category-slider {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--category-slider-gap);
    padding: 0.5rem 0; /* Use parent .container for side padding */
}
.category-slider::-webkit-scrollbar { display: none; }
.icon-category-card {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc((100% - (6 * var(--category-slider-gap))) / 7); /* Aim for ~7 items on desktop */
    min-width: 90px;
    text-decoration: none;
    color: var(--text-primary);
    text-align: center;
}
.icon-category-card .icon-wrapper { background-color: #fff; border-radius: 18px; height: 75px; width: 75px; margin: 0 auto 0.5rem auto; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; }
.icon-category-card:hover .icon-wrapper { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.icon-category-card img { width: 36px; height: 36px; }
.icon-category-card span { font-size: 0.8rem; font-weight: 500; }

/* Client Work Gallery on Homepage */
.clients-grid {
    column-count: 2;
    column-gap: 1rem;
}
.grid-item { margin-bottom: 1rem; break-inside: avoid; position: relative; }
.grid-item img {
    width: 100%;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.grid-item img:hover { transform: scale(1.03); }

/* Lightbox Modal (used for client work images) */
.lightbox-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: transparent;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox-modal.visible { display: flex; }
.lightbox-content {
    position: relative;
    width: auto;
    height: auto;
    max-width: calc(100% - 4rem);
    max-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.lightbox-close {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(0,0,0,0.5);
    border: none; border-radius: 50%; width: 44px; height: 44px;
    font-size: 1.5rem; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s 0.2s;
    z-index: 1;
}
@starting-style {
    .lightbox-modal.visible { background: transparent; }
    .lightbox-modal.visible .lightbox-close { opacity: 0; }
}
::view-transition-old(unique-lightbox-image),
::view-transition-new(unique-lightbox-image) {
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox-modal.visible {
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.4s, backdrop-filter 0.4s;
}
.lightbox-modal.visible .lightbox-close { opacity: 1; }

/* Logo Carousel on Homepage */
.logo-carousel-section {
    padding: 3rem 0;
    background-color: #f9f9fb;
    margin: 3rem 0;
    overflow: hidden;
    border-top: 1px solid var(--separator-color);
    border-bottom: 1px solid var(--separator-color);
}
.logo-carousel-constrained {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}
.logo-slider { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
@keyframes scroll-logos { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-180px * var(--logo-count))); } }
.logo-slider-track { display: flex; width: calc(180px * 2 * var(--logo-count)); animation: scroll-logos 40s linear infinite; }
.logo-item { flex: 0 0 180px; display: flex; align-items: center; justify-content: center; }
.logo-item img { max-width: 120px; height: auto; filter: grayscale(100%); opacity: 0.6; transition: all 0.3s ease; }
.logo-slider-track:hover { animation-play-state: paused; }
.logo-item:hover img { filter: grayscale(0%); opacity: 1; }

/* Blog Grid on Homepage */
.blog-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
.blog-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.blog-card img.blog-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--separator-color);
}
.blog-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-content h4.blog-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}
.blog-card-content p.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.blog-card-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--separator-color);
    opacity: 0.8;
}

/* PDF Download Section on Homepage */
.pdf-section { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: #fff; padding: 3rem 1.5rem; border-radius: 24px; margin: 1rem 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pdf-section .pdf-preview-img { width: 100%; max-width: 200px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); margin-bottom: 2rem; border: 3px solid #fff; }
.pdf-section h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.75rem; }
.pdf-section p { color: rgba(255,255,255,0.8); max-width: 500px; margin-bottom: 2rem; }
.pdf-buttons { display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 300px; }
.btn { display: block; width: 100%; padding: 14px; background: var(--primary-color); color: white; text-align: center; border: none; border-radius: 12px; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; transition: all 0.2s ease; }
.btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn.secondary { background: rgba(255,255,255,0.2); color: #fff; }
.btn.secondary:hover { background: rgba(255,255,255,0.3); }


/* --- 5. AR Experience Page (ARexp-*.html) --- */
@keyframes peek-and-settle { 0% { transform: translateX(-120%) scale(0.9); opacity: 0; } 60%, 80% { transform: translateX(20px) scale(1); opacity: 1; } 100% { transform: translateX(0) scale(1); opacity: 1; } }
.sidebar-toggle-btn {
    position: fixed;
    left: 1rem;
    top: 1.5rem;
    z-index: 2005;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary); width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid var(--separator-color);
    transform: translateX(-120%); opacity: 0;
}
.sidebar-toggle-btn.animate-in { animation: peek-and-settle 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
.ar-sidebar { position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh; background-color: var(--bg-main); z-index: 2100; padding: 1.5rem; box-shadow: 5px 0 25px rgba(0,0,0,0.1); transform: translateX(-100%); transition: transform var(--transition-speed) ease-in-out; display: flex; flex-direction: column; }
.ar-sidebar.open { transform: translateX(0); }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--separator-color); }
.sidebar-header h3 { font-size: 1.25rem; }
.sidebar-close-btn { font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--text-secondary); }
.sidebar-nav { flex-grow: 1; overflow-y: auto; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav li a { display: block; padding: 0.9rem 1rem; border-radius: 10px; font-weight: 500; text-decoration: none; color: var(--text-primary); transition: background-color 0.2s ease; }
.sidebar-nav li a:hover { background-color: rgba(var(--primary-rgb), 0.05); }

.ar-main-content { padding: 1rem 0; }
.ar-main-content .section-title { margin-top: 0; }
.product-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; } /* Base: 1 column */

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--card-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-card model-viewer {
    width: 100%;
    height: 320px;
    border-bottom: 1px solid var(--separator-color);
    --poster-color: #f5f5f7;
    background-color: #f9f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Custom progress bar for model-viewer in product cards */
.product-card model-viewer div[slot="progress-bar"].mv-progress-bar {
    display: block; position: absolute; bottom: 0; left: 0; width: 100%;
    height: 3px; background-color: rgba(0,0,0,0.1); overflow: hidden;
}
.product-card model-viewer div[slot="progress-bar"].mv-progress-bar .mv-progress-bar__bar {
    display: block; width: 0%; height: 100%; background-color: var(--primary-color); transition: width 0.3s ease;
}

.product-info { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; margin-bottom: 0.75rem; }
.product-header h4 { font-size: 1.25rem; font-weight: 600; margin-right: 0.5rem; }
.description-toggle-icon { font-size: 1.5rem; color: var(--text-secondary); transition: transform var(--transition-speed) ease; flex-shrink: 0; }
.description-content.visible ~ .product-header .description-toggle-icon { transform: rotate(45deg); }
.description-content { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out, padding-bottom 0.5s ease-in-out, margin-bottom 0.5s ease-in-out; margin-bottom: 0; padding-bottom: 0; }
.description-content.visible { max-height: 200px; /* Adjust as needed */ padding-bottom: 1rem; margin-bottom: 1rem; }
.product-actions { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--separator-color); }
.color-swatches { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.swatches-container { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; box-shadow: 0 0 0 1px var(--separator-color) inset; transition: all 0.2s; }
.swatch.active { border-color: var(--primary-color); box-shadow: 0 0 0 1px var(--primary-color) inset, 0 0 5px var(--primary-color); }

/* --- 6. Fullscreen Modal (for 3D/AR Product Preview from ARexp page) --- */
body.modal-open { overflow: hidden; }
.fullscreen-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 3000; display: none; flex-direction: column; padding: 1rem; }
.fullscreen-modal.visible { display: flex; }
.modal-content { width: 100%; height: 100%; display: flex; flex-direction: column; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; color: white; }
.modal-title { font-size: 1.2rem; font-weight: 600; }
.modal-close-btn { font-size: 2rem; background: none; border: none; color: white; cursor: pointer; line-height: 1; }
#modal-viewer-container { flex-grow: 1; width: 100%; border-radius: var(--card-radius); overflow: hidden; }
#modal-viewer-container model-viewer { width: 100%; height: 100%; }
.modal-footer { padding-top: 1.5rem; text-align: center; }
#modal-launch-ar-btn { background-color: var(--accent-color-bright); }

/* --- 7. Responsive Design & Desktop Polish --- */
@media (max-width: 767px) {
    body { font-size: 15px; } /* Slightly smaller base font for mobile */

    .main-header { display: none !important; }
    .app-container > main { padding-top: 0; }

    .section { padding: 1.5rem 0; }
    .container.section { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .section-title { font-size: 1.2rem; margin-bottom: 1.25rem; }

    .btn { padding: 12px 20px; font-size: 0.9rem; border-radius: 10px; }

    /* Hero Section */
    .hero-section-wrapper { padding: 1.5rem 0 2rem 0; }
    .hero-layout { gap: 1.5rem; }
    .hero-text-content { padding: 0.5rem 0; }
    #dynamic-greeting { font-size: 1rem; margin-bottom: 0.25rem; }
    .dynamic-message-hero { font-size: 0.9rem; margin-bottom: 0.75rem; min-height: 1.3em; }
    .hero-layout h1 { font-size: 1.75rem; margin: 0.15rem 0 0.75rem 0; }
    .hero-subtext { font-size: 0.9rem; }
    .hero-model-container { height: 220px; max-width: 300px; }

    /* Category Slider on Homepage */
    .icon-category-card {
        flex-basis: calc((100% - (3 * var(--category-slider-gap))) / 4.5); /* Aim for ~4.5 items visible */
        min-width: 65px;
    }
    .icon-category-card .icon-wrapper { height: 65px; width: 65px; }
    .icon-category-card img { width: 30px; height: 30px; }
    .icon-category-card span { font-size: 0.75rem; }

    /* Client Work Gallery on Homepage */
    .clients-grid {
        column-count: 2;
        gap: 0.75rem;
    }
    .grid-item { margin-bottom: 0.75rem; }
    .lightbox-modal { padding: 1rem; } /* Keep this specific padding for lightbox */
    .lightbox-content { max-width: calc(100% - 2rem); max-height: calc(100vh - 2rem); }
    .lightbox-close { width: 36px; height: 36px; font-size: 1.25rem; top: 0.75rem; right: 0.75rem; }

    /* Logo Carousel */
    .logo-carousel-section { padding: 2rem 0; margin: 2rem 0; }
    .logo-item img { max-width: 90px; opacity: 0.7; }

    /* General Blog Card Styles for Mobile (if not overridden by #home-page) */
    .blog-card-content { padding: 1rem; }
    .blog-card-content h4.blog-card-title { font-size: 1rem; margin-bottom: 0.4rem; }
    .blog-card-content p.blog-card-excerpt { font-size: 0.85rem; margin-bottom: 0.75rem; -webkit-line-clamp: 3; }
    .blog-card-meta { font-size: 0.7rem; padding-top: 0.4rem; }

    /* Homepage Blog Grid: 2x2 on mobile (Overrides general blog card styles) */
    #home-page .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    #home-page .blog-card img.blog-card-image { height: 120px; }
    #home-page .blog-card-content { padding: 0.75rem; }
    #home-page .blog-card-content h4.blog-card-title { font-size: 0.9rem; -webkit-line-clamp: 2; margin-bottom: 0.3rem; }
    #home-page .blog-card-content p.blog-card-excerpt { font-size: 0.8rem; -webkit-line-clamp: 2; margin-bottom: 0.5rem; }
    #home-page .blog-card-meta { font-size: 0.7rem; padding-top: 0.3rem; }

    /* PDF Download Section */
    .pdf-section { padding: 2rem 1rem; margin: 1.5rem 0; }
    .pdf-section .pdf-preview-img { margin-bottom: 1.5rem; max-width: 160px; }
    .pdf-section h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
    .pdf-section p { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .pdf-buttons { gap: 0.75rem; max-width: 280px; }

    /* AR Experience Page Specifics */
    .sidebar-toggle-btn { width: 44px; height: 44px; left: 0.75rem; top: 1rem; }
    .ar-sidebar { padding: 1.25rem 1rem; --sidebar-width: 260px; } /* Update sidebar width for mobile */
    .sidebar-header { margin-bottom: 0.75rem; padding-bottom: 0.75rem; }
    .sidebar-header h3 { font-size: 1.1rem; }
    .sidebar-close-btn { font-size: 1.3rem; }
    .sidebar-nav li a { padding: 0.7rem 0.8rem; font-size: 0.9rem; }

    .ar-main-content { padding: 0.75rem 0; }
    .ar-main-content .section-title { font-size: 1.5rem; margin-bottom: 1rem; }

    .product-grid { gap: 1rem; }
    .product-card model-viewer { height: 280px; }
    .product-info { padding: 1rem; }
    .product-header { margin-bottom: 0.5rem; }
    .product-header h4 { font-size: 1.1rem; }
    .description-toggle-icon { font-size: 1.3rem; }
    .description-content { font-size: 0.85rem; }
    .description-content.visible { padding-bottom: 0.75rem; margin-bottom: 0.75rem; max-height: 150px; }
    .product-actions { padding-top: 0.75rem; }
    .color-swatches { gap: 0.5rem; margin-bottom: 0.75rem; }
    .swatches-container { gap: 0.5rem; }
    .swatch { width: 24px; height: 24px; border-width: 2px; }

    /* Fullscreen Modal */
    .fullscreen-modal { padding: 0.75rem; }
    .modal-header { padding-bottom: 0.75rem; }
    .modal-title { font-size: 1.1rem; }
    .modal-close-btn { font-size: 1.8rem; }
    .modal-footer { padding-top: 1rem; }

    /* Footer */
    .main-footer { padding: 1.5rem 0; font-size: 0.85rem; }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .app-container > main {
        padding-top: var(--header-height-actual);
    }
    body.ar-page .sidebar-toggle-btn {
        top: calc(var(--header-height-actual) + 1.5rem);
    }

    .clients-grid { column-count: 3; } /* Homepage gallery */
    #home-page .blog-grid { grid-template-columns: repeat(2, 1fr); } /* Homepage blog - 2 columns on tablet */
    #home-page .blog-card img.blog-card-image { height: 180px; } /* Restore image height */
    #home-page .blog-card-content h4.blog-card-title { font-size: 1.1rem; -webkit-line-clamp: 3;}
    #home-page .blog-card-content p.blog-card-excerpt { font-size: 0.9rem; -webkit-line-clamp: 3;}


    .pdf-section { flex-direction: row; align-items: center; text-align: left; }
    .pdf-preview-text { text-align: left; margin-left: 2rem; }
    .pdf-buttons { flex-direction: row; width: auto; margin-left: auto; }

    .product-grid { grid-template-columns: repeat(2, 1fr); } /* ARexp page products */
}

@media (min-width: 1024px) {
    .section-title { font-size: 2.2rem; }
    .hero-layout h1 { font-size: 3.2rem; }
    .hero-subtext { font-size: 1.05rem; }

    .clients-grid { column-count: 4; } /* Homepage gallery */
    #home-page .blog-grid { grid-template-columns: repeat(4, 1fr); } /* Homepage blog - 4 columns */

    .product-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } /* ARexp page products, more flexible */
}

@media (min-width: 1200px) {
    /* .product-grid { grid-template-columns: repeat(3, 1fr); } ARexp page products - auto-fill is often better */
}

/* PDF Page specific styles are in extra.css or profile.css */
/* Category page specific styles are in category.css */
/* Profile page specific styles are in profile.css */
