@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset basic styles */
body,
h1,
h2,
p,
button {
  margin: 0;
  padding: 0;
  font-family: "Poppins";
}

* {
  box-sizing: border-box;
}

/* Navbar Styling */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  padding: 10px 20px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: white;
  font-size: 1.8rem;
  text-decoration: none;
  font-weight: bold;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center; /* Ensure items are vertically centered */
}

.nav-item {
  margin: 0 15px;
}

.nav-item a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-flex; /* Ensure anchors are inline-flex */
  align-items: center; /* Center text vertically */
}

.nav-item a:hover {
  background-color: white;
  color: #000000;
}

.nav-item a:active {
  background-color: lightgray;
}

/* Hamburger Menu Styling */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  width: 30px;
  height: 4px;
  background-color: white;
  margin: 5px 0;
  transition: 0.3s;
}

/* Home Section */
.home {
  height: 100vh;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding-top: 80px; /* Adjust padding for fixed navbar */
}

.home-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease-out;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border-radius: 0 0 10px 10px;
    padding: 10px 0;
    z-index: 1000;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-item {
    margin: 10px 0;
    text-align: center;
  }

  .nav-item a {
    font-size: 18px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
  }

  .hamburger {
    display: flex;
  }

  .bar {
    background-color: white;
  }

  .home {
    padding-top: 100px; /* Adjust padding for mobile */
  }
}

/* Keyframe Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image Styling */
img {
  max-width: 100%; /* Ensures image scales with screen */
  display: block;
  margin: 20px auto; /* Centers the image and adds spacing */
  border-radius: 15px; /* Adds rounded corners for a stylish look */
  height: 250px;
}

/* Responsive design for image */
@media (max-width: 768px) {
  img {
    max-width: 90%; /* Slightly reduce width on smaller screens */
  }
}

/* About and Contact Sections */
section {
  padding: 60px 20px;
}

.about, .contact {
  background-color: #f4f4f4;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 20px auto;
  max-width: 800px;
}

.about-content, .contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.about-content h2, .contact-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.about-content p, .contact-content p {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.5;
}
