/* projects.css */

/* Hide Jekyll sidebars */
.sidebar,
.sidebar__right,
.page__related,
.page__meta,
.page__share,
.page-author,
.toc,
.toc__menu,
#site-nav,
.author-profile,
.author__urls-wrapper,
.author__urls,
nav.greedy-nav,
.page__footer-follow,
aside {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* Force full width */
.page,
.page__content,
.page__inner-wrap,
#main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Page wrapper */
.carousel-wrapper {
    width: 100%;
    background: #fff;
    padding: 2rem 1rem 3rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* Center column */
.carousel-container {
    max-width: 680px;
    margin: 0 auto;
}

/* Header */
.carousel-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.carousel-header h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.3rem;
}

.carousel-header p {
    font-size: 0.95rem;
    color: #888;
}

/* Card shell */
.project-card-outer {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* Screenshot */
.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f4f4f4;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
    display: block;
}

.project-image img:hover {
    transform: scale(1.03);
}

.project-image .img-fallback {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #bbb;
}

/* Accent bar */
.color-bar {
    height: 3px;
    width: 100%;
}

/* Text body */
.project-body {
    padding: 1.1rem 1.25rem 1.25rem;
}

.project-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.4rem;
}

.project-description {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.6;
}

/* Link pill */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: #0070f3;
    text-decoration: none;
    border: 1px solid #d2e3fc;
    padding: 3px 10px;
    border-radius: 99px;
    transition: background 0.15s;
}

.project-link:hover {
    background: #e8f0fe;
}

.project-link svg {
    width: 11px;
    height: 11px;
}

.project-wip {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: #aaa;
    border: 1px solid #eee;
    padding: 3px 10px;
    border-radius: 99px;
}

/* Footer nav */
.carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

/* Dots */
.dot-navigation {
    display: flex;
    gap: 5px;
    align-items: center;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.dot.active {
    width: 20px;
    border-radius: 3px;
    background: #111;
}

/* Counter */
.project-counter {
    font-size: 0.78rem;
    color: #aaa;
}

/* Nav buttons */
.nav-buttons {
    display: flex;
    gap: 6px;
}

.nav-button {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 99px;
    padding: 5px 16px;
    cursor: pointer;
    font-size: 0.82rem;
    color: #555;
    transition: background 0.15s;
}

.nav-button:hover {
    background: #f0f0f0;
}

/* Slide visibility */
.project-slide {
    display: none;
}

.project-slide.active {
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .carousel-header h1 {
        font-size: 1.3rem;
    }

    .project-image {
        height: 180px;
    }

    .nav-button {
        padding: 4px 12px;
        font-size: 0.78rem;
    }
}

/* ── Hamburger menu ── */
.proj-menu-btn {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 10000 !important;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}
.proj-menu-btn:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.proj-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.proj-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.proj-menu-btn.open span:nth-child(2) { opacity: 0; }
.proj-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.proj-menu-overlay {
    display: none;
    position: fixed !important;
    inset: 0;
    z-index: 9998 !important;
    background: rgba(0,0,0,0.25);
}
.proj-menu-overlay.open { display: block !important; }

.proj-menu {
    position: fixed !important;
    top: 0 !important;
    right: -220px !important;
    width: 200px;
    height: 100vh;
    z-index: 9999 !important;
    background: #fff;
    border-left: 1px solid #eaeaea;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    display: flex !important;
    flex-direction: column;
    padding: 4rem 1.5rem 2rem;
    gap: 0.25rem;
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
}
.proj-menu.open { right: 0 !important; }
.proj-menu a {
    font-size: 0.95rem;
    color: #333 !important;
    text-decoration: none !important;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    display: block;
    transition: background 0.15s, color 0.15s;
}
.proj-menu a:hover { background: #f4f4f4; color: #111 !important; }
.proj-menu a.active { color: #0070f3 !important; background: #e8f0fe; }
