@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  background: radial-gradient(ellipse at center, #1a0933, #050010 80%);
  color: white;
}

/* === Background Canvas === */
#bg {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* === Overlay Content === */
.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  animation: fadeIn 1.5s ease-out;
}

/* === Landing Logo === */
.landing-logo{
  width: 220px;
  height: auto;
  margin-bottom: 10px;

  filter:
    drop-shadow(0 0 20px rgba(28,148,121,0.45))
    drop-shadow(0 0 45px rgba(28,148,121,0.2));

  animation: logoFloat 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.landing-logo:hover{
  transform: scale(1.03);
}

/* Floating effect */
@keyframes logoFloat{
  0%,100%{
    transform: translateY(0px);
  }
  50%{
    transform: translateY(-8px);
  }
}

.overlay p {
  font-size: 1.3rem;
  margin: 15px 0 30px;
  color: #ddd;
  height: 30px; /* For Typed.js animation space */
}

/* === Social Icons === */
.socials {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-bottom: 20px;
  animation: float 6s ease-in-out infinite;
}

.socials img {
  width: 34px;
  height: 34px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.github img {
  filter: invert(100%);
}

.linkedin img {
  filter: invert(100%);
}

.socials img:hover {
  transform: translateY(-6px) scale(1.1);
  opacity: 0.9;
}

/* === Floating Animation === */
/* Keep existing float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Apply animation with different delays and directions */
.socials a:nth-child(1) {
  animation: float 4s ease-in-out infinite;
}

.socials a:nth-child(2) {
  animation: float 4s ease-in-out infinite;
  animation-delay: 2s; /* makes LinkedIn go opposite phase */
}


/* === Explore Button === */
#enter-btn {
  background-color: #1c9479;
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(28, 148, 121, 0.5);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

#enter-btn:hover {
  background-color: #22b992;
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(28, 148, 121, 0.8);
}

/* === Glow Animation for Heading === */
@keyframes glowPulse {
  0% { text-shadow: 0 0 15px #1c9479, 0 0 35px #1c9479; }
  100% { text-shadow: 0 0 35px #22b992, 0 0 60px #22b992; }
}

/* === Fade In Overlay === */
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -55%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* === Responsive Tweaks === */
@media (max-width: 768px) {
  .overlay h1 {
    font-size: 2.2rem;
  }
  .overlay p {
    font-size: 1.1rem;
  }
  #enter-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}
