body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: black;
  color: white;
  overflow: hidden;
  cursor: auto !important;
}

#main-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

#splash-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeOut 1s ease 2s forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

#splash-screen img {
  width: 300px;
  animation: pulseLogo 1.5s ease infinite alternate;
}

@keyframes pulseLogo {
  from { transform: scale(0.95); filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.3)); }
  to { transform: scale(1); filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.6)); }
}

/* Container pentru meniul principal */
.home-menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 20px;
  box-sizing: border-box;
}

.main-title {
  font-size: 3.5rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 8px;
  font-weight: 300;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
  animation: glowTitle 3s ease infinite alternate;
}

@keyframes glowTitle {
  from { text-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }
  to { text-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.4); }
}

/* Grid pentru elementele de meniu */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 30px;
  width: 80%;
  max-width: 1200px;
}

.grid-item {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  aspect-ratio: 1/1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.grid-item:hover {
  transform: scale(1.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Efect de lumină la hover */
.grid-item:hover::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  animation: lightMove 6s linear infinite;
  filter: blur(8px);
  z-index: 0;
}

@keyframes lightMove {
  0% { transform: translate(0%, 0%); }
  50% { transform: translate(25%, 25%); }
  100% { transform: translate(0%, 0%); }
}

/* Efect de shimmer pentru toate elementele */
.grid-item:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(45deg, rgba(220, 220, 210, 0.2), transparent, rgba(220, 220, 210, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: shimmer 3s infinite;
  z-index: 1;
}

@keyframes shimmer {
  0% { background-position: -100% 50%; }
  100% { background-position: 200% 50%; }
}

.item-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  z-index: 2;
}

.grid-item img {
  width: 60%;
  max-width: 120px;
  margin-bottom: 20px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.grid-item:hover img {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.grid-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  letter-spacing: 1px;
  color: #ddd;
  transition: all 0.3s ease;
}

.grid-item:hover h3 {
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Footer cu controale */
.menu-footer {
  position: absolute;
  bottom: 20px;
  width: 80%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sound-controls, .fullscreen-control {
  display: flex;
  gap: 10px;
}

.control-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px;
  color: #999;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: all 0.3s ease;
}

.control-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.control-btn:active {
  transform: translateY(1px);
}

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.sound-wave {
  transition: opacity 0.3s ease;
}

.mute-indicator {
  transition: opacity 0.3s ease;
}

.copyright {
  font-size: 14px;
  color: #777;
  letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .grid-container {
    width: 90%;
    gap: 20px;
  }
  
  .main-title {
    font-size: 2.8rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 992px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  
  .main-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .grid-item h3 {
    font-size: 1.2rem;
  }
  
  .menu-footer {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  
  .copyright {
    order: 3;
    margin-top: 5px;
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    width: 95%;
    gap: 15px;
  }
  
  .home-menu-container {
    padding: 10px;
  }
  
  .grid-item {
    aspect-ratio: 16/9;
  }
  
  .main-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
}
