/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styling */
body {
  font-family: "Poppins", sans-serif;
  background-color: #222;
  color: #fff;
}

/* Navigation Menu */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #00d1c1, #fa857b);
  padding: 10px 20px;
  z-index: 1000;
}

nav .logo img {
  max-width: 80px;
  border-radius: 50%;
  transition: transform 0.3s ease-in-out;
}

/* When the logo is rotating */
.rotate {
  animation: rotateLogo 2s linear infinite;
}

@keyframes rotateLogo {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  padding: 10px;
  transition: color 0.3s, transform 0.3s;
}

.nav-links li a:hover {
  color: #00d1c1;
  transform: scale(1.1);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px;
  transition: all 0.3s ease;
}

/* Hide mobile links on desktop */
.nav-links-mobile {
  display: none;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* When menu is toggled */
  .nav-links-mobile.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50px;
    right: 0;
    width: 100%;
    background-color: #222;
  }

  .nav-links-mobile li {
    margin: 20px;
  }

  .nav-links-mobile li a {
    color: #fff;
    font-size: 1.5rem;
  }

  .nav-links-mobile li a:hover {
    color: #00d1c1;
  }
}

/* Header Section */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #111, #222);
  padding-top: 80px;
}

header .intro-text h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem;
  color: #00d1c1;
  animation: fadeInText 2s ease-in-out forwards;
  opacity: 0;
}

@keyframes fadeInText {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Services Section */
#services {
  padding: 100px 20px;
  background-color: #111;
}

#services h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #00d1c1;
}

.services-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.service-item {
  flex-basis: 30%;
  padding: 20px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Hover animation for service items */
.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-item h3 {
  color: #00d1c1;
  margin-bottom: 15px;
}

.service-item:nth-child(1) {
  background-color: #34948c;
}

.service-item:nth-child(2) {
  background-color: #3988e2;
}

.service-item:nth-child(3) {
  background-color: #ff6b6b;
}

.service-item a {
  color: #fff;
  text-decoration: underline;
  display: inline-block;
  margin-top: 15px;
}

.service-item a:hover {
  color: #222;
  background-color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
}

/* Bio Section */
#about {
  padding: 100px 20px;
  background-color: #111;
  text-align: center;
}

#about h2 {
  margin-bottom: 40px;
  color: #00d1c1;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ccc;
}

.about-content h3 {
  color: #00d1c1;
  font-size: 1.8rem;
  transition: color 0.3s, transform 0.3s ease;
}

.about-content h3:hover {
  color: #fa857b;
  transform: scale(1.1);
}

.about-content p {
  margin-bottom: 20px;
}

/* Contact Section */
#contact {
  padding: 100px 20px;
  background-color: #222;
  text-align: center;
}

#contact h2 {
  color: #00d1c1;
  margin-bottom: 20px;
}

form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

input,
textarea {
  padding: 15px;
  margin-bottom: 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
}

button {
  padding: 15px;
  background-color: #00d1c1;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: #fa857b;
}

/* Footer Section */
footer {
  padding: 20px;
  text-align: center;
  background-color: #111;
  color: #666;
}
/* Logo rotate class */
.rotate-logo {
  animation: rotateLogo 2s linear infinite;
}

/* Logo rotate class */
.rotate-logo {
  animation: rotateLogo 2s linear infinite; /* Rotate the logo continuously */
}

@keyframes rotateLogo {
  from {
    transform: rotate(0deg); /* Start from 0 degrees */
  }
  to {
    transform: rotate(360deg); /* Rotate 360 degrees */
  }
}
