/**
 * Carlos Hernández - Personal Landing Page
 * Violet Palette - AI-Forward Design
 */

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

/* Color Palette */
:root {
  --bg: #09080d;
  --surface: #12111a;
  --surface-hover: #1c1a28;
  --text: #f8f7fc;
  --text-secondary: #b8b5c8;
  --text-muted: #6e6b80;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-dark: #7c3aed;
  --accent-subtle: rgba(139, 92, 246, 0.12);
  --accent-glow: rgba(139, 92, 246, 0.35);
  --secondary: #22d3ee;
  --secondary-subtle: rgba(34, 211, 238, 0.12);
  --tertiary: #6366f1;
  --tertiary-subtle: rgba(99, 102, 241, 0.12);
  --border: #1e1c2a;
  --border-accent: rgba(139, 92, 246, 0.3);
}

/* Base */
body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 32px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--tertiary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.identity-text .name {
  font-size: 1rem;
  font-weight: 600;
}

.identity-text .meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--accent-light);
  background: var(--accent-subtle);
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-accent);
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* Hero */
.hero {
  margin-bottom: 56px;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.headline {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.subheadline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 600px;
}

/* Stats */
.stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 12px;
  flex: 1;
  min-width: 180px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-pill:hover {
  border-color: var(--border-accent);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}

.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Experience List */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exp-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exp-item .company {
  font-weight: 600;
  font-size: 0.9375rem;
}

.exp-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--surface-hover);
  color: var(--text-secondary);
}

.exp-tag.violet {
  background: var(--accent-subtle);
  color: var(--accent-light);
}

.exp-tag.cyan {
  background: var(--secondary-subtle);
  color: var(--secondary);
}

.exp-tag.indigo {
  background: var(--tertiary-subtle);
  color: #818cf8;
}

.exp-tag.pink {
  background: rgba(236, 72, 153, 0.12);
  color: #ec4899;
}

/* Skills List */
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
  padding-left: 16px;
  position: relative;
}

.skill-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

/* Links */
.stat-link {
  text-decoration: none;
  transition: opacity 0.2s;
}

.stat-link:hover {
  opacity: 0.8;
}

.h14z-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.h14z-link:hover {
  text-decoration: underline;
}

/* CTA Section */
.cta-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.cta-content {
  flex: 1;
  min-width: 280px;
}

.cta-text {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.cta-text span {
  color: var(--text-muted);
  font-weight: 400;
}

.cta-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  gap: 12px;
}

.cta-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.cta-secondary {
  background: var(--surface-hover);
  color: var(--text);
  padding: 14px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background 0.2s, border-color 0.2s;
  border: 1px solid var(--border);
}

.cta-secondary:hover {
  background: var(--border);
  border-color: var(--text-muted);
}

/* Footer */
.footer {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* Responsive */
@media (max-width: 700px) {
  .container {
    padding: 40px 20px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .stats-row {
    flex-direction: column;
  }

  .stat-pill {
    min-width: auto;
  }

  .cta-section {
    flex-direction: column;
    text-align: center;
  }

  .cta-content {
    min-width: auto;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    text-align: center;
  }
}
