/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #0c0c1b;
  color: #f0f0f0;
  overflow-x: hidden;
  margin: 0;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
  transition: background-image 1s ease-in-out;
}

/* Glass Transparent Header Tray */
header {
  position: fixed;
  top: 30px;
  left: 60px;
  right: 60px;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.1); /* Light transparent white */
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); /* Soft shadow */
  backdrop-filter: blur(12px); /* Glass blur */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Optional subtle border */
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  width: 70px;
  object-fit: contain;
  filter: brightness(1.2);
}

.logo span {
  font-weight: 600;
  font-size: 1.5rem;
  color: #f8f8ff;
 background: linear-gradient(
    270deg,
    #d8e2dc,   /* soft cloud white */
    #ffd6e0,   /* sakura pink */
    #bae6fd,   /* soft sky blue */
    #bde0fe,   /* misty blue */
    #caffbf,   /* light forest green */
    #fdffb6    /* gentle sunlight yellow */
  );
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flowingGradient 6s ease infinite;
}

@keyframes flowingGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.github-icon {
  font-size: 2rem;
  color: #ffffffcc;
  padding: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.github-icon:hover {
  color: #fff;
  transform: scale(1.1);
}

/* Clock Styles */
.clock {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  padding: 50px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.clock div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clock span {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 8px;
 background: linear-gradient(
    270deg,
    #d8e2dc,   /* soft cloud white */
    #ffd6e0,   /* sakura pink */
    #bae6fd,   /* soft sky blue */
    #bde0fe,   /* misty blue */
    #caffbf,   /* light forest green */
    #fdffb6    /* gentle sunlight yellow */
  );
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flowingGradient 6s ease infinite;
}

@keyframes flowingGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.clock .text {
  font-size: 1rem;
  background: linear-gradient(
    270deg,
    #d8e2dc,   /* soft cloud white */
    #ffd6e0,   /* sakura pink */
    #bae6fd,   /* soft sky blue */
    #bde0fe,   /* misty blue */
    #caffbf,   /* light forest green */
    #fdffb6    /* gentle sunlight yellow */
  );
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flowingGradient 6s ease infinite;
}

@keyframes flowingGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


/* Fade animation for numbers */
.fade {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0.4;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 800px) {

  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
  }

}

/* Responsive Design */
@media (min-width: 799px) {
  header {
    left: 250px;
    right: 250px;
  }
}

@media (max-width: 480px) {

  .clock span {
    font-size: 2rem;
  }

}

.footer {
  width: 100%;
  text-align: center;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: #ccc;
  font-size: 0.9rem;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}
