* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: #000;
}
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s;
}

#boot-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

#boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  overflow: hidden;
  transition: opacity .6s ease;
}

#boot-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.background {
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.2) brightness(0.6);
  opacity: 0.7;
}

.container {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.logo-container {
  background: #000;
  padding: clamp(16px, 4vw, 22px)
           clamp(32px, 10vw, 78px);
}


.logo-wordmark {
  font-family: 'Rajdhani', 'Teko', sans-serif;
  font-size: clamp(36px, 9vw, 80px);
  font-weight: 900;
  letter-spacing: clamp(3px, 1vw, 6px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


.pin {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 26px solid #dc143c;
  filter: drop-shadow(0 0 12px rgba(220,20,60,.7));
}

.os-glitch {
  margin-left: 14px;
  position: relative;
  letter-spacing: 2px;
}

.os-glitch::before,
.os-glitch::after {
  content: "OS";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  background: #000;
}

.logo-wrapper {
  position: relative;
  z-index: 5;
}


.os-glitch::before {
  clip-path: polygon(0 0,100% 0,100% 45%,0 45%);
  transform: translateX(-1.5px);
  opacity: .85;
}

.os-glitch::after {
  clip-path: polygon(0 55%,100% 55%,100% 100%,0 100%);
  transform: translateX(1.5px);
  opacity: .75;
}


.pin {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 18px solid #dc143c;
  z-index: 10;
}

.loading-section {
  margin-top: clamp(36px, 8vh, 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-bar-container {
  width: min(82vw, 550px);
  height: 6px;
  background: rgba(255,255,255,.15);
}


.loading-bar {
  height: 100%;
  background: #e31c23;
  animation: load 2.5s ease-in-out infinite;
}

@keyframes load {
  0% { width: 0 }
  50% { width: 70% }
  100% { width: 100% }
}

.loading-text {
  margin-top: 24px;
  font-size: clamp(12px, 3.5vw, 18px);
  letter-spacing: clamp(3px, 1vw, 6px);
  color: #fff;
}

@media (max-width: 480px) {
  .pin {
    top: -16px;
    border-left-width: 9px;
    border-right-width: 9px;
    border-top-width: 14px;
  }
}


#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/wallpaper/xc.webp");
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s;
}


@keyframes loginGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



#login-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.login-profile {
    text-align: center;
}

.login-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    object-fit: cover;
}

.login-name {
    font-size: 28px;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 300;
}

.login-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 40px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}
#desktop {
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: background-image 1s ease-in-out;
}

.desktop-icons {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 90px;
    grid-template-rows: repeat(auto-fill, 110px);
    gap: 20px;
    padding: 20px;
    padding-bottom: 80px; 
    height: calc(100vh - 48px);
    width: 100%;
    align-content: start;}
.desktop-icon {
    width: 90px;
    text-align: center;
    cursor: move;
    user-select: none;
}

.desktop-icon.dragging {
    opacity: 0.7;
    z-index: 1000;
    transition: none;
}

.desktop-icon:hover .icon-bg {
    background: rgba(255, 255, 255, 0.15);
}

.desktop-icon.selected .icon-bg {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.icon-img {
width: 44px;
height: 44px;
}

.icon-github    { fill: #452799; }
.icon-telegram  { fill: #0bacfd; }
.icon-instagram { fill: #e4405f; }
.icon-linkedin  { fill: #0a66c2; }
.icon-email     { fill: #ce2e53; }
.icon-favorites { fill: #e91e63; }
.icon-education { fill: #22c55e; }
.icon-mypc      { fill: #60a5fa; }
.icon-resume    { fill: #f59e0b; }

.edu-overlay-win {
position: absolute;
bottom: 20px;
left: 20px;
max-width: calc(100% - 40px);
background: rgba(0, 0, 0, 0.85);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 6px;
padding: 14px 18px;
color: #e5e7eb;
font-family: "Segoe UI", sans-serif;
z-index: 1000;
pointer-events: none;
}

.edu-title {
font-size: 16px;
font-weight: 700;
line-height: 1.4;
color: #fff;
}

.edu-subtitle {
margin-top: 4px;
font-size: 14px;
opacity: 0.9;
line-height: 1.4;
}

.edu-progress {
margin-top: 8px;
font-size: 12px;
opacity: 0.7;
}

#edu-map {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.leaflet-tile-container {
  will-change: transform;
}

.leaflet-fade-anim .leaflet-tile {
  transition: opacity 0.6s ease-in-out !important;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.icon-bg {
    padding: 10px;
    border-radius: 4px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.icon-img {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    pointer-events: none;
}

.icon-label {
    color: #fff;
    font-size: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    word-wrap: break-word;
    pointer-events: none;
}
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    padding: 0 8px;
    z-index: 9000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.start-btn {
    width: 48px;
    height: 100%;
    color: #0078d4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.start-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-icon {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.taskbar-separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 8px;
}

.taskbar-apps {
    display: flex;
    gap: 2px;
    flex: 1;
}

.taskbar-app {
    height: 40px;
    min-width: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: transparent;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    border-radius: 0;
}

.taskbar-app:hover {
    background: rgba(255, 255, 255, 0.1);
}

.taskbar-app.active {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: #0078d4;
}

.taskbar-app-icon {
    width: 20px;
    height: 20px;
}

.taskbar-app-label {
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    padding: 0 12px;
}

.tray-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.tray-icon:hover {
    opacity: 1;
}

.clock {
    color: #fff;
    font-size: 12px;
    text-align: right;
    line-height: 1.3;
    cursor: pointer;
}
#start-menu {
    position: fixed;
    bottom: 56px;
    left: 8px;
    width: 640px;
    height: 680px;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9500;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#start-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.start-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.start-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    margin-bottom: 16px;
}

.start-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.start-user-name {
    font-size: 16px;
    font-weight: 500;
}

.start-search {
    width: 100%;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.start-search::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.start-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.start-section {
    margin-bottom: 28px;
}

.start-section-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.start-app-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.start-app-item {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    text-align: center;
}

.start-app-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-app-icon {
    width: 32px;
    height: 32px;
}

.start-app-name {
    font-size: 11px;
    line-height: 1.2;
}
.window {
    position: absolute;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    min-width: 400px;
    min-height: 300px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.window.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.window.minimizing {
    animation: minimize 0.3s ease-out forwards;
}

@keyframes minimize {
    to {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
}

.window-titlebar {
    height: 40px;
    background: #f3f3f3;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    cursor: move;
    border-radius: 8px 8px 0 0;
}

.window-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.window-title {
    font-size: 12px;
    color: #333;
    flex: 1;
}

.window-controls {
    display: flex;
    gap: 0;
}

.window-btn {
    width: 46px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 16px;
    color: #333;
}

.window-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.window-btn.close:hover {
    background: #e81123;
    color: #fff;
}

.window-content {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

#wifi-panel {
    position: fixed;
    bottom: 56px;
    right: 8px;
    width: 320px;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 20px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9500;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#wifi-panel.open {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.wifi-header {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.speed-test {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 16px;
}

.speed-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.speed-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.speed-value {
    font-size: 16px;
    font-weight: 600;
    color: #4ec9b0;
}
.favorites-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.fav-tab {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    color: #666;
    font-weight: 500;
}

.fav-tab.active {
    color: #0078d4;
    border-bottom-color: #0078d4;
}

.fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.fav-item {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.fav-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.fav-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.fav-info {
    padding: 12px;
}

.fav-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.fav-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.fav-artist {
    font-size: 11px;
    color: #999;
}
.email-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
}

.send-btn {
    background: #0078d4;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.send-btn:hover {
    background: #005a9e;
}

.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.email-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.email-status.success {
    background: #dff6dd;
    color: #107c10;
    display: block;
}

.email-status.error {
    background: #fde7e9;
    color: #a80000;
    display: block;
}

.about-content {
    display: flex;
    gap: 24px;
}

.about-photo {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
    line-height: 1.6;
    color: #333;
}

.about-text h2 {
    margin-bottom: 12px;
    color: #0078d4;
}

.about-text p {
    margin-bottom: 12px;
}


@media (max-width: 768px) {
#start-menu {
width: 100vw;
height: 100vh;
bottom: 0;
left: 0;
border-radius: 0;
}

.start-header {
padding: 20px;
position: relative;
}
.start-header::before {
content: '✕';
position: absolute;
top: 20px;
right: 20px;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
cursor: pointer;
z-index: 10;
}

.start-app-grid {
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}

.start-app-item {
aspect-ratio: 1;
padding: 20px;
}

.start-app-icon {
width: 48px;
height: 48px;
}

.start-app-name {
font-size: 13px;
}
.window {
width: 100vw !important;
height: 100vh !important;
left: 0 !important;
top: 0 !important;
border-radius: 0;
}
#taskbar {
height: 56px;
}

.taskbar-app-label {
display: none;
}
}