/* ============================================
   HERO SECTION
   Main landing section with animated text
   ============================================ */

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  z-index: 2;
  margin-top: 6.25rem;
}


/* ============================================
   HERO HEADING
   Main title with decorative corners
   ============================================ */

.hero-text h1 {
  /* Typography */
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  color: var(--hero-text-color);
  
  /* Spacing */
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  
  /* Layout for pseudo-elements */
  position: relative;
}

/* Corner decorations */
.hero-text h1::before,
.hero-text h1::after {
  content: '';
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 0.1875rem solid var(--hero-shadow);
}

.hero-text h1::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.hero-text h1::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}


/* ============================================
   GLOW EFFECT
   Neon text highlighting
   ============================================ */

.hero-text .glow {
  color: var(--hero-accent-color);
}


/* ============================================
   TYPING ANIMATION
   Rotating text effect with fixed width
   ============================================ */

.typing {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  width: 15ch; /* Increased to fit longest text "System Developer" */
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
}

.typing::after {
  content: "";
  animation: typing 10s infinite;
  animation-delay: 2s;
  color: var(--hero-accent-color);
  font-weight: 600;
}

@keyframes typing {
  0%, 18% { 
    content: "System Developer"; 
  }
  20%, 38% { 
    content: "Solution Finder"; 
  }
  40%, 58% { 
    content: "Innovative Mind"; 
  }
  60%, 78% { 
    content: "Python Developer"; 
  }
  80%, 100% { 
    content: "Future Explorer"; 
  }
}


/* ============================================
   SLIDE-IN ANIMATION
   Entry animation for hero text
   ============================================ */

.hero-text {
  animation: slideInLeft 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-3.125rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* ============================================
   RESPONSIVE DESIGN
   Mobile hero adjustments
   ============================================ */

@media (max-width: 56.25rem) {
  .hero-container {
    flex-direction: column;
    margin-top: 5rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    padding: 1rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }

  /* Keep typing width fixed on mobile like original */
  .typing {
    width: 15ch; /* Same fixed width on all screen sizes */
  }
}

@media (max-width: 36rem) {
  .hero-text h1::before,
  .hero-text h1::after {
    width: 1rem;
    height: 1rem;
    border-width: 0.125rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  /* Slightly smaller typing width for very small screens */
  .typing {
    width: 15ch;
  }
}
