body {
  font-family: "Arial", sans-serif;
}

#hero {
  color: white;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.text-shadow {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

#about img {
  transition: transform 0.3s ease;
}

#about img:hover {
  transform: scale(1.1);
}

.icon i {
  transition: color 0.3s ease;
}

.icon i:hover {
  color: #007bff;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

footer a:hover {
  text-decoration: underline;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
  list-style-type: none;
}

.timeline-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  margin-bottom: 2rem;
  padding-left: 30px;
}

.timeline-item .timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: #3a7bd5;
  border-radius: 50%;
}

.timeline-item .timeline-content {
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.timeline-item .timeline-content h4 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 600;
}

.timeline-item .timeline-content span {
  display: block;
  font-size: 14px;
  color: #a9a9a9;
  margin-bottom: 10px;
}

.timeline-item .timeline-content p {
  margin: 0;
  font-size: 16px;
  color: #d3d3d3;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #3a7bd5;
}

/* Floating Icons Container */
.floating-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allows clicking through icons */
  z-index: 9999; /* Ensures icons are on top of other content */
}

.icon {
  position: absolute;
  width: 50px; /* Adjust size as needed */
  height: 50px; /* Adjust size as needed */
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  /* Default animation for icons */
  animation: float 10s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Hero Section */
#hero {
  position: relative;
  overflow: hidden;
}

/* Floating Icons Container */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allows clicking through icons */
  z-index: 1; /* Ensures icons are on top of other content */
  overflow: hidden;
}

.icon {
  position: absolute;
  width: 50px; /* Adjust size as needed */
  height: 50px; /* Adjust size as needed */
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  font-size: 24px; /* Adjust for font-awesome icons */
  color: #fff; /* Adjust color for visibility */
}

/* Exclude .skills-icon from floating effect */
.skills-icon {
  position: static; /* Ensures these icons are not affected by floating script */
  /* Any other styles to override floating behavior */
  margin: auto;
  font-size: 24px;
}

/* Dark theme for Experience Section */
#experience {
  background-color: #212529; /* Darker background color */
  color: #e9ecef; /* Light text color */
}

#experience .timeline-item {
  border-left: 2px solid #495057; /* Lighter border for timeline items */
}

#experience .timeline-content {
  background-color: #343a40; /* Dark background for timeline content */
  color: #e9ecef; /* Light text color */
  border-radius: 5px;
  padding: 15px;
}

/* Dark theme for Contact Section */
#contact {
  background-color: #212529; /* Darker background color */
  color: #e9ecef; /* Light text color */
}

#contact .form-label {
  color: #e9ecef; /* Light text color for labels */
}

#contact .form-control {
  background-color: #343a40; /* Dark background for form fields */
  color: #e9ecef; /* Light text color for form fields */
  border-color: #495057; /* Lighter border for form fields */
}

#contact .form-control:focus {
  border-color: #007bff; /* Blue border on focus */
  box-shadow: 0 0 0 0.25rem rgba(38, 143, 255, 0.25); /* Blue shadow on focus */
}

/* Example color classes */
.icon.fa-laptop {
  color: #ff6347;
} /* Tomato */
.icon.fa-mobile-alt {
  color: #4682b4;
} /* Steel Blue */
.icon.fa-tablet {
  color: #32cd32;
} /* Lime Green */
.icon.fa-camera {
  color: #ff4500;
} /* Orange Red */
.icon.fa-cloud {
  color: #1e90ff;
} /* Dodger Blue */

#gameContainer {
  position: relative;
}

.bug {
  width: 40px;
  height: 40px;
  background-image: url("https://cdn-icons-png.flaticon.com/512/616/616408.png");
  background-size: contain;
  background-repeat: no-repeat;
  transition: top 0.4s ease, left 0.4s ease; /* Makes it glide */
  cursor: pointer;
}

#gameContainer {
  width: 100%;
  height: 100%;
  position: relative;
  background-image: url("dog-park.jpg"); /* Path to your background image */
  background-size: cover; /* Ensures the image covers the container */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents the image from repeating */
}

.slot-cell {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fffdf7;
  font-size: 2rem;
  transition: background-color 0.2s ease;
}

.slot-cell:nth-child(odd) {
  background-color: #fffaf0;
}

.slot-cell.win {
  background-color: #d4edda !important;
  border: 2px solid #28a745;
  animation: pulse 0.5s ease-in-out 3;
  text-decoration: line-through;
}

@keyframes pulse {
  0% {
    background-color: #d4edda;
  }
  50% {
    background-color: #c3e6cb;
  }
  100% {
    background-color: #d4edda;
  }
}