/* RESET */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  overflow: hidden;
}

/* ========================= */
/* ⏳ BOOT / LOADING SCREEN */
/* ========================= */

#loading {
  position: fixed;
  width: 100%;
  height: 100%;
  background: linear-gradient(#0a1a2f, #1e3c72);
  color: #aee6ff;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  z-index: 9999;
  font-size: 1.5em;
  text-align: center;

  animation: fadeOut 2s ease 4s forwards;
}

/* Glowing loading text */
#loading h1 {
  text-shadow: 0 0 20px #4fc3f7;
  margin-bottom: 20px;
}

/* Loading bar */
.loading-bar {
  width: 300px;
  height: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
}

.loading-bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, #4fc3f7, #81d4fa);
  animation: loadMove 2s infinite;
}

@keyframes loadMove {
  0% { margin-left: -40%; }
  100% { margin-left: 100%; }
}

/* Fade out */
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ========================= */
/* 🖥️ DESKTOP */
/* ========================= */

.desktop {
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom, #6ec6ff, #b3e5fc);
  position: relative;
  overflow: hidden;
}

/* ========================= */
/* ☁️ CLOUDS */
/* ========================= */

.cloud {
  position: absolute;
  width: 200px;
  height: 100px;
  background: rgba(255,255,255,0.7);
  border-radius: 100px;
  filter: blur(8px);
}

.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.cloud::before { top: -50px; left: 20px; }
.cloud::after { top: -30px; right: 20px; }

.cloud1 {
  top: 20%;
  left: -250px;
  animation: cloudMove 60s linear infinite;
}

.cloud2 {
  top: 40%;
  left: -300px;
  animation: cloudMove 90s linear infinite;
}

@keyframes cloudMove {
  from { transform: translateX(0); }
  to { transform: translateX(120vw); }
}

/* ========================= */
/* 🪟 WINDOWS */
/* ========================= */

.window {
  position: absolute;
  width: 300px;
  border-radius: 15px;
  overflow: hidden;

  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(15px);

  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* Title bar */
.title-bar {
  padding: 10px;
  background: linear-gradient(to right, #4fc3f7, #81d4fa);
  color: white;
  cursor: grab;
  font-weight: bold;
  text-shadow: 0 0 10px white;
}

/* Window content */
.window-content {
  padding: 15px;
  color: #034;
}

/* ========================= */
/* 🌍 GLOBE */
/* ========================= */

.globe {
  width: 120px;
  height: 120px;
  margin: 20px auto;
  border-radius: 50%;

  background: radial-gradient(circle at 30% 30%, #4fc3f7, #01579b);

  box-shadow: inset -10px -10px 30px rgba(0,0,0,0.4);

  animation: spin 8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================= */
/* 🍎 DOCK */
/* ========================= */

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

  display: flex;
  gap: 15px;

  padding: 10px 20px;
  border-radius: 20px;

  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);

  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Dock icons */
.dock-icon {
  font-size: 30px;
  transition: 0.3s;
  cursor: pointer;
}

.dock-icon:hover {
  transform: scale(1.5) translateY(-10px);
}

/* ========================= */
/* 💧 RIPPLE EFFECT */
/* ========================= */

.ripple {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: translate(-50%, -50%);
  animation: rippleEffect 1s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}