/*--------------------------------------------------------------
# Hero Section (Splash Page)
--------------------------------------------------------------*/
.hero-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 50%, #dbeeff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  font-family: var(--default-font), sans-serif;
}

/* Ambient radial glow that follows cursor via JS */
.hero-splash__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(20, 157, 221, 0.12) 0%,
    transparent 70%
  );
  transition: background 0.4s ease;
}

/* Floating particles layer */
.hero-splash__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(20, 157, 221, 0.28);
  box-shadow: 0 0 8px rgba(20, 157, 221, 0.35);
  animation: heroFloat var(--dur, 18s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(var(--dx1, 30px), var(--dy1, -40px)) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translate(var(--dx2, -20px), var(--dy2, -80px)) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translate(var(--dx3, 15px), var(--dy3, -30px)) scale(1.1);
    opacity: 0.55;
  }
}

.hero-splash__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  padding: 30px;
}

/* Name: Beautiful signature script styling */
.hero-splash__name {
  margin: 0 0 15px 0;
  color: #2b3035;
  font-family: 'Vast Shadow', display, sans-serif;
  font-weight: 400;
  text-align: center;
  font-size: clamp(2.2rem, 5.5vw, 5.2rem);
  line-height: 1.25;
}

/* Subtitle role text */
.hero-splash__role {
  margin: 0 0 35px 0;
  color: #55585d;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  font-family: var(--default-font), sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero-splash__role .divider {
  color: var(--accent-color);
  margin: 0 10px;
  font-weight: bold;
}

/* Action actions container */
.hero-splash__actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rounded outline button style matching reference */
.btn-see-portfolio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 38px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2b3035 !important;
  background: #ffffff !important;
  border: 1.5px solid #2b3035 !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  /* Exclude transform from transitions to prevent conflict with GSAP magnetic effect! */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease !important;
  cursor: pointer;
}

.btn-see-portfolio:hover {
  background: #2b3035 !important;
  color: #ffffff !important;
  border-color: #2b3035 !important;
  box-shadow: 0 8px 25px rgba(43, 48, 53, 0.2) !important;
}

/* Scroll Lock active state */
body.hero-active {
  overflow: hidden !important;
  height: 100vh !important;
}

body.hero-active #header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

#header {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Fallback base styles for GSAP animation */
.gsap-enabled .hero-splash__name,
.gsap-enabled .hero-splash__role,
.gsap-enabled .hero-splash__actions {
  opacity: 0;
}

/* Responsive adjustments for splash page */
@media (max-width: 768px) {
  .hero-splash__name {
    font-size: clamp(1.8rem, 7.5vw, 3.2rem);
    margin-bottom: 15px;
  }

  .hero-splash__role {
    display: block;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    padding: 0 10px;
  }
  
  .hero-splash__role .divider {
    display: inline-block;
    color: var(--accent-color);
    margin: 0 6px;
  }
}

