/* Global Reset and Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Poppins", sans-serif;
  color: #fff;
  background: #000;
  overflow: hidden;
}

/* Main Container */
.container {
  text-align: center;
  z-index: 1;
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Profile Photo Styling */
.photo img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Main Headings */
h1 {
  font-size: 2.5rem;
  letter-spacing: 4px;
  font-family: "Roboto Slab", serif;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.5rem;
  margin-top: 5px;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  color: #0f0;
}

/* Text Paragraph */
p {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #ccc;
}

/* Footer Section */
footer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ccc;
  z-index: 1;
}

.contact {
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.contact h3 {
  margin-bottom: 5px;
  font-size: 1.5rem;
  font-family: "Roboto Slab", serif;
}

.contact p {
  font-size: 1rem;
}

.contact a {
  color: #0f0;
  text-decoration: none;
  transition: color 0.3s;
}

.contact a:hover {
  color: #fff;
}

.tech-logos {
  position: absolute;
  bottom: 50px;
  width: 100%;
  overflow: hidden; /* Hide overflow so logos disappear off-screen */
  white-space: nowrap; /* Prevent logos from wrapping to a new line */
  z-index: 1;
}

.tech-logos .logo {
  display: inline-block;
  margin-right: 30px; /* Space between logos */
  width: 60px;
  height: 60px;
  filter: invert(1); /* Makes logos white for dark backgrounds */
  animation: scroll 6s linear infinite; /* Smooth infinite scrolling */
  transition: transform 0.3s ease;
}

@keyframes scroll {
  0% {
    transform: translateX(100%); /* Start the logos off-screen to the right */
  }
  100% {
    transform: translateX(-100%); /* Move the logos off-screen to the left */
  }
}

.logo:hover {
  transform: scale(1.2); /* Scale logos on hover */
}

/* Animation for fading in logos */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px);
  }
}

/* Media Queries */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  h2 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.9rem;
  }

  .photo img {
    max-width: 200px;
  }

  .tech-logos .logo {
    width: 50px;
    height: 50px;
    margin-right: 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  h2 {
    font-size: 1rem;
  }

  p {
    font-size: 0.8rem;
  }

  .photo img {
    max-width: 150px;
  }

  .contact h3 {
    font-size: 1.2rem;
  }

  .tech-logos .logo {
    width: 40px;
    height: 40px;
    margin-right: 15px;
  }
}
