/* ==========================================================================
   SAL HERNANDEZ - Sleek Minimal Design
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --gray-50: #f5f5f5;
  --gray-100: #e5e5e5;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-800: #262626;
  --red: #dc2626;
  --green: #22c55e;
  
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ==========================================================================
   Container
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--gray-800);
}

.name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.role {
  font-size: 0.875rem;
  color: var(--gray-400);
  font-weight: 400;
}

.dim {
  color: var(--gray-600);
  margin: 0 0.25rem;
}

.flag {
  margin-left: 0.25rem;
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--white);
  background: var(--gray-800);
}

.nav-link.primary {
  background: var(--white);
  color: var(--black);
}

.nav-link.primary:hover {
  background: var(--gray-100);
}

/* ==========================================================================
   Main
   ========================================================================== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.tagline {
  position: relative;
  height: 2.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.tagline-line {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--white);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.tagline-line.active {
  opacity: 1;
  transform: translateY(0);
}

.bio {
  font-size: 1.125rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green);
  transition: all 0.2s ease;
}

.cta:hover {
  background: var(--green);
  color: var(--black);
  border-color: var(--green);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.cta:hover .status-dot {
  background: var(--black);
}

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

/* Hero Image */
.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 8px;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.4s ease;
}

.hero-image:hover img {
  filter: grayscale(0%) contrast(1);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 8px -8px -8px 8px;
  border: 1px solid var(--gray-800);
  border-radius: 8px;
  z-index: -1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color 0.15s ease;
}

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

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--gray-600);
  font-style: italic;
  max-width: 400px;
  text-align: right;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-image {
    max-width: 280px;
    order: -1;
  }
  
  .tagline {
    height: auto;
  }
  
  .tagline-line {
    position: relative;
    transform: none;
    opacity: 1;
  }
  
  .tagline-line:not(.active) {
    display: none;
  }
}

@media (max-width: 640px) {
  .header {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .nav {
    width: 100%;
  }
  
  .nav-link {
    flex: 1;
    text-align: center;
  }
  
  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-tagline {
    text-align: center;
  }
  
  .interests {
    justify-content: center;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
::selection {
  background: var(--red);
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
