/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f0f4f8;
}

/* Navbar container */
.navbar {
  width: 100%;
  height: 70px;
  background: #1e1e2f;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  top: 0;
  z-index: 1000;
}

/* Left side (Logo + Name) */
.nav-left {
  display: flex;
  align-items: center;
}

.nav-left .logo {
  height: 45px;
  width: auto;
  margin-right: 10px;
}

.nav-left .site-name {
  font-size: 20px;
  color: #00aaff;
}

/* Right side menu */
.nav-right {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  transition: all 0.4s ease-in-out;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-size: 17px;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #00aaff;
}

/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  margin-left: 20px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.hamburger span {
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.4s ease;
}

/* Hamburger animation (turns into X) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #1e1e2f;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
  }

  .nav-links.active {
    max-height: 300px;
    opacity: 1;
    padding: 20px 0;
  }

  .hamburger {
    display: flex;
  }

  /* Slight zoom animation for smoother feel */
  .hamburger.active {
    transform: rotate(90deg);
  }
}

footer {
  background-color: #d3d3d3; /* grey background */
  color: #444; /* dark grey text */
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Left section */
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background-color: #555;
  color: white;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s;
  text-decoration: none; /* For <a> tag */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background-color: #333;
}

.footer-left p {
  font-size: 14px;
  color: #555;
  margin-left: 10px;
}

/* Center section (social media) */
.footer-center a {
  color: #444;
  text-decoration: none;
  margin: 0 10px;
  font-size: 22px;
  transition: color 0.3s;
}

.footer-center a:hover {
  color: #000;
}

/* Right section (contact info) */
.footer-right {
  text-align: right;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-right {
    text-align: center;
  }
}

#contactForm input,
#contactForm textarea {
  width: 80%;
  max-width: 400px;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: 0.3s;
  font-family: Arial, sans-serif;
}
#contactForm input:focus,
#contactForm textarea:focus {
  border-color: #0078ff;
  box-shadow: 0 0 8px rgba(0, 120, 255, 0.3);
  outline: none;
}
#contactForm button {
  background: linear-gradient(90deg, #bee472, #e9ae19);
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
#contactForm button:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #f06d10, #c8ae29);
}
