/* --- ENTIRE CORE STYLE PROFILE (FOR ALL PAGES) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #0f0f11;
    color: #ffffff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styling - Shared seamlessly across all sub-pages */
.portfolio-header {
    background-color: #141417;
    border-bottom: 1px solid #2a2a30;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left { display: flex; align-items: center; gap: 1rem; }
.logo-container { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.site-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.brand h1 { font-size: 1.5rem; letter-spacing: 1px; text-transform: uppercase; line-height: 1.1; }
.brand p { color: #8a8a93; font-size: 0.8rem; }

.header-nav { display: flex; align-items: center; gap: 2rem; }
.nav-link {
    color: #8a8a93;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: all 0.2s ease;
}
.nav-link:hover, .active-nav { color: #ffffff; border-bottom-color: #ffffff; }

/* Dropdown Accordion Frame Mechanics */
.accordion-wrapper { width: 115px; position: relative; }
.accordion-trigger {
    width: 100%; background: none; border: none; color: #8a8a93; padding: 0.5rem 0;
    font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-weight: 500; font-family: inherit; transition: color 0.2s ease;
}
.accordion-trigger:hover { color: #ffffff; }
.accordion-trigger .arrow { font-size: 0.75rem; transition: transform 0.3s ease; }
.accordion-trigger .arrow.rotated { transform: rotate(180deg); }

.accordion-content {
    position: absolute; top: 130%; right: -40px; width: 200px; max-height: 0;
    overflow: hidden; transition: max-height 0.3s ease-out; display: flex;
    flex-direction: column; background-color: #1a1a1e; border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); border: 0 solid #2a2a30;
}
.accordion-content.open { max-height: 200px; border-width: 1px; }

.category-btn {
    background: none; border: none; color: #8a8a93; padding: 0.75rem 1rem;
    text-align: left; font-size: 0.9rem; cursor: pointer; font-family: inherit; transition: all 0.2s ease;
}
.category-btn:hover { background-color: #24242a; color: #ffffff; padding-left: 1.25rem; }
.category-btn.active { color: #ffffff; font-weight: 600; background-color: #2a2a32; }

/* --- PURE CSS SLIDESHOW BACKGROUND FADE MECHANICS --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 0;
    animation: imageCrossFade 48s linear infinite; /* Total timeline calculation (6s per slide) */
}

/* Calculate overlapping keyframe opacity steps to blend frames beautifully */
.slide-img:nth-child(1) { animation-delay: 0s; }
.slide-img:nth-child(2) { animation-delay: 6s; }
.slide-img:nth-child(3) { animation-delay: 12s; }
.slide-img:nth-child(4) { animation-delay: 18s; }
.slide-img:nth-child(5) { animation-delay: 24s; }
.slide-img:nth-child(6) { animation-delay: 30s; }
.slide-img:nth-child(7) { animation-delay: 36s; }
.slide-img:nth-child(8) { animation-delay: 42s; }

.hero-tint {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; z-index: 5;
    background: radial-gradient(circle, rgba(15,15,17,0.4) 0%, rgba(15,15,17,0.85) 90%);
}

/* Hero Intro Content Container */
.intro-container { position: relative; z-index: 10; text-align: center; max-width: 800px; }
.intro-container h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); text-transform: uppercase; letter-spacing: 2px; line-height: 1.1; margin-bottom: 1.5rem; }
.intro-container .highlight { color: #ffffff; font-style: italic; font-weight: 300; }
.intro-container p { font-size: clamp(1rem, 2vw, 1.35rem); color: #ffffff; line-height: 1.6; max-width: 600px; margin: 0 auto 2.5rem auto; }

.scroll-discover-btn {
    display: inline-block; color: #ffffff; text-decoration: none; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2); padding: 0.75rem 2rem; border-radius: 50px; background-color: rgba(15, 15, 17, 0.6);
    backdrop-filter: blur(5px); transition: all 0.3s ease;
}
.scroll-discover-btn:hover { background-color: #ffffff; color: #0f0f11; border-color: #ffffff; }

/* --- GRID GALLERY SHOWCASE --- */
.main-content { flex: 1; display: flex; align-items: center; padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; width: 100%; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2rem; width: 100%; }
.grid-item { position: relative; overflow: hidden; border-radius: 8px; background-color: #1a1a1e; aspect-ratio: 1/1; animation: fadeInUp 0.6s ease forwards; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.grid-item:hover img { transform: scale(1.04); }

.image-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    display: flex; align-items: flex-end; padding: 2rem; opacity: 0; transition: opacity 0.4s ease;
}
.grid-item:hover .image-overlay { opacity: 1; }
.image-overlay h3 { font-size: 1.2rem; font-weight: 400; letter-spacing: 1px; transform: translateY(10px); transition: transform 0.4s ease; }
.grid-item:hover .image-overlay h3 { transform: translateY(0); }

/* --- SHARED SUB-PAGE COMPONENT LAYOUT RULES (ABOUT & CONTACT) --- */
.about-container { display: grid; grid-template-columns: .5fr 1.7fr; gap: 8rem; align-items: center; width: 100%; text-align: left}
.contact-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; width: 100%; text-align: left}
.about-image img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.about-text h2, .contact-info h2 { font-size: 2.25rem; margin-bottom: 1rem; text-align: left;}
.lead-text { font-size: 1rem; color: #e4e4e7; margin-bottom: 1.5rem; line-height: 1.5; text-align: left}
.about-text p, .contact-info p { color: #a1a1aa; line-height: 1.6; margin-bottom: 1.25rem; text-align: left}
.services-list h3 { font-size: 1.1rem; margin: 1.5rem 0 0.75rem 0; text-transform: uppercase; color: #8a8a93; }
.services-list ul { list-style-position: inside; color: #a1a1aa; }
.services-list li { margin-bottom: 0.5rem; text-align: left}

.info-details { margin-top: 2rem; }
.info-details p { margin-bottom: 1rem; font-size: 1.05rem; }
.info-details strong { color: #ffffff; display: inline-block; width: 90px; }
.contact-form-box { background-color: #141417; padding: 2.5rem; border-radius: 8px; border: 1px solid #2a2a30; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.85rem; color: #8a8a93; text-transform: uppercase; }
.form-group input, .form-group textarea { background-color: #1a1a1e; border: 1px solid #2a2a30; border-radius: 4px; padding: 0.85rem; color: #ffffff; font-family: inherit; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #8a8a93; }
.submit-btn { background-color: #ffffff; color: #0f0f11; border: none; padding: 1rem; border-radius: 4px; font-weight: 600; cursor: pointer; transition: background-color 0.2s; }
.submit-btn:hover { background-color: #e4e4e7; }

/* --- TIMELINE ANIMATION TIMING KEYFRAMES --- */
@keyframes imageCrossFade {
    0% { opacity: 0; }
    4% { opacity: 1; }      /* Blends inside fully active frame layout quickly */
    25% { opacity: 1; }     /* Holds completely solid visibility */
    29% { opacity: 0; }     /* Smoothly dissolves out as the next file wakes up */
    100% { opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 1.25rem; text-align: center; }
    .header-left { flex-direction: column; gap: 0.5rem; }
    .header-nav { gap: 1.25rem; width: 100%; justify-content: center; }
    .accordion-content { right: auto; left: 50%; transform: translateX(-50%); }
    .about-container, .contact-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-form-box { padding: 1.5rem; }
}

.portfolio-footer { text-align: center; padding: 2rem 1rem; color: #4a4a4e; font-size: 0.85rem; border-top: 1px solid #1a1a1e; margin-top: auto; }

/* --- LASER AND 3D PRINT PORTFOLIO PAGES --- */
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            margin: 0;
            padding: 0px;
            background-color: #000000;
            color: #ffffff;
        }

        /* Main Thumbnails Grid */
        .items-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            max-width: 1000px;
            margin: 40px auto;
        }

        .item-card {
            background: #fff;
            padding: 10px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: transform 0.2s;
        }

        .item-card:hover {
            transform: scale(1.03);
        }

        .item-card img {
            width: 220px;
            height: 180px;
            object-fit: cover;
            border-radius: 4px;
        }

        .item-card p {
            margin: 8px 0 0;
            font-weight: bold;
            color: #333;
        }

        /* Full Screen Overlay - Rebuilt to bypass adblockers */
        .viewer-overlay {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.95);
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        /* Image Wrapper */
        .viewer-box {
            position: relative;
            max-width: 80%;
            max-height: 70vh;
        }

        .viewer-main-img {
            max-width: 100%;
            max-height: 70vh;
            border-radius: 8px;
            display: block;
        }

        /* Exit Button */
        .exit-btn {
            position: absolute;
            top: 20px;
            right: 35px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }

        /* Step Arrows */
        .arrow-left, .arrow-right {
            cursor: pointer;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            padding: 16px;
            color: white;
            font-weight: bold;
            font-size: 30px;
            background-color: rgba(0, 0, 0, 0.5);
            border-radius: 4px;
            user-select: none;
            transition: background-color 0.2s;
        }

        .arrow-left { left: -70px; }
        .arrow-right { right: -70px; }

        .arrow-left:hover, .arrow-right:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }

        /* Description Box */
        .text-panel {
            color: #fff;
            background-color: rgba(255, 255, 255, 0.1);
            padding: 15px 25px;
            border-radius: 6px;
            margin-top: 15px;
            max-width: 60%;
            font-size: 16px;
            line-height: 1.4;
        }

        /* Indicator Nodes */
        .nodes-container {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 15px;
        }

        .node {
            cursor: pointer;
            height: 12px;
            width: 12px;
            background-color: #555;
            border-radius: 50%;
            display: inline-block;
            transition: background-color 0.2s, transform 0.2s;
        }

        .node:hover, .node.active-node {
            background-color: #fff;
            transform: scale(1.2);
        }
