/* ==========================================================================
   Google / Material 3 Design Theme for Maurizio Guastella
   ========================================================================== */

:root {
  /* Google Core Colors */
  --google-blue: #1a73e8;
  --google-blue-hover: #1557b0;
  --google-blue-surface: #e8f0fe;
  
  --google-red: #ea4335;
  --google-red-surface: #fce8e6;
  
  --google-yellow: #f9ab00;
  --google-yellow-surface: #fef7e0;
  
  --google-green: #34a853;
  --google-green-surface: #e6f4ea;

  /* Neutral Surface & Typography */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-surface: #ffffff;
  
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-muted: #80868b;
  
  --border-subtle: #dadce0;
  --border-light: #e8eaed;
  
  /* Shadows (Material Elevation) */
  --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.1), 0 1px 3px 1px rgba(60, 64, 67, 0.08);
  --shadow-md: 0 1px 3px 0 rgba(60, 64, 67, 0.2), 0 4px 8px 3px rgba(60, 64, 67, 0.1);
  --shadow-lg: 0 2px 6px 2px rgba(60, 64, 67, 0.15), 0 8px 24px 4px rgba(60, 64, 67, 0.12);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Top Google Multi-color Bar */
.google-accent-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 4px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
}

.accent-segment.blue { background-color: var(--google-blue); }
.accent-segment.red { background-color: var(--google-red); }
.accent-segment.yellow { background-color: var(--google-yellow); }
.accent-segment.green { background-color: var(--google-green); }

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.bg-subtle {
  background-color: var(--bg-secondary);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 4px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.brand-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--google-blue-surface);
  color: var(--google-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  border: 1px solid rgba(26, 115, 232, 0.2);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--google-blue);
}

.nav-btn {
  background-color: var(--google-blue-surface);
  color: var(--google-blue);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  background-color: var(--google-blue);
  color: #ffffff;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--google-green-surface);
  color: #137333;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
}

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

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background-color: var(--google-blue);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--google-blue-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

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

.btn-large {
  padding: 16px 36px;
  font-size: 1.0625rem;
}

/* Hero Media & Avatar */
.hero-media {
  display: flex;
  justify-content: center;
}

.avatar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-ring {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--google-blue), var(--google-green), var(--google-yellow), var(--google-red));
  box-shadow: var(--shadow-lg);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #ffffff;
}

.avatar-initials {
  font-size: 4.5rem;
  font-weight: 800;
  color: #5f6368;
  letter-spacing: -0.05em;
}

.avatar-badge {
  margin-top: -18px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.verified-icon {
  color: var(--google-blue);
  font-weight: bold;
}

/* Section Header */
.section-header {
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-tag.blue { background: var(--google-blue-surface); color: var(--google-blue); }
.section-tag.red { background: var(--google-red-surface); color: var(--google-red); }
.section-tag.yellow { background: var(--google-yellow-surface); color: #b06000; }
.section-tag.green { background: var(--google-green-surface); color: #137333; }

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-subtle);
}

/* About Section */
.about-card-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 32px;
}

.about-main-card {
  position: relative;
}

.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--google-blue);
  opacity: 0.2;
  font-family: serif;
  margin-bottom: -16px;
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.secondary-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.highlight-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--google-blue);
  line-height: 1.2;
  margin-bottom: 4px;
}

.highlight-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background-color: var(--border-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

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

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 24px;
}

.marker-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--google-blue);
  box-shadow: var(--shadow-sm);
}

.marker-dot.yellow { border-color: var(--google-yellow); }
.marker-dot.green { border-color: var(--google-green); }

.timeline-card {
  padding: 28px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.role-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-period {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--google-blue);
  background: var(--google-blue-surface);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.company-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.timeline-body {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Expertise Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.expertise-card {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  border-radius: var(--radius-md);
}

.expertise-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.blue-bg { background: var(--google-blue-surface); color: var(--google-blue); }
.red-bg { background: var(--google-red-surface); color: var(--google-red); }
.yellow-bg { background: var(--google-yellow-surface); color: #b06000; }
.green-bg { background: var(--google-green-surface); color: var(--google-green); }

.expertise-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.expertise-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Achievements */
.achievement-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.achievement-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.achievement-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.achievement-icon {
  font-size: 1.5rem;
  color: var(--google-yellow);
  margin-bottom: 12px;
}

.achievement-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.achievement-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Contact Section */
.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 64px 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.contact-content {
  max-width: 680px;
  margin: 0 auto;
}

.contact-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-actions {
  display: flex;
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 32px 0;
  background: #ffffff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-brand {
  font-weight: 700;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--google-blue);
}

/* Fade In Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .about-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  
  .section {
    padding: 64px 0;
  }
  
  .card {
    padding: 24px;
  }
}
