/* === GLOBAL RESET === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Helvetica, sans-serif;
  background-color: black;
  color: white;
}

/* === NAVIGATION BAR === */
.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 20px;
  background-color: hsl(219, 85%, 47%);
  width:100%;
  height: 120px;
  animation: fadeIn 2s;
  position:relative;
}

.menu img {
  height: 80px;
  width: 200px;
  border-radius: 30px;
  border: 1px solid red;
  animation: grow 3s infinite ease-in-out;
}

/* Nav links  */
.navbar {
  display: flex;
  gap: 30px;
}

.navbar a {
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar a:hover {
  font-size: 1.6em;
  color: hsl(0, 84%, 46%);
}

/* === HAMBURGER ICON === */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
  
}
/* =====info-box===*/
#info-box{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
}

/* === GALLERY === */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items:center;
  background-color: black;
  padding: 20px;
}

.gallery img {
  height: 900px;
  border-radius: 20px;
  margin: 10px;
  border: 2px solid blue;
  animation: grow 3s infinite ease-in-out;
  transition: all 0.3s ease-in-out;
}

.gallery img:hover {
  border: 2px solid hsl(0, 65%, 52%);
}

/* === TEXT STYLING === */
h2, h4 {
  font-family: Impact, fantasy;
  text-align: center;
  font-size: 30px;
  font-style: italic;
  color: #e5e8ec;
}

p {
  font-family: Helvetica, sans-serif;
  color: white;
}

/* === PROFILE CARD === */
.profile {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  border: 2px solid white;
  width: 90%;
  max-width: 600px;
  padding: 20px;
  margin: 20px auto;
  border-radius: 20px;
}

/* === BACK BUTTON === */
.back-button-wrapper{
  display:flex;
  align-items: center;
}

.back-button {
  font-size: 18px;
  color: white;
  background-color: cornflowerblue;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: hsl(0, 84%, 46%);
}

/* === ANIMATIONS === */
@keyframes grow {
  50% {
    transform: scale(1.02);
  }
}

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

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px 20px;
  }

  .hamburger {
    display: block;
    position:absolute;
    right:20px;
    top:40px;
  }

  .navbar {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
    gap: 15px;
  }

  .navbar.show {
    display: flex;
  }

  .menu img {
    margin-left: 0;
    margin-bottom: 10px;
  }

  .gallery img {
    width: 90%;
    height: auto;
  }

  .profile {
    flex-direction: column;
    gap: 20px;
  }
}
