/* ============================================
   Variables
   ============================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --text-primary: #f0f0f5;
  --text-secondary: #9494a8;
  --accent-1: #6c5ce7;
  --accent-2: #00cec9;
  --accent-3: #fd79a8;
  --gradient: linear-gradient(135deg, #4a8eff, #7bb8ff);
  --gradient-subtle: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 206, 201, 0.15));
  --mono: "JetBrains Mono", monospace;
  --sans: "Inter", system-ui, sans-serif;
  --container-width: 56rem;
}

/* ============================================
   Reset & Base
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   Utilities
   ============================================ */

.container {
  margin: 0 auto;
  max-width: var(--container-width);
  padding: 0 2rem;
}

.mono {
  font-family: var(--mono);
}

.gradient-text {
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--bg-card);
  border-color: rgba(108, 92, 231, 0.4);
  color: var(--text-primary);
}

.btn-primary:hover {
  border-color: var(--accent-1);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: rgba(0, 206, 201, 0.4);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--accent-2);
  box-shadow: 0 0 20px rgba(0, 206, 201, 0.3);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--gradient);
  color: #fff;
}

.btn-accent:hover {
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.4);
  transform: translateY(-2px);
}

/* ============================================
   Hero
   ============================================ */

.hero-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 80vh;
}

.hero {
  align-items: center;
  display: flex;
  flex: 1;
  overflow: hidden;
  padding: 4rem 0;
  position: relative;
}

.hero-bg-grid {
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.06) 1px, transparent 1px);
  background-size: 4rem 4rem;
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
}

.hero-bg-grid::after {
  background: radial-gradient(ellipse at 30% 50%, rgba(108, 92, 231, 0.12), transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(0, 206, 201, 0.08), transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(253, 121, 168, 0.06), transparent 50%);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.tag {
  color: var(--accent-2);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.subtitle {
  color: var(--accent-2);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.bio {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 38rem;
  margin-bottom: 2rem;
}

.bio strong {
  color: var(--text-primary);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================================
   Hire Banner
   ============================================ */

.hire-banner {
  background: var(--gradient-subtle);
  border-bottom: 1px solid rgba(108, 92, 231, 0.15);
  border-top: 1px solid rgba(108, 92, 231, 0.15);
  padding: 1.25rem 0;
}

.hire-content {
  align-items: center;
  column-gap: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.hire-status {
  align-items: center;
  color: var(--text-primary);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.5rem;
  white-space: nowrap;
}

.pulse-dot {
  animation: pulse 2s ease-in-out infinite;
  background: #00e676;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  height: 0.6rem;
  width: 0.6rem;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
}

.hire-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   Experience
   ============================================ */

.experience {
  padding: 6rem 0;
}

.timeline {
  border-left: 2px solid rgba(108, 92, 231, 0.2);
  margin-left: 0.5rem;
  padding-left: 2rem;
}

.timeline-item {
  padding-bottom: 2.5rem;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  background: var(--bg-primary);
  border: 2px solid var(--accent-1);
  border-radius: 50%;
  height: 0.85rem;
  left: -2.55rem;
  position: absolute;
  top: 0.35rem;
  transition: all 0.3s;
  width: 0.85rem;
}

.timeline-item:hover .timeline-marker {
  background: var(--accent-1);
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.5);
}

.timeline-date {
  color: var(--accent-2);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.timeline-content .company {
  color: var(--accent-3);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.timeline-content p:last-child {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================
   Footer
   ============================================ */

footer {
  border-top: 1px solid rgba(108, 92, 231, 0.1);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
  .hero {
    padding: 6rem 0 4rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .bio {
    font-size: 1rem;
  }

  .hero-links {
    flex-direction: column;
  }

  .hero-links .btn {
    justify-content: center;
  }

  .hire-content {
    flex-direction: column;
    text-align: center;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-marker {
    left: -2.05rem;
  }

  .experience {
    padding: 4rem 0;
  }
}
