
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
    margin: 0;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

.container { width: min(1100px, 92%); margin: 0 auto; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid;
    padding: 1rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo {
    display: flex; align-items: center; gap: .8rem; text-decoration: none;
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px;
}
.logo-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}

/* Navigation */
.nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover:not(.btn) { }
.nav a.active { border-bottom: 2px solid; }

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 30;
}

.nav-toggle .bar {
    width: 2rem;
    height: 0.25rem;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        border-bottom: 1px solid;
        padding: 1rem 0;
        display: none;
    }

    .nav.is-open {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav a.active {
        border-bottom: none;
        font-weight: 700;
    }

    /* Hamburger Animation */
    .nav-toggle.is-active .bar:nth-child(1) {
        transform: rotate(45deg);
    }

    .nav-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-active .bar:nth-child(3) {
        transform: rotate(-45deg);
    }
}

/* Forms */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-row input, 
.form-row textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-row input:focus, 
.form-row textarea:focus {
    outline: none;
}

.hp-field {
    display: none;
}

.form-actions {
    margin-top: 2rem;
}

.form-actions .btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.contact-info {
    margin-top: 3rem;
    text-align: center;
}

.contact-info a {
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Hero */
.hero { padding: 6rem 0; text-align: center; }
.hero-logo { margin-bottom: 2rem; display: flex; justify-content: center; }
.hero-logo-icon { width: 400px; height: 400px; max-width: 90%; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; }
.hero p { max-width: 600px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* Sections */
.section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.section-title p { }

/* About Us */
.about-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.about-image {
    flex: 1;
    max-width: 400px;
}
.about-image img {
    width: 100%;
    border-radius: 12px;
}
.about-content {
    flex: 1.5;
}
.about-content p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}
@media (max-width: 768px) {
    .about-inner {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .about-content .section-title {
        text-align: center !important;
    }
}

/* Product Grid */
.portfolio-group {
    margin-bottom: 4rem;
    scroll-margin-top: 140px;
}
.group-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
    display: inline-block;
}
.empty-message {
    font-style: italic;
    grid-column: 1 / -1;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}
/* Breadcrumbs */
.breadcrumbs { margin-bottom: 1rem; }
.breadcrumbs ol {
    list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin: 0; padding: 0; font-size: 0.85rem;
}
.breadcrumbs li + li::before { content: '/'; margin-right: 0.5rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { }
.breadcrumbs li[aria-current="page"] { font-weight: 500; }

/* Portfolio category filter/jump bar */
.portfolio-filter {
    position: sticky; top: 88px; z-index: 15;
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    padding: 0.75rem 1rem; margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid;
    border-radius: 12px;
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* Boost contrast once the bar sticks while scrolling */
.portfolio-filter.is-stuck {
}
/* Fuzzy/blurred fade above the bar so content softens as it scrolls up */
.portfolio-filter::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 60px;
    pointer-events: none;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    -webkit-mask-image: linear-gradient(to top, #000, transparent);
    mask-image: linear-gradient(to top, #000, transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.portfolio-filter.is-stuck::before {
    opacity: 1;
}
.portfolio-filter a {
    text-decoration: none; font-weight: 600;
    font-size: 0.9rem; padding: 0.4rem 0.9rem; border-radius: 999px;
    border: 1px solid; transition: all 0.2s ease;
}
.portfolio-filter.is-stuck a { }
.portfolio-filter a:hover { }

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
.product-card {
    border: 1px solid;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: zoom-in;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}
.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
}
.product-card:hover .product-image::after {
    opacity: 0.2;
}
.product-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-image img {
    transform: scale(1.08);
}
.product-info { padding: 0.8rem; }
.product-info h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.product-info p { margin: 0; font-size: 0.8rem; }

/* Image Modal */
dialog.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 1000;
    border: none;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
dialog.modal[open] {
    opacity: 1;
    visibility: visible;
    display: grid;
}
dialog.modal::backdrop {
    background: rgba(0, 0, 0, 0.8);
}
.modal-backdrop {
    position: absolute;
    inset: 0;
}
.modal-dialog {
    position: relative;
    border: 1px solid;
    border-radius: 12px;
    padding: 0.5rem;
    width: fit-content;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.modal-dialog img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    max-height: 80vh;
}
.modal-caption {
    margin: 0.5rem 0.25rem 0;
    font-weight: 500;
    text-align: center;
}
.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
}
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.modal-nav:hover { }
.modal-prev { left: 0.5rem; }
.modal-next { right: 0.5rem; }
body.modal-open {
    overflow: hidden;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
    z-index: 900;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { }

/* Footer */
.site-footer {
    padding: 4rem 0; border-top: 1px solid;
    text-align: center;
}
.footer-info p {
    margin: 0.5rem 0;
}
.footer-info strong {
}
.footer-social { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.footer-social a { font-size: 1.5rem; text-decoration: none; }
.footer-social a:hover { }

.footer-logo { margin-bottom: 1.5rem; display: flex; justify-content: center; }
.footer-logo-icon { width: 60px; height: 60px; }

.btn {
    display: inline-block; padding: 0.6rem 1.4rem; border-radius: 8px;
    font-weight: 600; text-decoration: none; transition: all 0.2s ease;
    border: none; cursor: pointer;
}
.btn-primary { }
.btn-primary:hover { 
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-secondary {
    background: transparent;
    border: 2px solid;
    padding: calc(0.6rem - 2px) calc(1.4rem - 2px);
}
.btn-secondary:hover {
    transform: translateY(-2px);
}
.btn-secondary:active {
    transform: translateY(0);
}

/* Hero actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* About highlights */
.about-highlights {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.about-highlights li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}
.about-icon { font-size: 1.3rem; line-height: 1; }

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 0;
}
.cta-section p {
    margin-bottom: 2rem;
}
.cta-section .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
}

.about-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.nav .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

