/* assets/css/style.css - Clean Professional Portfolio OS */

:root {
    --win-bg: #0f172a;
    --win-blue: #1e40af;
    --win-titlebar-start: #0f172a;
    --win-titlebar-end: #1e3a8a;
    --win-taskbar: #0f172a;
    --win-dialog: #f8fafc;
    --win-text: #0f172a;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border-subtle: #e2e8f0;
    --text-muted: #64748b;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--win-bg);
    background-image:
        linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(30, 58, 138, 0.55) 100%),
        url('../img/bliss.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    color: var(--win-text);
    -webkit-font-smoothing: antialiased;
}

.xp-window-content * { user-select: text; }

/* --- Boot Screen (Instant/Clean) --- */
#boot-screen {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #0f172a;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.4s ease-out;
}
#boot-screen h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 28px; font-weight: 700; text-align: center; padding: 0 15px; }
#boot-screen h1 span { color: #38bdf8; }
.loading-bar-container {
    width: 240px; height: 8px;
    border-radius: 99px;
    position: relative;
    overflow: hidden;
    background: #1e293b;
}
.loading-blocks {
    position: absolute;
    top: 0; left: -60px;
    height: 100%; width: 60px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    border-radius: 99px;
    animation: loading 1.4s infinite linear;
}
@keyframes loading {
    0% { left: -60px; }
    100% { left: 250px; }
}

/* --- Desktop Icons (Clean Left Dock Column) --- */
#desktop {
    padding: 16px;
    position: relative;
    height: calc(100vh - 46px);
    z-index: 1;
}

.desktop-icon {
    position: absolute;
    width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    padding: 8px 6px;
    border: 1px solid transparent;
    border-radius: 10px;
    z-index: 2;
    transition: all 0.18s ease;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    transform: translateY(-1px);
}

.desktop-icon.selected {
    background: rgba(37, 99, 235, 0.38);
    border-color: rgba(147, 197, 253, 0.65);
    backdrop-filter: blur(6px);
}

.desktop-icon i {
    font-size: 2.1rem;
    color: #f8fafc;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
    margin-bottom: 6px;
    pointer-events: none;
}

.desktop-icon span {
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    pointer-events: none;
}

/* --- Windows (Clean Executive Studio Frame) --- */
.xp-window {
    position: absolute;
    top: 32px;
    left: 128px;
    width: 960px;
    max-width: calc(100vw - 148px);
    height: 680px;
    max-height: calc(100vh - 82px);
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 12px;
    box-shadow: 0 22px 50px -12px rgba(15, 23, 42, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.12);
    display: none;
    flex-direction: column;
    z-index: 10;
    overflow: hidden;
}

#win-portfolio {
    top: 18px;
    left: 120px;
    width: min(1360px, calc(100vw - 138px));
    height: calc(100vh - 76px);
    max-height: 900px;
}

.xp-window.active { display: flex; }

.xp-window.maximized {
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: calc(100vh - 46px) !important;
    max-width: none !important; max-height: none !important;
    border-radius: 0; border-width: 0;
}

.xp-titlebar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.xp-titlebar:active { cursor: grabbing; }

.xp-titlebar-title {
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    color: #f8fafc;
    pointer-events: none;
}
.xp-titlebar-title i {
    margin-right: 9px;
    color: #60a5fa;
    font-size: 0.95rem;
}

.xp-controls { display: flex; gap: 6px; }

.xp-btn {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.15s ease;
}
.xp-btn-min:hover, .xp-btn-max:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.xp-btn-close {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-weight: 600;
}
.xp-btn-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.xp-window-content {
    flex: 1;
    background: #f8fafc;
    padding: 22px 24px;
    overflow-y: auto;
}

/* --- Taskbar (Clean Dark Studio Bar) --- */
#taskbar {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%; height: 46px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    padding: 0 12px 0 8px;
}

.taskbar-left {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    overflow: hidden;
    gap: 8px;
}

#start-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0 16px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: all 0.18s ease;
    letter-spacing: 0.01em;
}
#start-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-1px);
}

#taskbar-windows {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 100%;
    overflow-x: auto;
}

.taskbar-tab {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    padding: 0 14px;
    height: 32px;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.taskbar-tab i {
    margin-right: 7px;
    color: #60a5fa;
}
.taskbar-tab:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.taskbar-tab.active-tab {
    background: rgba(37, 99, 235, 0.25);
    border-color: rgba(96, 165, 250, 0.45);
    color: #fff;
    font-weight: 600;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- Content & Buttons --- */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.btn-classic {
    background: #0f172a;
    border: 1px solid #0f172a;
    color: #fff !important;
    padding: 7px 14px;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    transition: all 0.18s ease;
    line-height: 1.2;
}
.btn-classic:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.btn-outline-clean {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155 !important;
    padding: 7px 12px;
    text-decoration: none;
    font-size: 0.78rem;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 600;
    transition: all 0.18s ease;
    line-height: 1.2;
}
.btn-outline-clean:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a !important;
}

.xp-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}
.xp-item:last-child { border-bottom: none; }
.xp-item h4 { color: #0f172a; margin-bottom: 4px; font-weight: 600; }
.xp-item .meta { color: #64748b; font-size: 0.84rem; }

.skill-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 6px;
}
.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
    border-radius: 99px;
}

/* --- Clean Professional Portfolio Cards Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.project-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.casestudy-card-featured {
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.casestudy-card-featured:hover {
    border-color: #93c5fd;
    box-shadow: 0 14px 28px -8px rgba(37, 99, 235, 0.15);
}

.project-img-wrap {
    position: relative;
    width: 100%;
    height: 195px;
    background: #f1f5f9;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

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

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

.project-slide-pill {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(4px);
    color: #f8fafc;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-eyebrow-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.project-cat-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
}

.project-process-tag {
    font-size: 0.66rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.project-card-title {
    font-size: 0.96rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 6px;
    cursor: pointer;
    transition: color 0.15s ease;
}
.project-card-title:hover {
    color: #2563eb;
}

.project-card-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.form-group { margin-bottom: 14px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.88rem;
    background: #fff;
    color: #0f172a;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

@media (max-width: 768px) {
    .xp-window, #win-portfolio, #win-casestudy {
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100vh - 46px) !important;
        max-height: calc(100vh - 46px) !important;
        top: 0 !important;
        left: 0 !important;
        border-radius: 0;
        border-width: 0;
    }
    .content-grid { grid-template-columns: 1fr; }
}

/* --- Case Study Modal / Viewer Styles --- */
.casestudy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    gap: 15px;
    flex-wrap: wrap;
}
.casestudy-title-box h2 {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.casestudy-meta {
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.casestudy-gallery-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.casestudy-main-img-box {
    width: 100%;
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}
.casestudy-main-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    z-index: 5;
}
.gallery-nav-btn:hover {
    background: #2563eb;
    border-color: #60a5fa;
    color: #fff;
    transform: translateY(-50%) scale(1.06);
}
.gallery-nav-prev { left: 16px; }
.gallery-nav-next { right: 16px; }
.gallery-counter {
    margin-top: 10px;
    color: #475569;
    font-size: 0.82rem;
}
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    max-width: 100%;
    padding: 4px 2px 6px 2px;
}
.gallery-thumb {
    width: 68px;
    height: 48px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.65;
    transition: all 0.18s ease;
}
.gallery-thumb.active, .gallery-thumb:hover {
    border-color: #2563eb;
    opacity: 1;
    transform: translateY(-1px);
}
.stage-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    padding: 16px 20px;
    margin-bottom: 14px;
    border-radius: 8px;
}
.stage-card h4 {
    color: #0f172a;
    margin-bottom: 6px;
    font-size: 0.96rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stage-card p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #475569;
    white-space: pre-line;
}

/* Featured Case Study Spotlight */
.spotlight-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    padding: 20px 22px;
    border-radius: 10px;
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.spotlight-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(8px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox-modal.active { display: flex; }
.lightbox-modal img {
    max-width: 95vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.14);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox-close:hover { background: #ef4444; }
