/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0c1a2b;
  color: #00aaff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
  transition: background 0.4s ease, color 0.4s ease;
}

main {
  padding-top: 100px;
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  height: 100px;
  width: 100%;
  background: #0c1a2b;
  color: #00aaff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Logo */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.logo img {
  height: 70px;
  width: auto;
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: scale(1.05);
}

/* Hamburger */
.menu-toggle {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 4px;
  background: #00aaff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Desktop Menu */
.menu-desktop {
  position: absolute;
  left: 40px;
  top: 0;
  height: 100%;
  display: none;
  align-items: center;
}
.menu-desktop ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
.menu-desktop ul li a {
  color: #cfe0ef;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.menu-desktop ul li a:hover,
.menu-desktop ul li a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #00aaff;
  font-weight: bold;
}

/* Mobile Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 43, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}
.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.menu-overlay ul {
  list-style: none;
  text-align: center;
}
.menu-overlay ul li {
  margin: 20px 0;
}
.menu-overlay ul li a {
  color: #00aaff;
  font-size: 24px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.menu-overlay ul li a:hover,
.menu-overlay ul li a.active {
  background: rgba(255, 255, 255, 0.1);
  font-weight: bold;
}

/* Button Styling */
button {
  background-color: #333333;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
button:hover {
  background-color: #555555;
  transform: scale(1.05);
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, #007bff, #3399ff);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  cursor: pointer;
  display: none;
  z-index: 1003;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#backToTop:hover {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.5);
}

/* Footer */
footer {
  background: #0c1a2b;
  color: #00aaff;
  text-align: center;
  padding: 15px 0;
  font-weight: bold;
}

/* Responsive */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
  .menu-desktop {
    display: flex;
  }
  .menu-overlay {
    display: none;
  }
}