/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 20%, rgba(88,166,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(63,185,80,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Terminal window */
.hero-terminal {
  background: #010409;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  max-width: 560px;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-faint);
}

.terminal-body {
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-accent);
  min-height: 48px;
}

.terminal-body .prompt { color: var(--color-primary); }

.cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--color-primary);
}

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

/* Hero content */
.hero-eyebrow { margin-bottom: 1rem; }

.hero-title {
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-desc {
  font-size: 1.125rem;
  max-width: 560px;
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

/* Stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  min-width: 120px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-mono);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.stat-card-funny {
  border-color: rgba(248,81,73,0.25);
  background: rgba(248,81,73,0.04);
  cursor: default;
}

.stat-number-funny {
  color: var(--color-danger) !important;
}

/* --- Section alt background --- */
.section-alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p { color: var(--color-text-muted); line-height: 1.8; }
.about-text strong { color: var(--color-text); font-weight: 600; }
.about-actions { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }

.principle-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.principle-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.principle-list li svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.principle-list li strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.principle-list li p { font-size: 0.875rem; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* --- Skills --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.skill-category-header svg {
  width: 20px;
  height: 20px;
}

.skill-category-header h3 {
  font-size: 1rem;
  color: var(--color-text);
}

.skill-list { display: flex; flex-direction: column; gap: 0.75rem; }

.skill-item { display: flex; flex-direction: column; gap: 4px; }

.skill-name {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.skill-bar {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: var(--pct);
  background: linear-gradient(90deg, var(--color-primary-dim), var(--color-primary));
  border-radius: 2px;
  transition: width 1s ease;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* --- Experience --- */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.exp-card {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.exp-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.exp-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.picsart-logo     { background: #fff; border: 1px solid rgba(255,100,130,0.35); }
.vmware-logo      { background: #fff; border: 1px solid rgba(88,166,255,0.35); }
.servicetitan-logo { background: #fff; border: 1px solid rgba(63,185,80,0.35); }
.portal-logo      { background: #fff; border: 1px solid rgba(255,80,0,0.35); }

.exp-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 3px;
}

.exp-timeline-line {
  width: 1px;
  flex: 1;
  background: var(--color-border);
  margin-top: 0.75rem;
  min-height: 20px;
}

.exp-body { flex: 1; min-width: 0; }

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.exp-company { font-size: 1.15rem; color: var(--color-text); margin-bottom: 0.15rem; }
.exp-role    { font-size: 0.875rem; color: var(--color-text-muted); }

.exp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.exp-date {
  font-size: 0.75rem;
  color: var(--color-text-faint);
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.exp-bullets li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.6;
}

.exp-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.7rem;
  top: 0.2rem;
}

.exp-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; }

@media (max-width: 600px) {
  .exp-card { flex-direction: column; gap: 1rem; }
  .exp-left  { flex-direction: row; gap: 1rem; align-items: center; }
  .exp-timeline-line { display: none; }
  .exp-meta  { align-items: flex-start; }
}

/* --- Previously at strip --- */
.previously-at {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.prev-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  white-space: nowrap;
  margin: 0;
}

.prev-companies {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prev-company {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.prev-company a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.prev-company a:hover {
  color: var(--color-primary);
}

.prev-company:empty { display: none; }

.prev-current {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
}

.prev-dot {
  color: var(--color-text-faint);
  font-size: 0.75rem;
}

/* Hide dots next to empty companies */
.prev-company:empty + .prev-dot,
.prev-dot:has(+ .prev-company:empty) { display: none; }

/* --- Resume CTA --- */
.resume-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  flex-wrap: wrap;
}

.resume-cta-text h3 { margin-bottom: 0.35rem; }
.resume-cta-text p  { font-size: 0.9rem; }

/* --- Featured Work --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--color-text);
  text-decoration: none;
}

.card.card--automation { border-left: 3px solid var(--color-primary); }
.card.card--manual     { border-left: 3px solid #bc8cff; }

.work-card h3 { color: var(--color-text); }
.work-card p  { font-size: 0.9rem; flex: 1; }

.work-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-icon   { background: rgba(88,166,255,0.1);  color: var(--color-primary); border: 1px solid var(--color-primary); }
.api-icon  { background: rgba(63,185,80,0.1);   color: var(--color-accent);  border: 1px solid var(--color-accent); }
.perf-icon { background: rgba(210,153,34,0.1);  color: var(--color-warn);    border: 1px solid var(--color-warn); }
.tc-icon   { background: rgba(188,140,255,0.1); color: #bc8cff;              border: 1px solid #bc8cff; }

.work-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

.contact-links { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-text);
  text-decoration: none;
}

.contact-item svg { color: var(--color-primary); flex-shrink: 0; }

.contact-item-upwork {
  border-color: rgba(20, 176, 83, 0.3);
  background: rgba(20, 176, 83, 0.04);
}

.contact-item-upwork svg { color: #14b053; }
.contact-item-upwork strong { color: #14b053; }
.contact-item strong { display: block; margin-bottom: 0.1rem; }
.contact-item p { font-size: 0.85rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form h3 { margin-bottom: 0.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}

.form-note {
  font-size: 0.8rem;
  text-align: center;
  color: var(--color-text-faint);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 0.75rem; }
  .stat-card { min-width: 100px; padding: 0.75rem 1rem; }
}
