/* =============================================
   WELCOME SECTION - CELESTIAL THEME
   First section visitors see, space-themed background
   with animated particles and moon celestial object
   ============================================= */

/* Base section styling with deep space gradient */
.section-welcome {
  padding: 5rem 5rem 10rem;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Deep space gradient background - matching Contact Me aesthetic */
  background: linear-gradient(135deg, #0a0d1a 0%, #1a1528 50%, #0d0f1a 100%);
}

/* Animated starfield background mesh */
.section-welcome::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(at 10% 20%, rgba(119, 191, 226, 0.15) 0px, transparent 50%),
    radial-gradient(at 90% 30%, rgba(139, 127, 214, 0.12) 0px, transparent 50%),
    radial-gradient(at 30% 70%, rgba(2, 165, 255, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 80%, rgba(78, 205, 196, 0.08) 0px, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Particle canvas container */
.welcome-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Celestial objects container */
.celestial-objects-welcome {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Large Moon (positioned partially above image, right of image) */
.moon-welcome {
  position: absolute;
  top: 12%;
  right: 8%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    #e8e8e8 0%,
    #c0c0c0 30%,
    #a0a0a0 60%,
    #808080 100%
  );
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.25),
    inset -15px -15px 40px rgba(0, 0, 0, 0.4),
    inset 8px 8px 25px rgba(255, 255, 255, 0.3);
  animation: floatMoonWelcome 5s ease-in-out infinite;
  z-index: 3;
}

/* Crater effects on moon */
.moon-welcome::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  box-shadow:
    -30px -15px 0 8px rgba(0, 0, 0, 0.15),
    15px 22px 0 5px rgba(0, 0, 0, 0.1),
    -8px 30px 0 3px rgba(0, 0, 0, 0.12);
}

/* Moon animation - gentle float */
@keyframes floatMoonWelcome {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-10px) translateX(5px);
  }
  50% {
    transform: translateY(-15px) translateX(0);
  }
  75% {
    transform: translateY(-10px) translateX(-5px);
  }
}

/* Content container */
.welcome-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-bottom: 4rem;
}

/* Welcome heading */
.welcome-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--font-size-8xl);
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 0 20px rgba(119, 191, 226, 0.5),
    0 0 40px rgba(119, 191, 226, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
  padding: 0;
  letter-spacing: 2px;
  align-self: center;
}

/* Welcome tagline */
.welcome-tagline {
  font-family: var(--font-tagline);
  font-weight: 400;
  font-size: var(--font-size-5xl);
  color: #b8d4e8;
  text-shadow:
    0 0 10px rgba(119, 191, 226, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.3);
  margin: 0;
  padding: 0;
  max-width: 800px;
  line-height: 1.6;
  align-self: center;
}

/* Welcome image container */
.welcome-image-container {
  padding-top: 3rem;
  margin-top: auto;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Image wrapper for border and effects */
.welcome-image-wrapper {
  display: inline-block;
  border-radius: 6px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(119, 191, 226, 0.2);
  overflow: hidden;
}

/* Actual image styling */
.welcome-image {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 700px;
  border-radius: 6px;
}

/* Welcome quote */
.welcome-quote {
  font-family: var(--font-tagline);
  font-weight: 400;
  font-size: var(--font-size-3xl);
  font-style: italic;
  color: #b8d4e8;
  text-shadow:
    0 0 10px rgba(119, 191, 226, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.3);
  margin: 0;
  padding: 3rem 2rem 0;
  max-width: 900px;
  line-height: 1.8;
  text-align: center;
  align-self: center;
}

/* Welcome intro */
.welcome-intro {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--font-size-large);
  color: #b8d4e8;
  padding: 4rem 2rem;
  max-width: 1300px;
  line-height: 1.6;
}

.welcome-intro p {
  padding: 1.5rem 0;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .section-welcome {
    padding: 4.5rem 3rem 4.5rem;
  }

  .welcome-content {
    gap: 3rem;
  }

  .welcome-heading {
    font-size: var(--font-size-7xl);
    padding-top: 2rem;
  }

  .welcome-tagline {
    font-size: var(--font-size-4xl);
  }

  .moon-welcome {
    width: 120px;
    height: 120px;
    bottom: 40%;
    left: 30%;
  }

  .moon-welcome::before {
    width: 20px;
    height: 20px;
    box-shadow:
      -22px -12px 0 6px rgba(0, 0, 0, 0.15),
      12px 18px 0 4px rgba(0, 0, 0, 0.1),
      -6px 24px 0 2px rgba(0, 0, 0, 0.12);
  }

  .welcome-image {
    max-height: 550px;
  }

  .welcome-quote {
    font-size: var(--font-size-xl);
    padding: 2.5rem 1.5rem 0;
  }
}

/* Mobile (up to 768px) */
@media (max-width: 768px) {
  .section-welcome {
    padding: 4rem 2.5rem 4rem;
  }

  .welcome-heading {
    font-size: var(--font-size-5xl);
    letter-spacing: 1px;
  }

  .welcome-tagline {
    font-size: var(--font-size-3xl);
  }

  .moon-welcome {
    width: 100px;
    height: 100px;
    bottom: 38%;
    left: 25%;
  }

  .moon-welcome::before {
    width: 16px;
    height: 16px;
    box-shadow:
      -18px -10px 0 5px rgba(0, 0, 0, 0.15),
      10px 15px 0 3px rgba(0, 0, 0, 0.1),
      -5px 20px 0 2px rgba(0, 0, 0, 0.12);
  }

  .welcome-image {
    max-height: 450px;
  }

  .welcome-quote {
    font-size: var(--font-size-medium);
    padding: 2rem 1.25rem 0;
    line-height: 1.7;
  }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .section-welcome {
    padding: 3.5rem 2rem 3.5rem;
  }

  .welcome-heading {
    font-size: var(--font-size-4xl);
  }

  .welcome-tagline {
    font-size: var(--font-size-2xl);
  }

  .moon-welcome {
    width: 80px;
    height: 80px;
    bottom: 35%;
    left: 20%;
  }

  .moon-welcome::before {
    width: 12px;
    height: 12px;
    box-shadow:
      -14px -8px 0 4px rgba(0, 0, 0, 0.15),
      8px 12px 0 2px rgba(0, 0, 0, 0.1),
      -4px 16px 0 2px rgba(0, 0, 0, 0.12);
  }

  .welcome-image {
    max-height: 350px;
  }

  .welcome-quote {
    font-size: var(--font-size-base);
    padding: 1.5rem 1rem 0;
    line-height: 1.6;
  }
}
