/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  color: #fff;
  overflow-x: hidden;

  /* گرادیان + عکس بکگراند */
  background: 
      linear-gradient(to bottom, rgba(10,15,44,0.5) 0%, rgba(27,30,74,0.5) 100%),
      url("assets/hero-bg.jpg");

  background-size: cover;        /* عکس بکگراند کل صفحه رو پر کنه */
  background-position: center;   /* وسط‌چین شه */
  background-repeat: no-repeat;  /* تکرار نشه */
}


/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh; /* حداقل ارتفاع صفحه */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}

.hero-bg img {
  width: 100%;
  min-height: 100vh;
  object-fit: cover;
  filter: brightness(0.6);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;

  /* Animation */
  animation: bg-scroll 20s linear infinite;
}

@keyframes bg-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20%); } /* 20% به بالا حرکت */
}


.overlay {
  position: relative; /* به جای absolute */
  margin-top: 20px; /* فاصله از متن بالا */
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  color: white;
  border-radius: 10px;
}


.overlay {
  width: 28%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.overlay::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  animation: shine 4s linear infinite;
  pointer-events: none;
}

@keyframes shine {
  0%   { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50%  { transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.overlay:hover {
  transform: scale(1.1) rotate(-2deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.9);
}

/* Floating Animations */
.overlay.left { animation: float-left 5s ease-in-out infinite alternate; }
.overlay.center { animation: float-center 4s ease-in-out infinite alternate; }
.overlay.right { animation: float-right 6s ease-in-out infinite alternate; }

@keyframes float-left {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
@keyframes float-center {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-1deg); }
}
@keyframes float-right {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* Hero Content */
.hero-content {
  position: relative;
  padding: 20px;
  max-width: 800px;
  margin: 50px auto 0; /* فاصله از بالا، margin-bottom حذف شد */
  z-index: 3;
}

.hero-content .logo {
  width: 200px;
  margin: 0 auto 20px; /* فاصله پایین همون 20px بمونه */
  filter: drop-shadow(0 0 10px rgba(138,43,226,0.8))
          drop-shadow(0 0 20px rgba(75,0,130,0.6));
  animation: logo-glow 2.5s ease-in-out infinite alternate;
  transform: translateY(-50px); /* لوگو 50px بالاتر */
}


@keyframes logo-glow {
  0%,100% { filter: drop-shadow(0 0 10px rgba(138,43,226,0.8)) drop-shadow(0 0 20px rgba(75,0,130,0.6)); }
  50% { filter: drop-shadow(0 0 20px rgba(138,43,226,1)) drop-shadow(0 0 30px rgba(75,0,130,0.8)); }
}

.hero-content h1 {
  font-size: 3rem;
  font-family: 'Georgia', serif;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #8a2be2, 0 0 20px #4b0082;
  animation: neon-glow 2s ease-in-out infinite alternate;
}

@keyframes neon-glow {
  0%,100% { text-shadow: 0 0 5px #8a2be2,0 0 10px #8a2be2,0 0 20px #4b0082,0 0 30px #4b0082,0 0 40px #8a2be2; }
  50% { text-shadow: 0 0 10px #4b0082,0 0 20px #4b0082,0 0 30px #8a2be2,0 0 40px #8a2be2,0 0 50px #4b0082; }
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ddd;
  margin-bottom: 20px;
}

/* Footer */
.footer {
  width: 100%;
  text-align: center;
  padding: 15px 0;
  background: rgba(0,0,0,0.8);
  color: #aaa;
  font-size: 0.9rem;
  animation: float-footer 4s ease-in-out infinite alternate;
}

@keyframes float-footer {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Responsive */
@media(max-width: 768px){
  .overlay-images { flex-direction: column; gap: 20px; top: 5%; }
  .overlay { width: 80%; }
  .hero-content { margin-top: 200px; }
  .hero-content h1 { font-size: 2.2rem; }
}




