* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fffcf8;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 300px;
    background-color: #fff8f1;
    padding: 2rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #f0f0f0;
}

.logo-placeholder {
    margin-bottom: 1rem;
}

.logo-mark {
    width: 50px;
    height: 50px;
    background-color: #ce6d06;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ce6d06;
    margin-bottom: 0.5rem;
}

.tagline {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

nav ul {
    list-style: none;
    margin-bottom: 2rem;
}

nav li {
    margin-bottom: 0.5rem;
}

nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    transition: all 0.2s;
    cursor: pointer;
}

nav a:hover,
nav a:active {
    color: #ce6d06;
    font-weight: 600;
}

.nav-subsection {
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.nav-subsection h4 {
    font-size: 0.9rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.product-links {
    list-style: none;
}

.product-links li {
    margin-bottom: 0.25rem;
}

.product-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    display: block;
    transition: all 0.2s;
    cursor: pointer;
}

.product-link:hover,
.product-link:active {
    color: #ce6d06;
    font-weight: 600;
}

.contact-info {
    margin-top: auto;
}

.content {
    flex: 1;
    margin-left: 300px;
    padding: 3rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #222;
    position: relative;
}

.about h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: rgba(206, 109, 6, 0.15);
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #222;
}

p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.1rem;
}

section {
    margin-bottom: 5rem;
    padding: 2rem 0;
}

.about,
.products {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.projects,
.contact {
    background-color: transparent;
    border: none;
    padding: 2rem 0;
    margin-bottom: 5rem;
}

.section-intro {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
}

code {
    background-color: #f4f4f4;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    color: #ce6d06;
    font-weight: 500;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 2rem;
    background-color: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    border-color: #ce6d06;
    box-shadow: 0 4px 12px rgba(206, 109, 6, 0.1);
}

.project-card.light {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #fafafa;
    transition: border-color 0.2s;
}

.project-card.light:hover {
    border-color: #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.product-card h3 {
    margin-bottom: 1rem;
}

.project-card.light h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.tags {
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    background-color: #e8e8e8;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    margin-bottom: 1rem;
    color: #666;
}

.project-card.light p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1rem;
}

.pricing {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #ce6d06;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
    background-color: #b85f05;
    transform: translateY(-1px);
}

.btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn.disabled:hover {
    background-color: #ccc;
    transform: none;
}

.btn-light {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-light:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

.contact-link {
    color: #ce6d06;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #b85f05;
    text-decoration: underline;
}

.updates-link {
    color: #ce6d06;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: inline-block;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.updates-link:hover {
    border-bottom-color: #ce6d06;
}

footer {
    background-color: #fff8f1;
    padding: 2rem 3rem;
    margin-left: 300px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    color: #666;
    font-size: 0.9rem;
}

.footer-link {
    color: #ce6d06;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #b85f05;
    text-decoration: underline;
}

.featured-tag {
    display: inline-block;
    background-color: #ce6d06;
    color: white;
    font-size: 0.7rem;
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.product-media {
    position: relative;
    margin-bottom: 1rem;
}

.product-thumb {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
    object-fit: contain;
    background-color: #f8f8f8;
    max-height: 300px;
}

.video-overlay {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: rgba(206, 109, 6, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.video-overlay:hover {
    background-color: rgba(206, 109, 6, 1);
    text-decoration: none;
    color: white;
}

/* Hide media container if no image loads */
.product-media:has(.product-thumb[style*="display: none"]) {
    display: none;
}

/* Fallback for browsers that don't support :has() */
@supports not selector(:has(*)) {
    .product-thumb[style*="display: none"] + .video-overlay {
        display: none;
    }
    .product-media:empty {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 1.5rem;
    }

    .content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    footer {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    .project-card.light {
        padding: 1.25rem;
    }

    .video-overlay {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    nav {
        display: flex;
    }

    nav ul {
        display: flex;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    nav li {
        margin-bottom: 0;
    }
}

    nav li {
        margin-bottom: 0;
    }

    .about,
    .products {
        padding: 2rem;
        margin-bottom: 4rem;
    }

    .projects,
    .contact {
        padding: 1.5rem 0;
        margin-bottom: 4rem;
    }
}
