@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Markazi+Text:wght@400..700&family=Orbitron:wght@400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
}

body {
    height: 100vh;
    background: linear-gradient(135deg, #0f172a, #1e3a8a, #6d28d9, #9333ea);
    background-size: 300% 300%;
    animation: gradientAnimation 10s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    position: relative;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#toggleMode {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

#toggleMode:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.relogio {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 200px;
    width: 550px;
    background: transparent;
    border-radius: 3px;
    margin-bottom: 30px;
}

.relogio div {
    height: 170px;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(5, 5, 5, 0.9);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.7);
    border-radius: 7px;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
    transition: transform 0.3s;
}

.relogio div:hover {
    transform: scale(1.05);
    background: rgba(5, 5, 5, 0.95);
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.relogio span {
    font-weight: bolder;
    font-size: 60px;
    text-shadow: 0 0 10px #6d28d9, 0 0 20px #9333ea; /* Efeito neon */
}

.relogio span.tempo {
    font-size: 10px;
    text-shadow: none;
    margin-top: 5px;
}

.data {
    margin-top: 20px;
    font-size: 18px;
    letter-spacing: 2px;
    opacity: 0.8;
}

.progresso-dia {
    width: 550px;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.progresso-bar {
    height: 100%;
    background: linear-gradient(to right, #6d28d9, #9333ea);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
}

body.light-mode {
    background: linear-gradient(135deg, #e0e7ff, #a5b4fc, #8b5cf6, #7c3aed);
}

body.light-mode .relogio div {
    background: rgba(255, 255, 255, 0.9);
    color: #1e1e1e;
}

body.light-mode .relogio span {
    text-shadow: 0 0 10px #a78bfa, 0 0 20px #8b5cf6;
}

body.light-mode .progresso-bar {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
}
/* ========== RESPONSIVIDADE ========== */
.relogio {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 200px;
    width: 100%; 
    max-width: 550px; 
    background: transparent;
    margin: 0 auto; 
  }
  
  @media (max-width: 768px) {
    .relogio {
      height: 150px; 
      padding: 0 15px; 
    }
  
    .relogio div {
      height: 120px;
      width: 30%; 
      min-width: 80px; 
    }
  
    .relogio span {
      font-size: 32px; 
    }
  
    .relogio span.tempo {
      font-size: 8px; 
    }
  }
  
  
  @media (max-width: 400px) {
    .relogio span {
      font-size: 24px;
    }
  }
