/* ==========================================================================
   Cristhian Ruiz // Component: About Me & Engineering Philosophy
   ========================================================================== */

.operator-profile-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.operator-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue));
}

/* Profile Photo & Scanline Animation */
.profile-photo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.photo-frame {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-cyan);
  background-color: var(--bg-surface-elevated);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.05) brightness(0.95);
  transition: transform var(--transition-smooth);
}

.photo-frame:hover .profile-photo {
  transform: scale(1.04);
}

.photo-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to bottom, rgba(0, 240, 255, 0.8), transparent);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: photo-scan 3s infinite linear;
  pointer-events: none;
}

@keyframes photo-scan {
  0% { top: -10%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

/* Cyber Corners */
.photo-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent-cyan);
  pointer-events: none;
}

.photo-corner-tl { top: 4px; left: 4px; border-top: 2px solid var(--accent-cyan); border-left: 2px solid var(--accent-cyan); }
.photo-corner-tr { top: 4px; right: 4px; border-top: 2px solid var(--accent-cyan); border-right: 2px solid var(--accent-cyan); }
.photo-corner-bl { bottom: 4px; left: 4px; border-bottom: 2px solid var(--accent-cyan); border-left: 2px solid var(--accent-cyan); }
.photo-corner-br { bottom: 4px; right: 4px; border-bottom: 2px solid var(--accent-cyan); border-right: 2px solid var(--accent-cyan); }

.photo-status-tag {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

/* Profile Details */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-header-info .profile-name {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.profile-role-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Education Callout Box */
.education-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-left: 3px solid var(--accent-blue-bright);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
}

.callout-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.callout-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.callout-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-blue-bright);
  letter-spacing: 0.05em;
}

.callout-val {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
}

.profile-bio {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-bio p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .operator-profile-card {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem;
    gap: 1.75rem;
    text-align: center;
  }

  .photo-frame {
    width: 180px;
    height: 180px;
  }

  .education-callout {
    text-align: left;
  }

  .profile-actions {
    justify-content: center;
  }

  .profile-actions .btn {
    width: 100%;
  }
}
