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

body {
  font-family: Helvetica, sans-serif;
  background-color: black;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* === GALLERY IMAGE STYLING === */
.gallery img {
  width: 300px;
  border-radius: 20px;
  margin: 10px;
  border: 2px solid blue;
  overflow: hidden;
  animation: slideUp 2s forwards;
  transition: all 0.4s ease-in-out;
}

.gallery .row1 img {
  animation-duration: 2s;
}
.gallery .row2 img {
  animation-duration: 4s;
}
.gallery .row3 img {
  animation-duration: 5s;
}

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

/* === HEADINGS === */
h2, h4 {
  font-family: Impact, fantasy;
  text-align: center;
  font-size: 30px;
  font-style: italic;
  color: rgb(16, 88, 221);
}

h4 {
  color: rgb(6, 74, 202);
}

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

/* === 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;
}

/* Navbar Links */
.navbar {
  display: flex;
  gap: 30px;
}

.navbar a {
  color: #ffffff;
  margin:20px;
  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 */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
}

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

/* === CONTACT === */
.contact {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
}

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

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes grow {
  50% {
    transform: scale(1.02, 1.02);
  }
}

/* === 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;
    align-items: center;
  }
}

@media only screen and (max-width: 375px) {
  body {
    font-size: 14px;
  }

  .card {
    width: 100%;
    margin: 10px auto;
  }
}

@media only screen and (max-width: 393px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }
}

@media only screen and (max-width: 430px) {
  .gallery {
    flex-direction: column;
  }
}
