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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #2e3436;
    color: #f0f0f0;
}

a {
    text-decoration: none;
    color: inherit;
}

.desktop {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.desktop.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
}

/* Icons Section - Top Left */
.icons {
    position: absolute;
    top: 50px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.icon {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.icon img {
    width: 60px;
    height: 60px;
    will-change: width, height, transform;
}

.icons .icon span {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Dock */
.dock {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    align-items: flex-end;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 5px 12px;
    width: fit-content;
    height: 75px;
    user-select: none;
}

.dock .icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: 6px 4px;
}

.dock img {
    width: 55px;
    height: 55px;
    transform-origin: 50% 100%;
    transition: none;
    will-change: width, height, transform;
}

.dock span {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 4px 8px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

/* Terminal */
.terminal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.05);
    width: 80%;
    height: 60%;
    max-width: 800px;
    max-height: 500px;
    display: none;
    z-index: 5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.terminal.open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.terminal-prompt {
    background-color: #1d1f21;
    color: #f0f0f0;
    font-family: 'Courier New', Courier, monospace;
    padding: 10px 20px;
    border-radius: 0 0 5px 5px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.prompt-text {
    color: #00ff00;
}

.terminal.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0;
    overflow: hidden;
}

.terminal-window {
    background-color: #1d1f21;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.terminal-header {
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: #2e3436;
    border-bottom: 1px solid #555;
    align-items: center;
    justify-content: flex-start;
}

.button {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    user-select: none;
    outline: none;
}

.button:focus { box-shadow: 0 0 0 3px rgba(100, 150, 255, 0.3); }
.red { background-color: red; }
.red:hover { background-color: darkred; }
.yellow { background-color: yellow; }
.yellow:hover { background-color: #d4a017; }
.green { background-color: green; }
.green:hover { background-color: darkgreen; }
.red::after { content: "X"; font-weight: bold; color: white; font-size: 12px; }
.yellow::after { content: "--"; font-weight: bold; color: black; font-size: 12px; }
.green::after { content: "[]"; font-weight: bold; color: white; font-size: 12px; }

.terminal-body {
    flex: 1;
    padding: 10px;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,0,0.25) transparent;
}

.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(0,255,0,0.25); border-radius: 3px; }
.terminal-body::-webkit-scrollbar-thumb:hover { background: rgba(0,255,0,0.4); }

/* Date and Time */
.date-time {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Boot Overlay */
#booting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    padding: 20px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    z-index: 9999;
    font-size: 14px;
    line-height: 1.6;
}

/* Window Header (shared) */
.window-header {
    background-color: #2e3436;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.window-header span {
    font-size: 20px;
    font-weight: bold;
    color: #f0f0f0;
}

/* Red close button inside windows */
.certifications-window .red,
.projects-window .red {
    background-color: red;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}
.certifications-window .red:hover,
.projects-window .red:hover { background-color: darkred; }
.certifications-window .red::after,
.projects-window .red::after { content: "X"; font-weight: bold; color: white; font-size: 12px; }

/* ── CERTIFICATIONS WINDOW ── */
.certifications-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.05);
    width: 92%;
    max-width: 1100px;
    height: 88%;
    max-height: 820px;
    background-color: #1e1e1e;
    display: none;
    border-radius: 10px;
    z-index: 6;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    color: #f0f0f0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.certifications-window.open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ── PROJECTS WINDOW ── */
.projects-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.05);
    width: 80%;
    max-width: 800px;
    height: 70%;
    max-height: 600px;
    background-color: #1d1f21;
    display: none;
    border-radius: 10px;
    z-index: 6;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    color: #f0f0f0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.projects-window.open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.projects-content {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: calc(100% - 50px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}

.projects-content::-webkit-scrollbar { width: 6px; }
.projects-content::-webkit-scrollbar-track { background: transparent; }
.projects-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 3px; }
.projects-content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }

/* ── PROJECT CARDS ── */
.proj-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: #f0f0f0;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.proj-card:hover {
    background-color: rgba(255,255,255,0.10);
    transform: translateX(5px);
    border-color: rgba(100,180,255,0.3);
}

.proj-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.siem-icon  { background: rgba(80, 120, 200, 0.25); }
.mac-icon   { background: rgba(80, 180, 120, 0.25); }
.key-icon   { background: rgba(200, 100, 80, 0.25); }

.proj-card-info {
    flex: 1;
}

.proj-card-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #d0e8ff;
    margin-bottom: 4px;
}

.proj-card-info p {
    font-size: 12px;
    color: #9ab8d0;
    line-height: 1.4;
    margin-bottom: 6px;
}

.proj-lang {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #7a9ab8;
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.python-dot { background-color: #3572A5; }

.proj-card-arrow {
    font-size: 18px;
    color: #5a8ab0;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.proj-card:hover .proj-card-arrow {
    transform: translateX(4px);
    color: #7ec0f0;
}



/* ── EXPERIENCE / EDUCATION CONTENT ── */
.experience-content {
    display: block;
    padding: 16px;
    height: calc(100% - 50px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}

.experience-content::-webkit-scrollbar { width: 6px; }
.experience-content::-webkit-scrollbar-track { background: transparent; }
.experience-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 3px; }
.experience-content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }

.exp-item {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    width: 100%;
    transition: background 0.2s ease;
}

.exp-item:hover {
    background-color: rgba(255,255,255,0.09);
}

.exp-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.exp-company-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    color: #fff;
}

.everence-logo  { background: linear-gradient(135deg, #1a3a5c, #2a5c8a); }
.niit-logo      { background: linear-gradient(135deg, #5c3a1a, #8a6030); }
.nettech-logo   { background: linear-gradient(135deg, #1a4a2a, #2a7a4a); }
.bhavans-logo   { background: linear-gradient(135deg, #3a1a5c, #6030a0); }

.exp-body {
    flex: 1;
}

.exp-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 8px;
}

.emp-type {
    font-size: 13px;
    color: #9ab8d0;
    font-weight: 400;
}

.role-block {
    margin-bottom: 6px;
}

.role-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #d0e8f8;
}

.dates {
    display: block;
    font-size: 12px;
    color: #7a9ab8;
    margin-top: 2px;
}

.exp-skills {
    margin-top: 8px;
    font-size: 12px;
    color: #5a9ab8;
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .desktop { background-position: top center; }
    .icons { top: 40px; left: 10px; gap: 20px; }
    .dock { bottom: 10px; padding: 8px; gap: 15px; }
    .dock img { width: 45px; height: 45px; }
    .date-time { display: none; }
}

@media (max-width: 768px) {
    .icons { top: 20px; left: 10px; gap: 15px; }
    .dock { bottom: 5px; padding: 10px; gap: 15px; }
    .dock img { width: 60px; height: 60px; }
    .icon span, .dock span { font-size: 16px; }
    .terminal-body { display: block; height: 100%; overflow-y: auto; white-space: pre-wrap; word-wrap: break-word; padding-bottom: 50px; max-width: 100%; font-size: 16px; }
    .date-time { display: none; }
}

@media (max-width: 480px) {
    .icons { top: 10px; left: 5px; gap: 10px; }
    .dock { bottom: 5px; padding: 7px; gap: 10px; }
    .dock img { width: 50px; height: 50px; }
    .icon span, .dock span { font-size: 13px; }
    .terminal-body { font-size: 13px; }
    .date-time { display: none; }
    .certifications-window, .projects-window { width: 95%; height: 80%; }
    .cert-details h4 { font-size: 13px; }
}

/* ── CERT FILE GRID ── */
.certifications-content {
    padding: 20px;
    overflow-y: auto;
    height: calc(100% - 50px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
    background: #1e1e1e;
}

.certifications-content::-webkit-scrollbar { width: 6px; }
.certifications-content::-webkit-scrollbar-track { background: transparent; }
.certifications-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 3px; }
.certifications-content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }

.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cert-file {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    background: #2a2a2a;
}

.cert-file:hover {
    border-color: rgba(100,160,255,0.5);
    transform: scale(1.01);
    box-shadow: 0 6px 30px rgba(0,0,0,0.5);
}

.cert-file-thumb {
    width: 100%;
}

.cert-file-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.cert-file-name { display: none; }

/* ── PHOTO VIEWER LIGHTBOX ── */
#cert-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: #1a1a1a;
    z-index: 99999;
    flex-direction: column;
}

#cert-lightbox.active {
    display: flex;
    animation: lbFadeIn 0.2s ease;
}

@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Top bar — dark like Windows photo viewer */
.lb-topbar {
    flex-shrink: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #2c2c2c;
    border-bottom: 1px solid #3a3a3a;
}

.lb-filename {
    font-size: 13px;
    color: #c8c8c8;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.02em;
}

.lb-close {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: #bbb;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.lb-close:hover { background: #c42b1c; color: #fff; }

/* Image stage fills remaining space */
.lb-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    overflow: hidden;
    min-height: 0;
}

#lightbox-img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 4px 40px rgba(0,0,0,0.7);
    transition: opacity 0.18s ease, transform 0.18s ease;
    display: block;
}

#lightbox-img.lb-switching {
    opacity: 0;
    transform: scale(0.97);
}

/* Side nav arrows */
.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 72px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    user-select: none;
    z-index: 10;
}
.lb-arrow:hover { background: rgba(255,255,255,0.16); }
.lb-arrow.lb-prev { left: 8px; }
.lb-arrow.lb-next { right: 8px; }

/* Bottom toolbar — matches Windows photo viewer */
.lb-bottom {
    flex-shrink: 0;
    background: #2c2c2c;
    border-top: 1px solid #3a3a3a;
    padding: 8px 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lb-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lb-tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.lb-tool-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.lb-toolbar-sep {
    width: 1px;
    height: 24px;
    background: #444;
    margin: 0 6px;
}

.lb-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.lb-dot.active {
    background: #0078d4;
    transform: scale(1.4);
}
.lb-dot:hover { background: rgba(255,255,255,0.5); }

#lightbox-caption {
    font-size: 12px;
    color: #888;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}
