@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  /* background: linear-gradient(135deg, #4a00e0, #8e2de2); */
  /* background: linear-gradient(135deg, #00ffd5, #8e2de2); */
  background: linear-gradient(135deg, #00d1ae, #0011ff);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(15px);
  background: rgba(255, 247, 247, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.logo span {
  background: linear-gradient(90deg, #00ffd5, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav a {
  color: #fff;
  margin: 0 1rem;
  text-decoration: none;
  transition: 0.3s;
}
nav a:hover {
  color: #00ffd5;
}

.hero {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  height: 100vh;
  gap: 1rem;
  background: 
  linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
  url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content {
  text-align: center;
  padding: 3rem;
  max-width: 600px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: #00e7c1;
  color: #111;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: 0.3s;
}
.btn:hover {
  background: #fff;
  color: black;
}

.section {
  text-align: center;
  padding: 5rem 10rem;
}

.section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.card {
  width: 300px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-10px);
}

.contact {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
}

.whatsapp {
  background: #25D366;
  color: white;
}

.btn.whatsapp img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

footer {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .cards {
    flex-direction: column;
    align-items: center;
  }
  nav a {
    margin: 0 0.5rem;
  }
}

/* Floating elements container covers its parent */
.floating-elements {
  position: absolute; /* parent should be position: relative (e.g. .hero) */
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  pointer-events: none; /* doesn't block interactions */
  overflow: hidden;
  z-index: 50; /* above background but below nav/buttons if needed */
}

/* Fade + Upward Floating Animation */
@keyframes floatUp {
  0% {
    transform: translate(-50%, 100%); /* start below the screen */
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%); /* mid screen */
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -200%); /* move upward out of view */
    opacity: 0;
  }
}

/* Apply the new animation */
.floating-elements .element {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.35rem 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  user-select: none;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(0,255,213,0.25), rgba(142,45,226,0.25));
  color: #fff;
  box-shadow: 0 8px 30px rgba(8,7,16,0.35);
  opacity: 0;
  animation: floatUp 2s ease-in-out infinite; /* faster upward motion */
  will-change: transform, opacity;
}

/* Responsive: reduce clutter on small screens */
@media (max-width: 600px) {
  .floating-elements .element { font-size: .78rem; padding: .25rem .6rem; opacity: 0.92; }
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  min-height: 80vh;
}

.about-glass {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  max-width: 1000px;
  width: 100%;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  background: rgba(0, 255, 213, 0.08);
}

.about-image {
  flex: 1 1 250px;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 230px;
  height: 230px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid rgba(0,255,213,0.6);
  box-shadow: 0 0 30px rgba(0,255,213,0.4);
  transition: transform 0.4s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

.about-text {
  flex: 2 1 350px;
  color: #fff;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-text p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about .btn {
  background: linear-gradient(135deg, #00ffd5, #8e2de2);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.about .btn:hover {
  transform: scale(1.05);
}

/* Extra mobile responsiveness */
@media (max-width: 768px) {
  .navbar {
    height: 60px;
    padding: 0 1rem;
  }

  .logo img {
    height: 38px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero {
    height: 90vh; /* make hero taller for mobile */
    flex-direction: column; /* stack content vertically */
    padding-top: 20px; /* space below fixed navbar */
  }

  .hero-content {
    padding: 2rem;
    max-width: 90%;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .about-glass {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .about-image img {
    width: 180px;
    height: 180px;
  }

  nav a {
    display: inline-block;
    margin: 0.5rem;
    font-size: 0.9rem;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .contact {
    width: 90%;
    padding: 2rem 1rem;
  }

  footer {
    font-size: 0.9rem;
  }
}
