.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  background: #333;
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

header ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

#hero {
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}

#hero h2 {
  font-size: 2.5rem;
}

#hero .btn {
  background: #fff;
  color: #333;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 25px;
}

section {
  padding: 3rem 0;
}

#projects .project-grid {
  display: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project img {
  width: 100%;
  border-radius: 5px;
}

.UA {
  
  height: 150%;
}

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}
body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  color: #333;
  background: #f4f4f4;
}

#intro {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  color: white;
  text-align: center;
  font-size: 2rem;
  opacity: 0;
  animation: fadeIn 1.5s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

#github-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

#github-btn:hover {
  transform: scale(0.67);
}

#github-btn img {
  width: 20px;
  height: 20px;
}

#github-btn .tooltip {
  display: none;
  position: absolute;
  bottom: 40px;
  background: black;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
}

#github-btn:hover .tooltip {
  display: block;
}

.project-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 50px 0;
  opacity: 0;
  animation: fadeIn 1.5s 0.5s forwards;
}

.project-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 400px;
  height: 300px;
  border: 2px solid rgba(102, 102, 102, 0.5);
  border-radius: 10px;
  padding: 15px;
  transition: box-shadow 0.3s ease-in-out, transform 0.3s;
  background: white;
  position: relative;
  overflow: hidden;
}

.project-box:hover {
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
  transform: scale(1.08);
}

.project-box img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  border-radius: 5px;
}

.project-box p {
  margin-top: 10px;
  font-size: 1rem;
  text-align: center;
  opacity: 1; /* Always visible */
  transform: translateY(0); /* No movement */
  transition: none; /* No transition needed */
}

.project-box:hover p {
  opacity: 1;
  transform: translateY(0);
}


#about {
  padding: 50px;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1.5s 0.8s forwards;
}

#about h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

#about h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: #6a11cb;
  margin: 8px auto 0;
  border-radius: 2px;
  transition: width 0.3s;
}

#about:hover h2::after {
  width: 80px;
}

#about p {
  max-width: 800px;
  margin: auto;
  line-height: 1.6;
  font-size: 1.1rem;
  opacity: 0.74;
  transform: translateY(10px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#about:hover p {
  opacity: 1;
  transform: translateY(0);
}
#projects h2 {
  font-size: 2.2rem; /* Increased size */
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

#projects h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: #6a11cb;
  margin: 8px auto 0;
  border-radius: 2px;
  transition: width 0.3s ease-in-out;
}

#projects:hover h2::after {
  width: 80px;
}
