:root {
    --desktop-color: #0078d7;
    --window-bg: #ffffff;
    --window-title: #0078d7;
    --border-dark: #aaaaaa;
    --border-light: #e9e9e9;
    --text-color: #333333;
    --icon-bg: #e2f1fb;
    --taskbar-bg: rgba(32, 64, 86, 0.7);
    --taskbar-start: rgba(32, 64, 86, 0.85);
    --window-shadow: rgba(0, 0, 0, 0.4);
    --button-hover: #d9eaf9;
    --button-active: #9dd1ff;
    --titlebar-gradient-1: rgba(58, 131, 213, 0.9);
    --titlebar-gradient-2: rgba(41, 112, 196, 0.9);
    --window-glow: rgba(120, 200, 255, 0.6);
    --window-border: rgba(0, 174, 239, 0.5);
    
}



* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
    cursor: url('assets/cursor styles/Normal Select.png'), auto;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    
}

a {
    cursor: url('assets/cursor styles/Pointer.png'), pointer !important;
}

.tags {
    margin-top: 10px;
}
.tag {
    display: inline-block;
    background-color: #0078d7;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 5px;
    font-size: 0.9em;
}
.date {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
}

#desktop {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--desktop-color);
    background-image: url('https://frutiger-aero.org/img/frutiger-aero-helvetica-aqua-aero.webp');
    background-size:cover;
    background-position: center;
    overflow: hidden;
    padding: 10px;
}

#taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--taskbar-bg);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0px -1px 0px rgba(255, 255, 255, 0.3), 0px -2px 10px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#start-button {
    margin-left: 10px;
    padding: 5px 15px;
    background: linear-gradient(to bottom, rgba(120, 174, 252, 0.8), rgba(43, 93, 161, 0.8));
    border-radius: 3px;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    cursor: url('assets/cursor styles/Pointer.png'), pointer !important;
    height: 30px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#start-button:hover {
    background: linear-gradient(to bottom, rgba(140, 194, 255, 0.8), rgba(63, 113, 181, 0.8));
    box-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
}

#start-button img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

#open-windows {
    display: flex;
    margin-left: 10px;
}

.taskbar-item {
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: url('assets/cursor styles/Pointer.png'), pointer !important;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2) inset;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.taskbar-item.active {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.3);
}

.taskbar-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.icon-image:hover{
    cursor: url('assets/cursor styles/Pointer.png'), pointer !important;
}

.icon-text:hover{
    cursor: url('assets/cursor styles/Pointer.png'), pointer !important;
}

#time {
    margin-left: auto;
    margin-right: 15px;
    font-size: 13px;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.ccm-settings-summoner { 
   bottom: 0%; 
   right: 40%; 
 } 

.icon {
    width: 80px;
    height: 90px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: url('assets/cursor styles/Pointer.png'), pointer !important;
    transition: background-color 0.2s;
    border-radius: 5px;
    padding: 5px;
}

.icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.3);
}

.icon-image {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    border-radius: 5px;
  }
  
  .icon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
  }

  .icon-image img:hover{
    cursor: url('assets/cursor styles/Pointer.png'), pointer !important;
  }

.icon-text {
    text-align: center;
    color: white;
    font-size: 12px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
}

.window {
    position: absolute;
    min-width: 350px;
    min-height: 250px;
    background-color: var(--window-bg);
    border-radius: 8px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 100;
    border: 1px solid rgba(0, 120, 215, 0.8);
}

/* Add the thick glass frame around windows */
.window::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 12px;
    background: rgba(180, 220, 255, 0.2);
    border: 5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 0 12px 2px rgba(70, 150, 255, 0.5),
        inset 0 0 6px rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    z-index: -1;
    pointer-events: none;
}

.window.active::before {
    background: rgba(180, 220, 255, 0.35);
    box-shadow: 
        0 0 18px 3px rgba(70, 150, 255, 0.7),
        inset 0 0 8px rgba(255, 255, 255, 0.9);
}


.window-content {
    position: relative;
    z-index: 2;
}

.titlebar {
    height: 32px;
    background: linear-gradient(to bottom, var(--titlebar-gradient-1), var(--titlebar-gradient-2));
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: white;
    font-weight: normal;
    cursor: url('assets/cursor styles/Move.png'), move !important;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    position: relative;
    width: 100%;
    z-index: 3; 
}

.title {
    flex-grow: 1;
    font-size: 13px;
}

.window-controls {
    display: flex;
    position: relative;
    z-index: 3; 
}

.control-button {
    width: 24px;
    height: 22px;
    margin-left: 4px;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: url('assets/cursor styles/Pointer.png'), pointer !important;
    color: white;
    font-size: 12px;
    transition: background-color 0.2s;
}

.control-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.control-button.close:hover {
    background-color: #e81123;
}

.window-content {
    padding: 15px;
    height: calc(100% - 32px);
    overflow: auto;
    background-color: #fff;
}

button {
    padding: 6px 12px;
    background: linear-gradient(to bottom, #f9f9f9, #e6e6e6);
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    cursor: url('assets/cursor styles/Pointer.png'), pointer !important;
    font-size: 13px;
    color: #333;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

button:hover {
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
}

input, textarea {
    padding: 6px 8px;
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    font-size: 13px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1) inset;
}

input:focus, textarea:focus {
    outline: 2px solid var(--window-title);
    border-color: var(--window-title);
    box-shadow: 0px 0px 8px rgba(0, 120, 215, 0.3);
}

#start-menu {
    position: absolute;
    bottom: 46px;
    left: 5px;
    width: 280px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: 0px 0px 20px var(--window-shadow), 0px 0px 15px var(--window-glow);
    display: none;
    z-index: 1001;
    border: 1px solid var(--window-border);
}

#start-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 8px;
    pointer-events: none;
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.5);
    z-index: -1;
}

.start-item {
    padding: 8px 15px;
    display: flex;
    align-items: center;
   cursor: url('assets/cursor styles/Pointer.png'), pointer !important;
    transition: background-color 0.2s;
    position: relative;
    z-index: 1;
}

.start-item:hover {
    background-color: var(--button-hover);
    box-shadow: 0px 0px 10px rgba(0, 120, 215, 0.2);
}

.start-item img {
    width: 24px;
    height: 24px;
    margin-right: 15px;
}

.about-content, .projects-content, .contact-content, .resume-content {
    padding: 20px;
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.5;
}

h2 {
    color: var(--window-title);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
    margin-top: 0;
}

h3 {
    color: #444;
    margin-top: 15px;
    margin-bottom: 10px;
}

.projects-content .project {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid var(--border-light);
    transition: box-shadow 0.2s;
}

.projects-content .project img {
    max-width: 100%;
    height: auto;
    left: 0;
    display: block;
    margin: 0 auto 10px; 
    border-radius: 5px; 
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); 
}

.projects-content .project:hover {
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

ul {
    margin-top: 5px;
}

li {
    margin-bottom: 5px;
}


.window[style*="width: 100%"] {
    border-radius: 0;
}

.window[style*="width: 100%"]::before {
    border-radius: 0;
}

.window[style*="width: 100%"] .titlebar {
    border-radius: 0;
}

.resize-handle {
    position: absolute;
    background: transparent;
    z-index: 10;
}

.resize-handle-w {
    width: 10px;
    height: 100%;
    top: 0;
    left: 0;
    cursor: url("assets/cursor styles/Horizontal Resize.png"), w-resize !important;
}

.resize-handle-e {
    width: 10px;
    height: 100%;
    top: 0;
    right: 0;
    cursor: url("assets/cursor styles/Horizontal Resize.png"), e-resize !important;
}

.resize-handle-s {
    width: 100%;
    height: 10px;
    bottom: 0;
    left: 0;
    cursor: url("assets/cursor styles/Vertical Resize.png"), s-resize !important;
}

.resize-handle-n {
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
    cursor: url("assets/cursor styles/Vertical Resize.png"), n-resize !important;
}

/* Diagonal handles */
.resize-handle-ne {
    width: 10px;
    height: 10px;
    top: 0;
    right: 0;
    cursor: url("assets/cursor styles/ne&sw.png"), ne-resize !important;
  }
  
  .resize-handle-nw {
    width: 10px;
    height: 10px;
    top: 0;
    left: 0;
    cursor: url("assets/cursor styles/nw&se.png"), nw-resize !important;
  }
  
  .resize-handle-se {
    width: 10px;
    height: 10px;
    bottom: 0;
    right: 0;
    cursor: url("assets/cursor styles/nw&se.png"), se-resize !important;
  }
  
  .resize-handle-sw {
    width: 10px;
    height: 10px;
    bottom: 0;
    left: 0;
    cursor: url("assets/cursor styles/ne&sw.png"), sw-resize !important;
  }


*::-webkit-scrollbar {
    width: 16px; 
  }
  
  *::-webkit-scrollbar-track {
    background: #F0F0F0; 
    border: 1px solid #DADADA;
    cursor: url('assets/cursor styles/Pointer.png'), pointer !important;
  }
  
  *::-webkit-scrollbar-thumb {
    background: #C4C4C4; 
    border: 1px solid #A9A9A9;
    border-radius: 3px;
  }
  
  *::-webkit-scrollbar-thumb:hover {
    background: #7EBDFF; 
    cursor: url('assets/cursor styles/Pointer.png'), pointer !important;
  }
  
  *::-webkit-scrollbar-button {
    background: #E9E9E9;
    border: 1px solid #DADADA;
    height: 16px;
    width: 16px;
    cursor: url('assets/cursor styles/Pointer.png'), pointer !important;
  }
  
  *::-webkit-scrollbar-button:hover {
    background: #D0D0D0;
    cursor: url('assets/cursor styles/Pointer.png'), pointer !important;
  }
  
  ::-webkit-scrollbar-thumb:hover{cursor:url("assets/cursor styles/Pointer.png"), auto}


@media (max-width: 768px) {
    body, html {
      overflow-x: hidden;
      height: 100%;
      width: 100%;
      position: fixed;
    }
    
    #desktop {
      position: fixed;
      width: 100%;
      height: 100%;
      overflow: auto;
    }
    
    .icon {
      width: 70px;
      height: 70px;
      margin: 10px;
      touch-action: none;
    }
    
    .icon-image {
      width: 40px;
      height: 40px;
      font-size: 20px;
      line-height: 40px;
    }
    
    .window {
      width: 100% !important;
      height: calc(100% - 40px) !important;
      top: 0 !important;
      left: 0 !important;
      border-radius: 0 !important;
      transform: none !important;
      position: fixed;
    }
    
    .window .titlebar {
      border-radius: 0;
      padding: 8px;
      height: 40px;
    }
    
    .window-content {
      padding: 10px;
      font-size: 16px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      height: calc(100% - 40px);
    }
    
    input, textarea, button {
      font-size: 16px;
      padding: 8px;
      margin-bottom: 15px;
    }
    
    button {
      padding: 10px 15px;
    }
    
    #taskbar {
      height: 40px;
    }
    
    #start-button {
      padding: 8px 12px;
    }
    
    .taskbar-item {
      max-width: 120px;
      font-size: 12px;
      padding: 5px 8px;
    }
    
    #start-menu {
      width: 80%;
      max-width: 250px;
    }
    
    .start-item {
      padding: 12px;
      font-size: 16px;
    }
    
    .resize-handle {
      display: none;
    }

    
    .control-button {
      width: 30px;
      height: 30px;
      line-height: 30px;
      font-size: 18px;
      margin-left: 5px;
    }
    
    .project {
      margin-bottom: 25px;
    }
    
    .project img {
      max-width: 100%;
      height: auto;
    }
  }
