:root {
  --primary-color: #10101C;
  --purple: purple;
  --white: #FFFFFF;
   --secondary-color: #80EDDB;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Default Header Styles */
header {
  padding: 0.2rem 2rem;
  border-bottom: 1px solid white;
  position: fixed;
  width: 100%;
  z-index: 8;
  transition: background-color 0.5s ease;
  background-color: rgb(15, 15, 54);
}


.hdr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.hdr-btns {
  display: flex;
  gap: 2rem;
}

.hdr-btns button {
  padding: 0.5rem 1rem;
  color: white;
  border: 1px solid white;
  background: transparent;
  font-size: 1rem;
  transition: 0.5s;
}

.hdr-btns button:hover {
  background-color: var(--secondary-color);
}

/* Logo Styles */
.logo img {
  width: 50px;
  height: 60px;
  margin-top: 0.5rem;
}





/* General Overlay Menu Styling */
.menu-overlay {
  width: 100%;
  height: 100vh;
  background-image: radial-gradient(circle, var(--tertiary-color), var(--primary-color));
  position: fixed;
  z-index: 50;
  perspective: 500px;
  display: none;
}

.menu-overlay img {
  border: 2px solid white;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  z-index: 10;
  animation: header-img 2s ease forwards;
  transform-origin: left;
}

@keyframes header-img {
  0% {
    width: 100%;
    height: 100vh;
    margin-left: 0rem;
    transform: rotateY(0deg);
    transform-style: preserve-3d;
  }

  100% {
    width: var(--final-width, 40%);
    height: var(--final-height, 70%);
    margin-left: var(--final-margin-left, 10rem);
    margin-top: var(--final-margin-top, 5rem);
    transform: rotateY(20deg);
    transform-style: preserve-3d;
  }
}

/* Root Variables */
:root {
  --final-width: 40%;
  --final-height: 70%;
  --final-margin-left: 10rem;
  --final-margin-top: 5rem;
}



/* Menu List Styling */
.overlay-menu {
  width: 40%;
  margin-left: auto;
  display: flex;
  justify-content: start;
  align-items: center;
  height: 100vh;
}

.overlay-menu li {
  list-style: none;
  margin: 0.2rem 0;
}

.overlay-menu li a {
  text-decoration: none;
  color: white;
  font-size: 3rem;
  font-weight: 500;
  transition: 0.5s;
}

.overlay-menu li a:hover {
  color: var(--secondary-color);
}

/* Submenu Styling */
.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 40%;
  background: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateX(10px);
  opacity: 0;
}

.submenu li {
  list-style: none;
  margin: 0.3rem 0;
}

.submenu li a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  font-weight: 400;
  display: block;
  transition: color 0.3s ease;
  width: max-content;
}

.submenu li a:hover {
  color: var(--secondary-color);
}

/* Show Submenu on Hover */
.has-submenu:hover .submenu {
  display: block;
  transform: translateX(0);
  opacity: 1;
  animation: submenu-slide 0.5s linear forwards;
}

@keyframes submenu-slide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Close Button Styling */
.close-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 4rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 100;
  transition: transform 0.3s ease;
}

.close-overlay:hover {
  transform: scale(1.2);
  color: var(--secondary-color);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  header {
    padding: 0.2rem 1.5rem;
    /* Reduce padding */
  }

  .hdr-btns {
    gap: 1.5rem;
    /* Reduce gap between buttons */
  }

  .hdr-btns button {
    font-size: 0.9rem;
    /* Slightly smaller font size */
    padding: 0.4rem 0.8rem;
    /* Reduce button padding */
  }
}

@media screen and (max-width: 768px) {
  .menu-overlay {
    overflow-y: scroll;
  }


  .overlay-menu {
    width: 100%;
    /* Full width for smaller devices */
    justify-content: start;
    align-items: start;
    padding-top: 5rem;
  }

  .overlay-menu li a {
    font-size: 2rem;
    /* Reduce font size for smaller screens */
  }

  .submenu {
    left: 100%;
    /* Adjust submenu position for smaller devices */
    top: 5px;
    /* Add a slight vertical gap */
  }

  .submenu li a {
    font-size: 0.9rem;
    width: max-content;
  }

  :root {
    --final-width: 60%;
    --final-height: 60%;
    --final-margin-left: 15rem;
    --final-margin-top: 5rem;
  }

  .hdr-row {
    flex-wrap: wrap;
    /* Wrap items if necessary */
    justify-content: center;
    /* Center align for smaller screens */
  }

  header {
    padding: 0.2rem 1rem;
  }

  .hdr-btns {
    gap: 1rem;
    /* Further reduce gap */
  }

  .hdr-btns button {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu-overlay img{
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .overlay-menu li a {
    font-size: 1.5rem;
    /* Further reduce font size for very small screens */
  }

  .submenu {
    padding: 0.4rem 0.8rem;
    /* Adjust padding for small screens */
  }

  .close-overlay {
    font-size: 3rem;
    /* Smaller close button */
    top: 15px;
    right: 15px;
  }

  .submenu li a {
    font-size: 0.7rem;
    width: max-content;
  }

  :root {
    --final-width: 60%;
    --final-height: 50%;
    --final-margin-left: 10rem;
    --final-margin-top: 5rem;
  }

  .hdr-row {
    flex-direction: row;
    /* Stack header elements */
    align-items: center;
  }

  header {
    padding: 0.5rem;
  }

  .hdr-btns {
    flex-direction: row;
    /* Stack buttons vertically */
    gap: 0.5rem;
  }

  .hdr-btns button {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

footer {
  background: #222;
  color: #fff;
  padding: 40px 0;
}

footer h5 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li a {
  color: #ccc;
  text-decoration: none;
  font-weight: 100;
}

footer ul li a:hover {
  color: var(--secondary-color);
}

footer hr {
  border-color: #444;
}

footer .social-icons a {
  color: #ccc;
  margin-right: 10px;
  font-size: 18px;
  text-decoration: none;
}

footer .social-icons a:hover {
  color: var(--tertiary-color);
}
