/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 3rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,23,0.85), rgba(10,14,23,0.95));
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
  align-items: center;
}

.hero-text {
  text-align: center;
}

.typewriter {
  font-size: clamp(2rem, 7vw, 3.2rem);
  color: #00D9E1;
  font-weight: 700;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #00D9E1;
}

.subtitle {
  color: #00FFB2;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.description {
  max-width: 600px;
  margin: 1rem auto;
  color: #b0e0e6;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-primary, .btn-secondary {
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s ease;
  font-size: 1rem;
}

.btn-primary {
  background: #00ADB5;
  color: #0a0e17;
  box-shadow: 0 8px 20px rgba(0,173,181,0.4);
}
.btn-primary:hover {
  background: #00D9E1;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,217,225,0.6);
}

.btn-secondary {
  background: transparent;
  color: #00ADB5;
  border: 2px solid #00ADB5;
}
.btn-secondary:hover {
  background: rgba(0,173,181,0.15);
  border-color: #00D9E1;
}

/* ==================== HERO IMAGE + GLOW ==================== */
.hero-image {
  display: flex;
  justify-content: center;
}

.image-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #00ADB5;
  box-shadow: 0 0 30px rgba(0,173,181,0.6);
  transition: all 0.5s ease;
  z-index: 2;
}

.image-wrapper:hover .profile-img {
  transform: scale(1.08);
  box-shadow: 0 0 60px rgba(0,173,181,1), 0 0 90px rgba(0,217,225,0.8);
}

.glow-border {
  position: absolute;
  inset: -18px;
  border: 3px solid #00D9E1;
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none;
  animation: pulseGlow 2.8s infinite ease-in-out;
  z-index: 1;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px 6px rgba(0,217,225,0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 50px 18px rgba(0,255,255,1), 0 0 80px 25px rgba(0,217,225,0.9);
    transform: scale(1.06);
  }
}

/* ==================== CANVAS (RAIN & PARTICLES) ==================== */
#data-rain, #data-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 640px) {
  .image-wrapper { width: 280px; height: 280px; }
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .hero-text { text-align: left; }
  .hero-buttons { justify-content: flex-start; }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    background: transparent;
    border: none;
    padding: 0;
    gap: 2rem;
  }
  .nav-links a { padding: 0; border: none; }
  .hamburger { display: none; }
}
/* === TYPEWRITER LAYOUT FIX === */
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;                 /* Prevent text from shrinking */
  min-width: 280px;               /* Minimum width to avoid collapse */
  max-width: 100%;                /* Never overflow */
}

.typewriter {
  font-size: clamp(2rem, 7vw, 3.2rem);
  color: #00D9E1;
  font-weight: 700;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #00D9E1;
  /* NEW: Fixed line height + no wrap */
  line-height: 1.2;
  height: 1.2em;                  /* Lock height */
  display: inline-block;
  vertical-align: top;
}

/* Prevent button group from expanding */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  align-self: flex-start;         /* Prevent stretch */
  min-height: 56px;               /* Reserve space */
}

@media (min-width: 1024px) {
  .image-wrapper { width: 320px; height: 320px; }
}