/* ==========================================================================
   GUILHERME ALVES — EXECUTIVE PORTFOLIO
   Design System: Apple Minimalist & Executive Dark/Light Elegance
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", Monaco, Consolas, monospace;
  
  /* Palette */
  --bg-main: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card-subtle: #fafafc;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  
  --accent-blue: #0071e3;
  --accent-blue-hover: #0077ed;
  --accent-blue-subtle: rgba(0, 113, 227, 0.08);
  
  --border-light: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.04);
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 12px 36px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 20px 48px rgba(0, 0, 0, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  
  --header-height: 60px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.5;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   NAVIGATION BAR (Glassmorphism / Apple Blur)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--text-primary);
  color: #fff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.nav-link {
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--text-primary);
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 12px;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: #333336;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 100px 0 70px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(0, 113, 227, 0.05) 0%, transparent 60%);
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: var(--shadow-subtle);
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  max-width: 900px;
  margin: 0 auto 22px;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
  background: #fafafc;
  border-color: rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.hero-stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.stat-pill {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 180px;
  box-shadow: var(--shadow-subtle);
}

.stat-num {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stat-lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 90px 0;
  border-top: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==========================================================================
   VALUE PROPOSITION CARDS
   ========================================================================== */
.value-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.value-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.value-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-blue-subtle);
  color: var(--accent-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.value-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ==========================================================================
   TIMELINE SECTION
   ========================================================================== */
.timeline-container {
  max-width: 820px;
  margin: 0 auto 70px;
}

.timeline-heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  text-align: center;
}

.timeline-items {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid rgba(0, 0, 0, 0.08);
}

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

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

.role-marker {
  position: absolute;
  left: -35px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--text-tertiary);
}

.featured-role .role-marker {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
}

.role-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-subtle);
}

.featured-role .role-content {
  border-color: rgba(0, 113, 227, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.role-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.role-company {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 13px;
}

.role-badge {
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent-blue);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.role-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.role-summary {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.role-bullets {
  padding-left: 18px;
  list-style: disc;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.role-bullets li {
  margin-bottom: 6px;
}

/* ==========================================================================
   EDUCATION BLOCK
   ========================================================================== */
.education-block {
  max-width: 820px;
  margin: 0 auto;
}

.subsection-heading {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-align: center;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.edu-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
}

.edu-degree {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-school {
  font-size: 13px;
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 4px;
}

.edu-time {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   INTERACTIVE ESRI-STYLE MAP SECTION
   ========================================================================== */
.section-map {
  background: #ffffff;
}

.map-legend-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 18px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
}

.legend-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-pin-hub {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.25);
  display: inline-block;
}

.legend-pin-visited {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.42);
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.25);
  display: inline-block;
}

.map-reset-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-subtle);
}

.map-reset-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.map-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.esri-map-container {
  height: 480px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #e5e5ea;
  overflow: hidden;
}

.city-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.city-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.city-card:hover {
  border-color: rgba(0, 113, 227, 0.4);
  transform: translateX(4px);
}

.city-card.active {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.12);
  background: linear-gradient(135deg, #ffffff 0%, #f6faff 100%);
}

.city-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.city-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  transition: background 0.2s ease;
}

.city-card.active .city-dot {
  background: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.25);
}

.city-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.city-sub {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.city-card p {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Custom Leaflet Map Marker Styling */
.custom-map-pin {
  background: var(--accent-blue);
  border: 2px solid #ffffff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.35);
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.visited-map-pin {
  background: rgba(0, 113, 227, 0.42);
  border: 1.5px solid #ffffff;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 113, 227, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.visited-map-pin:hover {
  background: rgba(0, 113, 227, 0.78);
  transform: scale(1.35);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 113, 227, 0);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0);
  }
}

/* ==========================================================================
   VENTURES & ENTREPRENEURSHIP SECTION
   ========================================================================== */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.venture-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.venture-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.venture-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.green-badge {
  background: rgba(52, 168, 83, 0.1);
  color: #1e8e3e;
}

.blue-badge {
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent-blue);
}

.orange-badge {
  background: rgba(242, 153, 74, 0.15);
  color: #d97706;
}

.venture-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.venture-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.venture-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  transition: color 0.15s ease;
}

.venture-link:hover {
  text-decoration: underline;
}

.venture-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

.venture-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.venture-tags span {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================================================
   LECTURES & SPEAKING
   ========================================================================== */
.lecture-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.lecture-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-subtle);
}

.lecture-meta {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.lecture-card h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.lecture-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER & EXECUTIVE CTA
   ========================================================================== */
.site-footer {
  background: #111113;
  color: #ffffff;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.footer-cta h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.footer-cta p {
  font-size: 15px;
  color: #a1a1a6;
  margin-bottom: 30px;
  line-height: 1.5;
}

.footer-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.site-footer .btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.site-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #86868b;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-credential {
  font-size: 11.5px;
  color: #a1a1a6;
}

.footer-tagline {
  color: #6e6e73;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 860px) {
  .map-wrapper {
    grid-template-columns: 1fr;
  }
  
  .esri-map-container {
    height: 340px;
  }

  .nav-links {
    display: none; /* Mobile menu can be expanded if needed */
  }

  .hero-stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
