/* General */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Hero Section */
.hero-section {
  background: url('https://images.rawpixel.com/image_800/cHJpdmF0ZS9sci9pbWFnZXMvd2Vic2l0ZS8yMDI0LTExL3Jhd3BpeGVsX29mZmljZV8zMF9hYnN0cmFjdF9ncmFkaWVudF93aGl0ZV9iYWNrZ3JvdW5kX3ZlY3Rvcl9wcl9kZGY3ZTJiNC0wMjU3LTRjMTUtOWFjNS0xMmQwZTA0N2E4MWYuanBn.jpg') no-repeat center center;
  background-size: cover;
  height: 100vh;
  position: relative;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 40px;
  border-radius: 15px;
  max-width: 90%;
  animation: floatUp 3s ease-in-out infinite alternate;
}

.overlay h1 {
  font-size: 45px;
  margin-bottom: 15px;
  animation: fadeIn 1.5s ease forwards;
}

.overlay p {
  font-size: 20px;
  margin-bottom: 25px;
  animation: fadeIn 2s ease forwards;
}

.btn {
  padding: 12px 25px;
  font-size: 18px;
  background-color: #FFA500;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  transition: 0.3s;
  animation: floatButton 2s ease-in-out infinite alternate;
}

.btn:hover { background-color: #FF8C00; }

/* Floating Logos */
.floating-logos {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.logo {
  position: absolute;
  width: 50px;
  opacity: 0.8;
  animation: float 6s ease-in-out infinite alternate;
}

.logo.html { top: 10%; left: 15%; animation-duration: 5s; }
.logo.css { top: 20%; left: 70%; animation-duration: 6s; }
.logo.js { top: 50%; left: 10%; animation-duration: 4s; }
.logo.git { top: 60%; left: 80%; animation-duration: 7s; }
.logo.github { top: 35%; left: 50%; animation-duration: 6.5s; }

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(10deg); }
  100% { transform: translateY(0px) rotate(-10deg); }
}

/* Projects Section */
.projects-section {
  padding: 50px 20px;
  text-align: center;
  background-color: #f2f2f2;
}

.projects-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  animation: fadeIn 2s ease forwards;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.project-card {
  background-color: white;
  width: 280px;
  border-radius: 15px;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s;
  animation: floatCard 4s ease-in-out infinite alternate;
}

.project-card:hover { transform: translateY(-8px) scale(1.05); }

.project-card img { width: 100%; border-radius: 10px; margin-bottom: 12px; }

.project-card h3 { margin-bottom: 8px; }

.btn-small {
  display: inline-block;
  padding: 8px 18px;
  background-color: #FFA500;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 8px;
  transition: 0.3s;
}

.btn-small:hover { background-color: #FF8C00; }

/* Animations */
@keyframes floatUp { 0% { transform: translateY(0px); } 100% { transform: translateY(-10px); } }
@keyframes floatButton { 0% { transform: translateY(0px); } 100% { transform: translateY(-5px); } }
@keyframes floatCard { 0% { transform: translateY(0px); } 100% { transform: translateY(-8px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Tooltip */
.tooltip {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

/* Fix pointer events for logos */
.logo {
  pointer-events: auto;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .overlay h1 { font-size: 35px; }
  .overlay p { font-size: 18px; }
  .projects-container { flex-direction: column; align-items: center; }
  .project-card { width: 90%; }
}

@media (max-width: 480px) {
  .overlay h1 { font-size: 28px; }
  .overlay p { font-size: 16px; }
  .btn { font-size: 16px; padding: 10px 20px; }
  .logo { width: 35px; }
}
