/* The wrapper for the whole system */
.cabinet {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%; /* If .container has a height, this fills it */
}

/* The row of tabs */
.tabs {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle anchor line */
    overflow-x: auto; /* Allow horizontal scrolling on mobile */
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
}

.tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.tab-link {
    /* Resetting the folder-tab look */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFFAA;
    padding: 6px 18px;
    border-radius: 999px; /* Pill shape matches your footer */
    font-size: 0.8em;
    text-transform: lowercase; /* Matches your main card buttons */
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: auto; /* Remove the wide blocky look */
    white-space: nowrap; /* Prevent text wrapping */
}

.tab-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFF;
}

.tab-link.active {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    font-weight: 500;
    backdrop-filter: blur(10px);
    /* Remove the negative margin and overlapping z-index issues */
    margin-bottom: 0; 
}

/* Base style for all skill tags */
.sk {
    white-space: nowrap;
    padding: 4px 12px;
    border-radius: 25px;
    font-weight: 700; /* Bolded for extra punch */
    font-size: 0.8rem;
    color: #ffffff; /* Bright white for high contrast */
    text-transform: uppercase;
    letter-spacing: 0.2px;
    /* This creates a 'soft' neon glow effect */
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Hover effect to make them feel alive */
.sk:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    filter: brightness(1.2);
}

/* Class to show the active folder */
.tab-link:hover{ 
    transform: translateY(0px);
    box-shadow: none !important;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.project-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    /* This makes any logo match your white/vintage text aesthetic */
    transform: scale(2.2);
}



.subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #8da4b1; /* Faded steel blue from your sky */
    font-weight: 600;
}

.date-tag {
    font-style: italic;
    text-transform: lowercase;
    opacity: 0.5;
    letter-spacing: 0;
}

.folder-content p a {
    color: #d9b99b; /* Muted sand color from your background photo's grass */
    text-decoration: none;
    font-weight: 600;
    padding: 1px 4px;
    border-bottom: 1px dashed rgba(217, 185, 155, 0.5); /* "Vintage Document" look */
    transition: all 0.3s ease;
}

.folder-content p a:hover {
    color: #ecebe4; /* Bone white on hover */
    background-color: rgba(217, 185, 155, 0.15); /* Soft highlight tint */
    border-bottom: 1px solid #ecebe4;
    border-radius: 2px;
}

/* Optional: Add a small "external link" arrow icon after it */
.folder-content p a::after {
    content: " ↗";
    font-size: 0.7em;
    opacity: 0.7;
}

/* Replace your .folder-content and .fc-main styles with these */
.folder-content {
    display: none; 
    flex-direction: column;
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px; /* Fully rounded card look */
    background: rgba(255, 255, 255, 0.02);
    margin: 5px 0px;
    animation: fadeIn 0.4s ease;

}

.active-folder { 
    display: flex; 
}

.project-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.project-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-logo {
    width: 20px;
    height: 20px;
    /* Forces logos to match your white text theme */
    opacity: 0.9;
    margin-right: 10px;
}

/* Skills: Lowercase bubbles that match your footer */
.tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto; /* Pushes tags to the bottom naturally */
    padding-top: 20px;
}

.sk {
    font-size: 0.75rem;
    text-transform: lowercase;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFFAA;
    transition: all 0.2s ease;
}

.sk:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Container adjustments */
.project-dashboard {
    display: flex;
    flex-direction: row; /* Split screen */
    gap: 0;
    padding: 0; /* Let internal sections handle padding */
    overflow: hidden;
    height: 450px; /* Consistent height */
}

/* Sidebar Styling */
.project-sidebar {
    width: 30%;
    background: rgba(0, 0, 0, 0.2); /* Darker tint to distinguish from content */
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    padding: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8da4b1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto; /* Enables vertical scrolling */
    padding: 10px;
    
    /* Hide scrollbar for a cleaner look in some browsers */
    scrollbar-width: thin; 
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Custom Scrollbar Styling (Webkit/Chrome/Safari) */
.sidebar-nav::-webkit-scrollbar {
    width: 4px; /* Very thin so it doesn't distract */
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px;
    transition: background 0.3s ease;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2); /* Lights up when they use it */
}

.sidebar-buffer { 
    background: linear-gradient(to top, rgb(27, 29, 31), transparent);
    min-height: 40px;
}

/* Sidebar Tabs */
.tab-link {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 4px;
    color: #FFFFFFAA;
    font-size: 0.85em;
    text-transform: lowercase;
    transition: all 0.2s ease;
}

.tab-link.active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFF;
    border-left: 3px solid #558071; /* Subtle accent color pop */
}

/* Content Area */
.project-display {
    width: 70%;
    padding: 30px;
    box-sizing: border-box;
    height: 100%;
 
}

.project-display h3 {
    margin: 0;
    font-size: 1.4em;
    letter-spacing: 0.5px;
    color: #FFFFFF;
}

.project-specs {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8da4b1; /* Faded steel blue from your background photo */
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1px;
}

.project-description {
    font-size: 0.95em;
    line-height: 1.7;
    color: #FFFFFFCC;
    flex-grow: 1; /* Pushes the subsequent divs to the very bottom */
    margin-bottom: 20px;
}

.project-description strong {
    color: #E3EBD8; /* Subtle off-white for emphasis */
    font-weight: 600;
}

.project-links {
    margin-top: auto;
    font-size: 0.85em;
    margin-bottom: 20px;
}

.label {
    color: rgba(255, 255, 255, 0.4);
    margin-right: 8px;
}

.archive-link {
    color: #d9b99b !important; /* Muted sand color from your main card photo */
    text-decoration: none;
    border-bottom: 1px dashed rgba(217, 185, 155, 0.4);
    transition: all 0.3s ease;
}

.archive-link:hover {
    color: #ecebe4 !important;
    border-bottom: 1px solid #ecebe4;
}

.live-btn {
    margin-left: 8px;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablets and smaller (landscape) */
@media (max-width: 1024px) {
    .project-dashboard {
        height: auto;
        min-height: 400px;
    }
    
    .project-sidebar {
        width: 35%;
    }
    
    .project-display {
        width: 65%;
        padding: 20px;
    }
    
    .project-display h3 {
        font-size: 1.2em;
    }
}

/* Mobile devices (portrait tablets and large phones) */
@media (max-width: 768px) {
    .tabs {
        gap: 8px;
        padding: 8px 0;
        margin-bottom: 12px;
    }
    
    .tab-link {
        padding: 5px 14px;
        font-size: 0.75em;
    }
    
    .folder-content {
        padding: 30px;
        height: auto;
        min-height: 300px;
        box-sizing: border-box;

    }
    
    /* Stack sidebar and content vertically on mobile */
    .project-dashboard {
        flex-direction: column;
        height: auto;
    }
    
    .project-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        max-height: 200px;
    }
    
    .sidebar-header {
        padding: 12px 15px;
        font-size: 0.65rem;
    }
    
    .sidebar-nav {
        padding: 8px;
    }
    
    .tab-link {
        padding: 10px 12px;
        font-size: 0.8em;
    }
    
    .project-display {
        width: 100%;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    
    .project-display h3 {
        font-size: 1.1em;
    }
    
    .project-specs {
        flex-direction: column;
        gap: 8px;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .project-header-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .project-title-group {
        gap: 10px;
    }
    
    .project-logo {
        width: 28px;
        height: 28px;
    }
    
   
    
    .project-description {
        font-size: 0.9em;
        line-height: 1.6;
    }
    
    .tools {
        gap: 6px;
        padding-top: 15px;
    }
    
    .sk {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .tabs {
        gap: 6px;
        padding: 6px 0;
    }
    
    .tab-link {
        padding: 4px 12px;
        font-size: 0.7em;
    }
    
    .folder-content {
        padding: 12px;
        border-radius: 12px;
    }
    
    .project-sidebar {
        max-height: 180px;
    }
    
    .sidebar-header {
        padding: 10px;
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }
    
    .tab-link {
        padding: 8px 10px;
        font-size: 0.75em;
    }
    
    .project-display {
        padding: 15px 12px;
    }
    
    .project-display h3 {
        font-size: 1em;
    }
    
    .project-specs {
        font-size: 0.65rem;
    }
    
    .project-logo {
        width: 24px;
        height: 24px;
        transform: scale(1.8);
    }
    
   
    
    .subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .project-description {
        font-size: 0.85em;
        line-height: 1.5;
    }
    
    .project-links {
        font-size: 0.8em;
    }
    
    .tools {
        gap: 5px;
    }
    
    .sk {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    .live-btn {
        margin-left: 5px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .folder-content {
        padding: 10px;
    }
    
    .project-display {
        padding: 12px 10px;
    }
    
    .project-display h3 {
        font-size: 0.95em;
    }
    
    .project-specs {
        font-size: 0.6rem;
    }
    
    .project-description {
        font-size: 0.8em;
    }
    
    .sk {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

/* Touch device hover adjustments */
@media (hover: none) and (pointer: coarse) {
    .tab-link:hover,
    .sk:hover,
    .archive-link:hover,
    .folder-content p a:hover {
        /* Disable hover effects on touch devices */
        background: inherit;
        border-color: inherit;
        color: inherit;
        filter: inherit;
    }
    
    /* Instead, use active states for touch feedback */
    .tab-link:active {
        background: rgba(255, 255, 255, 0.08);
    }
    
    .sk:active {
        filter: brightness(1.2);
    }
}