body {
  background: #000;
}

#bg-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -10;
  object-fit: cover;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
  pointer-events: none;
}

main,
section,
footer,
header,
nav {
  position: relative;
  z-index: 1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.logo {
  position: absolute;
  left: 30px;
  width: 70px;
  height: auto;
  margin-right: 0;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

header nav a {
  color: #F7EEBE;
  text-decoration: none;
  font-size: 22px;
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #c4ba3a;
}

body {
  padding-top: 80px;
}

#wrapper {
  border: 3px solid #43867c;
  width: 1024px;
  margin: auto;
  box-shadow: 10px 10px #F7EEBE;
}

nav li {
  display: flex;
  align-items: center;
}

main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 50px auto;
  padding: 0 40px;
  position: relative;
  z-index: 5;
}

section {
  background: rgba(67, 134, 124, 0.3);
  border: 2px solid rgba(67, 134, 124, 0.6);
  padding: 30px;
  border-radius: 10px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F7EEBE;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  cursor: pointer;
}

section:hover {
  transform: scale(1.05) translateY(-5px);
  background: rgba(67, 134, 124, 0.5);
  border-color: rgba(67, 134, 124, 0.9);
  box-shadow: 0 8px 20px rgba(67, 134, 124, 0.4);
}

#contact {
  width: 200px;
  min-height: 200px;
  border: 3px solid #295831;
  padding: 10px;
  background: #1c8;
  color: #F7EEBE;
}

.floating-head-container {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.floating-head {
  pointer-events: auto;
  max-width: 600px;
  height: auto;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-25px); }
}

.floating-head:hover {
  transform: scale(1.12);
  transition: transform 0.35s ease-out;
}

.floating-head.laughing {
  animation: laughShake 1.2s ease-in-out forwards;
}

@keyframes laughShake {
  0%   { transform: translateX(0) rotate(0deg) scale(1); }
  10%  { transform: translateX(-10px) rotate(-5deg) scale(1.05); }
  20%  { transform: translateX(10px) rotate(5deg) scale(1.08); }
  30%  { transform: translateX(-8px) rotate(-4deg) scale(1.06); }
  40%  { transform: translateX(8px) rotate(4deg) scale(1.05); }
  50%  { transform: translateX(-6px) rotate(-3deg) scale(1.04); }
  60%  { transform: translateX(6px) rotate(3deg) scale(1.03); }
  70%  { transform: translateX(-4px) rotate(-2deg) scale(1.02); }
  80%  { transform: translateX(4px) rotate(2deg) scale(1.01); }
  90%  { transform: translateX(-2px) rotate(-1deg) scale(1); }
  100% { transform: translateX(0) rotate(0deg) scale(1); }
}

footer {
  position: relative;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
  padding: 20px;
  color: #fff;
  font-size: 14px;
  margin-top: 200px;
  z-index: 100;
}