/* ============================================
   Santiago Cuevas - Portfolio Profesional
   Design system: professional, golf & business
   ============================================ */

:root {
  /* Palette: rich green + warm cream + gold */
  --color-bg: #f6f5f1;
  --color-bg-alt: #ebe9e3;
  --color-surface: #ffffff;
  --color-text: #1a1d1a;
  --color-text-muted: #4f534f;
  --color-accent: #1e5631;
  --color-accent-light: #2d7a3e;
  --color-green-dark: #153d21;
  --color-green-darker: #0f2d17;
  --color-gold: #c9a227;
  --color-gold-light: #e0b83d;
  --color-blue-dark: #1a365d;
  --color-blue-light: #2c5282;
  --color-border: #ddd9d0;
  --color-divider: #1e5631;
  --color-divider-light: #2d7a3e;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --transition: 0.25s ease;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-accent-light);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(246, 245, 241, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}
.nav-link:hover {
  color: var(--color-text);
}
.nav-link:hover::after {
  width: 100%;
}

.nav-link-cta {
  color: var(--color-accent) !important;
  font-weight: 600;
}
.nav-link-cta::after {
  background: var(--color-gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(var(--header-height) + var(--space-2xl)) var(--space-md) var(--space-2xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(30, 86, 49, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(201, 162, 39, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  width: 100%;
  max-width: 1100px;
}

.hero-collage {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero-collage-note {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
  margin: 0;
  text-align: center;
  box-shadow: 0 2px 12px rgba(30, 86, 49, 0.25);
}

.hero-resume-note {
  margin-top: var(--space-sm);
  max-width: 420px;
  padding: 1rem 1.25rem;
  background: rgba(21, 61, 33, 0.95);
  border-radius: var(--radius-md);
  color: #fdfbf5;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-left: auto;
  margin-right: auto;
}

.collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 0.9fr;
  gap: var(--space-sm);
  aspect-ratio: 1;
  max-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.collage-img:hover {
  transform: scale(1.03);
}

.collage-img--5 {
  grid-column: span 2;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  flex: 1;
  min-width: 0;
}

.hero-content {
  position: relative;
  text-align: center;
  min-width: 0;
}

.hero-photo-wrap {
  flex-shrink: 0;
}

.hero-photo {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.hero-title-accent {
  color: var(--color-accent);
  font-style: italic;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-bottom: var(--space-lg);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.hero-cta {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--color-accent);
  color: white !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.hero-cta:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}
.hero-cta::after {
  display: none !important;
}

.hero-cta--outline {
  background: transparent !important;
  color: var(--color-accent) !important;
  border: 2px solid var(--color-accent);
}
.hero-cta--outline:hover {
  background: rgba(30, 86, 49, 0.1) !important;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-border), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ----- Color divider bands ----- */
.color-divider {
  width: 100%;
  height: 32px;
  background: var(--color-divider);
}

.color-divider--pattern {
  height: 32px;
  background-color: var(--color-divider);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
  );
}

.color-divider--accent {
  height: 40px;
  background: linear-gradient(90deg, var(--color-divider) 0%, var(--color-divider-light) 50%, var(--color-divider) 100%);
}

/* ----- Sections ----- */
.section {
  padding: var(--space-2xl) 0;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
  line-height: 1.2;
}

/* ----- Dark sections (full green) ----- */
.section--dark {
  background: var(--color-green-dark);
  color: #fff;
}

.section--dark .section-label {
  color: var(--color-gold-light);
}

.section--dark .section-title {
  color: #fff;
}

.section--dark .about-lead,
.section--dark .about-content p {
  color: rgba(255, 255, 255, 0.95);
}

.section--dark .about-content a {
  color: var(--color-gold-light);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.section--dark .about-content a:hover {
  color: #fff;
}

.section--dark .about-pill {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.section--dark .about-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-green-darker);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.section--dark .about-card-label {
  color: var(--color-text-muted);
}

.section--dark .org-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.section--dark .org-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.section--dark .org-card h3 {
  color: #fff;
}

.section--dark .org-card p {
  color: rgba(255, 255, 255, 0.85);
}

.section--dark .org-card-visual:not(.org-card-visual--icon) {
  background: rgba(255, 255, 255, 0.12);
}

.section--dark .org-card--featured {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.section--dark .org-card--featured .org-card-visual {
  background: rgba(255, 255, 255, 0.15);
}

.section--dark .org-intro {
  color: rgba(255, 255, 255, 0.8);
}

.section--dark .org-card a {
  color: var(--color-gold-light);
}

.section--dark .org-card a:hover {
  color: #fff;
}

.section--dark .org-link {
  color: var(--color-gold-light);
}

.section--dark .org-link:hover {
  color: #fff;
}

.section--dark .contact-intro {
  color: rgba(255, 255, 255, 0.9);
}

.section--dark .contact-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.section--dark .contact-card:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.section--dark .contact-label {
  color: rgba(255, 255, 255, 0.7);
}

.section--dark .contact-value {
  color: #fff;
}

.section--dark .contact-icon {
  background: var(--color-gold);
  color: var(--color-green-darker);
}

.section--dark .contact-resume-link {
  color: var(--color-gold-light);
}

.section--dark .contact-resume-link:hover {
  color: #fff;
}

/* ----- About ----- */
.section.about:not(.section--dark) {
  background: var(--color-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.about-content p + p {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.about-pill {
  padding: 0.4rem 0.9rem;
  background: var(--color-bg-alt);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--space-md);
}

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
  background: linear-gradient(145deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 20px 40px rgba(30, 86, 49, 0.2);
}

.about-card-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

/* Shorter "numbers" (e.g. EN · ES, NCAA) use a smaller size */
.about-card-number:not(.about-card-number--large) {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.about-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.about-card-label {
  font-size: 0.9rem;
  opacity: 0.95;
}

.about-photo-wrap {
  margin-top: var(--space-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 85%;
}

.about-photo-wrap--golf {
  margin-top: var(--space-xl);
  max-width: 85%;
}

.about-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ----- Experience / Timeline ----- */
.experience {
  background: var(--color-bg-alt);
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--color-border);
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}
.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg-alt);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-marker--gold {
  background: var(--color-gold);
  border-color: var(--color-bg-alt);
  box-shadow: 0 0 0 2px var(--color-gold);
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.timeline-company-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.timeline-company-logo {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.timeline-company-meta {
  min-width: 0;
}

.timeline-company-meta .timeline-company {
  margin-bottom: 0.15rem;
}

.timeline-company-meta .timeline-location {
  margin-bottom: 0;
}

.timeline-company-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.timeline-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.timeline-badge--completed {
  color: var(--color-accent);
}

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

.timeline-location {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.timeline-content > p:not(.timeline-company-desc) {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.experience-note {
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.experience-other {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.experience-other-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

/* ----- Education ----- */
.education {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 30%, var(--color-surface) 100%);
}

.education-intro {
  max-width: 560px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.education-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.edu-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition);
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.edu-card--primary {
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.14) 0%, rgba(224, 184, 61, 0.06) 50%, var(--color-surface) 100%);
  border-color: rgba(201, 162, 39, 0.5);
}

.edu-card--primary .edu-card-visual {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
}

.edu-card--primary .edu-card-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #9a7b1a;
}

.edu-card--uk {
  background: linear-gradient(145deg, rgba(26, 54, 93, 0.12) 0%, rgba(44, 82, 130, 0.06) 50%, var(--color-surface) 100%);
  border-color: rgba(26, 54, 93, 0.45);
}

.edu-card--uk .edu-card-visual {
  background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue-light) 100%);
}

.edu-card--uk .edu-card-badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-blue-dark);
}

.edu-card-visual {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  min-height: 120px;
}

.edu-logo {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.edu-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
}

.edu-card-badge--gold {
  color: #9a7b1a;
}

.edu-card-body {
  padding: var(--space-lg);
  flex: 1;
}

.edu-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.edu-focus {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.edu-card--primary .edu-focus {
  color: var(--color-gold);
}

.edu-card--uk .edu-focus {
  color: var(--color-blue-dark);
}

.edu-school {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

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

.skills-section {
  background: var(--color-green-dark);
  color: #fff;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.skills-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-md);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.skills-cat {
  font-size: 0.95rem;
}

.skills-section .skills-cat-name {
  display: block;
  font-weight: 600;
  color: var(--color-gold-light);
  margin-bottom: var(--space-xs);
}

.skills-section .skills-cat p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.certifications-section {
  padding: var(--space-xl);
  background: linear-gradient(160deg, var(--color-bg-alt) 0%, var(--color-green-dark) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.certifications-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.certifications-intro {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.cert-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.cert-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 86, 49, 0.15);
  border-color: var(--color-accent);
}

.cert-card-visual {
  min-height: 140px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.cert-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 140px;
  min-height: 140px;
}

.cert-card-visual:has(img) {
  background: #f8f9fa;
}

.cert-card-visual--pdf {
  padding: 0;
  min-height: 140px;
  background: #f8f9fa;
}

.cert-card-visual--pdf iframe {
  display: block;
  width: 100%;
  height: 140px;
  border: 0;
  pointer-events: none;
}

.cert-card-visual--pdf img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.cert-card-icon {
  font-size: 2.5rem;
  opacity: 0.95;
}

.cert-card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cert-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-xs);
  line-height: 1.3;
}

.cert-card-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
  flex: 1;
}

.cert-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: auto;
}

.cert-card:hover .cert-card-link {
  text-decoration: underline;
}

.certifications-current {
  padding-top: var(--space-md);
  border-top: 1px dashed rgba(255, 255, 255, 0.4);
}

.certifications-current-line {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
  margin: 0 0 var(--space-xs);
}

.certifications-current-line:last-child {
  margin-bottom: 0;
}

/* ----- Companies strip ----- */
.companies-strip {
  background: var(--color-surface);
  padding: var(--space-2xl) 0;
}

.companies-in-experience {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
}

.companies-intro {
  max-width: 480px;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.companies-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  row-gap: var(--space-xl);
}

.company-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  padding: var(--space-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.company-logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.3);
  transition: filter var(--transition);
}

.company-logo:hover img {
  filter: grayscale(0);
}

/* ----- Organizations ----- */
.section.organizations:not(.section--dark) {
  background: var(--color-surface);
}

.org-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.org-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.org-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 12px 32px rgba(30, 86, 49, 0.15);
}

.org-card-visual {
  min-height: 100px;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.org-card-visual img {
  max-height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.org-card-visual--icon {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
}

.org-card-icon {
  font-size: 2.5rem;
  opacity: 0.95;
}

.org-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.org-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.org-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.org-card--featured {
  background: linear-gradient(145deg, rgba(30, 86, 49, 0.08) 0%, transparent 100%);
  border-color: rgba(30, 86, 49, 0.25);
}

.org-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.org-highlights {
  margin-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
}

.org-highlights-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-md);
}

.org-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.org-highlight {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.org-highlight img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.org-highlight--golf img {
  object-position: top;
}

.org-highlight--mentor img {
  object-position: center 25%;
}

.org-highlight--sbc-dinner img {
  object-position: center 20%;
}

.org-highlight--steve img {
  object-position: center 20%;
}

.org-highlight--econ img {
  object-position: top;
}

.org-highlight--jorge img {
  object-position: center 15%;
}

.org-highlight--oso img {
  object-position: 20% 40%;
}

.org-highlight--tjgt img {
  object-position: center 20%;
}

.org-highlight figcaption {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .org-highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .org-highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Entrepreneurship ----- */
.entrepreneurship {
  background: var(--color-bg-alt);
}

.entrepreneurship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.venture-card {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.venture-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 12px 32px rgba(201, 162, 39, 0.15);
}

.venture-card--featured {
  text-align: left;
  grid-column: 1 / -1;
}

.venture-card--featured .venture-icon {
  margin-left: 0;
}

.venture-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.venture-list {
  list-style: disc;
  margin-top: var(--space-sm);
  margin-left: 1.25rem;
  padding-left: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.venture-list li {
  margin-bottom: var(--space-xs);
}

.venture-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: var(--color-accent);
  color: white;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.venture-icon--logo {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 4px;
}

.venture-icon--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.venture-icon--robot {
  background: transparent;
  border: none;
  font-size: 2rem;
}

.venture-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.venture-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.venture-gallery {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.venture-photo {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.venture-photo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.venture-photo figcaption {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.venture-logos {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.venture-logos--ai img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px;
}

@media (max-width: 900px) {
  .venture-gallery {
    grid-template-columns: 1fr;
  }
}

/* ----- Media ----- */
.media {
  background: var(--color-surface);
}

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

.media-item {
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition);
}

.media-item--with-preview {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-xl);
  padding: 0;
  overflow: hidden;
}

.media-preview {
  position: relative;
  background: var(--color-bg-alt);
  min-height: 200px;
}

.media-preview-placeholder,
.media-preview-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.media-preview-link:hover {
  background: rgba(30, 86, 49, 0.08);
  color: var(--color-accent);
}

.media-preview-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-xs);
  opacity: 0.8;
}

.media-preview-link .media-preview-icon {
  color: var(--color-accent);
}

.media-preview-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.media-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-embed {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 200px;
}

.media-item--video-embed .media-preview {
  min-height: 0;
}

.media-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-item:hover {
  border-color: var(--color-gold);
}

.media-meta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.media-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.media-item p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.media-body > p:last-of-type {
  margin-bottom: var(--space-md);
}

.media-link {
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .media-item--with-preview {
    grid-template-columns: 1fr;
  }
  .media-preview {
    min-height: 180px;
  }
  .media-preview-placeholder,
  .media-preview-link {
    min-height: 180px;
  }
  .media-embed {
    min-height: 220px;
  }
}

/* ----- Contact ----- */
.section.contact:not(.section--dark) {
  background: var(--color-bg-alt);
}

.contact-intro {
  max-width: 620px;
  margin-bottom: var(--space-xl);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.05));
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), transform var(--transition);
  color: inherit;
}
.contact-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.contact-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-body);
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  word-break: break-word;
}

.contact-resume {
  margin-top: var(--space-xl);
  text-align: center;
}

.contact-resume-link {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ----- Footer ----- */
.footer {
  padding: var(--space-lg) 0;
  background: var(--color-green-darker);
  color: rgba(255,255,255,0.75);
  text-align: center;
}

.footer-text {
  font-size: 0.9rem;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    gap: var(--space-lg);
  }
  .hero-collage {
    order: 2;
    max-width: 100%;
  }
  .hero-right {
    order: 1;
  }
  .collage-grid {
    max-height: 320px;
    aspect-ratio: 1;
  }
  .hero-photo {
    width: 220px;
    height: 220px;
  }
  .education-cards {
    grid-template-columns: 1fr;
  }
  .edu-card-visual {
    min-height: 100px;
  }
  .edu-logo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .education-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .cert-cards {
    grid-template-columns: 1fr;
  }
  .org-grid {
    grid-template-columns: 1fr;
  }
  .entrepreneurship-grid {
    grid-template-columns: 1fr;
  }
  .venture-card--featured {
    grid-column: auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl);
    gap: 0;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
    transition: right var(--transition);
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-link {
    display: block;
    padding: var(--space-sm) 0;
    font-size: 1rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .timeline {
    padding-left: 1.5rem;
    margin-left: 0.25rem;
  }
  .timeline-marker {
    left: -1.5rem;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  :root {
    --space-2xl: 4rem;
  }
  .hero-photo {
    width: 180px;
    height: 180px;
  }
  .company-logo {
    width: 120px;
    height: 120px;
    padding: var(--space-md);
  }
  .section-title {
    font-size: 1.75rem;
  }
}
