/* SUTRA - Hero with Lamp Effect (Hope Symbol) */

.hero-lamp {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--space-16);
}

/* Hero Image Background */
.hero-lamp__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Dark Overlay for better contrast */
.hero-lamp__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(31, 67, 54, 0.7), rgba(31, 67, 54, 0.5), rgba(31, 67, 54, 0.6));
  z-index: 1;
}

/* Container for hero-lamp with full width */
.hero-lamp__container {
  width: 100%;
  padding-inline: var(--space-4);
  position: relative;
  z-index: 3;
}

@media (min-width: 768px) {
  .hero-lamp__container {
    padding-inline: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .hero-lamp__container {
    padding-inline: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .lamp-container {
    top: 2%;
    width: 300px;
  }
}

/* Lamp Base */
.lamp {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.lamp__base {
  position: relative;
  width: 150px;
  height: 200px;
  z-index: 4;
  animation: lampFloat 4s ease-in-out infinite;
  margin-block-start: 20px;
}

@media (min-width: 768px) {
  .lamp__base {
    width: 180px;
    height: 240px;
  }
}

@media (min-width: 1024px) {
  .lamp__base {
    width: 220px;
    height: 280px;
  }
}

.lamp__svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px rgba(42, 106, 84, 1)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  display: block;
}

@keyframes lampFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

/* Light Rays emanating from lamp */
.lamp__light {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.lamp__ray {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(42, 106, 84, 1) 0%,
    rgba(42, 106, 84, 0.8) 10%,
    rgba(42, 106, 84, 0.6) 25%,
    rgba(42, 106, 84, 0.4) 45%,
    rgba(42, 106, 84, 0.2) 65%,
    rgba(42, 106, 84, 0.1) 80%,
    transparent 100%
  );
  border-radius: 4px;
  animation: rayPulse 3s ease-in-out infinite;
  transform-origin: top center;
  box-shadow: 0 0 20px rgba(42, 106, 84, 0.8), 0 0 10px rgba(42, 106, 84, 0.6);
}

.lamp__ray--1 {
  transform: translateX(-50%) rotate(-35deg);
  animation-delay: 0s;
  width: 6px;
}

.lamp__ray--2 {
  transform: translateX(-50%) rotate(-18deg);
  animation-delay: -0.5s;
  width: 5px;
}

.lamp__ray--3 {
  transform: translateX(-50%) rotate(0deg);
  animation-delay: -1s;
  width: 10px;
  box-shadow: 0 0 25px rgba(42, 106, 84, 1), 0 0 15px rgba(42, 106, 84, 0.8);
}

.lamp__ray--4 {
  transform: translateX(-50%) rotate(18deg);
  animation-delay: -1.5s;
  width: 5px;
}

.lamp__ray--5 {
  transform: translateX(-50%) rotate(35deg);
  animation-delay: -2s;
  width: 6px;
}

@keyframes rayPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(-50%) scaleY(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1.1);
  }
}

/* Glowing effect around lamp */
.lamp-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(42, 106, 84, 0.5) 0%,
    rgba(42, 106, 84, 0.3) 30%,
    rgba(42, 106, 84, 0.15) 50%,
    transparent 80%
  );
  border-radius: 50%;
  z-index: 1;
  animation: glowPulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) scale(1.4);
    opacity: 0.9;
  }
}

@media (min-width: 768px) {
  .lamp-container::before {
    width: 250px;
    height: 250px;
  }
}

@media (min-width: 1024px) {
  .lamp-container::before {
    width: 300px;
    height: 300px;
  }
}

/* Hero Content */
.hero-lamp__content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  padding-block: var(--space-12);
  animation: fadeInUp 1s ease-out;
}

/* Split Layout for V3 - Form on left, Content on right */
.hero-lamp__content--split {
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--space-12);
  text-align: initial;
  padding-block: var(--space-16);
  margin-block-start: 0;
}

.hero-lamp__content--split .pickup-form {
  flex: 0 0 auto;
  max-width: 450px;
  width: 100%;
}

.hero-lamp__content--split .hero__content {
  flex: 0 0 auto;
  max-width: 600px;
  width: 100%;
}

.lang-ar .hero-lamp__content--split {
  direction: rtl;
  flex-direction: row-reverse;
}

.lang-ar .hero-lamp__content--split .hero__content {
  text-align: right;
}

.lang-ar .hero-lamp__content--split .pickup-form {
  margin-inline-start: 0;
  margin-inline-end: 0;
}

.lang-en .hero-lamp__content--split {
  direction: ltr;
}

.lang-en .hero-lamp__content--split .hero__content {
  text-align: left;
}

.lang-en .hero-lamp__content--split .pickup-form {
  margin-inline-start: 0;
  margin-inline-end: 0;
}

@media (max-width: 1023px) {
  .hero-lamp__content--split {
    flex-direction: column;
    gap: var(--space-10);
  }
  
  .lang-ar .hero-lamp__content--split .hero__content,
  .lang-en .hero-lamp__content--split .hero__content {
    text-align: center;
  }
  
  .lang-ar .hero-lamp__content--split .pickup-form,
  .lang-en .hero-lamp__content--split .pickup-form {
    margin-inline: auto;
  }
}

.hero-lamp__title {
  font-size: var(--font-size-h1);
  font-weight: 800;
  margin-block-end: var(--space-6);
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out;
}

.hero-lamp__subtitle {
  font-size: 1.3rem;
  margin-block-end: var(--space-10);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-lamp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-lamp__content--split .hero-lamp__actions {
  justify-content: flex-start;
}

.lang-en .hero-lamp__content--split .hero-lamp__actions {
  justify-content: flex-start;
}

.hero-lamp__cta-secondary {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity var(--transition-base);
  font-size: 1.1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-lamp__cta-secondary:hover {
  opacity: 0.8;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .hero-lamp {
    min-height: 90vh;
    padding-block: var(--space-12);
  }
  
  .lamp-container {
    width: 150px;
    height: 250px;
    top: 5%;
  }
  
  .hero-lamp__content {
    margin-block-start: 180px;
  }
  
  .hero-lamp__title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  
  .hero-lamp__subtitle {
    font-size: 1.1rem;
  }
  
  .hero-lamp__actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-lamp__actions .btn-primary {
    width: 100%;
    max-width: 300px;
  }
  
  .lamp__ray {
    height: 150%;
  }
}

/* RTL Support for lamp positioning */
.lang-ar .lamp-container {
  left: 50%;
  transform: translateX(-50%);
}

.lang-en .lamp-container {
  left: 50%;
  transform: translateX(-50%);
}

