/**
 * Vincenzo Falace - Showcase Website
 * File: assets/css/pages/about.css
 * Description: Styles specific to the About page (Chi Sono), including timeline, profile layout, and skill bars.
 */

/* ==========================================
   1. PROFILE SECTION
   ========================================== */
.profile-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.profile-image-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 235, 248, 0.05);
  aspect-ratio: 1 / 1;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.profile-image-container:hover .profile-img {
  transform: scale(1.03);
}

.profile-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(11, 15, 25, 0.85) 100%);
  pointer-events: none;
}

.profile-meta {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
}

.profile-name {
  font-size: var(--font-size-h3);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--space-xxs);
}

.profile-title {
  font-size: var(--font-size-small);
  color: var(--accent-tech);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.profile-bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.profile-bio-highlight {
  font-size: var(--font-size-lead);
  font-weight: var(--fw-medium);
  line-height: var(--lh-loose);
  color: var(--text-primary);
}

/* ==========================================
   2. SKILLS SECTIONS (SKILL BARS)
   ========================================== */
.skills-section {
  background-color: rgba(11, 15, 25, 0.4);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.skills-col-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.skills-col-title svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.skill-name {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.skill-percentage {
  font-weight: var(--fw-bold);
  font-family: var(--font-heading);
}

.skill-bar-bg {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  width: 0; /* Animated via scroll-reveal or direct style load */
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-bar .skill-bar-fill {
  background: var(--gradient-tech);
  box-shadow: 0 0 10px hsla(var(--accent-tech-hsl), 0.5);
}

.sale-bar .skill-bar-fill {
  background: var(--gradient-sale);
  box-shadow: 0 0 10px hsla(var(--accent-sale-hsl), 0.5);
}

/* ==========================================
   3. PROFESSIONAL TIMELINE
   ========================================== */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--space-2xl);
}

/* Vertical Timeline Line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 7px;
  width: 2px;
  height: calc(100% - 10px);
  background: linear-gradient(to bottom, var(--accent-tech) 0%, var(--accent-purple) 50%, var(--accent-sale) 100%);
}

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

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

/* Timeline Bullet Dot */
.timeline-dot {
  position: absolute;
  top: 5px;
  left: calc(var(--space-2xl) * -1 + 2px);
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: var(--bg);
  border: 3px solid var(--accent-tech);
  z-index: 2;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.timeline-item:nth-child(2) .timeline-dot { border-color: var(--accent-blue); }
.timeline-item:nth-child(3) .timeline-dot { border-color: var(--accent-purple); }
.timeline-item:nth-child(4) .timeline-dot { border-color: var(--accent-sale); }

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 10px currentColor;
}

.timeline-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: var(--fw-extrabold);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: var(--space-xxs) var(--space-sm);
  border-radius: var(--radius-full);
}

.timeline-role {
  font-size: var(--font-size-h4);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  color: var(--accent-tech);
}

.timeline-item:nth-child(2) .timeline-company { color: var(--accent-blue); }
.timeline-item:nth-child(3) .timeline-company { color: var(--accent-purple); }
.timeline-item:nth-child(4) .timeline-company { color: var(--accent-sale); }

.timeline-body {
  color: var(--text-secondary);
}

/* ==========================================
   4. CNA & LOCAL TERRITORY SECTION
   ========================================== */
.cna-card {
  background: linear-gradient(135deg, rgba(17, 25, 45, 0.8) 0%, rgba(11, 15, 25, 0.85) 100%);
  border: 1px solid var(--glass-border-highlight);
  box-shadow: var(--shadow-lg), 0 15px 40px -10px rgba(0, 235, 248, 0.04);
}

.cna-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 235, 248, 0.1);
  color: var(--accent-tech);
  border: 1px solid rgba(0, 235, 248, 0.2);
  padding: var(--space-xxs) var(--space-md);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--font-size-tiny);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

/* ==========================================
   5. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 992px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .profile-image-container {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}
