/* ==============================================================================
   MGG Portfolio Stylesheet - Mauricio Gracia Gutiérrez
   Design System: Deep Dark Blue, Slate Navy, Electric Blue & Dark Orange / Amber
   Fully Responsive (Mobile-First), Glassmorphic Cards, Clean CSS Variables
   ============================================================================== */

:root {
  /* Surface & Background Hierarchy - Noticeably Lighter Slate Dark Gray */
  --bg-base: #333945;
  --bg-surface: #3c4453;
  --bg-surface-elevated: #464f61;
  --bg-card: rgba(58, 66, 81, 0.88);
  --bg-card-hover: rgba(69, 78, 96, 0.95);
  --bg-card-glass: rgba(50, 57, 70, 0.8);
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-card: rgba(56, 189, 248, 0.28);
  --border-card-hover: rgba(56, 189, 248, 0.55);
  --border-orange: rgba(249, 115, 22, 0.45);

  /* Blue Palette */
  --blue-primary: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-electric: #38bdf8;
  --blue-glow: rgba(56, 189, 248, 0.25);
  --blue-gradient: linear-gradient(135deg, #1d4ed8 0%, #38bdf8 100%);

  /* Dark Orange / Amber Accents */
  --orange-primary: #ea580c;
  --orange-dark: #9a3412;
  --orange-electric: #f97316;
  --orange-glow: rgba(249, 115, 22, 0.25);
  --orange-gradient: linear-gradient(135deg, #c2410c 0%, #f97316 100%);
  --amber-soft: #fef3c7;

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #cbd5e1;
  --text-dark: #0f172a;

  /* Shadows & Highlights */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow-blue: 0 0 25px rgba(56, 189, 248, 0.18);
  --shadow-glow-orange: 0 0 25px rgba(249, 115, 22, 0.2);

  /* Layout & Spacing */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-base);
  scroll-behavior: smooth;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(234, 88, 12, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 9, 19, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-center-menu {
  display: none;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-center-menu a:hover {
  color: var(--text-primary);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Control Pills */
.persona-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
}

.persona-btn {
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.persona-btn.active {
  background: var(--blue-primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.persona-btn.investor-active.active {
  background: var(--orange-gradient);
}

.lang-btn {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.lang-btn:hover {
  border-color: var(--blue-electric);
  color: #fff;
}

/* Hero / Overview Section */
.hero-section {
  padding: 1.25rem 0 1.75rem;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.hero-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-electric);
  box-shadow: var(--shadow-glow-blue);
}

.hero-title-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  width: 100%;
}

.hero-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.gradient-text-blue {
  color: var(--blue-electric);
}

.gradient-text-orange {
  color: var(--orange-electric);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: var(--transition);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--blue-electric);
  transform: translateY(-2px);
}

/* Quick Metrics Row - 2x2 grid on right */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0;
}

.metric-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.metric-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
}

.metric-number {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--blue-electric);
  line-height: 1.25;
  margin-bottom: 0;
}

.metric-card.accent-orange .metric-number {
  color: var(--orange-electric);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* Section Common */
.section {
  padding: 2.25rem 0;
  scroll-margin-top: 4.5rem;
}

.section-shaded {
  background: rgba(44, 50, 62, 0.45);
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-electric);
  margin-bottom: 0.35rem;
  display: block;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 680px;
  margin-top: 0.4rem;
}

/* Products Subsections & Category Layout */
.products-subsection {
  margin-bottom: 2.75rem;
}

.products-subsection:last-child {
  margin-bottom: 0;
}

.subsection-header {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.65rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.subsection-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.subsection-badge {
  font-size: 0.76rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-blue-subtle {
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue-electric);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-orange-subtle {
  background: rgba(234, 88, 12, 0.12);
  color: var(--orange-electric);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

/* Featured Products Cards: 4 columns on desktop */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Extensions Grid: 3 cards side by side on desktop */
.extensions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 980px) {
  .extensions-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.15rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 5rem;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue-gradient);
  opacity: 0.6;
}

.product-card.orange-tint::before {
  background: var(--orange-gradient);
}

.product-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

.product-card.orange-tint:hover {
  box-shadow: var(--shadow-md), var(--shadow-glow-orange);
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-icon {
  font-size: 1.4rem;
  background: rgba(68, 77, 95, 0.85);
  border: 1px solid var(--border-subtle);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.product-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue-electric);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-orange {
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange-electric);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.product-title-link:hover {
  color: var(--blue-electric);
}

.product-card.orange-tint .product-title-link:hover {
  color: var(--orange-electric);
}

.product-site-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-electric);
  text-decoration: none;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  margin-top: 0.45rem;
  margin-bottom: 0.2rem;
  width: fit-content;
  transition: var(--transition);
}

.product-site-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--blue-electric);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}

.product-card.orange-tint .product-site-btn {
  color: var(--orange-electric);
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
}

.product-card.orange-tint .product-site-btn:hover {
  background: rgba(249, 115, 22, 0.22);
  border-color: var(--orange-electric);
  color: #fff;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.ext-icon {
  font-size: 0.85em;
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.product-title-link:hover .ext-icon,
.product-site-btn:hover .ext-icon {
  transform: translate(2px, -2px);
}

.product-pitch {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 0.4rem;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.tech-tag {
  background: rgba(45, 52, 65, 0.95);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  color: #f1f5f9;
}

.product-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.8rem;
}

.product-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.product-features-list li::before {
  content: '✓';
  color: var(--orange-electric);
  font-weight: 800;
}

/* Skills Matrix Interactive */
.skills-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--blue-electric);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--blue-primary);
  color: #fff;
  border-color: var(--blue-primary);
}

.skills-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
}

.skills-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.skills-table th {
  background: var(--bg-surface-elevated);
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.skills-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
}

.skills-table tr:hover td {
  background: rgba(30, 41, 59, 0.4);
}

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

/* 3-Column Width Distribution */
.skills-table th:nth-child(1),
.skills-table td:nth-child(1) {
  width: 26%;
}

.skills-table th:nth-child(2),
.skills-table td:nth-child(2) {
  width: 16%;
  white-space: nowrap;
  text-align: center;
}

.skills-table th:nth-child(3),
.skills-table td:nth-child(3) {
  width: 58%;
}

/* Time / Years column styling */
.skill-time-col {
  white-space: nowrap;
  text-align: center;
}

.skill-period {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.skill-years-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue-electric);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.25);
  line-height: 1.2;
}

/* Experience Timeline */
.timeline-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-flow::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 15px;
  bottom: 15px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-electric) 0%, var(--orange-electric) 100%);
  opacity: 0.4;
}

.timeline-entry {
  position: relative;
  padding-left: 50px;
}

.timeline-bullet {
  position: absolute;
  left: 13px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--blue-electric);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.timeline-entry:nth-child(even) .timeline-bullet {
  border-color: var(--orange-electric);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-card-hover);
  transform: translateX(4px);
}

.timeline-role-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

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

.timeline-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-electric);
  background: rgba(249, 115, 22, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-electric);
  margin-bottom: 0.6rem;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline-bullets {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-bullets li::before {
  content: '▸ ';
  color: var(--blue-electric);
}

/* Leadership & Interviewing Cards */
.two-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-icon {
  font-size: 1.8rem;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid var(--border-orange);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Footer / Direct Contact */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-glow-blue);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.contact-pill:hover {
  border-color: var(--orange-electric);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-orange);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (min-width: 768px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .nav-center-menu {
    display: flex;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 0.85rem;
  }
  .hero-title-wrapper {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .hero-title {
    font-size: 1.35rem;
  }
  .skills-table {
    font-size: 0.82rem;
  }
  .skills-table th {
    padding: 0.65rem 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    line-height: 1.25;
  }
  .skills-table td {
    padding: 0.65rem 0.5rem;
    line-height: 1.4;
  }
  .skills-table th:nth-child(1),
  .skills-table td:nth-child(1) {
    width: 28%;
  }
  .skills-table th:nth-child(2),
  .skills-table td:nth-child(2) {
    width: 22%;
    text-align: center;
  }
  .skills-table th:nth-child(3),
  .skills-table td:nth-child(3) {
    width: 50%;
  }
  .skill-years-badge {
    font-size: 0.76rem;
    padding: 0.12rem 0.45rem;
  }
  .skill-period {
    font-size: 0.68rem;
    margin-bottom: 0.25rem;
  }
  .timeline-entry {
    padding-left: 36px;
  }
  .timeline-flow::before {
    left: 12px;
  }
  .timeline-bullet {
    left: 5px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .metric-card {
    padding: 0.65rem 0.75rem;
  }
  .metric-number {
    font-size: 0.88rem;
  }
  .metric-label {
    font-size: 0.72rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 860px) {
  .hero-main-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
