/* style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body, html {
    height: 100%;
    width: 100%;
    font-family: sans-serif;
    overflow: hidden;
  }

  .center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    pointer-events: none; /* Optional: allows clicks to pass through */
    z-index: 1;
  }
  
  #desktop {
    height: 100%;
    width: 100%;
    background-color: #1e1e1e; /* fallback color */
    background-image: url('background.jpg'); /* real image file */
    background-size: cover;
    background-position: center;
    position: relative;
  }

  /* Light And Dark Mode */

  body.dark-mode {
    background-color: #1e1e1e;
    color: #fff;
  }
  
  body.light-mode {
    background-color: #f0f0f0;
    color: #000;
  }
  
  body.light-mode .window {
    background-color: #fff;
    color: #000;
  }
  
  body.dark-mode .window {
    background-color: #2e2e2e;
    color: #fff;
  }
  
  /* Optional: window-header contrast */
  body.light-mode .window-header {
    background-color: #ddd;
    color: #000;
  }
  
  body.dark-mode .window-header {
    background-color: #444;
    color: #fff;
  }
  
  /* Style the toggle button */
  #theme-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
  }
  
  body.light-mode #theme-toggle {
    color: #000;
  }

  /* Desktop background */
body.dark-mode #desktop {
    background-color: #1e1e1e;
  }
  
  body.light-mode #desktop {
    background-color: #f4f4f4;
  }
  
  /* Center image logo (optional light version) */
  body.light-mode #center-image {
    filter: brightness(0.8) contrast(1.2);
  }
  
  /* Desktop icons */
  body.light-mode .icon {
    background-color: #ffffff22;
    color: black;
  }
  
  body.dark-mode .icon {
    background-color: #00000033;
    color: white;
  }
  
  /* Window */
  body.light-mode .window {
    background-color: white;
    color: black;
  }
  
  body.dark-mode .window {
    background-color: #2e2e2e;
    color: white;
  }
  
  /* Window header */
  body.light-mode .window-header {
    background-color: #ddd;
    color: #000;
  }
  
  body.dark-mode .window-header {
    background-color: #444;
    color: #fff;
  }
  
  /* Taskbar */
  body.light-mode #taskbar {
    background-color: #eee;
    border-top: 1px solid #ccc;
  }
  
  body.dark-mode #taskbar {
    background-color: #111;
    border-top: 1px solid #333;
  }
  
  /* Footer */
  body.light-mode footer,
  body.light-mode .footer {
    color: #222;
  }
  
  body.dark-mode footer,
  body.dark-mode .footer {
    color: #ccc;
  }
  
  /* Toggle button */
  #theme-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
  }
  
  body.dark-mode #theme-toggle {
    color: white;
  }
  
  body.light-mode #theme-toggle {
    color: black;
  }
  
  
  /* Icons */

 /* Centered Icon Bar */
.icon-bar {
    position: absolute;
    bottom: 120px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 50px;
  }
  
  /* Individual Icons */
  .icon {
    width: 80px;
    text-align: center;
    color: white;
    cursor: pointer;
    user-select: none;
  }
  
  .icon img {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto;
  }

  .icon img:hover {
    filter: drop-shadow(0 0 8px #00f8ff);
    transform: scale(1.05);
  }
  
  .icon span {
    display: block;
    font-size: 14px;
    margin-top: 6px;
  }

  /* Windows */

  .window {
  width: 400px;
  height: 300px;
  background-color: #2e2e2e;
  border: 1px solid #666;
  position: absolute;
  top: 100px;
  left: 150px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 10px #000;
  color: white;
  resize: none; /* disable native resize */
  overflow: hidden;
}

.window {
    transition: all 0.25s ease;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }

.resize-handle {
    width: 15px;
    height: 15px;
    background: transparent;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    position: absolute;
    right: 0;
    bottom: 0;
    cursor: se-resize;
  }

.window-header {
  height: 30px;
  background-color: #444;
  padding: 5px 10px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.window-content {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}


.window-controls {
  display: flex;
  gap: 5px;
}

.window-controls button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 18px;
}

@keyframes popIn {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
  }
  .window {
    animation: popIn 0.2s ease;
  }

  .window.dragging {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 5px rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.1s ease;
  }

/* Taskbar*/

#taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 30px;
    width: 100%;
    background-color: #111;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
    z-index: 100;
    border-top: 1px solid #333;
  }
  
  .taskbar-btn {
    background-color: #2e2e2e;
    color: white;
    border: 1px solid #555;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
  }
  
  .taskbar-btn:hover {
    background-color: #444;
  }

  /* Taskbar Clock*/

  .taskbar-clock {
  margin-left: auto;
  color: white;
  font-size: 13px;
  font-family: monospace;
  padding: 0 8px;
}

body.light-mode .taskbar-clock {
  color: black;
}

#clock {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 16px;
    font-family: monospace;
    color: white;
    background-color: rgba(0,0,0,0.4); /* optional dark background */
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    z-index: 9999;
    cursor: pointer;
  }
  
  body.light-mode #clock {
    color: black;
    background-color: rgba(255, 255, 255, 0.6);
  }


/* Social Media */

.social-list {
    list-style: none;
    padding: 0;
  }
  
  .social-list li {
    margin-bottom: 10px;
  }
  
  .social-list a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
  }
  
  .social-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
  }

  /* Footer Style */
footer {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 14px;
    font-family: sans-serif;
    opacity: 0.7;
  }

  body.light-mode .center-logo {
    max-height: 55%;
    top: 50%;
  }

  /* Responsive layout for phones */
@media (max-width: 768px) {
    .center-logo {
      max-width: 95%;
      max-height: 55%;
      top: 40%;
    }
  
    .icon-bar {
      flex-wrap: wrap;
      gap: 20px;
      bottom: 100px;
    }
  
    .icon {
      width: 60px;
    }
  
    .icon img {
      width: 48px;
      height: 48px;
    }
  
    .icon span {
      font-size: 12px;
    }
  
    .window {
      width: 90vw !important;
      height: 60vh !important;
      left: 5vw !important;
      top: 20vh !important;
    }
  
    .window-header {
      font-size: 14px;
      padding: 4px 8px;
    }
  
    .window-controls button {
      font-size: 14px;
      width: 20px;
      height: 20px;
    }
  
    #taskbar {
      flex-wrap: wrap;
      gap: 5px;
      font-size: 12px;
      height: auto;
      padding: 5px;
    }
  
    #clock {
      font-size: 14px;
      padding: 4px 8px;
      top: 5px;
      left: 5px;
    }
  
    footer {
      font-size: 12px;
      bottom: 40px;
    }
  }
  
  /* Contact Form */
  
  .confirmation-message {
  animation: fadeIn 0.4s ease-in-out;
}

/* Links */

a {
  color: #00f8ff;
  text-decoration: none;
}

a:visited {
  color: #00f8ff;
}

a:hover {
  text-decoration: underline;
}

a:active {
  color: #00e0ff;
}