body{
  margin:0;
  background:url("assets/bg.webp") no-repeat center center;
  background-size:cover;
  font-family:"Pixelify Sans";
  width:100vw;
  height:100vh;
  overflow:hidden;
  position:relative;
}

/* PIXEL QUALITY */
img{
  image-rendering: pixelated;
}

/* LEFT VERTICAL ICONS */
.desktop{
  position:absolute;
  left:5px;
  top:30px;
  display:flex;
  flex-direction:column;
  line-height:0;
  margin-left: 2%;
  font-size: 30px;
  gap:1px;
  color: white;
  text-align: center;
  overflow:hidden;
  z-index: 1;
}

/* ICON STYLES */
.icon{
  text-align:center;
  cursor:pointer;
}

.icon:hover{
  transform:scale(1.1);
  transition:transform 0.2s;
}

.icon img{
  width:64px;
}

.icon p{
  color:white;
  margin:5px 0 0 0;
}

/* SKILL SECTION */
.skill{
  display:flex;
  flex-direction:column;
  align-items:center;
  overflow:hidden;
}

.skills img{
  width:100px;
  display:block;
  transition: transform 0.3s ease;
  margin:0 auto;
  cursor: pointer;
}

.skills img:hover{
  transform: scale(1.2);
  transform-origin: center;
}

/* ABOUT SECTION */
.about{
  display:flex;
  flex-direction:column;
  align-items:center;
  overflow:hidden;
  cursor: pointer;
}

.about img{
  width:100px;
  display:block;
  transition: transform 0.3s ease;
  margin:0 auto;
}

.about img:hover{
  transform: scale(1.2);
  transform-origin: center;
}

/* PROJECTS SECTION */
.projects{
  display:flex;
  flex-direction:column;
  align-items:center;
  overflow:hidden;
  cursor: pointer;
}

.projects img{
  width:100px;
  display:block;
  transition: transform 0.3s ease;
  margin:0 auto;
}

.projects img:hover{
  transform: scale(1.2);
  transform-origin: center;
}

/* CONTACTS SECTION */
.contacts{
  display:flex;
  flex-direction:column;
  align-items:center;
  overflow:hidden;
  cursor: pointer;
}

.contacts img{
  width:100px;
  display:block;
  transition: transform 0.3s ease;
  margin:0 auto;
}

.contacts img:hover{
  transform: scale(1.2);
  transform-origin: center;
}

/* DOCK */
.dock{
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;

  background: rgba(0,0,0,0.6);
  padding: 12px 20px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  z-index: 150;
}

.dock img{
  width: 60px;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.dock img:hover{
  transform: scale(1.3);
}

/* WINDOW */
.window{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 90vw;
  max-width: 800px;
  height: 70vh;
  max-height: 600px;

  padding: 12px;
  box-sizing: border-box;
  background: #c94b45;
  border-radius: 6px;
  border: 4px solid #8f2c27;

  display: none;
  overflow-y: auto;
  z-index: 100;
}

.titlebar{
  background: #8f2f2b;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px 4px 0 0;
}

.close{
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  padding: 5px 10px;
  transition: transform 0.2s;
}

.close:hover{
  transform: scale(1.2);
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

/* TABLET - Portrait and Small Landscape */
@media screen and (max-width: 768px) {
  
  /* Reduce desktop icon sizes */
  .desktop {
    font-size: 20px;
    margin-left: 1%;
    gap: 5px;
  }

  .skills img,
  .about img,
  .projects img,
  .contacts img {
    width: 70px;
  }

  /* Smaller dock */
  .dock {
    gap: 12px;
    padding: 8px 15px;
    bottom: 10px;
  }

  .dock img {
    width: 45px;
  }

  .dock img:hover {
    transform: scale(1.15);
  }

  /* Window adjustments */
  .window {
    width: 95vw;
    height: 75vh;
    padding: 8px;
  }

  .titlebar {
    padding: 8px;
    font-size: 14px;
  }
}

/* MOBILE - Portrait */
@media screen and (max-width: 480px) {
  
  /* Stack desktop icons horizontally or reduce further */
  .desktop {
    font-size: 16px;
    margin-left: 0;
    left: 2px;
    top: 20px;
    gap: 3px;
    z-index: 1;
  }

  .skills img,
  .about img,
  .projects img,
  .contacts img {
    width: 50px;
  }

  /* Disable hover scale on mobile for better touch experience */
  .skills img:hover,
  .about img:hover,
  .projects img:hover,
  .contacts img:hover {
    transform: scale(1.05);
  }

  /* Compact dock for mobile */
  .dock {
    gap: 8px;
    padding: 6px 12px;
    bottom: 5px;
    border-radius: 15px;
    z-index: 150;
  }

  .dock img {
    width: 35px;
  }

  .dock img:hover {
    transform: scale(1.1);
  }

  /* Adjusted window positioning for mobile - avoid covering dock */
  .window {
    width: 95vw;
    height: 70vh;
    max-height: calc(100vh - 100px);
    padding: 6px;
    border-radius: 4px;
    top: 45%;
    left: 50%;
    z-index: 100;
  }

  .titlebar {
    padding: 6px 8px;
    font-size: 12px;
  }

  .close {
    font-size: 16px;
    padding: 3px 6px;
  }
}

/* LARGE DESKTOP */
@media screen and (min-width: 1440px) {
  
  .desktop {
    font-size: 35px;
    gap: 10px;
  }

  .skills img,
  .about img,
  .projects img,
  .contacts img {
    width: 120px;
  }

  .dock {
    gap: 25px;
    padding: 15px 25px;
  }

  .dock img {
    width: 70px;
  }

  .window {
    max-width: 1000px;
    max-height: 700px;
  }
}

/* LANDSCAPE MOBILE */
@media screen and (max-height: 500px) and (orientation: landscape) {
  
  /* Adjust desktop icons for landscape */
  .desktop {
    flex-direction: column;
    top: 10px;
    left: 5px;
    transform: none;
    gap: 5px;
    font-size: 14px;
    z-index: 1;
  }

  .skills img,
  .about img,
  .projects img,
  .contacts img {
    width: 45px;
  }

  /* Smaller dock in landscape */
  .dock {
    bottom: 5px;
    gap: 10px;
    padding: 4px 10px;
    z-index: 150;
  }

  .dock img {
    width: 30px;
  }

  /* Maximize window space but avoid dock */
  .window {
    width: calc(100vw - 180px);
    height: calc(100vh - 80px);
    top: 45%;
    left: 55%;
    z-index: 100;
  }

  .titlebar {
    padding: 4px 6px;
    font-size: 11px;
  }
}

/* TOUCH DEVICE ADJUSTMENTS */
@media (hover: none) and (pointer: coarse) {
  
  /* Remove hover effects for touch devices */
  .icon:hover,
  .skills img:hover,
  .about img:hover,
  .projects img:hover,
  .contacts img:hover,
  .dock img:hover {
    transform: none;
  }

  /* Add active states instead */
  .icon:active,
  .skills img:active,
  .about img:active,
  .projects img:active,
  .contacts img:active,
  .dock img:active {
    transform: scale(0.95);
    opacity: 0.8;
  }

  /* Larger touch targets */
  .close {
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.clock{
  position:fixed;
  top:30px;
  right:20px;

  color:white;
  font-size:60px;
  font-family:"Pixelify Sans";

  padding:6px 12px;
  border-radius:8px;
  backdrop-filter:blur(6px);

  z-index:20;
}
