* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Nav Bar */

/* Nav Bar */

header {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: space-between;
  position: relative;
}

nav {
  width: 100%;
  margin: 1rem 0;
}

ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  height: 2.875rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.left-items {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.right-items {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background-color: #FFC358;
  border: 1px solid #68594A;
  border-radius: 50%;
}

.left-items a, .right-items a {
  text-decoration: none;
  border: 1px solid #DDD5CD;
  border-radius: 30px;
  padding: 6px 21px;
  color: #68594A;
  background-color: #FDF7F1;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.left-items a:focus, .right-items a:focus {
  border: 1px solid #68594A;
  border-radius: 30px;
}

.nickname {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #68594A;
  font-weight: 600;
  white-space: nowrap;
}

.nickname:hover {
  color: #4a3c2a;
  text-decoration: underline;
}

.nickname i {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
  margin-right: 4px;
}

.left-items a:hover, .right-items a:hover {
  background-color: #F7EADD;
  border-color: #68594A;
  box-shadow: 0 2px 8px rgba(104, 89, 74, 0.15);
}

.left-items a.active, .right-items a.active {
  background-color: #FFC358;
  border-color: #68594A;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 195, 88, 0.3);
}

/* Mobile menu trigger */
.mobile-menu-trigger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.nav--open {
  transform: translateX(0) !important;
}

/* Body */
body {
  font-family: "Inter", sans-serif;
  color: #68594A;
  background-image:
    linear-gradient(0deg, rgba(255, 241, 227, 0.55), rgba(255, 241, 227, 0.55)),
    url(/static/home/images/background.jpg);
  background-size: cover;
  height: 100%;
  background-attachment: fixed;
  overflow-x: hidden;
  max-width: 100vw;
}

/* header */
h1 {
    font-size: 80px;
    font-weight: 700 !important;
    line-height: 1;
}

h3 {
  font-family: 'Caveat';
  font-size: 60px;
  color: #FFC358;
  line-height: 1;
}

/* Cats photo  */
/* section photo 1 */
section.overflow-hidden:first-of-type {
    position: relative;
}

section.overflow-hidden:first-of-type::before {
    content: '';
    position: absolute;
    top: 60%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('/static/about/images/ribborn.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

section.overflow-hidden:first-of-type .photo-card {
    position: relative;
    z-index: 1;
}

.paw1, .paw2, .paw3 {
  position: absolute;
  opacity: 0;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-play-state: paused;
}

.paw1 {
  animation-name: pawAnimation1;
}

.paw2 {
  animation-name: pawAnimation2;
}

.paw3 {
  animation-name: pawAnimation3;
}


@keyframes pawAnimation1 {
  0% { opacity: 0; }
  5% { opacity: 1; }
  15% { opacity: 1; }
  20% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes pawAnimation2 {
  0%, 20% { opacity: 0; }
  25% { opacity: 1; }
  35% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes pawAnimation3 {
  0%, 40% { opacity: 0; }
  45% { opacity: 1; }
  55% { opacity: 1; }
  60% { opacity: 0; }
  100% { opacity: 0; }
}
/* First photo animation*/

.photo-card {
  opacity: 0;
  translate: 0 30px;
  transition: opacity 0.6s ease-out, translate 0.6s ease-out;
}

.photo-card.visible {
  opacity: 1;
  translate: 0 0;
}


/* section 7 paws animation */
@keyframes wiggle {
    0%, 100% {
      transform: rotate(-10deg);
    }
    50% {
      transform: rotate(10deg);
    }
  }

.animate-wiggle {
  animation: wiggle 1s ease-in-out infinite;
}


@media (max-width: 900px) {

  html {
    height: 100%;
    overflow-x: hidden;
  }

  body {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    height: auto;
  }

  header {
    justify-content: flex-end;
    padding: 1rem 0 !important;
    position: relative;
    margin-top: 24px !important;
  }

  .nickname {
    position: static;
    transform: none;
    order: 2;
    margin: 16px 0;
    font-size: 20px;
    padding-top: 2rem !important;
    width: 100%;
    text-align: center;
  }

  .mobile-menu-trigger {
    display: flex;
  }

  .mobile-menu-trigger .logo {
    margin: 0 !important;
    transition: transform 0.3s ease;
  }

  .mobile-menu-trigger .logo:hover {
    transform: scale(1.1);
  }

  nav {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(253, 247, 241, 0.95);
    backdrop-filter: blur(10px);
    margin: 0 !important;
    padding: 80px 2rem 2rem !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  ul {
    flex-direction: column;
    height: auto;
    min-height: auto;
    align-items: center;
    gap: 0;
    justify-content: center;
  }

  .left-items {
    flex-direction: column;
    gap: 0;
    margin-top: 2rem !important;
    width: 100%;
    align-items: center;
  }

  .right-items {
    flex-direction: column;
    gap: 0;
    margin-left: 0 !important;
    width: 100%;
    align-items: center;
  }

  .right-items .logo {
    display: none;
  }

  nav a {
    border: none;
    padding: 16px 24px;
    font-size: 18px;
    text-align: center;
    min-width: 200px;
    margin: 8px 0 !important;
    display: block;
    background: none;
  }

  nav a:focus {
    border: none;
    outline: 2px solid #68594A;
    outline-offset: 2px;
  }
}

@media (max-width: 768px) {

  section.overflow-hidden:first-of-type::before {
    display: none;
}
    
  }

  /* Very small screens */
  @media (max-width: 520px) {

  h1 {
    font-size: 40px !important;
  }

  nav a {
    padding: 14px 20px;
    font-size: 16px;
    min-width: 180px;
    margin: 6px 0;
  }
  }