
/* navigation */

nav {
    width: 100%;
    height: 90px;
    background-color: #df131f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;

    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeInDown 0.5s ease-in-out forwards;
}

.logo {
    color: #f8f8ec;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    position: relative;
}


.hamburger {
    cursor: pointer;
    z-index: 101;
}

.line {
    width: 30px;
    height: 3px;
    background-color: #f8f8ec;
    margin: 6px;
    transition: 0.3s;
}


.nav-links {
    position: absolute;
    top: 90px;
    right: 0;
    width: 250px;
    background-color: #ffe8c2c6;
    color: #df131f;
    border: 2px solid #df131f;

    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 20px;


    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links li {
    margin: 15px 0;
    text-align: center;
}

.nav-links a {
    color: #df131f;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.hamburger.active .line:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 7px);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -7px);
}

.hamburger{
    position: relative;
}


@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ball {
  width: 15px;
  height: 15px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 1s infinite;
  animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1); 
  margin-right: 65px;
  padding: 10px;
}


@keyframes bounce {
  0%, 100% { left: 0; }    
  50% { left: 100px; }  
}