/* 
ENHANCED PROFESSIONAL STYLES
============================
Aplicando principios de spacing estratégico y rupturas intencionales
para crear una experiencia memorable y profesional
*/

/* Importar el sistema de spacing */
@import url('./spacing-system.css');

/* 
TIPOGRAFÍA CON TENSIÓN VISUAL
=============================
Jerarquías que rompen expectativas para crear recordación
*/

/* Hero title con spacing asimétrico */
.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 0.9; /* Compresión intencional para impacto */
  letter-spacing: -0.02em; /* Tensión tipográfica */
  margin-bottom: var(--space-whisper); /* Casi pegado al subtítulo */
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 300; /* Contraste de peso con el título */
  line-height: 1.4;
  margin-bottom: var(--space-tension-md); /* Ruptura del patrón */
  opacity: 0.85; /* Sutil jerarquía visual */
}

/* Section titles con spacing dramático */
.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-tension-lg); /* Pausa dramática */
  position: relative;
}

/* Añadir elemento decorativo que rompe el grid */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px; /* Posición asimétrica intencional */
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
  border-radius: 2px;
}

/* 
CARDS CON SPACING ASIMÉTRICO
============================
Rompiendo la simetría para crear interés visual
*/

.project-card {
  padding: var(--space-xl) var(--space-lg) var(--space-2xl) var(--space-lg);
  /* Más padding abajo para crear peso visual */
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px; /* Número no estándar para personalidad */
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b9d, #4ecdc4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02); /* Ruptura: no solo Y, también escala */
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 107, 157, 0.1);
}

/* Spacing interno de cards con jerarquía emocional */
.project-card h3 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  margin-bottom: var(--space-xs); /* Casi pegado al subtítulo */
  line-height: 1.2;
}

.project-card .subtitle {
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: var(--space-breath); /* Respiro antes de la descripción */
  font-weight: 400;
}

.project-card .description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.8);
}

/* 
SKILLS GRID CON TENSIÓN VISUAL
==============================
Grid que rompe expectativas para crear interés
*/

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-tension-md) var(--space-lg); /* Gap asimétrico */
  margin-top: var(--space-2xl);
}

.skill-category {
  padding: var(--space-xl) var(--space-lg) var(--space-2xl) var(--space-lg);
  /* Más padding abajo para estabilidad visual */
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
  position: relative;
}

.skill-category:nth-child(odd) {
  transform: translateY(-8px); /* Ruptura del grid para crear ritmo */
}

.skill-category:hover {
  transform: translateY(-12px) scale(1.03);
  background: rgba(255, 255, 255, 0.08);
}

.skill-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-breath);
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.skill-category h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: #ff6b9d;
}

.skill-category ul {
  list-style: none;
  margin-top: var(--space-sm);
}

.skill-category li {
  margin-bottom: var(--space-whisper); /* Compacto para densidad */
  padding-left: var(--space-md);
  position: relative;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.skill-category li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #4ecdc4;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.skill-category:hover li::before {
  transform: translateX(2px);
}

/* 
ABOUT SECTION CON SPACING NARRATIVO
===================================
Spacing que cuenta la historia del diseñador
*/

.about-content {
  display: grid;
  grid-template-columns: 1.8fr 1fr; /* Proporción áurea aproximada */
  gap: var(--space-2xl) var(--space-xl); /* Gap asimétrico */
  align-items: start;
  margin-top: var(--space-xl);
}

.about-text {
  padding-right: var(--space-lg); /* Respiro hacia la sidebar */
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: var(--space-breath);
  color: rgba(255, 255, 255, 0.9);
}

.about-text p:first-child {
  font-size: 1.25rem; /* Párrafo de apertura más grande */
  margin-bottom: var(--space-lg); /* Más separación para jerarquía */
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Sidebar con spacing interno estratégico */
.about-stats {
  background: rgba(255, 255, 255, 0.04);
  padding: var(--space-xl);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  position: sticky;
  top: var(--space-2xl); /* Sticky con offset */
}

.about-stats > * + * {
  margin-top: var(--space-lg);
}

.about-stats h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: #ff6b9d;
}

/* 
TIMELINE CON SPACING NARRATIVO
==============================
Cada elemento cuenta parte de la historia
*/

.timeline {
  position: relative;
  margin-top: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #ff6b9d, #4ecdc4);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-left: var(--space-2xl);
  margin-bottom: var(--space-tension-md); /* Ritmo narrativo */
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 8px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
  border-radius: 50%;
  border: 3px solid rgba(15, 20, 25, 1);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.2);
}

.timeline-date {
  font-size: 0.9rem;
  color: #4ecdc4;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-whisper);
  color: #fff;
}

.timeline-content h4 {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
  font-weight: 400;
}

.timeline-content p {
  margin-bottom: var(--space-md);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* 
RESPONSIVE CON RUPTURAS ESTRATÉGICAS
===================================
No todo escala linealmente - algunas rupturas mejoran la UX
*/

@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .about-stats {
    position: static; /* Rompe el sticky en tablet */
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg); /* Simplifica el gap asimétrico */
  }
  
  .skill-category:nth-child(odd) {
    transform: none; /* Elimina la ruptura del grid en tablet */
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    line-height: 1.1; /* Menos compresión en móvil */
  }
  
  .project-card {
    padding: var(--space-lg); /* Simplifica el padding asimétrico */
  }
  
  .timeline::before {
    left: 15px; /* Ajusta la línea de tiempo */
  }
  
  .timeline-item {
    padding-left: var(--space-xl);
  }
  
  .timeline-item::before {
    left: 6px;
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  /* En móvil muy pequeño, priorizamos legibilidad sobre ruptura */
  .section-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: var(--space-xl); /* Menos drama, más función */
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .about-text p:first-child {
    font-size: 1.125rem; /* Menos diferenciación en móvil */
  }
}

/* 
UTILIDADES PARA RUPTURAS ESPECÍFICAS
====================================
Para casos donde necesitamos romper el sistema estratégicamente
*/

.break-grid {
  margin-left: calc(-1 * var(--space-lg));
  margin-right: calc(-1 * var(--space-lg));
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.tension-top {
  margin-top: var(--space-tension-lg) !important;
}

.whisper-bottom {
  margin-bottom: var(--space-whisper) !important;
}

.shout-top {
  margin-top: var(--space-shout) !important;
}

/* Para crear momentos de pausa dramática */
.dramatic-pause {
  margin: var(--space-shout) 0 var(--space-tension-lg) 0;
}

/* Para agrupar elementos relacionados */
.tight-group > * + * {
  margin-top: var(--space-whisper);
}

.loose-group > * + * {
  margin-top: var(--space-breath);
}

