.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 30, 60, 0.97), rgba(20, 20, 40, 0.95));
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: gradientBackground 15s ease infinite;
  background-size: 400% 400%;
}

@keyframes gradientBackground {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.welcome-container {
  width: 100%;
  max-width: 800px;
  text-align: center;
  position: relative;
  padding: 2rem;
}

.welcome-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  transform-style: preserve-3d;
  animation: welcomeTitleAnimation 3s ease-in-out infinite alternate;
}

@keyframes welcomeTitleAnimation {
  0% { transform: translateZ(0px); text-shadow: 0 0 15px rgba(255, 255, 255, 0.5); }
  100% { transform: translateZ(50px); text-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.4); }
}

.welcome-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  transform: translateZ(20px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.camera-container {
  width: 220px;
  height: 220px;
  margin: 0 auto 2rem auto;
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.camera {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: cameraFloat 3s ease-in-out infinite;
}

@keyframes cameraFloat {
  0% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-15px) rotateY(180deg); }
  100% { transform: translateY(0) rotateY(360deg); }
}

.camera-body {
  width: 150px;
  height: 100px;
  background: linear-gradient(135deg, #333, #111);
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 1px rgba(0, 0, 0, 0.3);
}

.camera-lens {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at 40% 40%, #444, #000);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(20px);
  box-shadow: 
    0 0 0 5px rgba(0, 0, 0, 0.2),
    0 0 10px rgba(0, 0, 0, 0.5),
    inset 0 0 15px rgba(0, 0, 0, 0.9);
}

.camera-lens::before {
  content: '';
  position: absolute;
  width: 55px;
  height: 55px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(60, 60, 60, 0.3));
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.1);
}

.camera-lens::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, #000, #333);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
}

.camera-flash {
  width: 40px;
  height: 15px;
  background: #555;
  position: absolute;
  top: 30%;
  right: 25%;
  transform: translateZ(15px);
  border-radius: 3px;
}

.flash-animation {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  border-radius: 50%;
  animation: flashAnimation 5s linear infinite;
}

@keyframes flashAnimation {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.1); }
  5% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.5); }
  10% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

.camera-button {
  width: 15px;
  height: 15px;
  background: #d00;
  position: absolute;
  top: 30%;
  left: 80%;
  transform: translateZ(15px);
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
  animation: buttonPress 5s linear infinite;
}

@keyframes buttonPress {
  0% { transform: translateZ(15px); }
  5% { transform: translateZ(10px); }
  10% { transform: translateZ(15px); }
  100% { transform: translateZ(15px); }
}

.falling-photos {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.falling-photo {
  position: absolute;
  width: 60px;
  height: 60px;
  background-size: cover;
  background-position: center;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fallingPhotos 10s linear infinite;
  opacity: 0;
}

.falling-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 10;
}

@keyframes fallingPhotos {
  0% { 
    top: -5%; 
    left: var(--left-pos);
    transform: rotate(var(--rotation)) translateZ(0) scale(0.3);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
    transform: rotate(var(--rotation)) translateZ(100px) scale(0.5);
  }
  90% {
    opacity: 0.7;
  }
  100% { 
    top: 110%; 
    left: calc(var(--left-pos) + var(--drift));
    transform: rotate(calc(var(--rotation) + 20deg)) translateZ(0) scale(0.7);
    opacity: 0;
  }
}

.welcome-button {
  background: linear-gradient(135deg, #6a70cc, #4450d9);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 10;
  transform: translateZ(30px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  margin-top: 1rem;
}

.welcome-button::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff00cc, #3333ff, #00ff99, #ff00cc);
  background-size: 400% 400%;
  animation: glowAnimation 3s ease infinite;
  z-index: -1;
  border-radius: 32px;
  opacity: 0;
  transition: opacity 0.3s;
}

@keyframes glowAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.welcome-button:hover {
  transform: translateZ(30px) translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.welcome-button:hover::before {
  opacity: 1;
}

/* Responsive styles */
@media (max-width: 768px) {
  .welcome-title {
    font-size: 2.5rem;
  }
  
  .welcome-subtitle {
    font-size: 1.2rem;
  }
  
  .camera-container {
    width: 180px;
    height: 180px;
  }
  
  .camera-body {
    width: 120px;
    height: 80px;
  }
  
  .camera-lens {
    width: 55px;
    height: 55px;
  }
  
  .welcome-button {
    padding: 10px 25px;
    font-size: 1.1rem;
  }
  
  .falling-photo {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .welcome-title {
    font-size: 2rem;
  }
  
  .welcome-subtitle {
    font-size: 1rem;
  }
  
  .camera-container {
    width: 150px;
    height: 150px;
  }
  
  .camera-body {
    width: 100px;
    height: 70px;
  }
  
  .camera-lens {
    width: 45px;
    height: 45px;
  }
  
  .welcome-button {
    padding: 8px 20px;
    font-size: 1rem;
  }
  
  .falling-photo {
    width: 40px;
    height: 40px;
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .welcome-container {
    padding: 1.5rem;
    max-width: 90%;
  }
  
  .welcome-title {
    font-size: 2.5rem;
  }
  
  .welcome-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  
  .camera-container {
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
  }
  
  .camera-body {
    width: 120px;
    height: 80px;
  }
  
  .camera-lens {
    width: 55px;
    height: 55px;
  }
  
  .camera-lens::before {
    width: 42px;
    height: 42px;
  }
  
  .camera-lens::after {
    width: 20px;
    height: 20px;
  }
  
  .camera-flash {
    width: 30px;
    height: 12px;
  }
  
  .flash-animation {
    width: 240px;
    height: 240px;
  }
  
  .welcome-button {
    padding: 10px 25px;
    font-size: 1.1rem;
    margin-top: 0.5rem;
  }
  
  .falling-photo {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .welcome-container {
    padding: 1rem;
  }
  
  .welcome-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .welcome-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .camera-container {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
  }
  
  .camera-body {
    width: 100px;
    height: 70px;
  }
  
  .camera-lens {
    width: 45px;
    height: 45px;
    transform: translate(-50%, -50%) translateZ(15px);
  }
  
  .camera-lens::before {
    width: 35px;
    height: 35px;
  }
  
  .camera-lens::after {
    width: 16px;
    height: 16px;
  }
  
  .camera-flash {
    width: 25px;
    height: 10px;
    right: 20%;
  }
  
  .camera-button {
    width: 12px;
    height: 12px;
    left: 75%;
  }
  
  .flash-animation {
    width: 200px;
    height: 200px;
  }
  
  .welcome-button {
    padding: 8px 20px;
    font-size: 1rem;
    margin-top: 0;
    width: 80%;
    max-width: 200px;
  }
  
  .falling-photo {
    width: 40px;
    height: 40px;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .welcome-title {
    font-size: 1.6rem;
  }
  
  .welcome-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .camera-container {
    width: 130px;
    height: 130px;
  }
  
  .camera-body {
    width: 90px;
    height: 60px;
  }
  
  .camera-lens {
    width: 40px;
    height: 40px;
  }
  
  .welcome-button {
    padding: 7px 15px;
    font-size: 0.9rem;
  }
  
  .falling-photo {
    width: 35px;
    height: 35px;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .welcome-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 1rem;
  }
  
  .welcome-text {
    flex: 1;
    margin-right: 1rem;
  }
  
  .welcome-title {
    font-size: 2rem;
  }
  
  .welcome-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .camera-container {
    width: 150px;
    height: 150px;
    margin: 0;
  }
  
  .welcome-button {
    margin-top: 0.5rem;
  }
} 