/* ============================================
   FILE: home.css
   PURPOSE: Hero section — full-viewport, photo ring, typing, meta
   ============================================ */

#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Radial ambient glow behind hero */
#home::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

#home::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-secondary-dim) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Container ── */
.home-container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  padding: 80px 24px 0;
  position: relative;
  z-index: 1;
}

/* ── Left Content ── */
.home-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Greeting */
.home-greeting {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-greeting::after {
  content: '';
  height: 1px;
  width: 40px;
  background: var(--accent-primary);
  opacity: 0.5;
}

/* Name */
.home-name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, var(--text-bright) 40%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typing */
.home-typing-wrapper {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 28px;
}

.home-typing-prefix {
  color: var(--text-faint);
  margin-right: 6px;
}

.typing-text {
  color: var(--accent-secondary);
  font-weight: 400;
}

.typing-cursor {
  color: var(--accent-primary);
  font-weight: 100;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

/* Bio */
.home-bio {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.7;
  font-family: var(--font-body);
  font-size: 1.05rem;
}

/* Buttons */
.home-buttons {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Meta Info */
.home-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.home-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-dim), var(--glow);
  animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-dim), var(--glow); }
  50%       { box-shadow: 0 0 0 6px var(--accent-dim), var(--glow-intense); }
}

.home-location,
.home-edu {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.home-location i,
.home-edu i {
  color: var(--accent-primary);
  font-size: 0.85rem;
}

/* ── Right: Profile Photo ── */
.home-photo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Spinning ring */
.home-photo-ring {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 5s ease-in-out infinite;
}

/* Double border rings */
.home-photo-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-primary);
  border-right-color: var(--accent-primary);
  animation: spinRing 4s linear infinite;
}

.home-photo-ring::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: var(--accent-secondary);
  border-left-color: var(--accent-secondary);
  animation: spinRing 7s linear infinite reverse;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Photo */
.home-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-dim);
  filter: brightness(1.05) contrast(1.02);
  box-shadow: inset 0 0 30px var(--shadow-inner);
}
#home::before,
#home::after {
  filter: blur(40px);
}
/* Ambient glow */
.home-photo-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 65%);
  filter: blur(30px);
  z-index: -1;
  animation: glowBreathe 4s ease-in-out infinite;
}

@keyframes glowBreathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* ── Scroll Down ── */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-down a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  transition: var(--transition);
}

.scroll-down a:hover { color: var(--accent-primary); }

.scroll-down i {
  font-size: 1rem;
  color: var(--accent-primary);
  animation: bounce 1.8s ease-in-out infinite;
}