:root {
  --glass-bg:       rgba(255,255,255,0.10);
  --glass-solid:    rgba(30,30,50,0.55);
  --glass-border:   rgba(255,255,255,0.22);
  --glass-border-s: rgba(255,255,255,0.12);
  --blur:           saturate(160%) blur(22px);
  --blur-sm:        saturate(140%) blur(14px);
  --radius-win:     12px;
  --shadow:         0 8px 40px rgba(0,0,0,0.38), 0 2px 8px rgba(0,0,0,0.22);
  --accent:         #60a5fa;
  --accent-alt:     #a78bfa;
  --red:            #f87171;
  --green:          #4ade80;
  --text:           rgba(255,255,255,0.92);
  --muted:          rgba(255,255,255,0.50);
  --taskbar-h:      52px;
  --ease-spring:    cubic-bezier(0.34,1.56,0.64,1);
  --ease-out:       cubic-bezier(0.4,0,0.6,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: 'Segoe UI Variable','Segoe UI',system-ui,sans-serif; color: var(--text); user-select: none; }
.hidden { display: none !important; }

#desktop {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99,102,241,.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(168,85,247,.30) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 85%, rgba(59,130,246,.28) 0%, transparent 50%),
    linear-gradient(160deg, #0a0a1a 0%, #0d1226 40%, #0a1628 100%);
  overflow: hidden;
}
#desktop::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle 1px at 15% 25%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(circle 1px at 40% 60%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(circle 1px at 70% 35%, rgba(255,255,255,.35) 0%, transparent 100%),
    radial-gradient(circle 1px at 85% 70%, rgba(255,255,255,.25) 0%, transparent 100%);
}

#login-screen {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(79,70,229,.5) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(139,92,246,.4) 0%, transparent 50%),
    linear-gradient(170deg, #050510 0%, #0c1020 100%);
  transition: opacity .6s ease, transform .6s ease;
}
#login-screen.fade-out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.login-bg-blur { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(99,102,241,.15) 0%, transparent 70%); pointer-events: none; }

.login-card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 48px 44px 40px; min-width: 320px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.15);
  animation: cardIn .7s var(--ease-spring) both;
}
@keyframes cardIn { from { opacity:0; transform:translateY(30px) scale(.96); } to { opacity:1; transform:none; } }

.login-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg,#6366f1,#a78bfa);
  border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 4px 20px rgba(99,102,241,.4);
}
.login-avatar svg { width: 70px; height: 70px; }
.login-name { font-size: 26px; font-weight: 600; margin-top: 4px; }
.login-role { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

.login-input-wrap {
  display: flex; align-items: center; width: 100%; margin-top: 8px;
  background: rgba(255,255,255,.08); border: 1px solid var(--glass-border);
  border-radius: 10px; overflow: hidden; transition: border-color .2s;
}
.login-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(96,165,250,.2); }
.login-input { flex: 1; padding: 12px 16px; background: transparent; border: none; outline: none; color: var(--text); font-size: 14px; font-family: inherit; }
.login-input::placeholder { color: var(--muted); }
.login-arrow { padding: 10px 14px; background: var(--accent); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.login-arrow:hover { background: #3b82f6; }
.login-arrow svg { width: 16px; height: 16px; stroke: white; }
.login-hint { font-size: 11.5px; color: var(--muted); text-align: center; }
.login-error { font-size: 12px; color: var(--red); text-align: center; opacity: 0; transition: opacity .3s; min-height: 18px; }
.login-error.visible { opacity: 1; }

.login-clock { position: absolute; bottom: 40px; left: 50px; display: flex; flex-direction: column; }
#login-time { font-size: 64px; font-weight: 200; letter-spacing: -2px; line-height: 1; }
#login-date { font-size: 16px; color: var(--muted); margin-top: 4px; }

.desktop-icons { position: absolute; top: 24px; left: 24px; display: flex; flex-direction: column; gap: 20px; }

.desk-icon {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer; padding: 10px 8px; border-radius: 10px; width: 80px;
  transition: background .15s, transform .1s;
}
.desk-icon:hover  { background: rgba(255,255,255,.10); }
.desk-icon:active { background: rgba(255,255,255,.16); transform: scale(.95); }

.desk-icon-img {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid rgba(255,255,255,.2);
}
.images-icon  { background: linear-gradient(135deg, rgba(99,102,241,.6), rgba(167,139,250,.6)); }
.videos-icon  { background: linear-gradient(135deg, rgba(239,68,68,.6), rgba(249,115,22,.6)); }
.about-icon   { background: linear-gradient(135deg, rgba(16,185,129,.6), rgba(59,130,246,.6)); }
.contact-icon { background: linear-gradient(135deg, rgba(245,158,11,.6), rgba(239,68,68,.5)); }
.desk-icon-img svg { width: 36px; height: 36px; }
.desk-icon span { font-size: 12px; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.6); white-space: nowrap; }

.window {
  position: absolute; display: flex; flex-direction: column;
  border-radius: var(--radius-win);
  background: var(--glass-solid);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  overflow: hidden; min-width: 320px; min-height: 200px;
}
.window.opening   { animation: winOpen  .30s var(--ease-spring) both; }
.window.closing   { animation: winClose .20s var(--ease-out) forwards; pointer-events: none; }
.window.minimizing{ animation: winMin   .22s var(--ease-out) forwards; pointer-events: none; }
@keyframes winOpen  { from{opacity:0;transform:scale(.88) translateY(16px)} to{opacity:1;transform:none} }
@keyframes winClose { from{opacity:1;transform:none} to{opacity:0;transform:scale(.88) translateY(16px)} }
@keyframes winMin   { from{opacity:1;transform:none} to{opacity:0;transform:scale(.75) translateY(60px)} }
.window.active-win { border-color: rgba(255,255,255,.28); box-shadow: var(--shadow), 0 0 0 1px rgba(96,165,250,.18); }
.window.maximized  { top:0!important; left:0!important; width:100%!important; height:calc(100% - var(--taskbar-h))!important; border-radius:0!important; transition: all .22s ease; }

.win-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; height: 40px; flex-shrink: 0;
  background: rgba(255,255,255,.05); border-bottom: 1px solid var(--glass-border-s);
  cursor: grab;
}
.win-titlebar:active { cursor: grabbing; }
.win-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.win-title-icon { font-size: 15px; }
.win-controls { display: flex; align-items: center; gap: 6px; }

.win-btn { width:28px; height:28px; border-radius:6px; border:none; background:transparent; cursor:pointer; color:var(--muted); display:flex; align-items:center; justify-content:center; transition:background .15s,color .15s; }
.win-btn svg { width: 12px; height: 12px; }
.win-btn.minimize:hover, .win-btn.maximize:hover { background: rgba(255,255,255,.15); color: var(--text); }
.win-btn.close:hover { background: rgba(239,68,68,.75); color: white; }

.win-body { flex:1; overflow-y:auto; overflow-x:hidden; padding:20px; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.2) transparent; }
.win-body::-webkit-scrollbar { width: 6px; }
.win-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }

.win-body.side-layout { padding: 0; display: flex; gap: 0; height: 100%; overflow: hidden; }

.side-list {
  width: 220px; flex-shrink: 0; padding: 16px 12px;
  border-right: 1px solid var(--glass-border-s);
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent;
}
.side-list::-webkit-scrollbar { width: 5px; }
.side-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }

.side-list-title {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px; padding: 0 4px;
}

.side-item {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border-radius: 8px; cursor: pointer; margin-bottom: 4px; transition: background .15s;
}
.side-item:hover  { background: rgba(255,255,255,.08); }
.side-item.active { background: rgba(96,165,250,.2); }

.side-thumb {
  width: 48px; height: 34px; border-radius: 5px; flex-shrink: 0;
  overflow: hidden; background: #1a1a2e;
  display: flex; align-items: center; justify-content: center;
}
.side-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.side-meta { display: flex; flex-direction: column; gap: 2px; overflow: hidden; min-width: 0; }
.side-name    { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-sub     { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-player { flex: 1; display: flex; flex-direction: column; padding: 16px; gap: 10px; overflow: hidden; }

.side-screen {
  flex: 1; border-radius: 10px; overflow: hidden;
  background: #0d0d1a; position: relative;
  display: flex; align-items: center; justify-content: center;
}

.viewer-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; display: block;
  border-radius: 8px;
  opacity: 0; transition: opacity .25s ease;
}
.viewer-img.loaded { opacity: 1; }

.side-screen iframe { width: 100%; height: 100%; display: block; border: none; }

.side-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; opacity: .3;
}
.side-placeholder span { font-size: 44px; }
.side-placeholder p    { font-size: 12px; color: var(--muted); }

.side-info { flex-shrink: 0; padding: 6px 4px; border-top: 1px solid var(--glass-border-s); }
.side-title-text { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.about-layout { display: flex; gap: 24px; }
.about-avatar-section { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; width: 140px; }
.about-avatar { width:80px; height:80px; border-radius:50%; background:linear-gradient(135deg,#6366f1,#a78bfa); border:2px solid rgba(255,255,255,.25); display:flex; align-items:center; justify-content:center; font-size:32px; font-weight:700; box-shadow:0 4px 20px rgba(99,102,241,.4); }
.about-name    { font-size: 20px; font-weight: 600; }
.about-tagline { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.5; }

.about-socials { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.social-chip { display:flex; align-items:center; justify-content:center; gap:6px; padding:7px 0; border-radius:20px; border:1px solid var(--glass-border-s); font-size:11px; color:var(--muted); text-decoration:none; background:rgba(255,255,255,.06); transition:background .15s,color .15s,border-color .15s; }
.instagram-chip:hover { background:linear-gradient(135deg,rgba(253,88,166,.25),rgba(248,124,53,.25)); border-color:rgba(253,88,166,.4); color:#fda4af; }

.about-info { flex: 1; }
.skills-section h4, .tools-section h4 { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:10px; }
.skill-bar-wrap { display:flex; flex-direction:column; gap:10px; margin-bottom:20px; }
.skill-bar-row  { display:flex; align-items:center; gap:10px; }
.skill-bar-row > span:first-child { font-size:12px; color:var(--muted); width:105px; flex-shrink:0; }
.skill-pct { font-size:11px; color:var(--muted); width:30px; text-align:right; flex-shrink:0; }
.skill-track { flex:1; height:5px; background:rgba(255,255,255,.12); border-radius:3px; overflow:hidden; }
.skill-fill  { height:100%; background:linear-gradient(90deg,var(--accent),var(--accent-alt)); border-radius:3px; width:0%; transition:width 1s ease; }
.skill-fill.animated { width: var(--pct); }
.tools-chips { display:flex; flex-wrap:wrap; gap:6px; }
.tool-chip { padding:4px 12px; border-radius:20px; font-size:11px; background:rgba(99,102,241,.25); border:1px solid rgba(99,102,241,.4); color:rgba(167,139,250,.9); }

.contact-layout { display:flex; flex-direction:column; gap:14px; }
.contact-intro  { font-size:13px; color:var(--muted); line-height:1.6; }
.contact-items  { display:flex; flex-direction:column; gap:8px; }
.contact-item   { display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:10px; background:rgba(255,255,255,.05); border:1px solid var(--glass-border-s); }
a.contact-link  { text-decoration:none; color:inherit; transition:background .15s,border-color .15s; cursor:pointer; }
a.contact-link:hover { background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.2); }
.contact-icon-wrap { font-size:20px; flex-shrink:0; }
.contact-text   { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.contact-label  { font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.contact-value  { font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.contact-arrow  { font-size:16px; color:var(--muted); flex-shrink:0; }
a.contact-link:hover .contact-arrow { color: var(--accent); }

#taskbar { position:fixed; bottom:0; left:0; right:0; height:var(--taskbar-h); background:rgba(15,15,30,.72); backdrop-filter:var(--blur); -webkit-backdrop-filter:var(--blur); border-top:1px solid var(--glass-border-s); display:flex; align-items:center; padding:0 16px; gap:4px; z-index:900; }
.taskbar-start { width:36px; height:36px; border-radius:8px; border:none; background:transparent; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s; }
.taskbar-start:hover  { background: rgba(255,255,255,.10); }
.taskbar-start.active { background: rgba(255,255,255,.15); }
.taskbar-divider { width:1px; height:24px; background:var(--glass-border-s); margin:0 8px; }
.taskbar-apps { display:flex; align-items:center; gap:4px; }
.taskbar-app-btn { width:38px; height:38px; border-radius:8px; border:none; background:transparent; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s; position:relative; }
.taskbar-app-btn:hover { background: rgba(255,255,255,.10); }
.taskbar-app-btn::after { content:''; position:absolute; bottom:3px; width:0; height:3px; background:var(--accent); border-radius:2px; transition:width .2s; }
.taskbar-app-btn.open::after      { width: 16px; }
.taskbar-app-btn.minimized::after { width: 8px; background: var(--muted); }
.taskbar-spacer { flex: 1; }
.sys-clock { display:flex; flex-direction:column; align-items:flex-end; padding:4px 8px; border-radius:6px; cursor:default; transition:background .15s; }
.sys-clock:hover { background: rgba(255,255,255,.08); }
#taskbar-time { font-size:13px; font-weight:500; line-height:1.2; }
#taskbar-date { font-size:10px; color:var(--muted); }

.start-menu { position:fixed; bottom:calc(var(--taskbar-h) + 10px); left:50%; transform:translateX(-50%); width:320px; background:rgba(25,25,45,.88); backdrop-filter:var(--blur); -webkit-backdrop-filter:var(--blur); border:1px solid var(--glass-border); border-radius:14px; box-shadow:var(--shadow); z-index:950; overflow:hidden; animation:startIn .22s var(--ease-spring) both; }
@keyframes startIn { from{opacity:0;transform:translateX(-50%) translateY(12px) scale(.97)} to{opacity:1;transform:translateX(-50%) translateY(0) scale(1)} }
.start-header   { padding:20px 20px 12px; border-bottom:1px solid var(--glass-border-s); }
.start-greeting { font-size:16px; font-weight:600; display:block; }
.start-apps { padding:14px; display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.start-app  { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; cursor:pointer; font-size:13px; transition:background .15s; }
.start-app:hover { background: rgba(255,255,255,.10); }
.start-footer { padding:12px 16px; border-top:1px solid var(--glass-border-s); }
.start-logout { width:100%; padding:9px; border-radius:8px; background:rgba(239,68,68,.15); border:1px solid rgba(239,68,68,.3); color:var(--red); font-family:inherit; font-size:13px; cursor:pointer; transition:background .15s; }
.start-logout:hover { background: rgba(239,68,68,.28); }

.toast { position:fixed; bottom:calc(var(--taskbar-h) + 16px); right:20px; background:rgba(30,30,50,.9); backdrop-filter:var(--blur); -webkit-backdrop-filter:var(--blur); border:1px solid var(--glass-border); border-radius:10px; padding:12px 20px; font-size:13px; box-shadow:var(--shadow); z-index:9999; opacity:0; pointer-events:none; transform:translateY(10px); transition:opacity .3s,transform .3s; }
.toast.show { opacity:1; pointer-events:auto; transform:translateY(0); }

@media (max-width: 700px) {
  .window { left:4px!important; top:4px!important; width:calc(100vw - 8px)!important; max-height:calc(100vh - 70px)!important; }
  .win-body.side-layout { flex-direction: column; }
  .side-list { width:100%; height:130px; border-right:none; border-bottom:1px solid var(--glass-border-s); }
  .about-layout { flex-direction: column; }
  .about-avatar-section { width:100%; flex-direction:row; gap:14px; }
  .login-clock { display: none; }
}
