@keyframes fadeIn {
0% {
top: 45%;
opacity: 0;
}
100% {
top: 50%;
opacity: 1;
}
}
.container {
position: relative;
width: 100%;
height: 300px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
border-radius: 15px;
margin: 20px 0;
}
.hamburger-menu {
width: 38px;
height: 28px;
position: absolute;
top: 20px;
right: 20px;
cursor: pointer;
user-select: none;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 12px;
padding: 10px;
box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
transition: all 0.3s ease;
}
.hamburger-menu:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
box-shadow: 0 12px 40px rgba(31, 38, 135, 0.5);
}
.line {
background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
height: 3px;
width: calc(100% - 20px);
position: absolute;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
border-radius: 2px;
left: 10px;
backdrop-filter: blur(5px);
box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
.line:nth-of-type(1) {
top: 25%;
}
.line:nth-of-type(2) {
top: 50%;
transform: translateY(-50%);
}
.line:nth-of-type(3) {
bottom: 25%;
}
.hamburger-menu.active > .line:nth-of-type(1) {
top: 50%;
transform: translateY(-50%) rotate(45deg);
background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
}
.hamburger-menu.active > .line:nth-of-type(2) {
opacity: 0;
transform: translateX(-20px);
}
.hamburger-menu.active > .line:nth-of-type(3) {
bottom: 50%;
transform: translateY(50%) rotate(-45deg);
background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
}
.nav-menu {
display: none;
flex-direction: column;
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
align-items: center;
justify-content: center;
padding: 30px;
width: 50%;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 20px;
box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
opacity: 0;
}
.nav-menu.active {
display: flex;
animation: fadeIn 0.6s forwards;
}
.nav-menu a {
text-decoration: none;
color: rgba(255, 255, 255, 0.9);
padding: 12px 24px;
margin: 8px;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 15px;
transition: all 0.3s ease;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
font-weight: 500;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.nav-menu a:hover {
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.4);
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(31, 38, 135, 0.3);
}