/* =============================================================================
   RECRUITER-FOCUSED CV DESIGN - GIOVANNI TROVATO
   Optimized for maximum visual impact and easy scanning
   ============================================================================= */

/* CSS Custom Properties */
:root {
  /* Primary Brand Colors - Professional Blue Palette */
  --primary-color: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --accent-color: #06b6d4;
  --accent-light: #67e8f9;
  
  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent: #f0f9ff;
  --bg-dark: #0f172a;
  
  /* Borders and Shadows */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* =============================================================================
   RESET & BASE STYLES
   ============================================================================= */

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: var(--space-lg);
}

/* =============================================================================
   CONTAINER & LAYOUT
   ============================================================================= */

.container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

/* =============================================================================
   HERO SECTION - Maximum Impact Area
   ============================================================================= */

.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.hero-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  max-width: 100%;
}

.hero-text {
  z-index: 2;
  position: relative;
}

.hero-name {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-summary {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.profile-image-wrapper {
  position: relative;
}

.profile-image-wrapper img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item {
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.contact-icon {
  margin-right: var(--space-sm);
}

.contact-details {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-white);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* =============================================================================
   SKILLS SPOTLIGHT - Key Technologies Front and Center
   ============================================================================= */

.skills-spotlight {
  background: var(--bg-accent);
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
}

.spotlight-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skills-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  max-width: 700px;
  margin: 0 auto;
}

.skill-badge {
  background: var(--bg-primary);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.skill-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.skill-level {
  font-family: monospace;
  font-size: 12px;
  color: var(--primary-light);
  letter-spacing: 1px;
}

/* =============================================================================
   MAIN CONTENT GRID
   ============================================================================= */

.main-content {
  padding: var(--space-xl);
}

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

.primary-column {
  order: 1;
}

.secondary-column {
  order: 2;
}

/* =============================================================================
   SECTION STYLING
   ============================================================================= */

section {
  margin-bottom: var(--space-2xl);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-light);
  position: relative;
}

.title-accent {
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.section-title span:last-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* =============================================================================
   EXPERIENCE SECTION
   ============================================================================= */

.job-entry {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-left: 4px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.job-entry:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary-color);
}

.job-header {
  margin-bottom: var(--space-sm);
}

.job-title {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.job-company {
  font-weight: 600;
  color: var(--text-primary);
}

.job-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* =============================================================================
   EDUCATION SECTION
   ============================================================================= */

.edu-entry {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: all 0.2s ease;
}

.edu-entry:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.edu-degree {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

.edu-school {
  font-weight: 600;
  color: var(--text-primary);
}

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

.edu-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: var(--space-sm);
  margin-bottom: 0;
}

/* =============================================================================
   CERTIFICATIONS
   ============================================================================= */

.certifications-list {
  list-style: none;
}

.certifications-list li {
  background: var(--bg-accent);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  border-left: 3px solid var(--accent-color);
}

.certifications-list strong {
  color: var(--primary-color);
  font-weight: 700;
}

.certifications-list a {
  color: var(--primary-color);
  text-decoration: none;
}

.certifications-list a:hover {
  text-decoration: underline;
}

.cert-description {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* =============================================================================
   LANGUAGES & INTERESTS
   ============================================================================= */

.languages-list {
  list-style: none;
}

.languages-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.languages-list li:last-child {
  border-bottom: none;
}

.interests-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag {
  background: var(--primary-light);
  color: var(--text-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
}

/* =============================================================================
   PRINT BUTTON
   ============================================================================= */

.print-footer {
  padding: var(--space-lg);
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.print-button {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-white);
  border: none;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.print-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
  body {
    padding: var(--space-md);
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-name {
    font-size: 2rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .secondary-column {
    order: 3;
  }
  
  .skills-showcase {
    justify-content: center;
  }
}

/* Print styles are now handled by dedicated print.css file */